	.file	"34512289.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"option:"
	.align 8
.LC1:
	.string	"-extract,-insert,-insertbloc,-rom8k,-rom"
.LC2:
	.string	"-fillrom,-add,-compare"
.LC3:
	.string	"-invert,-invertng,"
.LC4:
	.string	"-div,-divrom,-divrom2,-divf3"
.LC5:
	.string	"-compare"
.LC6:
	.string	"-v"
.LC7:
	.string	"version 1.00"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L2
	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
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L4:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	createrom8k
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	createrom
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	insertbloc
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	insert
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	invert
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	extract
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	compare
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	divfile
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	divrom
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	divrom2
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	divf3
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	add
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fillrom
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	invertng
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC8:
	.string	"-extract"
.LC9:
	.string	"rb"
.LC10:
	.string	"wb"
.LC11:
	.string	"out.bin"
	.text
	.globl	extract
	.type	extract, @function
extract:
.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
	cmp	DWORD PTR -36[rbp], 2
	jle	.L15
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 3
	jle	.L9
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -32[rbp], eax
.L9:
	cmp	DWORD PTR -36[rbp], 5
	jne	.L10
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
.L10:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L17
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -28[rbp], 1
.L13:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L15:
	nop
	jmp	.L5
.L16:
	nop
	jmp	.L5
.L17:
	nop
	jmp	.L5
.L18:
	nop
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	extract, .-extract
	.section	.rodata
.LC12:
	.string	"-insert"
.LC13:
	.string	"rb+"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L30
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 5
	jne	.L23
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
.L23:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L33
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L34
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L28
.L34:
	nop
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L19
.L30:
	nop
	jmp	.L19
.L31:
	nop
	jmp	.L19
.L32:
	nop
	jmp	.L19
.L33:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insert, .-insert
	.section	.rodata
.LC14:
	.string	"-insertbloc"
	.text
	.globl	insertbloc
	.type	insertbloc, @function
insertbloc:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L46
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 5
	jne	.L39
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
.L39:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L49
	mov	eax, DWORD PTR -24[rbp]
	sal	eax, 7
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L44:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L50
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L44
.L50:
	nop
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L35
.L46:
	nop
	jmp	.L35
.L47:
	nop
	jmp	.L35
.L48:
	nop
	jmp	.L35
.L49:
	nop
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insertbloc, .-insertbloc
	.section	.rodata
.LC15:
	.string	"-rom8k"
	.text
	.globl	createrom8k
	.type	createrom8k, @function
createrom8k:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L59
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
	mov	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -36[rbp], 4
	jne	.L55
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
.L55:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L61
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 15
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L57
.L58:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	fputc@PLT
	add	DWORD PTR -16[rbp], 1
.L57:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L58
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L51
.L59:
	nop
	jmp	.L51
.L60:
	nop
	jmp	.L51
.L61:
	nop
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	createrom8k, .-createrom8k
	.section	.rodata
.LC16:
	.string	"-rom"
	.text
	.globl	createrom
	.type	createrom, @function
createrom:
.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jle	.L70
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -36[rbp], 4
	jne	.L66
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
.L66:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L72
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L68
.L69:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	fputc@PLT
	add	DWORD PTR -16[rbp], 1
.L68:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L69
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L62
.L70:
	nop
	jmp	.L62
.L71:
	nop
	jmp	.L62
.L72:
	nop
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	createrom, .-createrom
	.section	.rodata
.LC17:
	.string	"-invert"
	.text
	.globl	invert
	.type	invert, @function
invert:
.LFB12:
	.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
	cmp	DWORD PTR -36[rbp], 2
	jle	.L83
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L84
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L85
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	add	rax, 1
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L86
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L79
.L80:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 2
.L79:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L80
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L81
.L82:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -28[rbp], 1
.L81:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L82
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L73
.L83:
	nop
	jmp	.L73
.L84:
	nop
	jmp	.L73
.L85:
	nop
	jmp	.L73
.L86:
	nop
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	invert, .-invert
	.section	.rodata
.LC18:
	.string	"%s_out.txt"
.LC19:
	.string	"offset %s %s\n\n"
.LC20:
	.string	"%.2x %.2x %.2x\n"
.LC21:
	.string	"\nndif :%d \nbegin :%x\n"
	.text
	.globl	compare
	.type	compare, @function
compare:
.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -564[rbp], 3
	jle	.L99
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L100
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -528[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	je	.L101
	cmp	QWORD PTR -528[rbp], 0
	je	.L102
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -512[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -512[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -520[rbp], rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -512[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	DWORD PTR -560[rbp], 0
	mov	DWORD PTR -556[rbp], 0
	mov	DWORD PTR -552[rbp], 0
	mov	DWORD PTR -548[rbp], 0
	mov	DWORD PTR -544[rbp], -1
	jmp	.L93
.L96:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -560[rbp], eax
	mov	rax, QWORD PTR -528[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -540[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	je	.L94
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -544[rbp]
	je	.L94
	cmp	DWORD PTR -548[rbp], 0
	jne	.L95
	mov	eax, DWORD PTR -556[rbp]
	mov	DWORD PTR -548[rbp], eax
.L95:
	mov	esi, DWORD PTR -540[rbp]
	mov	ecx, DWORD PTR -560[rbp]
	mov	edx, DWORD PTR -556[rbp]
	lea	rax, -512[rbp]
	mov	r8d, esi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	DWORD PTR -552[rbp], 1
.L94:
	mov	eax, DWORD PTR -560[rbp]
	mov	DWORD PTR -544[rbp], eax
	add	DWORD PTR -556[rbp], 1
.L93:
	cmp	DWORD PTR -560[rbp], -1
	jne	.L96
	mov	ecx, DWORD PTR -548[rbp]
	mov	edx, DWORD PTR -552[rbp]
	lea	rax, -512[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -528[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L87
.L99:
	nop
	jmp	.L87
.L100:
	nop
	jmp	.L87
.L101:
	nop
	jmp	.L87
.L102:
	nop
.L87:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	compare, .-compare
	.section	.rodata
.LC22:
	.string	"-divrom"
.LC23:
	.string	"%s%d.bin"
.LC24:
	.string	"rom%d.bin"
	.text
	.globl	divrom
	.type	divrom, @function
divrom:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 3
	jle	.L120
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L121
	mov	DWORD PTR -284[rbp], 1
	mov	DWORD PTR -288[rbp], 0
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -284[rbp], eax
	mov	DWORD PTR -292[rbp], 0
	jmp	.L107
.L110:
	cmp	DWORD PTR -308[rbp], 5
	jne	.L108
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -292[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L109
.L108:
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L109:
	lea	rax, -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	edx, DWORD PTR -292[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -272[rbp+rdx*8], rax
	add	DWORD PTR -292[rbp], 1
.L107:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L110
	jmp	.L111
.L115:
	mov	DWORD PTR -292[rbp], 0
	jmp	.L112
.L114:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], -1
	je	.L113
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	rdx, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L113:
	add	DWORD PTR -292[rbp], 1
.L112:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L114
.L111:
	cmp	DWORD PTR -288[rbp], -1
	jne	.L115
	mov	DWORD PTR -292[rbp], 0
	jmp	.L116
.L117:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	rax, QWORD PTR -272[rbp+rax*8]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -292[rbp], 1
.L116:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L117
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L103
.L120:
	nop
	jmp	.L103
.L121:
	nop
.L103:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L119
	call	__stack_chk_fail@PLT
.L119:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	divrom, .-divrom
	.section	.rodata
.LC25:
	.string	"-divrom2"
	.text
	.globl	divrom2
	.type	divrom2, @function
divrom2:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 3
	jle	.L140
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L141
	mov	DWORD PTR -284[rbp], 1
	mov	DWORD PTR -288[rbp], 0
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -284[rbp], eax
	mov	DWORD PTR -292[rbp], 0
	jmp	.L126
.L129:
	cmp	DWORD PTR -308[rbp], 5
	jne	.L127
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -292[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L128
.L127:
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L128:
	lea	rax, -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	edx, DWORD PTR -292[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -272[rbp+rdx*8], rax
	add	DWORD PTR -292[rbp], 1
.L126:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L129
	jmp	.L130
.L135:
	mov	DWORD PTR -292[rbp], 0
	jmp	.L131
.L134:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], -1
	je	.L132
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	rdx, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L132:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], -1
	je	.L133
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	rdx, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L133:
	add	DWORD PTR -292[rbp], 1
.L131:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L134
.L130:
	cmp	DWORD PTR -288[rbp], -1
	jne	.L135
	mov	DWORD PTR -292[rbp], 0
	jmp	.L136
.L137:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	rax, QWORD PTR -272[rbp+rax*8]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -292[rbp], 1
.L136:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jl	.L137
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L122
.L140:
	nop
	jmp	.L122
.L141:
	nop
.L122:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L139
	call	__stack_chk_fail@PLT
.L139:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	divrom2, .-divrom2
	.section	.rodata
.LC26:
	.string	"-div"
.LC27:
	.string	"%s%d"
.LC28:
	.string	"file%d.bin"
	.text
	.globl	divfile
	.type	divfile, @function
divfile:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 3
	jle	.L157
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L158
	mov	DWORD PTR -288[rbp], 1
	mov	DWORD PTR -296[rbp], 0
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -288[rbp], eax
	mov	DWORD PTR -300[rbp], 0
	jmp	.L146
.L149:
	cmp	DWORD PTR -308[rbp], 5
	jne	.L147
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -300[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L148
.L147:
	mov	edx, DWORD PTR -300[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L148:
	lea	rax, -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	edx, DWORD PTR -300[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -272[rbp+rdx*8], rax
	add	DWORD PTR -300[rbp], 1
.L146:
	mov	eax, DWORD PTR -300[rbp]
	cmp	eax, DWORD PTR -288[rbp]
	jl	.L149
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, DWORD PTR -288[rbp]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	DWORD PTR -284[rbp], eax
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -300[rbp], 0
	mov	DWORD PTR -292[rbp], 0
	jmp	.L150
.L152:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], -1
	je	.L151
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rdx, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L151:
	add	DWORD PTR -292[rbp], 1
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -284[rbp]
	jne	.L150
	add	DWORD PTR -300[rbp], 1
	mov	DWORD PTR -292[rbp], 0
.L150:
	cmp	DWORD PTR -296[rbp], -1
	jne	.L152
	mov	DWORD PTR -300[rbp], 0
	jmp	.L153
.L154:
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rax, QWORD PTR -272[rbp+rax*8]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -300[rbp], 1
.L153:
	mov	eax, DWORD PTR -300[rbp]
	cmp	eax, DWORD PTR -288[rbp]
	jl	.L154
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L142
.L157:
	nop
	jmp	.L142
.L158:
	nop
.L142:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L156
	call	__stack_chk_fail@PLT
.L156:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	divfile, .-divfile
	.section	.rodata
.LC29:
	.string	"-divf3"
.LC30:
	.string	"f3.bin"
.LC31:
	.string	"d49-13.20"
.LC32:
	.string	"d49-14.19"
.LC33:
	.string	"d49-16.18"
.LC34:
	.string	"d49-20.17"
	.text
	.globl	divf3
	.type	divf3, @function
divf3:
.LFB17:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 3
	jle	.L168
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L169
	cmp	DWORD PTR -52[rbp], 3
	jne	.L163
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	jmp	.L164
.L163:
	lea	rsi, .LC13[rip]
	lea	rdi, .LC30[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
.L164:
	cmp	QWORD PTR -40[rbp], 0
	je	.L170
	lea	rsi, .LC10[rip]
	lea	rdi, .LC31[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC32[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC33[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC34[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L166
.L167:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L166:
	cmp	DWORD PTR -44[rbp], -1
	jne	.L167
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L159
.L168:
	nop
	jmp	.L159
.L169:
	nop
	jmp	.L159
.L170:
	nop
.L159:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	divf3, .-divf3
	.section	.rodata
.LC35:
	.string	"-add"
.LC36:
	.string	"ab"
	.text
	.globl	add
	.type	add, @function
add:
.LFB18:
	.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
	cmp	DWORD PTR -36[rbp], 3
	jle	.L179
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L180
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L181
	cmp	DWORD PTR -36[rbp], 5
	jne	.L176
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
.L176:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L177
.L178:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -20[rbp], 1
.L177:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L178
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L171
.L179:
	nop
	jmp	.L171
.L180:
	nop
	jmp	.L171
.L181:
	nop
.L171:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	add, .-add
	.section	.rodata
.LC37:
	.string	"-fillrom"
.LC38:
	.string	"%d\n"
	.text
	.globl	fillrom
	.type	fillrom, @function
fillrom:
.LFB19:
	.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
	cmp	DWORD PTR -36[rbp], 3
	jle	.L190
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L191
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L192
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -36[rbp], 5
	jne	.L187
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
.L187:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L188
.L189:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -24[rbp], 1
.L188:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L189
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L182
.L190:
	nop
	jmp	.L182
.L191:
	nop
	jmp	.L182
.L192:
	nop
.L182:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	fillrom, .-fillrom
	.section	.rodata
.LC39:
	.string	"-invertng"
	.text
	.globl	invertng
	.type	invertng, @function
invertng:
.LFB20:
	.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
	cmp	DWORD PTR -36[rbp], 2
	jle	.L204
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L205
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L206
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L198
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L193
.L198:
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L207
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L200
.L201:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -32[rbp], 2
.L200:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L201
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L202
.L203:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -32[rbp], 1
.L202:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L203
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L193
.L204:
	nop
	jmp	.L193
.L205:
	nop
	jmp	.L193
.L206:
	nop
	jmp	.L193
.L207:
	nop
.L193:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	invertng, .-invertng
	.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	"34512289.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"option:\000"
	.align	2
.LC1:
	.ascii	"-extract,-insert,-insertbloc,-rom8k,-rom\000"
	.align	2
.LC2:
	.ascii	"-fillrom,-add,-compare\000"
	.align	2
.LC3:
	.ascii	"-invert,-invertng,\000"
	.align	2
.LC4:
	.ascii	"-div,-divrom,-divrom2,-divf3\000"
	.align	2
.LC5:
	.ascii	"-compare\000"
	.align	2
.LC6:
	.ascii	"-v\000"
	.align	2
.LC7:
	.ascii	"version 1.00\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L5
	bl	puts
	ldr	r0, .L5+4
	bl	puts
	ldr	r0, .L5+8
	bl	puts
	ldr	r0, .L5+12
	bl	puts
	ldr	r0, .L5+16
	bl	puts
	ldr	r0, .L5+20
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L5+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L5+28
	bl	puts
.L4:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	createrom8k
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	createrom
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	insertbloc
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	insert
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	invert
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	extract
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	compare
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	divfile
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	divrom
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	divrom2
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	divf3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	add
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fillrom
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	invertng
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"-extract\000"
	.align	2
.LC9:
	.ascii	"rb\000"
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"out.bin\000"
	.text
	.align	2
	.global	extract
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract, %function
extract:
	@ 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, [fp, #-32]
	cmp	r3, #2
	ble	.L17
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L21
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L11
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bne	.L12
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L12:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L21+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L19
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L15
.L16:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	fputc
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L15:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-16]
	bl	fclose
	b	.L7
.L17:
	nop
	b	.L7
.L18:
	nop
	b	.L7
.L19:
	nop
	b	.L7
.L20:
	nop
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	extract, .-extract
	.section	.rodata
	.align	2
.LC12:
	.ascii	"-insert\000"
	.align	2
.LC13:
	.ascii	"rb+\000"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L39
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	bne	.L27
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L27:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L39+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L39+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L37
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	fseek
.L32:
	ldr	r0, [fp, #-8]
	bl	fgetc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L38
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	fputc
	b	.L32
.L38:
	nop
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L23
.L34:
	nop
	b	.L23
.L35:
	nop
	b	.L23
.L36:
	nop
	b	.L23
.L37:
	nop
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC12
	.word	.LC13
	.word	.LC9
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC14:
	.ascii	"-insertbloc\000"
	.text
	.align	2
	.global	insertbloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertbloc, %function
insertbloc:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L52
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L57
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L53
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	bne	.L45
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L45:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L57+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L57+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #7
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	fseek
.L50:
	ldr	r0, [fp, #-8]
	bl	fgetc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L56
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	fputc
	b	.L50
.L56:
	nop
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L41
.L52:
	nop
	b	.L41
.L53:
	nop
	b	.L41
.L54:
	nop
	b	.L41
.L55:
	nop
.L41:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC14
	.word	.LC13
	.word	.LC9
	.size	insertbloc, .-insertbloc
	.section	.rodata
	.align	2
.LC15:
	.ascii	"-rom8k\000"
	.text
	.align	2
	.global	createrom8k
	.syntax unified
	.arm
	.fpu softvfp
	.type	createrom8k, %function
createrom8k:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L67
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L70
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bne	.L63
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L63:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L70+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #15
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L65
.L66:
	ldr	r1, [fp, #-12]
	mov	r0, #0
	bl	fputc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L65:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L66
	ldr	r0, [fp, #-12]
	bl	fclose
	b	.L59
.L67:
	nop
	b	.L59
.L68:
	nop
	b	.L59
.L69:
	nop
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC15
	.word	.LC10
	.size	createrom8k, .-createrom8k
	.section	.rodata
	.align	2
.LC16:
	.ascii	"-rom\000"
	.text
	.align	2
	.global	createrom
	.syntax unified
	.arm
	.fpu softvfp
	.type	createrom, %function
createrom:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L80
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L83
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bne	.L76
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L76:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L83+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L78
.L79:
	ldr	r1, [fp, #-12]
	mov	r0, #0
	bl	fputc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L78:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L79
	ldr	r0, [fp, #-12]
	bl	fclose
	b	.L72
.L80:
	nop
	b	.L72
.L81:
	nop
	b	.L72
.L82:
	nop
.L72:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC16
	.word	.LC10
	.size	createrom, .-createrom
	.section	.rodata
	.align	2
.LC17:
	.ascii	"-invert\000"
	.text
	.align	2
	.global	invert
	.syntax unified
	.arm
	.fpu softvfp
	.type	invert, %function
invert:
	@ 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, [fp, #-32]
	cmp	r3, #2
	ble	.L95
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L99
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L99+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L97
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	ldr	r0, [fp, #-20]
	bl	ftell
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L98
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L91
.L92:
	ldr	r0, [fp, #-20]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
.L91:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L92
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L93
.L94:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L93:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L94
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	free
	b	.L85
.L95:
	nop
	b	.L85
.L96:
	nop
	b	.L85
.L97:
	nop
	b	.L85
.L98:
	nop
.L85:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC17
	.word	.LC13
	.size	invert, .-invert
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%s_out.txt\000"
	.align	2
.LC19:
	.ascii	"offset %s %s\012\012\000"
	.align	2
.LC20:
	.ascii	"%.2x %.2x %.2x\012\000"
	.align	2
.LC21:
	.ascii	"\012ndif :%d \012begin :%x\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	ldr	r3, .L117
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-552]
	cmp	r3, #3
	ble	.L113
	ldr	r3, [fp, #-556]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L117+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L114
	ldr	r3, [fp, #-556]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L117+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-556]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L117+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-520]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-520]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-556]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #508
	ldr	r1, .L117+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #508
	ldr	r1, .L117+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-516]
	ldr	r3, [fp, #-556]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-556]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r0, fp, #508
	ldr	r1, .L117+20
	bl	sprintf
	sub	r3, fp, #508
	ldr	r1, [fp, #-516]
	mov	r0, r3
	bl	fputs
	mov	r3, #0
	str	r3, [fp, #-544]
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-532]
	mvn	r3, #0
	str	r3, [fp, #-528]
	b	.L107
.L110:
	ldr	r0, [fp, #-524]
	bl	fgetc
	str	r0, [fp, #-544]
	ldr	r0, [fp, #-520]
	bl	fgetc
	str	r0, [fp, #-512]
	ldr	r2, [fp, #-544]
	ldr	r3, [fp, #-512]
	cmp	r2, r3
	beq	.L108
	ldr	r2, [fp, #-544]
	ldr	r3, [fp, #-528]
	cmp	r2, r3
	beq	.L108
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L109
	ldr	r3, [fp, #-540]
	str	r3, [fp, #-532]
.L109:
	sub	r0, fp, #508
	ldr	r3, [fp, #-512]
	str	r3, [sp]
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-540]
	ldr	r1, .L117+24
	bl	sprintf
	sub	r3, fp, #508
	ldr	r1, [fp, #-516]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L108:
	ldr	r3, [fp, #-544]
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L107:
	ldr	r3, [fp, #-544]
	cmn	r3, #1
	bne	.L110
	sub	r0, fp, #508
	ldr	r3, [fp, #-532]
	ldr	r2, [fp, #-536]
	ldr	r1, .L117+28
	bl	sprintf
	sub	r3, fp, #508
	ldr	r1, [fp, #-516]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-524]
	bl	fclose
	ldr	r0, [fp, #-520]
	bl	fclose
	ldr	r0, [fp, #-516]
	bl	fclose
	b	.L101
.L113:
	nop
	b	.L101
.L114:
	nop
	b	.L101
.L115:
	nop
	b	.L101
.L116:
	nop
.L101:
	ldr	r3, .L117
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L112
	bl	__stack_chk_fail
.L112:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC22
	.word	.LC5
	.word	.LC9
	.word	.LC18
	.word	.LC10
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC23:
	.ascii	"-divrom\000"
	.align	2
.LC24:
	.ascii	"%s%d.bin\000"
	.align	2
.LC25:
	.ascii	"rom%d.bin\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	divrom
	.syntax unified
	.arm
	.fpu softvfp
	.type	divrom, %function
divrom:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	str	r0, [fp, #-264]
	str	r1, [fp, #-268]
	ldr	r3, .L138
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-264]
	cmp	r3, #3
	ble	.L136
	ldr	r3, [fp, #-268]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L138+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L137
	mov	r3, #1
	str	r3, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-268]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L138+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-268]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L123
.L126:
	ldr	r3, [fp, #-264]
	cmp	r3, #5
	bne	.L124
	ldr	r3, [fp, #-268]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r0, fp, #208
	ldr	r3, [fp, #-256]
	ldr	r1, .L138+12
	bl	sprintf
	b	.L125
.L124:
	sub	r3, fp, #208
	ldr	r2, [fp, #-256]
	ldr	r1, .L138+16
	mov	r0, r3
	bl	sprintf
.L125:
	sub	r3, fp, #208
	ldr	r1, .L138+20
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-236]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L123:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L126
	b	.L127
.L131:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L128
.L130:
	ldr	r0, [fp, #-244]
	bl	fgetc
	str	r0, [fp, #-252]
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	beq	.L129
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r1, r3
	ldr	r0, [fp, #-252]
	bl	fputc
.L129:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L128:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L130
.L127:
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	bne	.L131
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L132
.L133:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L132:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L133
	ldr	r0, [fp, #-244]
	bl	fclose
	b	.L119
.L136:
	nop
	b	.L119
.L137:
	nop
.L119:
	ldr	r3, .L138
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L135
	bl	__stack_chk_fail
.L135:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L139:
	.align	2
.L138:
	.word	.LC26
	.word	.LC23
	.word	.LC9
	.word	.LC24
	.word	.LC25
	.word	.LC10
	.size	divrom, .-divrom
	.section	.rodata
	.align	2
.LC27:
	.ascii	"-divrom2\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	divrom2
	.syntax unified
	.arm
	.fpu softvfp
	.type	divrom2, %function
divrom2:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	str	r0, [fp, #-264]
	str	r1, [fp, #-268]
	ldr	r3, .L160
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-264]
	cmp	r3, #3
	ble	.L158
	ldr	r3, [fp, #-268]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L160+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L159
	mov	r3, #1
	str	r3, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-268]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L160+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-268]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L144
.L147:
	ldr	r3, [fp, #-264]
	cmp	r3, #5
	bne	.L145
	ldr	r3, [fp, #-268]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r0, fp, #208
	ldr	r3, [fp, #-256]
	ldr	r1, .L160+12
	bl	sprintf
	b	.L146
.L145:
	sub	r3, fp, #208
	ldr	r2, [fp, #-256]
	ldr	r1, .L160+16
	mov	r0, r3
	bl	sprintf
.L146:
	sub	r3, fp, #208
	ldr	r1, .L160+20
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-236]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L144:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L147
	b	.L148
.L153:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L149
.L152:
	ldr	r0, [fp, #-244]
	bl	fgetc
	str	r0, [fp, #-252]
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	beq	.L150
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r1, r3
	ldr	r0, [fp, #-252]
	bl	fputc
.L150:
	ldr	r0, [fp, #-244]
	bl	fgetc
	str	r0, [fp, #-252]
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	beq	.L151
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r1, r3
	ldr	r0, [fp, #-252]
	bl	fputc
.L151:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L149:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L152
.L148:
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	bne	.L153
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L154
.L155:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L154:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-248]
	cmp	r2, r3
	blt	.L155
	ldr	r0, [fp, #-244]
	bl	fclose
	b	.L140
.L158:
	nop
	b	.L140
.L159:
	nop
.L140:
	ldr	r3, .L160
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L157
	bl	__stack_chk_fail
.L157:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L161:
	.align	2
.L160:
	.word	.LC28
	.word	.LC27
	.word	.LC9
	.word	.LC24
	.word	.LC25
	.word	.LC10
	.size	divrom2, .-divrom2
	.section	.rodata
	.align	2
.LC29:
	.ascii	"-div\000"
	.align	2
.LC30:
	.ascii	"%s%d\000"
	.align	2
.LC31:
	.ascii	"file%d.bin\000"
	.global	__aeabi_idiv
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	divfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	divfile, %function
divfile:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L179
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-272]
	cmp	r3, #3
	ble	.L177
	ldr	r3, [fp, #-276]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L179+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L178
	mov	r3, #1
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-260]
	ldr	r3, [fp, #-276]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L179+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-276]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-264]
	b	.L166
.L169:
	ldr	r3, [fp, #-272]
	cmp	r3, #5
	bne	.L167
	ldr	r3, [fp, #-276]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r0, fp, #208
	ldr	r3, [fp, #-264]
	ldr	r1, .L179+12
	bl	sprintf
	b	.L168
.L167:
	sub	r3, fp, #208
	ldr	r2, [fp, #-264]
	ldr	r1, .L179+16
	mov	r0, r3
	bl	sprintf
.L168:
	sub	r3, fp, #208
	ldr	r1, .L179+20
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-236]
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
.L166:
	ldr	r2, [fp, #-264]
	ldr	r3, [fp, #-252]
	cmp	r2, r3
	blt	.L169
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-248]
	bl	fseek
	ldr	r0, [fp, #-248]
	bl	ftell
	mov	r3, r0
	ldr	r1, [fp, #-252]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-244]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-248]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-264]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L170
.L172:
	ldr	r0, [fp, #-248]
	bl	fgetc
	str	r0, [fp, #-260]
	ldr	r3, [fp, #-260]
	cmn	r3, #1
	beq	.L171
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r1, r3
	ldr	r0, [fp, #-260]
	bl	fputc
.L171:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-244]
	cmp	r2, r3
	bne	.L170
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
	mov	r3, #0
	str	r3, [fp, #-256]
.L170:
	ldr	r3, [fp, #-260]
	cmn	r3, #1
	bne	.L172
	mov	r3, #0
	str	r3, [fp, #-264]
	b	.L173
.L174:
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-236]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
.L173:
	ldr	r2, [fp, #-264]
	ldr	r3, [fp, #-252]
	cmp	r2, r3
	blt	.L174
	ldr	r0, [fp, #-248]
	bl	fclose
	b	.L162
.L177:
	nop
	b	.L162
.L178:
	nop
.L162:
	ldr	r3, .L179
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L176
	bl	__stack_chk_fail
.L176:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L180:
	.align	2
.L179:
	.word	.LC32
	.word	.LC29
	.word	.LC9
	.word	.LC30
	.word	.LC31
	.word	.LC10
	.size	divfile, .-divfile
	.section	.rodata
	.align	2
.LC33:
	.ascii	"-divf3\000"
	.align	2
.LC34:
	.ascii	"f3.bin\000"
	.align	2
.LC35:
	.ascii	"d49-13.20\000"
	.align	2
.LC36:
	.ascii	"d49-14.19\000"
	.align	2
.LC37:
	.ascii	"d49-16.18\000"
	.align	2
.LC38:
	.ascii	"d49-20.17\000"
	.text
	.align	2
	.global	divf3
	.syntax unified
	.arm
	.fpu softvfp
	.type	divf3, %function
divf3:
	@ 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, [fp, #-32]
	cmp	r3, #3
	ble	.L190
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L193
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L191
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L185
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L193+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	b	.L186
.L185:
	ldr	r1, .L193+4
	ldr	r0, .L193+8
	bl	fopen
	str	r0, [fp, #-28]
.L186:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L192
	ldr	r1, .L193+12
	ldr	r0, .L193+16
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L193+12
	ldr	r0, .L193+20
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r1, .L193+12
	ldr	r0, .L193+24
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r1, .L193+12
	ldr	r0, .L193+28
	bl	fopen
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L188
.L189:
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	fputc
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	fputc
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	fputc
	ldr	r0, [fp, #-28]
	bl	fgetc
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	fputc
.L188:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L189
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L181
.L190:
	nop
	b	.L181
.L191:
	nop
	b	.L181
.L192:
	nop
.L181:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L194:
	.align	2
.L193:
	.word	.LC33
	.word	.LC13
	.word	.LC34
	.word	.LC10
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	divf3, .-divf3
	.section	.rodata
	.align	2
.LC39:
	.ascii	"-add\000"
	.align	2
.LC40:
	.ascii	"ab\000"
	.text
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L203
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L206
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L204
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L206+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L205
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	bne	.L200
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
.L200:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L201
.L202:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fputc
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L201:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L202
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L195
.L203:
	nop
	b	.L195
.L204:
	nop
	b	.L195
.L205:
	nop
.L195:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L207:
	.align	2
.L206:
	.word	.LC39
	.word	.LC40
	.size	add, .-add
	.section	.rodata
	.align	2
.LC41:
	.ascii	"-fillrom\000"
	.align	2
.LC42:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	fillrom
	.syntax unified
	.arm
	.fpu softvfp
	.type	fillrom, %function
fillrom:
	@ 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, [fp, #-32]
	cmp	r3, #3
	ble	.L216
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L219
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L217
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L219+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L218
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L219+8
	bl	printf
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bne	.L213
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L213:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L214
.L215:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	fputc
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L214:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L215
	ldr	r0, [fp, #-12]
	bl	fclose
	b	.L208
.L216:
	nop
	b	.L208
.L217:
	nop
	b	.L208
.L218:
	nop
.L208:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L220:
	.align	2
.L219:
	.word	.LC41
	.word	.LC40
	.word	.LC42
	.size	fillrom, .-fillrom
	.section	.rodata
	.align	2
.LC43:
	.ascii	"-invertng\000"
	.text
	.align	2
	.global	invertng
	.syntax unified
	.arm
	.fpu softvfp
	.type	invertng, %function
invertng:
	@ 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, [fp, #-32]
	cmp	r3, #2
	ble	.L232
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L236
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L233
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L236+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L234
	ldr	r0, [fp, #-24]
	bl	fgetc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L226
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L221
.L226:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L235
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L228
.L229:
	ldr	r0, [fp, #-24]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
.L228:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L229
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L230
.L231:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L230:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L231
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	free
	b	.L221
.L232:
	nop
	b	.L221
.L233:
	nop
	b	.L221
.L234:
	nop
	b	.L221
.L235:
	nop
.L221:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L237:
	.align	2
.L236:
	.word	.LC43
	.word	.LC13
	.size	invertng, .-invertng
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
