	.file	"885610.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"wb"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	check_usage
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	open_file
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	process_file
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	open_file
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_file
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"Error: "
.LC3:
	.string	"%s\n"
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC4:
	.string	"Invalid usage. Please run like: ./asm <input_filename> <output_filename>"
	.text
	.globl	check_usage
	.type	check_usage, @function
check_usage:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 3
	je	.L8
	mov	esi, 0
	lea	rdi, .LC4[rip]
	call	error
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_usage, .-check_usage
	.section	.rodata
.LC5:
	.string	"Could not open file `%s'."
	.text
	.globl	open_file
	.type	open_file, @function
open_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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	error
.L10:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	open_file, .-open_file
	.globl	file_lines
	.type	file_lines, @function
file_lines:
.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	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L13
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	file_lines, .-file_lines
	.type	instr_lookup, @function
instr_lookup:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, reverse_ops.5[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L19
.L18:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR NUM_INSTRS.4[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L20
	mov	eax, -1
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	instr_lookup, .-instr_lookup
	.section	.rodata
	.type	OP_WIDTH, @object
	.size	OP_WIDTH, 1
OP_WIDTH:
	.byte	4
	.type	OP_LSB, @object
	.size	OP_LSB, 1
OP_LSB:
	.byte	28
	.type	OP_MASK, @object
	.size	OP_MASK, 1
OP_MASK:
	.byte	15
	.type	REG_MASK, @object
	.size	REG_MASK, 1
REG_MASK:
	.byte	7
	.align 4
	.type	VAL_MASK, @object
	.size	VAL_MASK, 4
VAL_MASK:
	.long	33554431
	.text
	.type	three_register, @function
three_register:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -4[rbp], 0
	mov	eax, 15
	and	al, BYTE PTR -20[rbp]
	movzx	edx, al
	mov	eax, 28
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, 7
	movzx	eax, al
	and	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR RA_LSB.3[rip]
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, 7
	movzx	eax, al
	and	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR RB_LSB.2[rip]
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, 7
	movzx	eax, al
	and	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR RC_LSB.1[rip]
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	three_register, .-three_register
	.type	load_val, @function
load_val:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, 15
	movzx	eax, al
	and	eax, 13
	mov	edx, eax
	mov	eax, 28
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, 7
	movzx	eax, al
	and	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR RA_LSB.0[rip]
	movsx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
	mov	eax, 33554431
	and	eax, DWORD PTR -24[rbp]
	or	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	load_val, .-load_val
	.section	.rodata
.LC6:
	.string	" r%d"
	.text
	.type	read_reg, @function
read_reg:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 20
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	read_reg, .-read_reg
	.section	.rodata
.LC7:
	.string	" %u"
	.text
	.type	read_val, @function
read_val:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	read_val, .-read_val
	.section	.rodata
	.align 8
.LC8:
	.string	"Do not know instruction: `%s'."
	.text
	.type	read_instr, @function
read_instr:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	instr_lookup
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cmp	eax, 14
	ja	.L32
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L34[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L34[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L34:
	.long	.L41-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L40-.L34
	.long	.L39-.L34
	.long	.L38-.L34
	.long	.L37-.L34
	.long	.L36-.L34
	.long	.L35-.L34
	.long	.L33-.L34
	.text
.L41:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	error
	jmp	.L42
.L40:
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 7
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L39:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -17[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -16[rbp], al
	movzx	edx, BYTE PTR -16[rbp]
	movzx	eax, BYTE PTR -17[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 8
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -18[rbp], al
	movzx	eax, BYTE PTR -18[rbp]
	mov	ecx, eax
	mov	edx, 0
	mov	esi, 0
	mov	edi, 9
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L37:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -19[rbp], al
	movzx	eax, BYTE PTR -19[rbp]
	mov	ecx, eax
	mov	edx, 0
	mov	esi, 0
	mov	edi, 10
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L36:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -20[rbp], al
	movzx	eax, BYTE PTR -20[rbp]
	mov	ecx, eax
	mov	edx, 0
	mov	esi, 0
	mov	edi, 11
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L35:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -22[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -21[rbp], al
	movzx	edx, BYTE PTR -21[rbp]
	movzx	eax, BYTE PTR -22[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 12
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L33:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -23[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_val
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -23[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	load_val
	mov	DWORD PTR -12[rbp], eax
	jmp	.L42
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -15[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -14[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	read_reg
	mov	BYTE PTR -13[rbp], al
	movzx	ecx, BYTE PTR -13[rbp]
	movzx	edx, BYTE PTR -14[rbp]
	movzx	esi, BYTE PTR -15[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movzx	eax, al
	mov	edi, eax
	call	three_register
	mov	DWORD PTR -12[rbp], eax
	nop
.L42:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	read_instr, .-read_instr
	.section	.rodata
	.align 8
.LC9:
	.string	"Could not allocate memory for file contents."
.LC10:
	.string	"%s"
	.text
	.globl	process_file
	.type	process_file, @function
process_file:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	file_lines
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	eax, eax
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L45
	mov	esi, 0
	lea	rdi, .LC9[rip]
	call	error
.L45:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L46
.L47:
	lea	rdx, -31[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	lea	rdx, -31[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_instr
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -60[rbp], 1
.L46:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jb	.L47
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	process_file, .-process_file
	.globl	write_file
	.type	write_file, @function
write_file:
.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	QWORD PTR -24[rbp], rdi
	mov	rcx, rdx
	mov	rax, rsi
	mov	rdx, rdi
	mov	rdx, rcx
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L51
.L52:
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -12[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fwrite@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -12[rbp], 1
.L51:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jb	.L52
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	write_file, .-write_file
	.data
	.align 32
	.type	reverse_ops.5, @object
	.size	reverse_ops.5, 98
reverse_ops.5:
	.string	"cmov"
	.zero	2
	.string	"sload"
	.zero	1
	.string	"sstore"
	.string	"add"
	.zero	3
	.string	"mult"
	.zero	2
	.string	"div"
	.zero	3
	.string	"nand"
	.zero	2
	.string	"halt"
	.zero	2
	.string	"map"
	.zero	3
	.string	"unmap"
	.zero	1
	.string	"out"
	.zero	3
	.string	"in"
	.zero	4
	.string	"loadp"
	.zero	1
	.string	"loadv"
	.zero	1
	.align 4
	.type	NUM_INSTRS.4, @object
	.size	NUM_INSTRS.4, 4
NUM_INSTRS.4:
	.long	14
	.section	.rodata
	.type	RA_LSB.3, @object
	.size	RA_LSB.3, 1
RA_LSB.3:
	.byte	6
	.type	RB_LSB.2, @object
	.size	RB_LSB.2, 1
RB_LSB.2:
	.byte	3
	.type	RC_LSB.1, @object
	.size	RC_LSB.1, 1
RC_LSB.1:
	.zero	1
	.type	RA_LSB.0, @object
	.size	RA_LSB.0, 1
RA_LSB.0:
	.byte	25
	.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	"885610.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	check_usage
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	mov	r0, r3
	bl	open_file
	str	r0, [fp, #-24]
	sub	r3, fp, #16
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	process_file
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L4+8
	mov	r0, r3
	bl	open_file
	str	r0, [fp, #-20]
	sub	r3, fp, #16
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-20]
	bl	write_file
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Error: \000"
	.align	2
.LC4:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, .L9
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L9+4
	bl	fwrite
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fprintf
	mov	r0, #10
	bl	putchar
	b	.L8
.L7:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L9+8
	mov	r0, r3
	bl	fprintf
.L8:
	mov	r0, #1
	bl	exit
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	error, .-error
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Invalid usage. Please run like: ./asm <input_filena"
	.ascii	"me> <output_filename>\000"
	.text
	.align	2
	.global	check_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_usage, %function
check_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, [fp, #-8]
	cmp	r3, #3
	beq	.L13
	mov	r1, #0
	ldr	r0, .L14
	bl	error
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.size	check_usage, .-check_usage
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Could not open file `%s'.\000"
	.text
	.align	2
	.global	open_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_file, %function
open_file:
	@ 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	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r1, [fp, #-16]
	ldr	r0, .L19
	bl	error
.L17:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.size	open_file, .-open_file
	.align	2
	.global	file_lines
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_lines, %function
file_lines:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L22
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-16]
	bl	rewind
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	file_lines, .-file_lines
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	instr_lookup, %function
instr_lookup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L29:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, .L30
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-8]
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L29
	mvn	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	reverse_ops.5393
	.word	NUM_INSTRS.5394
	.size	instr_lookup, .-instr_lookup
	.section	.rodata
	.type	OP_WIDTH, %object
	.size	OP_WIDTH, 1
OP_WIDTH:
	.byte	4
	.type	OP_LSB, %object
	.size	OP_LSB, 1
OP_LSB:
	.byte	28
	.type	OP_MASK, %object
	.size	OP_MASK, 1
OP_MASK:
	.byte	15
	.type	REG_MASK, %object
	.size	REG_MASK, 1
REG_MASK:
	.byte	7
	.align	2
	.type	VAL_MASK, %object
	.size	VAL_MASK, 4
VAL_MASK:
	.word	33554431
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	three_register, %function
three_register:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r2, #15
	ldrb	r3, [fp, #-13]
	and	r3, r3, r2
	and	r3, r3, #255
	mov	r2, r3
	mov	r3, #28
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-20]
	and	r3, r3, r2
	ldr	r2, .L34
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-24]
	and	r3, r3, r2
	ldr	r2, .L34+4
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-28]
	and	r3, r3, r2
	ldr	r2, .L34+8
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	RA_LSB.5425
	.word	RB_LSB.5426
	.word	RC_LSB.5427
	.size	three_register, .-three_register
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_val, %function
load_val:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #15
	and	r3, r3, #13
	mov	r2, #28
	lsl	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	ldr	r2, .L38
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	mvn	r2, #-33554432
	ldr	r3, [fp, #-20]
	and	r3, r3, r2
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	RA_LSB.5433
	.size	load_val, .-load_val
	.section	.rodata
	.align	2
.LC7:
	.ascii	" r%d\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_reg, %function
read_reg:
	@ 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	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #20
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L43+4
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC8
	.word	.LC7
	.size	read_reg, .-read_reg
	.section	.rodata
	.align	2
.LC9:
	.ascii	" %u\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_val, %function
read_val:
	@ 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	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L48+4
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC10
	.word	.LC9
	.size	read_val, .-read_val
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Do not know instruction: `%s'.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_instr, %function
read_instr:
	@ 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	r0, [fp, #-36]
	bl	instr_lookup
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L51
.L53:
	.word	.L60
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L59
	.word	.L58
	.word	.L57
	.word	.L56
	.word	.L55
	.word	.L54
	.word	.L52
.L60:
	ldr	r1, [fp, #-36]
	ldr	r0, .L63
	bl	error
	b	.L61
.L59:
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, #7
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L58:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-20]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r1, #0
	mov	r0, #8
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L57:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, #0
	mov	r0, #9
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L56:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-23]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, #0
	mov	r0, #10
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L55:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-24]
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, #0
	mov	r0, #11
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L54:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r2, [fp, #-26]	@ zero_extendqisi2
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r1, #0
	mov	r0, #12
	bl	three_register
	str	r0, [fp, #-16]
	b	.L61
.L52:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-27]
	ldr	r0, [fp, #-32]
	bl	read_val
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	load_val
	str	r0, [fp, #-16]
	b	.L61
.L51:
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-19]
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-18]
	ldr	r0, [fp, #-32]
	bl	read_reg
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-12]
	and	r0, r3, #255
	ldrb	r1, [fp, #-19]	@ zero_extendqisi2
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	bl	three_register
	str	r0, [fp, #-16]
	nop
.L61:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC11
	.size	read_instr, .-read_instr
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Could not allocate memory for file contents.\000"
	.align	2
.LC13:
	.ascii	"%s\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_file, %function
process_file:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-52]
	bl	file_lines
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L66
	mov	r1, #0
	ldr	r0, .L71+4
	bl	error
.L66:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L67
.L68:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L71+8
	ldr	r0, [fp, #-52]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	read_instr
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L67:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bcc	.L68
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	ldr	r0, [fp, #-48]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	process_file, .-process_file
	.align	2
	.global	write_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_file, %function
write_file:
	@ 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, #-16]
	sub	r3, fp, #24
	stm	r3, {r1, r2}
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L74
.L75:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #3
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-8]
	add	r0, r3, #2
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L74:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L75
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_file, .-write_file
	.data
	.align	2
	.type	reverse_ops.5393, %object
	.size	reverse_ops.5393, 98
reverse_ops.5393:
	.ascii	"cmov\000"
	.space	2
	.ascii	"sload\000"
	.space	1
	.ascii	"sstore\000"
	.ascii	"add\000"
	.space	3
	.ascii	"mult\000"
	.space	2
	.ascii	"div\000"
	.space	3
	.ascii	"nand\000"
	.space	2
	.ascii	"halt\000"
	.space	2
	.ascii	"map\000"
	.space	3
	.ascii	"unmap\000"
	.space	1
	.ascii	"out\000"
	.space	3
	.ascii	"in\000"
	.space	4
	.ascii	"loadp\000"
	.space	1
	.ascii	"loadv\000"
	.space	1
	.align	2
	.type	NUM_INSTRS.5394, %object
	.size	NUM_INSTRS.5394, 4
NUM_INSTRS.5394:
	.word	14
	.section	.rodata
	.type	RA_LSB.5425, %object
	.size	RA_LSB.5425, 1
RA_LSB.5425:
	.byte	6
	.type	RB_LSB.5426, %object
	.size	RB_LSB.5426, 1
RB_LSB.5426:
	.byte	3
	.type	RC_LSB.5427, %object
	.size	RC_LSB.5427, 1
RC_LSB.5427:
	.space	1
	.type	RA_LSB.5433, %object
	.size	RA_LSB.5433, 1
RA_LSB.5433:
	.byte	25
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
