	.file	"1256453.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r+b"
.LC1:
	.string	"Failed to open %s file.\n"
.LC2:
	.string	"Error at %d line.\n"
.LC3:
	.string	"NSIH : %d line processed.\n"
.LC4:
	.string	"NSIH : %d bytes generated.\n"
	.text
	.type	process_nsih, @function
process_nsih:
.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	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -33[rbp], al
	cmp	DWORD PTR -28[rbp], 0
	jne	.L5
	cmp	BYTE PTR -33[rbp], 47
	jle	.L6
	cmp	BYTE PTR -33[rbp], 57
	jg	.L6
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 4
	mov	edx, eax
	movsx	eax, BYTE PTR -33[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -32[rbp], 4
	jmp	.L5
.L6:
	cmp	BYTE PTR -33[rbp], 96
	jle	.L7
	cmp	BYTE PTR -33[rbp], 102
	jg	.L7
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 4
	mov	edx, eax
	movsx	eax, BYTE PTR -33[rbp]
	add	eax, edx
	sub	eax, 87
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -32[rbp], 4
	jmp	.L5
.L7:
	cmp	BYTE PTR -33[rbp], 64
	jle	.L8
	cmp	BYTE PTR -33[rbp], 70
	jg	.L8
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 4
	mov	edx, eax
	movsx	eax, BYTE PTR -33[rbp]
	add	eax, edx
	sub	eax, 55
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -32[rbp], 4
	jmp	.L5
.L8:
	cmp	DWORD PTR -32[rbp], 8
	je	.L9
	cmp	DWORD PTR -32[rbp], 16
	je	.L9
	cmp	DWORD PTR -32[rbp], 32
	jne	.L10
.L9:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	shr	DWORD PTR -12[rbp], 8
	add	DWORD PTR -16[rbp], 1
.L11:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	cmp	DWORD PTR -16[rbp], eax
	jl	.L12
	jmp	.L13
.L10:
	cmp	DWORD PTR -32[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 1
.L5:
	cmp	BYTE PTR -33[rbp], 10
	jne	.L4
	add	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -20[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	process_nsih, .-process_nsih
	.section	.rodata
	.align 8
.LC5:
	.string	"Usage: mk6818 <destination> <nsih> <2ndboot> <bootloader>"
.LC6:
	.string	"Open file 2ndboot error"
.LC7:
	.string	"Read file 2ndboot error"
.LC8:
	.string	"Open file bootloader error"
.LC9:
	.string	"Read file bootloader error"
.LC10:
	.string	"w+b"
.LC11:
	.string	"Destination file open error"
.LC12:
	.string	"Destination file write error"
	.align 8
.LC13:
	.string	"Generate destination file: %s\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, 592
	mov	DWORD PTR -580[rbp], edi
	mov	QWORD PTR -592[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -580[rbp], 5
	je	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L25
.L16:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	process_nsih
	cmp	eax, 512
	je	.L18
	mov	eax, -1
	jmp	.L25
.L18:
	mov	DWORD PTR -568[rbp], 33554432
	mov	eax, DWORD PTR -568[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	eax, DWORD PTR -568[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -528[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L25
.L19:
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -564[rbp], eax
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	mov	rdx, QWORD PTR -552[rbp]
	lea	rdi, 512[rdx]
	mov	rdx, QWORD PTR -544[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	mov	DWORD PTR -560[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -564[rbp]
	je	.L20
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L25
.L20:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, 32256[rax]
	lea	rax, -528[rbp]
	mov	edx, 512
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L21
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L25
.L21:
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -564[rbp], eax
	mov	eax, DWORD PTR -564[rbp]
	add	eax, 32768
	mov	DWORD PTR -556[rbp], eax
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	mov	rdx, QWORD PTR -552[rbp]
	lea	rdi, 32768[rdx]
	mov	rdx, QWORD PTR -544[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	mov	DWORD PTR -560[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -564[rbp]
	je	.L22
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L25
.L22:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -552[rbp]
	add	rax, 32256
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	mov	DWORD PTR 64[rax], 32768
	mov	eax, DWORD PTR -564[rbp]
	add	eax, 1024
	and	eax, -512
	mov	edx, eax
	mov	rax, QWORD PTR -536[rbp]
	mov	DWORD PTR 68[rax], edx
	mov	rax, QWORD PTR -536[rbp]
	mov	DWORD PTR 72[rax], 1136656384
	mov	rax, QWORD PTR -536[rbp]
	mov	DWORD PTR 76[rax], 1136656384
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L23
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L25
.L23:
	mov	eax, DWORD PTR -556[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -560[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -556[rbp]
	je	.L24
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"1256453.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r+b\000"
	.align	2
.LC1:
	.ascii	"Failed to open %s file.\012\000"
	.align	2
.LC2:
	.ascii	"Error at %d line.\012\000"
	.align	2
.LC3:
	.ascii	"NSIH : %d line processed.\012\000"
	.align	2
.LC4:
	.ascii	"NSIH : %d bytes generated.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_nsih, %function
process_nsih:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r1, .L15
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-40]
	ldr	r0, .L15+4
	bl	printf
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L14:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L6
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L6
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	b	.L5
.L6:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L7
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L7
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #87
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	b	.L5
.L7:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L8
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L8
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #55
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	b	.L5
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #16
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #32
	bne	.L10
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #8
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-32]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L12
	b	.L13
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
.L13:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
.L5:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
.L4:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L15+16
	bl	printf
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, [fp, #-20]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	process_nsih, .-process_nsih
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: mk6818 <destination> <nsih> <2ndboot> <bootl"
	.ascii	"oader>\000"
	.align	2
.LC6:
	.ascii	"Open file 2ndboot error\000"
	.align	2
.LC7:
	.ascii	"Read file 2ndboot error\000"
	.align	2
.LC8:
	.ascii	"Open file bootloader error\000"
	.align	2
.LC9:
	.ascii	"Read file bootloader error\000"
	.align	2
.LC10:
	.ascii	"w+b\000"
	.align	2
.LC11:
	.ascii	"Destination file open error\000"
	.align	2
.LC12:
	.ascii	"Destination file write error\000"
	.align	2
.LC13:
	.ascii	"Generate destination file: %s\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-552]
	cmp	r3, #5
	beq	.L18
	ldr	r0, .L29+4
	bl	puts
	mvn	r3, #0
	b	.L27
.L18:
	ldr	r3, [fp, #-556]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	process_nsih
	mov	r3, r0
	cmp	r3, #512
	beq	.L20
	mvn	r3, #0
	b	.L27
.L20:
	mov	r3, #33554432
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-548]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-544]
	ldr	r3, [fp, #-548]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-544]
	bl	memset
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-544]
	bl	memcpy
	ldr	r3, [fp, #-556]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L29+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L29+12
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	mvn	r3, #0
	b	.L27
.L21:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-540]
	bl	fseek
	ldr	r0, [fp, #-540]
	bl	ftell
	str	r0, [fp, #-536]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-540]
	bl	fseek
	ldr	r3, [fp, #-544]
	add	r0, r3, #512
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-540]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-536]
	cmp	r2, r3
	beq	.L22
	ldr	r0, .L29+16
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	ldr	r0, [fp, #-540]
	bl	fclose
	mvn	r3, #0
	b	.L27
.L22:
	ldr	r0, [fp, #-540]
	bl	fclose
	ldr	r3, [fp, #-544]
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-544]
	add	r3, r3, #32256
	sub	r1, fp, #520
	mov	r2, #512
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-556]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L29+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L29+20
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	mvn	r3, #0
	b	.L27
.L23:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-540]
	bl	fseek
	ldr	r0, [fp, #-540]
	bl	ftell
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-536]
	add	r3, r3, #32768
	str	r3, [fp, #-524]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-540]
	bl	fseek
	ldr	r3, [fp, #-544]
	add	r0, r3, #32768
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-540]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-536]
	cmp	r2, r3
	beq	.L24
	ldr	r0, .L29+24
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	ldr	r0, [fp, #-540]
	bl	fclose
	mvn	r3, #0
	b	.L27
.L24:
	ldr	r0, [fp, #-540]
	bl	fclose
	ldr	r3, [fp, #-544]
	add	r3, r3, #32256
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-528]
	mov	r2, #32768
	str	r2, [r3, #64]
	ldr	r3, [fp, #-536]
	add	r3, r3, #1024
	bic	r3, r3, #508
	bic	r3, r3, #3
	ldr	r2, [fp, #-528]
	str	r3, [r2, #68]
	ldr	r3, [fp, #-528]
	ldr	r2, .L29+28
	str	r2, [r3, #72]
	ldr	r3, [fp, #-528]
	ldr	r2, .L29+28
	str	r2, [r3, #76]
	ldr	r3, [fp, #-556]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L29+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L29+36
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	mvn	r3, #0
	b	.L27
.L25:
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-540]
	mov	r1, #1
	ldr	r0, [fp, #-544]
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	beq	.L26
	ldr	r0, .L29+40
	bl	puts
	ldr	r0, [fp, #-544]
	bl	free
	ldr	r0, [fp, #-540]
	bl	fclose
	mvn	r3, #0
	b	.L27
.L26:
	ldr	r0, [fp, #-544]
	bl	free
	ldr	r0, [fp, #-540]
	bl	fclose
	ldr	r3, [fp, #-556]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+44
	bl	printf
	mov	r3, #0
.L27:
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC14
	.word	.LC5
	.word	.LC0
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1136656384
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
