	.file	"169060.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	zero, @object
	.size	zero, 1024
zero:
	.zero	1024
	.local	tmp_output
	.comm	tmp_output,8,8
	.align 8
.LC0:
	.string	"Usage: %s [-t <title>] [-l <size>B/K/M] -h <file> -o <file> <file> [[-s <offset>B/K/M] <file>]*\n\n"
	.align 8
.LC1:
	.string	"This program creates an N64 ROM from a header and a list of files,\n"
	.align 8
.LC2:
	.string	"the first being an Nintendo64 binary and the rest arbitrary data.\n"
.LC3:
	.string	"Command-line flags:\n"
	.align 8
.LC4:
	.string	"\t-t, --title <title>    Title of ROM (max %d characters).\n"
	.align 8
.LC5:
	.string	"\t-l, --size <size>      Force ROM output file size to <size> (min 1 mebibyte).\n"
	.align 8
.LC6:
	.string	"\t-h, --header <file>    Use <file> as IPL3 header.\n"
	.align 8
.LC7:
	.string	"\t-o, --output <file>    Save output ROM to <file>.\n"
	.align 8
.LC8:
	.string	"\t-s, --offset <offset>  Next file starts at <offset> from top of memory. Offset must be 32-bit aligned.\n"
	.align 8
.LC9:
	.string	"Binary byte size/offset suffix notation:\n"
.LC10:
	.string	"\tB for bytes.\n"
	.align 8
.LC11:
	.string	"\tK for kibibytes (KiB) [1024 bytes].\n"
	.align 8
.LC12:
	.string	"\tM for mebibytes (MiB) [1024 kibibytes].\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 67
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC2[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, 20
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 20
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 79
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 104
	mov	esi, 1
	lea	rdi, .LC8[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, 41
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_usage, .-print_usage
	.globl	check_flag
	.type	check_flag, @function
check_flag:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
.L4:
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	and	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_flag, .-check_flag
	.globl	get_file_size
	.type	get_file_size, @function
get_file_size:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	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	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_file_size, .-get_file_size
	.section	.rodata
.LC13:
	.string	"rb"
	.align 8
.LC14:
	.string	"ERROR: Cannot open %s for reading!\n"
.LC15:
	.string	"ERROR: Out of memory!\n"
	.text
	.globl	copy_file
	.type	copy_file, @function
copy_file:
.LFB9:
	.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 -64[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, -1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_file_size
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 1048576
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, -1
	jmp	.L12
.L15:
	mov	eax, 1048576
	cmp	QWORD PTR -40[rbp], 1048576
	cmovle	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L14:
	cmp	QWORD PTR -40[rbp], 0
	jg	.L15
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	copy_file, .-copy_file
	.globl	output_zeros
	.type	output_zeros, @function
output_zeros:
.LFB10:
	.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	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	jns	.L19
	mov	rax, -1
	jmp	.L18
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 1024
	jbe	.L20
	mov	DWORD PTR -4[rbp], 1024
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, zero[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sub	QWORD PTR -32[rbp], rax
.L19:
	cmp	QWORD PTR -32[rbp], 0
	jg	.L21
	mov	eax, 0
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	output_zeros, .-output_zeros
	.globl	parse_bytes
	.type	parse_bytes, @function
parse_bytes:
.LFB11:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 1
	ja	.L23
	mov	rax, -1
	jmp	.L28
.L23:
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 109
	je	.L25
	cmp	eax, 109
	jg	.L26
	cmp	eax, 107
	je	.L27
	cmp	eax, 107
	jg	.L26
	cmp	eax, 75
	je	.L27
	cmp	eax, 77
	jne	.L26
.L25:
	sal	QWORD PTR -24[rbp], 10
.L27:
	sal	QWORD PTR -24[rbp], 10
.L26:
	mov	rax, QWORD PTR -24[rbp]
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	parse_bytes, .-parse_bytes
	.globl	remove_tmp_file
	.type	remove_tmp_file, @function
remove_tmp_file:
.LFB12:
	.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 tmp_output[rip]
	test	rax, rax
	je	.L32
	mov	rax, QWORD PTR tmp_output[rip]
	mov	rdi, rax
	call	remove@PLT
.L32:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	remove_tmp_file, .-remove_tmp_file
	.section	.rodata
.LC16:
	.string	"--byteswap"
.LC17:
	.string	"-b"
	.align 8
.LC18:
	.string	"ERROR: The byteswap option is no longer supported. "
	.align 8
.LC19:
	.string	"Use another tool to convert the output of this program.\n"
	.align 8
.LC20:
	.string	"       For example: dd conv=swab if=rom.z64 of=rom.v64\n\n"
.LC21:
	.string	"--header"
.LC22:
	.string	"-h"
	.align 8
.LC23:
	.string	"ERROR: The header can only be set once\n\n"
	.align 8
.LC24:
	.string	"ERROR: Expected an argument to header flag\n\n"
.LC25:
	.string	"--output"
.LC26:
	.string	"-o"
	.align 8
.LC27:
	.string	"ERROR: The output can only be set once\n\n"
	.align 8
.LC28:
	.string	"ERROR: Expected an argument to output flag\n\n"
.LC29:
	.string	".z64"
	.align 8
.LC30:
	.string	"WARNING: The output should have a '.z64' file extension\n"
.LC31:
	.string	"%s.tmp"
.LC32:
	.string	"--size"
.LC33:
	.string	"-l"
	.align 8
.LC34:
	.string	"ERROR: Expected an argument to size flag\n\n"
	.align 8
.LC35:
	.string	"ERROR: Invalid size argument; must be at least %d bytes\n\n"
	.align 8
.LC36:
	.string	"ERROR: Invalid size argument; must be a multiple of 4 bytes\n\n"
	.align 8
.LC37:
	.string	"WARNING: Sizes which are not multiple of 512 bytes might have problems being loaded with a 64drive\n\n"
.LC38:
	.string	"--offset"
.LC39:
	.string	"-s"
	.align 8
.LC40:
	.string	"ERROR: Need header and output flags before offset\n\n"
	.align 8
.LC41:
	.string	"ERROR: The first file cannot have an offset\n\n"
	.align 8
.LC42:
	.string	"ERROR: Expected an argument to offset flag\n\n"
	.align 8
.LC43:
	.string	"ERROR: Invalid offset argument\n\n"
	.align 8
.LC44:
	.string	"ERROR: Invalid offset argument (must be multiple of 4)\n\n"
	.align 8
.LC45:
	.string	"ERROR: Invalid offset %zd to seek to in %s!\n"
.LC46:
	.string	"--title"
.LC47:
	.string	"-t"
	.align 8
.LC48:
	.string	"ERROR: Expected an argument to title flag\n\n"
	.align 8
.LC49:
	.string	"WARNING: Title will be truncated to %d characters\n"
	.align 8
.LC50:
	.string	"ERROR: Need header and output before first file\n\n"
.LC51:
	.string	"wb"
	.align 8
.LC52:
	.string	"ERROR: Cannot open '%s' for writing\n"
	.align 8
.LC53:
	.string	"ERROR: Unable to copy ROM header from '%s' to '%s'\n"
	.align 8
.LC54:
	.string	"ERROR: Unable to copy file from '%s' to '%s'\n"
	.align 8
.LC55:
	.string	"ERROR: No input files, nothing written\n"
	.align 8
.LC56:
	.string	"ERROR: Couldn't fit ROM in %zu bytes as requested.\n"
	.align 8
.LC57:
	.string	"ERROR: Couldn't pad %zu bytes to %zu bytes.\n"
	.align 8
.LC58:
	.string	"Couldn't rename temporary output file '%s' to '%s': %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -12[rbp], 0
	cmp	DWORD PTR -180[rbp], 1
	jg	.L34
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L34:
	mov	DWORD PTR -172[rbp], 1
	jmp	.L36
.L67:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L37:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC21[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L38
	cmp	QWORD PTR -152[rbp], 0
	je	.L39
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L39:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L40:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -152[rbp], rax
	jmp	.L36
.L38:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC25[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L41
	cmp	QWORD PTR -144[rbp], 0
	je	.L42
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L42:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L43:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 4
	jbe	.L44
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L45
.L44:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
.L45:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, rax
	lea	rsi, .LC31[rip]
	lea	rdi, tmp_output[rip]
	mov	eax, 0
	call	asprintf@PLT
	jmp	.L36
.L41:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC32[rip]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L46
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L47:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	parse_bytes
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 1048575
	jg	.L48
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 1048576
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L48:
	mov	rax, QWORD PTR -48[rbp]
	and	eax, 3
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L49:
	mov	rax, QWORD PTR -48[rbp]
	and	eax, 511
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 100
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
.L50:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -136[rbp], rax
	jmp	.L36
.L46:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC38[rip]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L51
	cmp	QWORD PTR -152[rbp], 0
	je	.L52
	cmp	QWORD PTR -144[rbp], 0
	jne	.L53
.L52:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L53:
	cmp	QWORD PTR -128[rbp], 0
	jne	.L54
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC41[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L54:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L55
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L55:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	parse_bytes
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jg	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L56:
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 3
	test	rax, rax
	je	.L57
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC44[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L57:
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	output_zeros
	test	rax, rax
	je	.L58
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L74
.L58:
	mov	rax, QWORD PTR -56[rbp]
	add	QWORD PTR -128[rbp], rax
	jmp	.L36
.L51:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, .LC46[rip]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	check_flag
	test	al, al
	je	.L59
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC48[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L60:
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -172[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 20
	jbe	.L61
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 20
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -120[rbp], 20
.L61:
	mov	rdx, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L36
.L59:
	cmp	QWORD PTR -152[rbp], 0
	je	.L62
	cmp	QWORD PTR -144[rbp], 0
	jne	.L63
.L62:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC50[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L63:
	cmp	QWORD PTR -160[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR tmp_output[rip]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -144[rbp]
	lea	rsi, .LC52[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L74
.L65:
	lea	rdi, remove_tmp_file[rip]
	call	atexit@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy_file
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 4096
	je	.L64
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	lea	rsi, .LC53[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L74
.L64:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy_file
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jns	.L66
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L74
.L66:
	mov	rax, QWORD PTR -80[rbp]
	add	QWORD PTR -128[rbp], rax
.L36:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L67
	cmp	QWORD PTR -128[rbp], 0
	jne	.L68
	lea	rdi, .LC55[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L68:
	cmp	QWORD PTR -136[rbp], 0
	je	.L69
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -128[rbp]
	jnb	.L69
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -136[rbp]
	lea	rsi, .LC56[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L69:
	cmp	QWORD PTR -136[rbp], 0
	jne	.L70
	mov	DWORD PTR -168[rbp], 1052672
	mov	DWORD PTR -164[rbp], 16384
	mov	edx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -164[rbp]
	add	eax, edx
	sub	eax, 1
	cdq
	idiv	DWORD PTR -164[rbp]
	imul	eax, DWORD PTR -164[rbp]
	sub	eax, 4096
	cdqe
	mov	QWORD PTR -136[rbp], rax
.L70:
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -128[rbp]
	jbe	.L71
	mov	rax, QWORD PTR -136[rbp]
	sub	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	output_zeros
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -136[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rsi, .LC57[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L71:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 4096
	and	eax, 16383
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 4096
	and	eax, 16383
	mov	rdx, rax
	mov	eax, 16384
	sub	rax, rdx
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	output_zeros
	test	rax, rax
	je	.L72
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rsi, .LC57[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	jmp	.L74
.L72:
	mov	rax, QWORD PTR -160[rbp]
	mov	edx, 0
	mov	esi, 32
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 20
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR tmp_output[rip]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	test	eax, eax
	je	.L73
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR tmp_output[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	r8, rsi
	lea	rsi, .LC58[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L74
.L73:
	mov	eax, 0
.L74:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"169060.c"
	.text
	.section	.rodata
	.align	2
	.type	zero, %object
	.size	zero, 1024
zero:
	.space	1024
	.local	tmp_output
	.comm	tmp_output,4,4
	.align	2
.LC0:
	.ascii	"Usage: %s [-t <title>] [-l <size>B/K/M] -h <file> -"
	.ascii	"o <file> <file> [[-s <offset>B/K/M] <file>]*\012\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"This program creates an N64 ROM from a header and a"
	.ascii	" list of files,\012\000"
	.align	2
.LC2:
	.ascii	"the first being an Nintendo64 binary and the rest a"
	.ascii	"rbitrary data.\012\000"
	.align	2
.LC3:
	.ascii	"Command-line flags:\012\000"
	.align	2
.LC4:
	.ascii	"\011-t, --title <title>    Title of ROM (max %d cha"
	.ascii	"racters).\012\000"
	.align	2
.LC5:
	.ascii	"\011-l, --size <size>      Force ROM output file si"
	.ascii	"ze to <size> (min 1 mebibyte).\012\000"
	.align	2
.LC6:
	.ascii	"\011-h, --header <file>    Use <file> as IPL3 heade"
	.ascii	"r.\012\000"
	.align	2
.LC7:
	.ascii	"\011-o, --output <file>    Save output ROM to <file"
	.ascii	">.\012\000"
	.align	2
.LC8:
	.ascii	"\011-s, --offset <offset>  Next file starts at <off"
	.ascii	"set> from top of memory. Offset must be 32-bit alig"
	.ascii	"ned.\012\000"
	.align	2
.LC9:
	.ascii	"Binary byte size/offset suffix notation:\012\000"
	.align	2
.LC10:
	.ascii	"\011B for bytes.\012\000"
	.align	2
.LC11:
	.ascii	"\011K for kibibytes (KiB) [1024 bytes].\012\000"
	.align	2
.LC12:
	.ascii	"\011M for mebibytes (MiB) [1024 kibibytes].\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L3+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #67
	mov	r1, #1
	ldr	r0, .L3+8
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L3+12
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L3+16
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #20
	ldr	r1, .L3+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #79
	mov	r1, #1
	ldr	r0, .L3+24
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L3+28
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L3+32
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #104
	mov	r1, #1
	ldr	r0, .L3+36
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L3+40
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L3+44
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L3+48
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L3+52
	bl	fwrite
	mov	r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	stderr
	.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
	.size	print_usage, .-print_usage
	.align	2
	.global	check_flag
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_flag, %function
check_flag:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_flag, .-check_flag
	.align	2
	.global	get_file_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_file_size, %function
get_file_size:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_file_size, .-get_file_size
	.section	.rodata
	.align	2
.LC13:
	.ascii	"rb\000"
	.align	2
.LC14:
	.ascii	"ERROR: Cannot open %s for reading!\012\000"
	.align	2
.LC15:
	.ascii	"ERROR: Out of memory!\012\000"
	.text
	.align	2
	.global	copy_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_file, %function
copy_file:
	@ 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	r1, .L18
	ldr	r0, [fp, #-36]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, .L18+8
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L14
.L13:
	ldr	r0, [fp, #-20]
	bl	get_file_size
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r0, #1048576
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L18+12
	bl	fwrite
	ldr	r0, [fp, #-20]
	bl	fclose
	mvn	r3, #0
	b	.L14
.L17:
	ldr	r3, [fp, #-24]
	cmp	r3, #1048576
	movlt	r3, r3
	movge	r3, #1048576
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fread
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fwrite
.L16:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L17
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-16]
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC13
	.word	stderr
	.word	.LC14
	.word	.LC15
	.size	copy_file, .-copy_file
	.align	2
	.global	output_zeros
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_zeros, %function
output_zeros:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L23
	mvn	r3, #0
	b	.L22
.L25:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bls	.L24
	mov	r3, #1024
	str	r3, [fp, #-8]
.L24:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, .L26
	bl	fwrite
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L23:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L25
	mov	r3, #0
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	zero
	.size	output_zeros, .-output_zeros
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_bytes, %function
parse_bytes:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bhi	.L29
	mvn	r3, #0
	b	.L34
.L29:
	sub	r3, fp, #20
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #109
	beq	.L31
	cmp	r3, #109
	bgt	.L32
	cmp	r3, #107
	beq	.L33
	cmp	r3, #107
	bgt	.L32
	cmp	r3, #75
	beq	.L33
	cmp	r3, #77
	bne	.L32
.L31:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #10
	str	r3, [fp, #-16]
.L33:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #10
	str	r3, [fp, #-16]
.L32:
	ldr	r3, [fp, #-16]
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC16
	.size	parse_bytes, .-parse_bytes
	.align	2
	.global	remove_tmp_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_tmp_file, %function
remove_tmp_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L41
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
.L40:
	nop
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	tmp_output
	.size	remove_tmp_file, .-remove_tmp_file
	.section	.rodata
	.align	2
.LC17:
	.ascii	"--byteswap\000"
	.align	2
.LC18:
	.ascii	"-b\000"
	.align	2
.LC19:
	.ascii	"ERROR: The byteswap option is no longer supported. "
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	"Use another tool to convert the output of this prog"
	.ascii	"ram.\012\000"
	.align	2
.LC21:
	.ascii	"       For example: dd conv=swab if=rom.z64 of=rom."
	.ascii	"v64\012\012\000"
	.align	2
.LC22:
	.ascii	"--header\000"
	.align	2
.LC23:
	.ascii	"-h\000"
	.align	2
.LC24:
	.ascii	"ERROR: The header can only be set once\012\012\000"
	.align	2
.LC25:
	.ascii	"ERROR: Expected an argument to header flag\012\012\000"
	.align	2
.LC26:
	.ascii	"--output\000"
	.align	2
.LC27:
	.ascii	"-o\000"
	.align	2
.LC28:
	.ascii	"ERROR: The output can only be set once\012\012\000"
	.align	2
.LC29:
	.ascii	"ERROR: Expected an argument to output flag\012\012\000"
	.align	2
.LC30:
	.ascii	".z64\000"
	.align	2
.LC31:
	.ascii	"WARNING: The output should have a '.z64' file exten"
	.ascii	"sion\012\000"
	.align	2
.LC32:
	.ascii	"%s.tmp\000"
	.align	2
.LC33:
	.ascii	"--size\000"
	.align	2
.LC34:
	.ascii	"-l\000"
	.align	2
.LC35:
	.ascii	"ERROR: Expected an argument to size flag\012\012\000"
	.align	2
.LC36:
	.ascii	"ERROR: Invalid size argument; must be at least %d b"
	.ascii	"ytes\012\012\000"
	.align	2
.LC37:
	.ascii	"ERROR: Invalid size argument; must be a multiple of"
	.ascii	" 4 bytes\012\012\000"
	.align	2
.LC38:
	.ascii	"WARNING: Sizes which are not multiple of 512 bytes "
	.ascii	"might have problems being loaded with a 64drive\012"
	.ascii	"\012\000"
	.align	2
.LC39:
	.ascii	"--offset\000"
	.align	2
.LC40:
	.ascii	"-s\000"
	.align	2
.LC41:
	.ascii	"ERROR: Need header and output flags before offset\012"
	.ascii	"\012\000"
	.align	2
.LC42:
	.ascii	"ERROR: The first file cannot have an offset\012\012"
	.ascii	"\000"
	.align	2
.LC43:
	.ascii	"ERROR: Expected an argument to offset flag\012\012\000"
	.align	2
.LC44:
	.ascii	"ERROR: Invalid offset argument\012\012\000"
	.align	2
.LC45:
	.ascii	"ERROR: Invalid offset argument (must be multiple of"
	.ascii	" 4)\012\012\000"
	.align	2
.LC46:
	.ascii	"ERROR: Invalid offset %zd to seek to in %s!\012\000"
	.align	2
.LC47:
	.ascii	"--title\000"
	.align	2
.LC48:
	.ascii	"-t\000"
	.align	2
.LC49:
	.ascii	"ERROR: Expected an argument to title flag\012\012\000"
	.align	2
.LC50:
	.ascii	"WARNING: Title will be truncated to %d characters\012"
	.ascii	"\000"
	.align	2
.LC51:
	.ascii	"ERROR: Need header and output before first file\012"
	.ascii	"\012\000"
	.align	2
.LC52:
	.ascii	"wb\000"
	.align	2
.LC53:
	.ascii	"ERROR: Cannot open '%s' for writing\012\000"
	.align	2
.LC54:
	.ascii	"ERROR: Unable to copy ROM header from '%s' to '%s'\012"
	.ascii	"\000"
	.align	2
.LC55:
	.ascii	"ERROR: Unable to copy file from '%s' to '%s'\012\000"
	.align	2
.LC56:
	.ascii	"ERROR: No input files, nothing written\012\000"
	.align	2
.LC57:
	.ascii	"ERROR: Couldn't fit ROM in %zu bytes as requested.\012"
	.ascii	"\000"
	.global	__aeabi_idiv
	.align	2
.LC58:
	.ascii	"ERROR: Couldn't pad %zu bytes to %zu bytes.\012\000"
	.align	2
.LC59:
	.ascii	"Couldn't rename temporary output file '%s' to '%s':"
	.ascii	" %s\000"
	.align	2
.LC60:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #36
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bgt	.L44
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L44:
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L46
.L77:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r2, .L86+4
	ldr	r1, .L86+8
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L86+16
	bl	fwrite
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L86+20
	bl	fwrite
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L86+24
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L47:
	ldr	r2, .L86+28
	ldr	r1, .L86+32
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L86+36
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L49:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L50
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L86+40
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L50:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	b	.L46
.L48:
	ldr	r2, .L86+44
	ldr	r1, .L86+48
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L86+52
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L52:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L53
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L86+56
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L53:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	ldr	r0, [fp, #-108]
	bl	strlen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #4
	bls	.L54
	ldr	r3, [fp, #-44]
	sub	r3, r3, #4
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r1, .L86+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
.L54:
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L86+64
	bl	fwrite
.L55:
	ldr	r2, [fp, #-108]
	ldr	r1, .L86+68
	ldr	r0, .L86+72
	bl	asprintf
	b	.L46
.L51:
	ldr	r2, .L86+76
	ldr	r1, .L86+80
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L57
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L86+84
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L57:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	parse_bytes
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #1048576
	bge	.L58
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #1048576
	ldr	r1, .L86+88
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L58:
	ldr	r3, [fp, #-48]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L86+92
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L59:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #100
	mov	r1, #1
	ldr	r0, .L86+96
	bl	fwrite
.L60:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-104]
	b	.L46
.L56:
	ldr	r2, .L86+100
	ldr	r1, .L86+104
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L63
.L62:
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L86+108
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L63:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L86+112
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L64:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L65
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L86+116
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L65:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	parse_bytes
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L66
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L86+120
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L66:
	ldr	r3, [fp, #-56]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L86+124
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L67:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-100]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-116]
	bl	output_zeros
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, .L86+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-56]
	ldr	r1, .L86+128
	bl	fprintf
	mov	r3, #1
	b	.L84
.L68:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-100]
	b	.L46
.L61:
	ldr	r2, .L86+132
	ldr	r1, .L86+136
	ldr	r0, [fp, #-72]
	bl	check_flag
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L70
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L86+140
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L70:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r0, [fp, #-60]
	bl	strlen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #20
	bls	.L71
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #20
	ldr	r1, .L86+144
	mov	r0, r3
	bl	fprintf
	mov	r3, #20
	str	r3, [fp, #-92]
.L71:
	sub	r3, fp, #40
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	memcpy
	b	.L46
.L69:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L73
.L72:
	ldr	r3, .L86+12
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L86+148
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L73:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L74
	ldr	r3, .L86+72
	ldr	r3, [r3]
	ldr	r1, .L86+152
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L86+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	ldr	r1, .L86+156
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L84
.L75:
	ldr	r0, .L86+160
	bl	atexit
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-116]
	bl	copy_file
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #4096
	beq	.L74
	ldr	r3, .L86+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-112]
	ldr	r1, .L86+164
	bl	fprintf
	mov	r3, #1
	b	.L84
.L74:
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-116]
	bl	copy_file
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L76
	ldr	r3, .L86+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-72]
	ldr	r1, .L86+168
	bl	fprintf
	mov	r3, #1
	b	.L84
.L76:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-100]
.L46:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L77
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L78
	ldr	r0, .L86+172
	bl	puts
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L78:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L79
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcs	.L79
	ldr	r3, .L86+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L86+176
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L79:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L80
	ldr	r3, .L86+180
	str	r3, [fp, #-88]
	mov	r3, #16384
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-84]
	mul	r3, r2, r3
	sub	r3, r3, #4096
	str	r3, [fp, #-104]
.L80:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bls	.L81
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-116]
	bl	output_zeros
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	ldr	r3, .L86+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r1, .L86+184
	bl	fprintf
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L81:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4096
	lsl	r3, r3, #18
	lsr	r3, r3, #18
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-100]
	add	r3, r3, #4096
	lsl	r3, r3, #18
	lsr	r3, r3, #18
	rsb	r3, r3, #16384
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-116]
	bl	output_zeros
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	ldr	r3, .L86+12
	ldr	r0, [r3]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	ldr	r1, .L86+184
	bl	fprintf
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, r0
	b	.L84
.L82:
	mov	r2, #0
	mov	r1, #32
	ldr	r0, [fp, #-116]
	bl	fseek
	sub	r0, fp, #40
	ldr	r3, [fp, #-116]
	mov	r2, #20
	mov	r1, #1
	bl	fwrite
	ldr	r0, [fp, #-116]
	bl	fclose
	ldr	r3, .L86+72
	ldr	r3, [r3]
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	rename
	mov	r3, r0
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L86+12
	ldr	r4, [r3]
	ldr	r3, .L86+72
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-108]
	mov	r2, r5
	ldr	r1, .L86+188
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L84
.L83:
	mov	r3, #0
.L84:
	ldr	r2, .L86
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC60
	.word	.LC17
	.word	.LC18
	.word	stderr
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	tmp_output
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	remove_tmp_file
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	1052672
	.word	.LC58
	.word	.LC59
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
