	.file	"146125.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	ar2, @object
	.size	ar2, 63
ar2:
	.string	"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	.local	ms_rseed
	.comm	ms_rseed,4,4
	.text
	.type	ms_srand, @function
ms_srand:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR ms_rseed[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ms_srand, .-ms_srand
	.type	ms_rand, @function
ms_rand:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ms_rseed[rip]
	imul	eax, eax, 214013
	add	eax, 2531011
	and	eax, 2147483647
	mov	DWORD PTR ms_rseed[rip], eax
	mov	eax, DWORD PTR ms_rseed[rip]
	sar	eax, 16
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ms_rand, .-ms_rand
	.type	rchar, @function
rchar:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, 0
	call	ms_rand
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	imul	edx, edx, 62
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rchar, .-rchar
	.type	rstr, @function
rstr:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 32
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	QWORD PTR -40[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rchar
	mov	BYTE PTR [rbx], al
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 15
	jle	.L8
	mov	rax, QWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rstr, .-rstr
	.section	.rodata
.LC0:
	.string	"Usage: %s <key>\n"
.LC1:
	.string	"%d/256 done\n"
	.align 8
.LC2:
	.string	"Found key: %s generated at %u\n"
.LC3:
	.string	"Couldn't find key, giving up"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR -60[rbp], eax
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	BYTE PTR -16[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	cmp	DWORD PTR -68[rbp], 1
	jg	.L11
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 255
	jmp	.L19
.L11:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
.L17:
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	ms_srand
	lea	rax, -32[rbp]
	lea	rsi, ar2[rip]
	mov	rdi, rax
	call	rstr
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L21
	sub	DWORD PTR -60[rbp], 1
	add	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	and	eax, 16777215
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -56[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L15:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	je	.L22
	jmp	.L17
.L21:
	nop
	jmp	.L14
.L22:
	nop
.L14:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L18
	mov	edx, DWORD PTR -60[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L19
.L18:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"146125.c"
	.text
	.data
	.align	2
	.type	ar2, %object
	.size	ar2, 63
ar2:
	.ascii	"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO"
	.ascii	"PQRSTUVWXYZ\000"
	.local	ms_rseed
	.comm	ms_rseed,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ms_srand, %function
ms_srand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	ms_rseed
	.size	ms_srand, .-ms_srand
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ms_rand, %function
ms_rand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	mul	r2, r3, r2
	ldr	r3, .L6+8
	add	r3, r2, r3
	bic	r3, r3, #-2147483648
	ldr	r2, .L6
	str	r3, [r2]
	ldr	r3, .L6
	ldr	r3, [r3]
	asr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	ms_rseed
	.word	214013
	.word	2531011
	.size	ms_rand, .-ms_rand
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rchar, %function
rchar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	bl	ms_rand
	mov	r2, r0
	ldr	r3, .L10
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	-2078209981
	.size	rchar, .-rchar
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rstr, %function
rstr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r0, [fp, #-28]
	bl	rchar
	mov	r3, r0
	strb	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ble	.L14
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	rstr, .-rstr
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <key>\012\000"
	.align	2
.LC1:
	.ascii	"%d/256 done\012\000"
	.align	2
.LC2:
	.ascii	"Found key: %s generated at %u\012\000"
	.align	2
.LC3:
	.ascii	"Couldn't find key, giving up\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strb	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L17
	ldr	r3, .L29+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L29+8
	bl	fprintf
	mov	r3, #255
	b	.L25
.L17:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
.L23:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	ms_srand
	sub	r3, fp, #28
	ldr	r1, .L29+12
	mov	r0, r3
	bl	rstr
	sub	r3, fp, #28
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	bic	r3, r3, #-16777216
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L29+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsr	r3, r3, #24
	mov	r2, r3
	ldr	r1, .L29+16
	bl	fprintf
.L21:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L28
	b	.L23
.L27:
	nop
	b	.L20
.L28:
	nop
.L20:
	sub	r3, fp, #28
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #28
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L29+20
	bl	printf
	mov	r3, #0
	b	.L25
.L24:
	ldr	r0, .L29+24
	bl	puts
	mov	r3, #1
.L25:
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	ar2
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
