	.file	"35382.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"d.txt"
.LC2:
	.string	"set key%d %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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -80[rbp], 48
	mov	BYTE PTR -79[rbp], 49
	mov	BYTE PTR -78[rbp], 50
	mov	BYTE PTR -77[rbp], 51
	mov	BYTE PTR -76[rbp], 52
	mov	BYTE PTR -75[rbp], 53
	mov	BYTE PTR -74[rbp], 54
	mov	BYTE PTR -73[rbp], 55
	mov	BYTE PTR -72[rbp], 56
	mov	BYTE PTR -71[rbp], 57
	mov	BYTE PTR -70[rbp], 97
	mov	BYTE PTR -69[rbp], 98
	mov	BYTE PTR -68[rbp], 99
	mov	BYTE PTR -67[rbp], 100
	mov	BYTE PTR -66[rbp], 101
	mov	BYTE PTR -65[rbp], 102
	mov	BYTE PTR -64[rbp], 103
	mov	BYTE PTR -63[rbp], 104
	mov	BYTE PTR -62[rbp], 105
	mov	BYTE PTR -61[rbp], 106
	mov	BYTE PTR -60[rbp], 107
	mov	BYTE PTR -59[rbp], 108
	mov	BYTE PTR -58[rbp], 109
	mov	BYTE PTR -57[rbp], 110
	mov	BYTE PTR -56[rbp], 111
	mov	BYTE PTR -55[rbp], 112
	mov	BYTE PTR -54[rbp], 113
	mov	BYTE PTR -53[rbp], 114
	mov	BYTE PTR -52[rbp], 115
	mov	BYTE PTR -51[rbp], 116
	mov	BYTE PTR -50[rbp], 117
	mov	BYTE PTR -49[rbp], 118
	mov	BYTE PTR -48[rbp], 119
	mov	BYTE PTR -47[rbp], 120
	mov	BYTE PTR -46[rbp], 121
	mov	BYTE PTR -45[rbp], 122
	mov	BYTE PTR -44[rbp], 65
	mov	BYTE PTR -43[rbp], 66
	mov	BYTE PTR -42[rbp], 67
	mov	BYTE PTR -41[rbp], 68
	mov	BYTE PTR -40[rbp], 69
	mov	BYTE PTR -39[rbp], 70
	mov	BYTE PTR -38[rbp], 71
	mov	BYTE PTR -37[rbp], 72
	mov	BYTE PTR -36[rbp], 73
	mov	BYTE PTR -35[rbp], 74
	mov	BYTE PTR -34[rbp], 75
	mov	BYTE PTR -33[rbp], 76
	mov	BYTE PTR -32[rbp], 77
	mov	BYTE PTR -31[rbp], 78
	mov	BYTE PTR -30[rbp], 79
	mov	BYTE PTR -29[rbp], 80
	mov	BYTE PTR -28[rbp], 81
	mov	BYTE PTR -27[rbp], 82
	mov	BYTE PTR -26[rbp], 83
	mov	BYTE PTR -25[rbp], 84
	mov	BYTE PTR -24[rbp], 85
	mov	BYTE PTR -23[rbp], 86
	mov	BYTE PTR -22[rbp], 87
	mov	BYTE PTR -21[rbp], 88
	mov	BYTE PTR -20[rbp], 89
	mov	BYTE PTR -19[rbp], 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	edi, 535822337
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 535822337
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR -104[rbp], 0
	jmp	.L3
.L4:
	call	rand@PLT
	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
	imul	ecx, edx, 62
	sub	eax, ecx
	mov	edx, eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rcx, rax
	movsx	rax, edx
	movzx	eax, BYTE PTR -80[rbp+rax]
	mov	BYTE PTR [rcx], al
	add	QWORD PTR -104[rbp], 1
.L3:
	cmp	QWORD PTR -104[rbp], 535822335
	jbe	.L4
	mov	rcx, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -108[rbp], 1
.L2:
	cmp	DWORD PTR -108[rbp], 0
	jle	.L5
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, 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	"35382.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"d.txt\000"
	.align	2
.LC2:
	.ascii	"set key%d %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #48
	strb	r3, [fp, #-80]
	mov	r3, #49
	strb	r3, [fp, #-79]
	mov	r3, #50
	strb	r3, [fp, #-78]
	mov	r3, #51
	strb	r3, [fp, #-77]
	mov	r3, #52
	strb	r3, [fp, #-76]
	mov	r3, #53
	strb	r3, [fp, #-75]
	mov	r3, #54
	strb	r3, [fp, #-74]
	mov	r3, #55
	strb	r3, [fp, #-73]
	mov	r3, #56
	strb	r3, [fp, #-72]
	mov	r3, #57
	strb	r3, [fp, #-71]
	mov	r3, #97
	strb	r3, [fp, #-70]
	mov	r3, #98
	strb	r3, [fp, #-69]
	mov	r3, #99
	strb	r3, [fp, #-68]
	mov	r3, #100
	strb	r3, [fp, #-67]
	mov	r3, #101
	strb	r3, [fp, #-66]
	mov	r3, #102
	strb	r3, [fp, #-65]
	mov	r3, #103
	strb	r3, [fp, #-64]
	mov	r3, #104
	strb	r3, [fp, #-63]
	mov	r3, #105
	strb	r3, [fp, #-62]
	mov	r3, #106
	strb	r3, [fp, #-61]
	mov	r3, #107
	strb	r3, [fp, #-60]
	mov	r3, #108
	strb	r3, [fp, #-59]
	mov	r3, #109
	strb	r3, [fp, #-58]
	mov	r3, #110
	strb	r3, [fp, #-57]
	mov	r3, #111
	strb	r3, [fp, #-56]
	mov	r3, #112
	strb	r3, [fp, #-55]
	mov	r3, #113
	strb	r3, [fp, #-54]
	mov	r3, #114
	strb	r3, [fp, #-53]
	mov	r3, #115
	strb	r3, [fp, #-52]
	mov	r3, #116
	strb	r3, [fp, #-51]
	mov	r3, #117
	strb	r3, [fp, #-50]
	mov	r3, #118
	strb	r3, [fp, #-49]
	mov	r3, #119
	strb	r3, [fp, #-48]
	mov	r3, #120
	strb	r3, [fp, #-47]
	mov	r3, #121
	strb	r3, [fp, #-46]
	mov	r3, #122
	strb	r3, [fp, #-45]
	mov	r3, #65
	strb	r3, [fp, #-44]
	mov	r3, #66
	strb	r3, [fp, #-43]
	mov	r3, #67
	strb	r3, [fp, #-42]
	mov	r3, #68
	strb	r3, [fp, #-41]
	mov	r3, #69
	strb	r3, [fp, #-40]
	mov	r3, #70
	strb	r3, [fp, #-39]
	mov	r3, #71
	strb	r3, [fp, #-38]
	mov	r3, #72
	strb	r3, [fp, #-37]
	mov	r3, #73
	strb	r3, [fp, #-36]
	mov	r3, #74
	strb	r3, [fp, #-35]
	mov	r3, #75
	strb	r3, [fp, #-34]
	mov	r3, #76
	strb	r3, [fp, #-33]
	mov	r3, #77
	strb	r3, [fp, #-32]
	mov	r3, #78
	strb	r3, [fp, #-31]
	mov	r3, #79
	strb	r3, [fp, #-30]
	mov	r3, #80
	strb	r3, [fp, #-29]
	mov	r3, #81
	strb	r3, [fp, #-28]
	mov	r3, #82
	strb	r3, [fp, #-27]
	mov	r3, #83
	strb	r3, [fp, #-26]
	mov	r3, #84
	strb	r3, [fp, #-25]
	mov	r3, #85
	strb	r3, [fp, #-24]
	mov	r3, #86
	strb	r3, [fp, #-23]
	mov	r3, #87
	strb	r3, [fp, #-22]
	mov	r3, #88
	strb	r3, [fp, #-21]
	mov	r3, #89
	strb	r3, [fp, #-20]
	mov	r3, #90
	strb	r3, [fp, #-19]
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	fopen
	str	r0, [fp, #-100]
	ldr	r0, .L8+12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L2
.L5:
	ldr	r2, .L8+12
	mov	r1, #0
	ldr	r0, [fp, #-96]
	bl	memset
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	b	.L3
.L4:
	bl	rand
	mov	r2, r0
	ldr	r3, .L8+16
	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	r1, r2, r3
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	sub	r2, fp, #12
	add	r2, r2, r1
	ldrb	r2, [r2, #-68]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-92]
	str	r5, [fp, #-88]
.L3:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+20
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L4
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-104]
	ldr	r1, .L8+24
	ldr	r0, [fp, #-100]
	bl	fprintf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L2:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	ble	.L5
	ldr	r0, [fp, #-100]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	535822337
	.word	-2078209981
	.word	535822335
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
