	.file	"170453243.c"
	.intel_syntax noprefix
	.text
	.globl	outfile
	.section	.rodata
.LC0:
	.string	"nk.bin"
	.section	.data.rel.local,"aw"
	.align 8
	.type	outfile, @object
	.size	outfile, 8
outfile:
	.quad	.LC0
	.globl	verbose
	.bss
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	fout
	.align 8
	.type	fout, @object
	.size	fout, 8
fout:
	.zero	8
	.globl	kfile
	.align 8
	.type	kfile, @object
	.size	kfile, 8
kfile:
	.zero	8
	.globl	lfile
	.align 8
	.type	lfile, @object
	.size	lfile, 8
lfile:
	.zero	8
	.globl	loader
	.align 8
	.type	loader, @object
	.size	loader, 8
loader:
	.zero	8
	.globl	loader_size
	.align 4
	.type	loader_size, @object
	.size	loader_size, 4
loader_size:
	.zero	4
	.globl	magic
	.data
	.type	magic, @object
	.size	magic, 7
magic:
	.ascii	"B000FF\n"
	.globl	start
	.align 4
	.type	start, @object
	.size	start, 4
start:
	.long	-1608515584
	.globl	len
	.bss
	.align 4
	.type	len, @object
	.size	len, 4
len:
	.zero	4
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: bsd-ce [-h] [-o outfile] u-boot.bin\n"
	.align 8
.LC2:
	.string	"    -h                 this help\n"
	.align 8
.LC3:
	.string	"    -o outfile         write output to [outfile]\n"
	.align 8
.LC4:
	.string	"                       default: %s\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR outfile[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC5:
	.string	"ho:"
.LC6:
	.string	"missing kernel name\n"
.LC7:
	.string	"rb"
.LC8:
	.string	"unable to open '%s'"
	.align 8
.LC9:
	.string	"can't allocate %u bytes for loader"
.LC10:
	.string	"can't read loader file"
.LC11:
	.string	"wb"
.LC12:
	.string	"unable to create '%s'"
.LC13:
	.string	"fwrite"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L3
.L6:
	cmp	DWORD PTR -24[rbp], 111
	jne	.L4
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR outfile[rip], rax
	jmp	.L3
.L4:
	mov	eax, 0
	call	usage
	mov	eax, 1
	jmp	.L25
.L3:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC5[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L6
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -48[rbp], rax
	cmp	DWORD PTR -36[rbp], 1
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, 0
	call	usage
	mov	eax, 1
	jmp	.L25
.L7:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR lfile[rip], rax
	mov	rax, QWORD PTR lfile[rip]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L8:
	mov	rax, QWORD PTR lfile[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR lfile[rip]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR loader_size[rip], eax
	mov	rax, QWORD PTR lfile[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR loader_size[rip]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR loader[rip], rax
	mov	rax, QWORD PTR loader[rip]
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR loader_size[rip]
	mov	edx, eax
	lea	rsi, .LC9[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L9:
	mov	rdx, QWORD PTR lfile[rip]
	mov	eax, DWORD PTR loader_size[rip]
	mov	esi, eax
	mov	rax, QWORD PTR loader[rip]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L10
	lea	rsi, .LC10[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L10:
	mov	rax, QWORD PTR lfile[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR outfile[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fout[rip], rax
	mov	rax, QWORD PTR fout[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR outfile[rip]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L11:
	mov	rax, QWORD PTR fout[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 7
	lea	rdi, magic[rip]
	call	fwrite@PLT
	test	rax, rax
	jne	.L12
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L12:
	mov	rax, QWORD PTR fout[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, start[rip]
	call	fwrite@PLT
	test	rax, rax
	jne	.L13
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L13:
	mov	rax, QWORD PTR fout[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, loader_size[rip]
	call	fwrite@PLT
	test	rax, rax
	jne	.L14
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L14:
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR loader[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
	add	QWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR loader_size[rip]
	mov	eax, eax
	cmp	QWORD PTR -16[rbp], rax
	jl	.L16
	mov	eax, DWORD PTR start[rip]
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L17
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L17:
	mov	eax, DWORD PTR loader_size[rip]
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L18
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L18:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L19
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L19:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR fout[rip]
	mov	rcx, QWORD PTR loader[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	add	QWORD PTR -16[rbp], 1
.L20:
	mov	eax, DWORD PTR loader_size[rip]
	mov	eax, eax
	cmp	QWORD PTR -16[rbp], rax
	jl	.L21
	mov	DWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L22
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L22:
	mov	eax, DWORD PTR start[rip]
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L23
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L23:
	mov	DWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR fout[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L24
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L24:
	mov	rax, QWORD PTR loader[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR fout[rip]
	mov	rdi, rax
	call	fclose@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	"170453243.c"
	.text
	.global	outfile
	.section	.rodata
	.align	2
.LC0:
	.ascii	"nk.bin\000"
	.data
	.align	2
	.type	outfile, %object
	.size	outfile, 4
outfile:
	.word	.LC0
	.global	verbose
	.bss
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.space	4
	.global	fout
	.align	2
	.type	fout, %object
	.size	fout, 4
fout:
	.space	4
	.global	kfile
	.align	2
	.type	kfile, %object
	.size	kfile, 4
kfile:
	.space	4
	.global	lfile
	.align	2
	.type	lfile, %object
	.size	lfile, 4
lfile:
	.space	4
	.global	loader
	.align	2
	.type	loader, %object
	.size	loader, 4
loader:
	.space	4
	.global	loader_size
	.align	2
	.type	loader_size, %object
	.size	loader_size, 4
loader_size:
	.space	4
	.global	magic
	.data
	.align	2
	.type	magic, %object
	.size	magic, 7
magic:
	.ascii	"B000FF\012"
	.global	start
	.align	2
	.type	start, %object
	.size	start, 4
start:
	.word	-1608515584
	.global	len
	.bss
	.align	2
	.type	len, %object
	.size	len, 4
len:
	.space	4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage: bsd-ce [-h] [-o outfile] u-boot.bin\012\000"
	.align	2
.LC2:
	.ascii	"    -h                 this help\012\000"
	.align	2
.LC3:
	.ascii	"    -o outfile         write output to [outfile]\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"                       default: %s\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L2+8
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L2+12
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+16
	ldr	r2, [r2]
	ldr	r1, .L2+20
	mov	r0, r3
	bl	fprintf
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	outfile
	.word	.LC4
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC5:
	.ascii	"ho:\000"
	.align	2
.LC6:
	.ascii	"missing kernel name\012\000"
	.align	2
.LC7:
	.ascii	"rb\000"
	.align	2
.LC8:
	.ascii	"unable to open '%s'\000"
	.align	2
.LC9:
	.ascii	"can't allocate %u bytes for loader\000"
	.align	2
.LC10:
	.ascii	"can't read loader file\000"
	.align	2
.LC11:
	.ascii	"wb\000"
	.align	2
.LC12:
	.ascii	"unable to create '%s'\000"
	.align	2
.LC13:
	.ascii	"fwrite\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L5
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #111
	bne	.L6
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldr	r2, .L29+8
	str	r3, [r2]
	b	.L5
.L6:
	bl	usage
	mov	r3, #1
	b	.L27
.L5:
	ldr	r2, .L29+12
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L29+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L9
	ldr	r3, .L29+20
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L29+24
	bl	fwrite
	bl	usage
	mov	r3, #1
	b	.L27
.L9:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L29+28
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L29+32
	str	r3, [r2]
	ldr	r3, .L29+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L29+36
	mov	r0, #1
	bl	errx
.L10:
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L29+40
	str	r2, [r3]
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L29+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L29+44
	str	r2, [r3]
	ldr	r3, .L29+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L29+40
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L29+48
	mov	r0, #1
	bl	errx
.L11:
	ldr	r3, .L29+44
	ldr	r0, [r3]
	ldr	r3, .L29+40
	ldr	r1, [r3]
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r1, .L29+52
	mov	r0, #1
	bl	errx
.L12:
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r1, .L29+56
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L29+60
	str	r3, [r2]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L29+64
	mov	r0, #1
	bl	errx
.L13:
	ldr	r3, .L29+60
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #7
	ldr	r0, .L29+68
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L14:
	ldr	r3, .L29+60
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L29+76
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L15:
	ldr	r3, .L29+60
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L29+40
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L16:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L17
.L18:
	ldr	r3, .L29+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r2, [fp, #-20]
	ldr	r3, .L29+40
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L18
	ldr	r3, .L29+76
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L19:
	ldr	r3, .L29+40
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L20:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L21:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L22
.L23:
	ldr	r3, .L29+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L29+60
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	putc
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L22:
	ldr	r2, [fp, #-20]
	ldr	r3, .L29+40
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L23
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L24:
	ldr	r3, .L29+76
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L25:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L29+72
	mov	r0, #1
	bl	errx
.L26:
	ldr	r3, .L29+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L29+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	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	optarg
	.word	outfile
	.word	.LC5
	.word	optind
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	lfile
	.word	.LC8
	.word	loader_size
	.word	loader
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	fout
	.word	.LC12
	.word	magic
	.word	.LC13
	.word	start
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
