	.file	"49868.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"a"
.LC1:
	.string	"ERROR opening %s\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"w+"
.LC4:
	.string	"Records.txt"
	.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, 1296
	mov	DWORD PTR -1284[rbp], edi
	mov	QWORD PTR -1296[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1248[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -1296[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1272[rbp], rax
	cmp	QWORD PTR -1272[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -1296[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
.L2:
	mov	rdx, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR -1272[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -1280[rbp], 0
	jmp	.L3
.L5:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -1264[rbp], rax
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -1296[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
.L4:
	lea	rdx, -1232[rbp]
	mov	rax, QWORD PTR -1264[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	recordGen
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -1276[rbp], eax
	mov	ecx, DWORD PTR -1276[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -1276[rbp], edx
	lea	rcx, -1232[rbp]
	mov	eax, DWORD PTR -1276[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -1256[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rdx, QWORD PTR -1256[rbp]
	mov	rax, QWORD PTR -1264[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	searchFile
	lea	rdi, .LC4[rip]
	call	remove@PLT
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -1280[rbp], 1
.L3:
	cmp	DWORD PTR -1280[rbp], 54999
	jle	.L5
	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
	.globl	recordGen
	.type	recordGen, @function
recordGen:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L9
.L12:
	mov	DWORD PTR -152[rbp], 0
	jmp	.L10
.L11:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1883757585
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 57
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	add	eax, 65
	mov	edx, eax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], dl
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	movzx	edx, BYTE PTR -144[rbp+rax]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -152[rbp], 1
.L10:
	cmp	DWORD PTR -152[rbp], 119
	jle	.L11
	mov	BYTE PTR -24[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	BYTE PTR 120[rax], 0
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -148[rbp], 1
.L9:
	cmp	DWORD PTR -148[rbp], 9
	jle	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	recordGen, .-recordGen
	.section	.rodata
.LC5:
	.string	"Record Not Found."
	.text
	.globl	searchFile
	.type	searchFile, @function
searchFile:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -145[rbp], 0
	jmp	.L15
.L17:
	mov	rdx, QWORD PTR -176[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	BYTE PTR -145[rbp], 1
.L15:
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	esi, 121
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L16
	cmp	BYTE PTR -145[rbp], 0
	je	.L17
.L16:
	lea	rax, -144[rbp]
	cmp	rax, -1
	jne	.L20
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L20:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	searchFile, .-searchFile
	.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	"49868.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a\000"
	.align	2
.LC1:
	.ascii	"ERROR opening %s\012\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"w+\000"
	.align	2
.LC4:
	.ascii	"Records.txt\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 = 1256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1248
	sub	sp, sp, #8
	str	r0, [fp, #-1256]
	str	r1, [fp, #-1260]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1216
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-1260]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1244]
	ldr	r3, [fp, #-1244]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-1260]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+12
	bl	fprintf
.L2:
	ldr	r3, [fp, #-1224]
	mov	r2, r3
	ldr	r1, .L8+16
	ldr	r0, [fp, #-1244]
	bl	fprintf
	ldr	r0, [fp, #-1244]
	bl	fclose
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-1248]
	b	.L3
.L5:
	ldr	r1, .L8+20
	ldr	r0, .L8+24
	bl	fopen
	str	r0, [fp, #-1240]
	ldr	r3, [fp, #-1240]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L8+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-1260]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+12
	bl	fprintf
.L4:
	sub	r3, fp, #1216
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1240]
	bl	recordGen
	bl	rand
	mov	r2, r0
	ldr	r3, .L8+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-1236]
	sub	r1, fp, #1216
	sub	r1, r1, #4
	ldr	r2, [fp, #-1236]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-1232]
	ldr	r0, [fp, #-1240]
	bl	rewind
	ldr	r1, [fp, #-1232]
	ldr	r0, [fp, #-1240]
	bl	searchFile
	ldr	r0, .L8+24
	bl	remove
	ldr	r0, [fp, #-1240]
	bl	fclose
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L3:
	ldr	r3, [fp, #-1248]
	ldr	r2, .L8+32
	cmp	r3, r2
	ble	.L5
	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	.LC5
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1717986919
	.word	54999
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recordGen
	.syntax unified
	.arm
	.fpu softvfp
	.type	recordGen, %function
recordGen:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L12
.L13:
	bl	rand
	mov	r1, r0
	ldr	r3, .L16+4
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #65
	and	r1, r3, #255
	sub	r2, fp, #132
	ldr	r3, [fp, #-140]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-136]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-148]
	add	r2, r2, r3
	sub	r1, fp, #132
	ldr	r3, [fp, #-140]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-140]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L12:
	ldr	r3, [fp, #-140]
	cmp	r3, #119
	ble	.L13
	mov	r3, #0
	strb	r3, [fp, #-12]
	ldr	r2, [fp, #-136]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #120]
	sub	r3, fp, #132
	ldr	r1, [fp, #-144]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-144]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L11:
	ldr	r3, [fp, #-136]
	cmp	r3, #9
	ble	.L14
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	-1883757585
	.size	recordGen, .-recordGen
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Record Not Found.\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	searchFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchFile, %function
searchFile:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-133]
	b	.L19
.L21:
	sub	r3, fp, #132
	ldr	r1, [fp, #-148]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	strb	r3, [fp, #-133]
.L19:
	sub	r3, fp, #132
	ldr	r2, [fp, #-144]
	mov	r1, #121
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldrb	r3, [fp, #-133]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
.L20:
	sub	r3, fp, #132
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L25+4
	bl	puts
.L24:
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC8
	.word	.LC7
	.size	searchFile, .-searchFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
