	.file	"840320.c"
	.intel_syntax noprefix
	.text
	.globl	hint
	.section	.rodata
.LC0:
	.string	"/bin/sh"
	.section	.data.rel.local,"aw"
	.align 8
	.type	hint, @object
	.size	hint, 8
hint:
	.quad	.LC0
	.text
	.globl	win_func
	.type	win_func, @function
win_func:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	system@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	win_func, .-win_func
	.section	.rodata
	.align 8
.LC1:
	.string	"\nI know that mine is fine...see? : "
.LC2:
	.string	"0x%x \n"
	.align 8
.LC3:
	.string	"Let's see how good your memory is...\n"
.LC4:
	.string	"> "
.LC5:
	.string	"%s"
.LC6:
	.string	"sorry, your memory sucks\n"
.LC7:
	.string	"good job!!\n"
	.text
	.globl	mem_test
	.type	mem_test, @function
mem_test:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -19[rbp]
	mov	edx, 11
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR hint[rip]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rcx, QWORD PTR -40[rbp]
	lea	rax, -19[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L6
.L3:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L6:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mem_test, .-mem_test
	.section	.rodata
	.align 8
.LC8:
	.string	"\n\n\n------Test Your Memory!-------\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 10
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L8
.L9:
	call	rand@PLT
	movsx	rcx, eax
	mov	rax, rcx
	shr	rax
	movabs	rdx, -8925843906633654007
	mul	rdx
	shr	rdx, 4
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	lea	rax, alphanum.0[rip]
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L9
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -19[rbp]
	mov	rdi, rax
	call	mem_test
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 32
	.type	alphanum.0, @object
	.size	alphanum.0, 63
alphanum.0:
	.string	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	.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	"840320.c"
	.text
	.global	hint
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/bin/sh\000"
	.data
	.align	2
	.type	hint, %object
	.size	hint, 4
hint:
	.word	.LC0
	.text
	.align	2
	.global	win_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	win_func, %function
win_func:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	system
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	win_func, .-win_func
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012I know that mine is fine...see? : \000"
	.align	2
.LC2:
	.ascii	"0x%x \012\000"
	.align	2
.LC3:
	.ascii	"Let's see how good your memory is...\012\000"
	.align	2
.LC4:
	.ascii	"> \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"sorry, your memory sucks\012\000"
	.align	2
.LC7:
	.ascii	"good job!!\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mem_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_test, %function
mem_test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r2, #11
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L7+4
	bl	printf
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	ldr	r0, .L7+16
	bl	puts
	ldr	r0, .L7+20
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L7+24
	bl	__isoc99_scanf
	sub	r3, fp, #20
	mov	r2, #4
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L7+28
	bl	puts
	b	.L6
.L3:
	ldr	r0, .L7+32
	bl	puts
.L6:
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	.LC1
	.word	hint
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	mem_test, .-mem_test
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012\012\012------Test Your Memory!-------\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-24]
	ldr	r0, .L14+4
	bl	puts
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L11:
	bl	rand
	mov	r3, r0
	mov	r1, r3
	lsr	r3, r1, #1
	ldr	r2, .L14+8
	umull	r0, r3, r2, r3
	lsr	r2, r3, #4
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L14+12
	ldrb	r1, [r3, r2]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	sub	r3, fp, #20
	mov	r0, r3
	bl	mem_test
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	.LC9
	.word	-2078209981
	.word	alphanum.5419
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	alphanum.5419, %object
	.size	alphanum.5419, 63
alphanum.5419:
	.ascii	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno"
	.ascii	"pqrstuvwxyz\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
