	.file	"397430.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"rand.bin"
.LC2:
	.string	"\344\272\202\346\225\270\347\202\272:"
.LC3:
	.string	"%3d"
.LC4:
	.string	"\n\346\252\224\346\241\210\345\257\253\345\205\245\345\256\214\346\210\220!!"
.LC5:
	.string	"\346\252\224\346\241\210\351\226\213\345\225\237\345\244\261\346\225\227!!"
.LC6:
	.string	"pause"
	.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, 64
	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	srand@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L3
.L4:
	call	rand@PLT
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -64[rbp], 1
.L3:
	cmp	DWORD PTR -64[rbp], 9
	jle	.L4
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 10
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L5
.L2:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L5:
	lea	rdi, .LC6[rip]
	call	system@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"397430.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"rand.bin\000"
	.align	2
.LC2:
	.ascii	"\344\272\202\346\225\270\347\202\272:\000"
	.align	2
.LC3:
	.ascii	"%3d\000"
	.align	2
.LC4:
	.ascii	"\012\346\252\224\346\241\210\345\257\253\345\205\245"
	.ascii	"\345\256\214\346\210\220!!\000"
	.align	2
.LC5:
	.ascii	"\346\252\224\346\241\210\351\226\213\345\225\237\345"
	.ascii	"\244\261\346\225\227!!\000"
	.align	2
.LC6:
	.ascii	"pause\000"
	.align	2
.LC7:
	.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
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L8+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L3
.L4:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L3:
	ldr	r3, [fp, #-60]
	cmp	r3, #9
	ble	.L4
	sub	r0, fp, #48
	ldr	r3, [fp, #-56]
	mov	r2, #10
	mov	r1, #4
	bl	fwrite
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r0, .L8+20
	bl	puts
	b	.L5
.L2:
	ldr	r0, .L8+24
	bl	puts
.L5:
	ldr	r0, .L8+28
	bl	system
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
