	.file	"239784.c"
	.intel_syntax noprefix
	.text
	.globl	getFileSize
	.type	getFileSize, @function
getFileSize:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getFileSize, .-getFileSize
	.section	.rodata
	.align 8
.LC0:
	.string	"DCM2PR8 V1.3: PR8 ROM Patcher\n"
	.align 8
.LC1:
	.string	"Usage : DCM2PR8 <patchfile.txt> <output.nes>\n"
	.align 8
.LC2:
	.string	"- 'patchfile.txt' needs to be a plain text file that is a list of DCM samples, one per line, that you would like to patch the PR8 ROM with.\n"
	.align 8
.LC3:
	.string	"- 'output.nes' is the patched ROM filename.\n"
.LC4:
	.string	"r"
	.align 8
.LC5:
	.string	"\n\nError, could not open sample list %s\n\n"
	.align 8
.LC6:
	.string	"\nJust checking that your samples will all fit!\n"
.LC7:
	.string	"rb"
	.align 8
.LC8:
	.string	"\nError, could not open file %s\n\n"
.LC9:
	.string	"%s "
.LC10:
	.string	": addr:%X size=%d\n"
.LC11:
	.string	"\nMaximum bank size: %d"
.LC12:
	.string	"\nYour bank size: %d\n"
	.align 8
.LC13:
	.string	"\nYou were a bit optimistic, bank is %d bytes too big! Quitting.\n\n"
.LC14:
	.string	"\nBank size is OK\n"
.LC15:
	.string	"PATCHING ROM : PR8.NES\n"
.LC16:
	.string	"PR8.nes"
	.align 8
.LC17:
	.string	"\n\nError, could not find PR8 ROM, PR8.nes\n"
.LC18:
	.string	"wb"
	.align 8
.LC19:
	.string	"\n\nError, could not open output file, %s\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 768
	mov	DWORD PTR -8948[rbp], edi
	mov	QWORD PTR -8960[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8932[rbp], 0
	mov	DWORD PTR -8920[rbp], 0
	cmp	DWORD PTR -8948[rbp], 2
	jg	.L4
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L19
.L4:
	mov	rax, QWORD PTR -8960[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8912[rbp], rax
	mov	rax, QWORD PTR -8960[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8904[rbp], rax
	cmp	DWORD PTR -8948[rbp], 4
	jne	.L6
	mov	rax, QWORD PTR -8960[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8896[rbp], rax
.L6:
	mov	rax, QWORD PTR -8912[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8888[rbp], rax
	cmp	QWORD PTR -8888[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -8912[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L19
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -8936[rbp], 0
	mov	DWORD PTR -8928[rbp], 0
	jmp	.L8
.L11:
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8856[rbp], rax
	cmp	QWORD PTR -8856[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -8856[rbp]
	mov	BYTE PTR [rax], 0
.L9:
	lea	rax, -144[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8872[rbp], rax
	cmp	QWORD PTR -8872[rbp], 0
	jne	.L10
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8872[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L19
.L10:
	mov	rax, QWORD PTR -8872[rbp]
	mov	rdi, rax
	call	getFileSize
	mov	DWORD PTR -8920[rbp], eax
	mov	rax, QWORD PTR -8872[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rcx, -8848[rbp]
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rdx, -8720[rax]
	mov	eax, DWORD PTR -8928[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rdx, -8716[rax]
	mov	eax, DWORD PTR -8920[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8920[rbp]
	add	DWORD PTR -8932[rbp], eax
	lea	rcx, -8848[rbp]
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8716
	mov	edx, DWORD PTR [rax]
	mov	ecx, DWORD PTR -8936[rbp]
	mov	rax, rcx
	sal	rax, 4
	add	rax, rcx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8720
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8920[rbp]
	add	DWORD PTR -8928[rbp], eax
	add	DWORD PTR -8936[rbp], 1
.L8:
	mov	rdx, QWORD PTR -8888[rbp]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	esi, 14208
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8932[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -8928[rbp], 130944
	jbe	.L12
	mov	eax, 130944
	sub	eax, DWORD PTR -8928[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L19
.L12:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -8936[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rdx, -8720[rax]
	mov	eax, DWORD PTR -8928[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8936[rbp], 1
	lea	rsi, .LC7[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -8888[rbp], rax
	cmp	QWORD PTR -8888[rbp], 0
	jne	.L13
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L19
.L13:
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	getFileSize
	mov	DWORD PTR -8916[rbp], eax
	mov	eax, DWORD PTR -8916[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8880[rbp], rax
	mov	edx, DWORD PTR -8916[rbp]
	mov	rcx, QWORD PTR -8888[rbp]
	mov	rax, QWORD PTR -8880[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -8924[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8720
	mov	eax, DWORD PTR [rax]
	add	eax, 116800
	shr	eax, 6
	mov	BYTE PTR -8937[rbp], al
	mov	eax, DWORD PTR -8924[rbp]
	add	eax, 116752
	movsx	rdx, eax
	mov	rax, QWORD PTR -8880[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -8937[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -8924[rbp], 1
.L14:
	mov	eax, DWORD PTR -8924[rbp]
	cmp	DWORD PTR -8936[rbp], eax
	ja	.L15
	mov	DWORD PTR -8928[rbp], 116816
	mov	DWORD PTR -8924[rbp], 0
	jmp	.L16
.L17:
	lea	rcx, -8848[rbp]
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8872[rbp], rax
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8716
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8864[rbp], rax
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8716
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rdx, QWORD PTR -8872[rbp]
	mov	rax, QWORD PTR -8864[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -8872[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8716
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	ecx, DWORD PTR -8928[rbp]
	mov	rax, QWORD PTR -8880[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -8864[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -8924[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 8716
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -8928[rbp], eax
	mov	rax, QWORD PTR -8864[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -8924[rbp], 1
.L16:
	mov	eax, DWORD PTR -8936[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8924[rbp]
	cmp	edx, eax
	ja	.L17
	mov	rax, QWORD PTR -8904[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8888[rbp], rax
	cmp	QWORD PTR -8888[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -8904[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8880[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L19
.L18:
	mov	edx, DWORD PTR -8916[rbp]
	mov	rcx, QWORD PTR -8888[rbp]
	mov	rax, QWORD PTR -8880[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8888[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8880[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.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
.LFE7:
	.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	"239784.c"
	.text
	.align	2
	.global	getFileSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	getFileSize, %function
getFileSize:
	@ 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]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getFileSize, .-getFileSize
	.section	.rodata
	.align	2
.LC0:
	.ascii	"DCM2PR8 V1.3: PR8 ROM Patcher\012\000"
	.align	2
.LC1:
	.ascii	"Usage : DCM2PR8 <patchfile.txt> <output.nes>\012\000"
	.align	2
.LC2:
	.ascii	"- 'patchfile.txt' needs to be a plain text file tha"
	.ascii	"t is a list of DCM samples, one per line, that you "
	.ascii	"would like to patch the PR8 ROM with.\012\000"
	.align	2
.LC3:
	.ascii	"- 'output.nes' is the patched ROM filename.\012\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"\012\012Error, could not open sample list %s\012\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"\012Just checking that your samples will all fit!\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"rb\000"
	.align	2
.LC8:
	.ascii	"\012Error, could not open file %s\012\012\000"
	.align	2
.LC9:
	.ascii	"%s \000"
	.align	2
.LC10:
	.ascii	": addr:%X size=%d\012\000"
	.align	2
.LC11:
	.ascii	"\012Maximum bank size: %d\000"
	.align	2
.LC12:
	.ascii	"\012Your bank size: %d\012\000"
	.align	2
.LC13:
	.ascii	"\012You were a bit optimistic, bank is %d bytes too"
	.ascii	" big! Quitting.\012\012\000"
	.align	2
.LC14:
	.ascii	"\012Bank size is OK\012\000"
	.align	2
.LC15:
	.ascii	"PATCHING ROM : PR8.NES\012\000"
	.align	2
.LC16:
	.ascii	"PR8.nes\000"
	.align	2
.LC17:
	.ascii	"\012\012Error, could not find PR8 ROM, PR8.nes\012\000"
	.align	2
.LC18:
	.ascii	"wb\000"
	.align	2
.LC19:
	.ascii	"\012\012Error, could not open output file, %s\012\012"
	.ascii	"\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8904
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8896
	sub	sp, sp, #12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-708]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-712]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-696]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-684]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-708]
	cmp	r3, #2
	bgt	.L4
	mov	r0, #10
	bl	putchar
	ldr	r0, .L21+4
	bl	puts
	ldr	r0, .L21+8
	bl	puts
	ldr	r0, .L21+12
	bl	puts
	ldr	r0, .L21+16
	bl	puts
	mov	r3, #0
	b	.L19
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-712]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-680]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-712]
	ldr	r3, [r3, #8]
	str	r3, [r2, #-676]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-708]
	cmp	r3, #4
	bne	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-712]
	ldr	r3, [r3, #12]
	str	r3, [r2, #-672]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L21+20
	ldr	r0, [r3, #-680]
	bl	fopen
	str	r0, [r4, #-668]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-668]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-680]
	ldr	r0, .L21+24
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	mov	r3, #0
	b	.L19
.L7:
	ldr	r0, .L21+28
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-700]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-692]
	b	.L8
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #144
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-648]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-648]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-648]
	mov	r2, #0
	strb	r2, [r3]
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #144
	ldr	r1, .L21+32
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-656]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-656]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L21+36
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-656]
	bl	fclose
	mov	r3, #0
	b	.L19
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-656]
	bl	getFileSize
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-684]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-656]
	bl	fclose
	sub	r2, fp, #8832
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-700]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r1, fp, #144
	mov	r2, #128
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-700]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #516
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-692]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-700]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #512
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-684]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-696]
	ldr	r3, [r3, #-684]
	add	r3, r2, r3
	str	r3, [r1, #-696]
	sub	r2, fp, #8832
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-700]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L21+40
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-700]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #516
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-700]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	sub	r3, r3, #512
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L21+44
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-692]
	ldr	r3, [r3, #-684]
	add	r3, r2, r3
	str	r3, [r1, #-692]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-700]
	add	r3, r3, #1
	str	r3, [r2, #-700]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #144
	ldr	r2, [r2, #-668]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	mov	r1, #14208
	ldr	r0, .L21+48
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-696]
	ldr	r0, .L21+52
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-692]
	ldr	r2, .L21+56
	cmp	r3, r2
	bls	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-692]
	rsb	r3, r3, #130048
	add	r3, r3, #896
	cmp	r3, #0
	rsblt	r3, r3, #0
	mov	r1, r3
	ldr	r0, .L21+60
	bl	printf
	mvn	r3, #0
	b	.L19
.L12:
	ldr	r0, .L21+64
	bl	puts
	ldr	r0, .L21+68
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-700]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #516
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-692]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-700]
	add	r3, r3, #1
	str	r3, [r2, #-700]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L21+32
	ldr	r0, .L21+72
	bl	fopen
	str	r0, [r4, #-668]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-668]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L21+76
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	mov	r3, #0
	b	.L19
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	getFileSize
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-664]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-664]
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-660]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r3, [r3, #-668]
	ldr	r2, [r2, #-664]
	mov	r1, #1
	ldr	r0, [r0, #-660]
	bl	fread
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-688]
	b	.L14
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-688]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #516
	ldr	r3, [r3]
	add	r3, r3, #116736
	add	r3, r3, #64
	lsr	r2, r3, #6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strb	r2, [r3, #-701]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-688]
	add	r3, r3, #116736
	add	r3, r3, #16
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-660]
	add	r3, r3, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldrb	r2, [r2, #-701]
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-688]
	add	r3, r3, #1
	str	r3, [r2, #-688]
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-688]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-700]
	cmp	r2, r3
	bhi	.L15
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L21+80
	str	r3, [r2, #-692]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-688]
	b	.L16
.L17:
	sub	r2, fp, #8832
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-688]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L21+32
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-656]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-688]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #512
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-652]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-688]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #512
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r3, [r3, #-656]
	mov	r1, #1
	ldr	r0, [r0, #-652]
	bl	fread
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-656]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-660]
	ldr	r3, [r3, #-692]
	add	r0, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-688]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #512
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-652]
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-688]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #512
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-692]
	add	r3, r2, r3
	str	r3, [r1, #-692]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-652]
	bl	free
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-688]
	add	r3, r3, #1
	str	r3, [r2, #-688]
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-700]
	sub	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-688]
	cmp	r2, r3
	bhi	.L17
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L21+84
	ldr	r0, [r3, #-676]
	bl	fopen
	str	r0, [r4, #-668]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-668]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-676]
	ldr	r0, .L21+88
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-660]
	bl	free
	mov	r3, #0
	b	.L19
.L18:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r3, [r3, #-668]
	ldr	r2, [r2, #-664]
	mov	r1, #1
	ldr	r0, [r0, #-660]
	bl	fwrite
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-668]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-660]
	bl	free
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC20
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	130944
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	116816
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
