	.file	"117877.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	valid_characters, @object
	.size	valid_characters, 95
valid_characters:
	.ascii	" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	.ascii	"[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
	.align 8
.LC0:
	.string	"Invalid length '%s' (valid range: %u .. %u).\n"
	.align 8
.LC1:
	.string	"The minimum length (%s) is greater than the maximum length (%s).\n"
	.align 8
.LC2:
	.string	"Usage: %s <length> [<maximum-length>]\n"
.LC3:
	.string	"\t<length> ::= %u .. %u\n"
	.align 8
.LC4:
	.string	"Password length: %lu, password: '%s'.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srandom@PLT
	cmp	DWORD PTR -100[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jle	.L3
	cmp	DWORD PTR -84[rbp], 32
	jle	.L4
.L3:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 32
	mov	ecx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L4:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	QWORD PTR -80[rbp], rax
	jmp	.L6
.L2:
	cmp	DWORD PTR -100[rbp], 3
	jne	.L7
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jle	.L8
	cmp	DWORD PTR -84[rbp], 32
	jle	.L9
.L8:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 32
	mov	ecx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L9:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jle	.L10
	cmp	DWORD PTR -84[rbp], 32
	jle	.L11
.L10:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 32
	mov	ecx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L11:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jbe	.L12
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L12:
	call	random@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -64[rbp]
	lea	rcx, 1[rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 32
	mov	edx, 1
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L6:
	mov	QWORD PTR -72[rbp], 0
	jmp	.L13
.L14:
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 6407816362446475825
	mov	rax, rcx
	mul	rdx
	mov	rax, rcx
	sub	rax, rdx
	shr	rax
	add	rax, rdx
	shr	rax, 6
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	sub	rcx, rax
	mov	rdx, rcx
	lea	rax, valid_characters[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	lea	rcx, -48[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -72[rbp], 1
.L13:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jb	.L14
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"117877.c"
	.text
	.section	.rodata
	.align	2
	.type	valid_characters, %object
	.size	valid_characters, 95
valid_characters:
	.ascii	" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQ"
	.ascii	"RSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
	.align	2
.LC0:
	.ascii	"Invalid length '%s' (valid range: %u .. %u).\012\000"
	.align	2
.LC1:
	.ascii	"The minimum length (%s) is greater than the maximum"
	.ascii	" length (%s).\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC2:
	.ascii	"Usage: %s <length> [<maximum-length>]\012\000"
	.align	2
.LC3:
	.ascii	"\011<length> ::= %u .. %u\012\000"
	.align	2
.LC4:
	.ascii	"Password length: %lu, password: '%s'.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srandom
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-56]
	cmp	r3, #32
	ble	.L4
.L3:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r2, [r3]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #1
	ldr	r1, .L17+8
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L4:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-64]
	b	.L6
.L2:
	ldr	r3, [fp, #-72]
	cmp	r3, #3
	bne	.L7
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-56]
	cmp	r3, #32
	ble	.L9
.L8:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r2, [r3]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #1
	ldr	r1, .L17+8
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L9:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-56]
	cmp	r3, #32
	ble	.L11
.L10:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r2, [r3]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #1
	ldr	r1, .L17+8
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L11:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bls	.L12
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L17+12
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L12:
	bl	random
	mov	r3, r0
	mov	r0, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	b	.L6
.L7:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+16
	bl	fprintf
	ldr	r3, .L17+4
	ldr	r0, [r3]
	mov	r3, #32
	mov	r2, #1
	ldr	r1, .L17+20
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L6:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L13
.L14:
	bl	random
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L17+24
	umull	r2, r3, r1, r3
	sub	r2, r1, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L17+28
	ldrb	r1, [r3, r2]	@ zero_extendqisi2
	sub	r2, fp, #44
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L13:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bcc	.L14
	sub	r2, fp, #44
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, [fp, #-64]
	ldr	r0, .L17+32
	bl	printf
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1491936009
	.word	valid_characters
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
