	.file	"108256.c"
	.intel_syntax noprefix
	.text
	.local	registers
	.comm	registers,16,16
	.globl	is_value
	.type	is_value, @function
is_value:
.LFB6:
	.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	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	not	eax
	shr	ax, 15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_value, .-is_value
	.globl	is_register
	.type	is_register, @function
is_register:
.LFB7:
	.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	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	test	ax, ax
	jns	.L4
	cmp	WORD PTR -4[rbp], -32761
	ja	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_register, .-is_register
	.globl	get_register_index
	.type	get_register_index, @function
get_register_index:
.LFB8:
	.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	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	neg	eax
	and	eax, 7
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_register_index, .-get_register_index
	.globl	num_arguments
	.type	num_arguments, @function
num_arguments:
.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, 80
	mov	eax, edi
	mov	WORD PTR -68[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -64[rbp], 0
	mov	WORD PTR -62[rbp], 2
	mov	WORD PTR -60[rbp], 1
	mov	WORD PTR -58[rbp], 1
	mov	WORD PTR -56[rbp], 3
	mov	WORD PTR -54[rbp], 3
	mov	WORD PTR -52[rbp], 1
	mov	WORD PTR -50[rbp], 2
	mov	WORD PTR -48[rbp], 2
	mov	WORD PTR -46[rbp], 3
	mov	WORD PTR -44[rbp], 3
	mov	WORD PTR -42[rbp], 3
	mov	WORD PTR -40[rbp], 3
	mov	WORD PTR -38[rbp], 3
	mov	WORD PTR -36[rbp], 2
	mov	WORD PTR -34[rbp], 2
	mov	WORD PTR -32[rbp], 2
	mov	WORD PTR -30[rbp], 1
	mov	WORD PTR -28[rbp], 0
	mov	WORD PTR -26[rbp], 1
	mov	WORD PTR -24[rbp], 1
	mov	WORD PTR -22[rbp], 0
	movzx	eax, WORD PTR -68[rbp]
	cdqe
	movzx	eax, WORD PTR -64[rbp+rax*2]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	num_arguments, .-num_arguments
	.globl	get_operand_value
	.type	get_operand_value, @function
get_operand_value:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	is_register
	test	al, al
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, WORD PTR [rax]
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_operand_value, .-get_operand_value
	.globl	set_operand
	.type	set_operand, @function
set_operand:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -12[rbp]
	mov	WORD PTR [rax], dx
	movzx	eax, WORD PTR -12[rbp]
	mov	edi, eax
	call	is_register
	test	al, al
	je	.L17
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	get_register_index
	movzx	eax, ax
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, registers[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	set_operand, .-set_operand
	.globl	get_instruction
	.type	get_instruction, @function
get_instruction:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	WORD PTR -12[rbp], ax
	cmp	QWORD PTR -24[rbp], 0
	je	.L25
	movzx	eax, WORD PTR -12[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	edx, WORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	num_arguments
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	cmp	eax, 3
	je	.L21
	cmp	eax, 3
	jg	.L18
	cmp	eax, 2
	je	.L22
	cmp	eax, 2
	jg	.L18
	test	eax, eax
	je	.L26
	cmp	eax, 1
	je	.L24
	jmp	.L18
.L21:
	movzx	eax, WORD PTR -12[rbp]
	add	rax, 3
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 40
	mov	esi, eax
	mov	rdi, rdx
	call	set_operand
.L22:
	movzx	eax, WORD PTR -12[rbp]
	add	rax, 2
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 24
	mov	esi, eax
	mov	rdi, rdx
	call	set_operand
.L24:
	movzx	eax, WORD PTR -12[rbp]
	add	rax, 1
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 8
	mov	esi, eax
	mov	rdi, rdx
	call	set_operand
	jmp	.L18
.L25:
	nop
	jmp	.L18
.L26:
	nop
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_instruction, .-get_instruction
	.section	.rodata
.LC0:
	.string	"Invalid register: %d\n"
	.text
	.globl	operand_is_register
	.type	operand_is_register, @function
operand_is_register:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	is_register
	test	al, al
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L29
.L28:
	mov	eax, 1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	operand_is_register, .-operand_is_register
	.section	.rodata
.LC1:
	.string	"[%d]"
.LC2:
	.string	"0x%04X"
	.text
	.globl	print_operand
	.type	print_operand, @function
print_operand:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	is_register
	test	al, al
	je	.L31
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	get_register_index
	movzx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L33
.L31:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	print_operand, .-print_operand
	.section	.rodata
.LC3:
	.string	"HALT"
.LC4:
	.string	"SET"
.LC5:
	.string	"PUSH"
.LC6:
	.string	"POP"
.LC7:
	.string	"EQ"
.LC8:
	.string	"GT"
.LC9:
	.string	"JMP"
.LC10:
	.string	"JT"
.LC11:
	.string	"JF"
.LC12:
	.string	"ADD"
.LC13:
	.string	"MULT"
.LC14:
	.string	"MOD"
.LC15:
	.string	"AND"
.LC16:
	.string	"OR"
.LC17:
	.string	"NOT"
.LC18:
	.string	"RMEM"
.LC19:
	.string	"WMEM"
.LC20:
	.string	"CALL"
.LC21:
	.string	"RET"
.LC22:
	.string	"OUT"
.LC23:
	.string	"IN"
.LC24:
	.string	"NOOP"
	.align 8
.LC25:
	.string	"Invalid memory for instruction"
.LC26:
	.string	"  "
.LC27:
	.string	"0x%04X: %s "
	.text
	.globl	print_opcode
	.type	print_opcode, @function
print_opcode:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -220[rbp], dx
	mov	WORD PTR -224[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -184[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -152[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC19[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC20[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC21[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC22[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L35
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L34
.L35:
	mov	WORD PTR -194[rbp], 0
	jmp	.L37
.L38:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	add	WORD PTR -194[rbp], 1
.L37:
	movzx	eax, WORD PTR -194[rbp]
	cmp	ax, WORD PTR -224[rbp]
	jb	.L38
	mov	rax, QWORD PTR -216[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cdqe
	mov	rcx, QWORD PTR -192[rbp+rax*8]
	movzx	edx, WORD PTR -220[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	cmp	eax, 3
	je	.L39
	cmp	eax, 3
	jg	.L40
	cmp	eax, 2
	je	.L41
	cmp	eax, 2
	jg	.L40
	test	eax, eax
	je	.L45
	cmp	eax, 1
	jne	.L40
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 8
	mov	rdi, rax
	call	print_operand
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 8
	mov	rdi, rax
	call	print_operand
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 24
	mov	rdi, rax
	call	print_operand
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 8
	mov	rdi, rax
	call	print_operand
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 24
	mov	rdi, rax
	call	print_operand
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 40
	mov	rdi, rax
	call	print_operand
	jmp	.L40
.L45:
	nop
.L40:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L34:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_opcode, .-print_opcode
	.globl	is_stack_empty
	.type	is_stack_empty, @function
is_stack_empty:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L47
	mov	eax, 1
	jmp	.L48
.L47:
	mov	eax, 0
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	is_stack_empty, .-is_stack_empty
	.section	.rodata
.LC28:
	.string	"Empty stack"
	.text
	.globl	pop_stack
	.type	pop_stack, @function
pop_stack:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L50
	cmp	QWORD PTR -24[rbp], 0
	jne	.L50
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 8[rax]
	mov	WORD PTR -10[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	movzx	eax, WORD PTR -10[rbp]
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	pop_stack, .-pop_stack
	.globl	push_stack
	.type	push_stack, @function
push_stack:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -28[rbp], ax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -28[rbp]
	mov	WORD PTR 8[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	push_stack, .-push_stack
	.section	.rodata
.LC29:
	.string	"rb"
	.align 8
.LC30:
	.string	"Supplied program size too large, %ld bytes\n"
.LC31:
	.string	"Odd filesize"
	.text
	.globl	load_program
	.type	load_program, @function
load_program:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	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	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rewind@PLT
	cmp	QWORD PTR -8[rbp], 65534
	jle	.L54
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L55
.L54:
	mov	rax, QWORD PTR -8[rbp]
	shr	ax
	mov	WORD PTR -20[rbp], ax
	movzx	edx, WORD PTR -20[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	mov	WORD PTR -18[rbp], ax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	movzx	eax, WORD PTR -18[rbp]
	cmp	rdx, rax
	je	.L56
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L55
.L56:
	movzx	eax, WORD PTR -18[rbp]
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	load_program, .-load_program
	.section	.rodata
.LC32:
	.string	"STRING: %s\n"
	.text
	.globl	disassemble
	.type	disassemble, @function
disassemble:
.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, 1136
	mov	QWORD PTR -1128[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -1132[rbp], dx
	mov	WORD PTR -1136[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, WORD PTR -1132[rbp]
	mov	WORD PTR -1108[rbp], ax
	mov	BYTE PTR -1109[rbp], 0
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	WORD PTR -1106[rbp], 0
	jmp	.L58
.L63:
	movzx	ecx, WORD PTR -1108[rbp]
	lea	rdx, -1104[rbp]
	mov	rax, QWORD PTR -1128[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_instruction
	movzx	eax, WORD PTR -1104[rbp]
	cmp	ax, 19
	jne	.L59
	mov	BYTE PTR -1109[rbp], 1
	movzx	edx, WORD PTR -1096[rbp]
	movzx	eax, WORD PTR -1106[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], dl
	add	WORD PTR -1106[rbp], 1
	jmp	.L60
.L59:
	cmp	BYTE PTR -1109[rbp], 1
	jne	.L61
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1106[rbp], 0
.L61:
	mov	BYTE PTR -1109[rbp], 0
.L60:
	movzx	ecx, WORD PTR -1108[rbp]
	lea	rax, -1104[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	print_opcode
	movzx	edx, WORD PTR -1102[rbp]
	movzx	eax, WORD PTR -1108[rbp]
	add	eax, edx
	add	eax, 1
	mov	WORD PTR -1108[rbp], ax
.L58:
	cmp	WORD PTR -1108[rbp], 32766
	ja	.L65
	movzx	eax, WORD PTR -1108[rbp]
	movzx	ecx, WORD PTR -1132[rbp]
	movzx	edx, WORD PTR -1136[rbp]
	add	edx, ecx
	cmp	eax, edx
	jl	.L63
.L65:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	disassemble, .-disassemble
	.section	.rodata
.LC33:
	.string	"Invalid program"
.LC34:
	.string	"UNKNOWN OPCODE"
	.text
	.globl	virtual_machine
	.type	virtual_machine, @function
virtual_machine:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -65656[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -65660[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -65656[rbp]
	lea	rax, -65568[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	load_program
	mov	WORD PTR -65642[rbp], ax
	cmp	WORD PTR -65642[rbp], 0
	jne	.L67
	lea	rdi, .LC33[rip]
	call	puts@PLT
	jmp	.L66
.L67:
	mov	WORD PTR -65646[rbp], 0
	mov	BYTE PTR -65647[rbp], 0
	mov	QWORD PTR -65640[rbp], 0
	mov	WORD PTR -65644[rbp], 0
	jmp	.L69
.L111:
	movzx	ecx, WORD PTR -65644[rbp]
	lea	rdx, -65632[rbp]
	lea	rax, -65568[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_instruction
	cmp	BYTE PTR -65660[rbp], 0
	je	.L70
	movzx	edx, WORD PTR -65646[rbp]
	movzx	ecx, WORD PTR -65644[rbp]
	lea	rax, -65632[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_opcode
.L70:
	movzx	edx, WORD PTR -65630[rbp]
	movzx	eax, WORD PTR -65644[rbp]
	add	eax, edx
	add	eax, 1
	mov	WORD PTR -65644[rbp], ax
	movzx	eax, WORD PTR -65632[rbp]
	movzx	eax, ax
	cmp	eax, 21
	ja	.L71
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L73[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L73[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L73:
	.long	.L94-.L73
	.long	.L93-.L73
	.long	.L92-.L73
	.long	.L91-.L73
	.long	.L90-.L73
	.long	.L89-.L73
	.long	.L88-.L73
	.long	.L87-.L73
	.long	.L86-.L73
	.long	.L85-.L73
	.long	.L84-.L73
	.long	.L83-.L73
	.long	.L82-.L73
	.long	.L81-.L73
	.long	.L80-.L73
	.long	.L79-.L73
	.long	.L78-.L73
	.long	.L77-.L73
	.long	.L76-.L73
	.long	.L75-.L73
	.long	.L74-.L73
	.long	.L114-.L73
	.text
.L94:
	mov	BYTE PTR -65647[rbp], 1
	jmp	.L69
.L93:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L115
	mov	rbx, QWORD PTR -65616[rbp]
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	WORD PTR [rbx], ax
	jmp	.L69
.L92:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	movzx	edx, ax
	lea	rax, -65640[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	push_stack
	jmp	.L69
.L91:
	mov	rbx, QWORD PTR -65616[rbp]
	lea	rax, -65640[rbp]
	mov	rdi, rax
	call	pop_stack
	mov	WORD PTR [rbx], ax
	jmp	.L69
.L90:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L116
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	cmp	bx, ax
	sete	dl
	mov	rax, QWORD PTR -65616[rbp]
	movzx	edx, dl
	mov	WORD PTR [rax], dx
	jmp	.L69
.L89:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L117
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	cmp	bx, ax
	seta	dl
	mov	rax, QWORD PTR -65616[rbp]
	movzx	edx, dl
	mov	WORD PTR [rax], dx
	jmp	.L69
.L88:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	mov	WORD PTR -65644[rbp], ax
	jmp	.L69
.L87:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	test	ax, ax
	je	.L118
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	WORD PTR -65644[rbp], ax
	jmp	.L118
.L86:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	test	ax, ax
	jne	.L119
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	WORD PTR -65644[rbp], ax
	jmp	.L119
.L85:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L120
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -65616[rbp]
	and	dx, 32767
	mov	WORD PTR [rax], dx
	jmp	.L69
.L84:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L121
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	imul	ebx, eax
	mov	edx, ebx
	mov	rax, QWORD PTR -65616[rbp]
	and	dx, 32767
	mov	WORD PTR [rax], dx
	jmp	.L69
.L83:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L122
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	mov	esi, eax
	mov	rcx, QWORD PTR -65616[rbp]
	mov	eax, ebx
	mov	edx, 0
	div	si
	mov	esi, edx
	mov	eax, esi
	mov	WORD PTR [rcx], ax
	jmp	.L69
.L82:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L123
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	mov	edx, eax
	mov	rax, QWORD PTR -65616[rbp]
	and	edx, ebx
	mov	WORD PTR [rax], dx
	jmp	.L69
.L81:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L124
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	ebx, eax
	lea	rax, -65632[rbp]
	add	rax, 40
	mov	rdi, rax
	call	get_operand_value
	mov	edx, eax
	mov	rax, QWORD PTR -65616[rbp]
	or	edx, ebx
	mov	WORD PTR [rax], dx
	jmp	.L69
.L80:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	operand_is_register
	test	al, al
	je	.L125
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	mov	edx, eax
	mov	rax, QWORD PTR -65616[rbp]
	xor	dx, 32767
	mov	WORD PTR [rax], dx
	jmp	.L69
.L79:
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	movzx	edx, ax
	mov	rax, QWORD PTR -65616[rbp]
	movsx	rdx, edx
	movzx	edx, WORD PTR -65568[rbp+rdx*2]
	mov	WORD PTR [rax], dx
	jmp	.L69
.L78:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	movzx	ebx, ax
	lea	rax, -65632[rbp]
	add	rax, 24
	mov	rdi, rax
	call	get_operand_value
	movsx	rdx, ebx
	mov	WORD PTR -65568[rbp+rdx*2], ax
	jmp	.L69
.L77:
	add	WORD PTR -65646[rbp], 1
	movzx	edx, WORD PTR -65644[rbp]
	lea	rax, -65640[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	push_stack
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	mov	WORD PTR -65644[rbp], ax
	jmp	.L69
.L76:
	sub	WORD PTR -65646[rbp], 1
	mov	rax, QWORD PTR -65640[rbp]
	mov	rdi, rax
	call	is_stack_empty
	test	al, al
	je	.L108
	mov	BYTE PTR -65647[rbp], 1
	jmp	.L69
.L108:
	lea	rax, -65640[rbp]
	mov	rdi, rax
	call	pop_stack
	mov	WORD PTR -65644[rbp], ax
	jmp	.L69
.L75:
	lea	rax, -65632[rbp]
	add	rax, 8
	mov	rdi, rax
	call	get_operand_value
	movzx	eax, ax
	mov	edi, eax
	call	putchar@PLT
	jmp	.L69
.L74:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -65616[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L69
.L71:
	lea	rdi, .LC34[rip]
	call	puts@PLT
	movzx	edx, WORD PTR -65646[rbp]
	movzx	ecx, WORD PTR -65644[rbp]
	lea	rax, -65632[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_opcode
	jmp	.L66
.L114:
	nop
	jmp	.L69
.L118:
	nop
	jmp	.L69
.L119:
	nop
.L69:
	cmp	BYTE PTR -65647[rbp], 0
	je	.L111
	jmp	.L66
.L115:
	nop
	jmp	.L66
.L116:
	nop
	jmp	.L66
.L117:
	nop
	jmp	.L66
.L120:
	nop
	jmp	.L66
.L121:
	nop
	jmp	.L66
.L122:
	nop
	jmp	.L66
.L123:
	nop
	jmp	.L66
.L124:
	nop
	jmp	.L66
.L125:
	nop
.L66:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L113
	call	__stack_chk_fail@PLT
.L113:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	virtual_machine, .-virtual_machine
	.section	.rodata
.LC35:
	.string	"No program supplied"
	.align 8
.LC36:
	.string	"Starting virtual machine with %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -273[rbp], 0
	cmp	DWORD PTR -292[rbp], 1
	jg	.L127
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L130
.L127:
	cmp	DWORD PTR -292[rbp], 2
	jle	.L129
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	BYTE PTR -273[rbp], al
.L129:
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -273[rbp]
	lea	rax, -272[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	virtual_machine
	mov	eax, 0
.L130:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L131
	call	__stack_chk_fail@PLT
.L131:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"108256.c"
	.section	.rodata
	.align	2
.LC1:
	.ascii	"HALT\000"
	.align	2
.LC2:
	.ascii	"SET\000"
	.align	2
.LC3:
	.ascii	"PUSH\000"
	.align	2
.LC4:
	.ascii	"POP\000"
	.align	2
.LC5:
	.ascii	"EQ\000"
	.align	2
.LC6:
	.ascii	"GT\000"
	.align	2
.LC7:
	.ascii	"JMP\000"
	.align	2
.LC8:
	.ascii	"JT\000"
	.align	2
.LC9:
	.ascii	"JF\000"
	.align	2
.LC10:
	.ascii	"ADD\000"
	.align	2
.LC11:
	.ascii	"MULT\000"
	.align	2
.LC12:
	.ascii	"MOD\000"
	.align	2
.LC13:
	.ascii	"AND\000"
	.align	2
.LC14:
	.ascii	"OR\000"
	.align	2
.LC15:
	.ascii	"NOT\000"
	.align	2
.LC16:
	.ascii	"RMEM\000"
	.align	2
.LC17:
	.ascii	"WMEM\000"
	.align	2
.LC18:
	.ascii	"CALL\000"
	.align	2
.LC19:
	.ascii	"RET\000"
	.align	2
.LC20:
	.ascii	"OUT\000"
	.align	2
.LC21:
	.ascii	"IN\000"
	.align	2
.LC22:
	.ascii	"NOOP\000"
	.text
	.local	registers
	.comm	registers,16,4
	.align	2
	.global	is_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_value, %function
is_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsr	r3, r3, #15
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_value, .-is_value
	.align	2
	.global	is_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_register, %function
is_register:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	cmp	r3, #0
	bge	.L4
	ldrh	r3, [fp, #-6]
	ldr	r2, .L7
	cmp	r3, r2
	bhi	.L4
	mov	r3, #1
	b	.L5
.L4:
	mov	r3, #0
.L5:
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	32775
	.size	is_register, .-is_register
	.align	2
	.global	get_register_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_register_index, %function
get_register_index:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #7
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_register_index, .-get_register_index
	.section	.rodata
	.align	2
.LC0:
	.short	0
	.short	2
	.short	1
	.short	1
	.short	3
	.short	3
	.short	1
	.short	2
	.short	2
	.short	3
	.short	3
	.short	3
	.short	3
	.short	3
	.short	2
	.short	2
	.short	2
	.short	1
	.short	0
	.short	1
	.short	1
	.short	0
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	num_arguments
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_arguments, %function
num_arguments:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	mov	r3, r0
	strh	r3, [fp, #-54]	@ movhi
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	sub	ip, fp, #52
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldrh	r3, [fp, #-54]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	ldrh	r3, [r3]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC24
	.word	.LC0
	.size	num_arguments, .-num_arguments
	.align	2
	.global	get_operand_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_operand_value, %function
get_operand_value:
	@ 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]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldrh	r3, [r3]
	b	.L18
.L17:
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_operand_value, .-get_operand_value
	.align	2
	.global	set_operand
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_operand, %function
set_operand:
	@ 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]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-10]	@ movhi
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-10]
	mov	r0, r3
	bl	is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	get_register_index
	mov	r3, r0
	lsl	r3, r3, #1
	ldr	r2, .L22
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	registers
	.size	set_operand, .-set_operand
	.align	2
	.global	get_instruction
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_instruction, %function
get_instruction:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L32
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrh	r2, [r3]
	ldr	r3, [fp, #-16]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	num_arguments
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #2]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L28:
	.word	.L24
	.word	.L30
	.word	.L29
	.word	.L27
.L27:
	ldr	r3, [fp, #-16]
	add	r0, r3, #20
	ldrh	r3, [fp, #-10]
	add	r3, r3, #3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	bl	set_operand
.L29:
	ldr	r3, [fp, #-16]
	add	r0, r3, #12
	ldrh	r3, [fp, #-10]
	add	r3, r3, #2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	bl	set_operand
.L30:
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	ldrh	r3, [fp, #-10]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	bl	set_operand
	b	.L24
.L32:
	nop
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_instruction, .-get_instruction
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Invalid register: %d\012\000"
	.text
	.align	2
	.global	operand_is_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	operand_is_register, %function
operand_is_register:
	@ 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]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	is_register
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36
	bl	printf
	mov	r3, #0
	b	.L35
.L34:
	mov	r3, #1
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC25
	.size	operand_is_register, .-operand_is_register
	.section	.rodata
	.align	2
.LC26:
	.ascii	"[%d]\000"
	.align	2
.LC27:
	.ascii	"0x%04X\000"
	.text
	.align	2
	.global	print_operand
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_operand, %function
print_operand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L42
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	get_register_index
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+4
	mov	r0, r4
	bl	fprintf
	b	.L41
.L39:
	ldr	r3, .L42
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r1, .L42+8
	bl	fprintf
.L41:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	stderr
	.word	.LC26
	.word	.LC27
	.size	print_operand, .-print_operand
	.section	.rodata
	.align	2
.LC29:
	.ascii	"Invalid memory for instruction\000"
	.align	2
.LC30:
	.ascii	"  \000"
	.align	2
.LC31:
	.ascii	"0x%04X: %s \000"
	.align	2
.LC28:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_opcode
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_opcode, %function
print_opcode:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	mov	r3, r1
	strh	r3, [fp, #-106]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-108]	@ movhi
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L56+4
	sub	r3, fp, #96
	mov	r1, r2
	mov	r2, #88
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L45
	ldr	r0, .L56+8
	bl	puts
	b	.L44
.L45:
	mov	r3, #0
	strh	r3, [fp, #-98]	@ movhi
	b	.L47
.L48:
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L56+16
	bl	fwrite
	ldrh	r3, [fp, #-98]	@ movhi
	add	r3, r3, #1
	strh	r3, [fp, #-98]	@ movhi
.L47:
	ldrh	r2, [fp, #-98]
	ldrh	r3, [fp, #-108]
	cmp	r2, r3
	bcc	.L48
	ldr	r3, .L56+12
	ldr	r0, [r3]
	ldrh	r2, [fp, #-106]
	ldr	r3, [fp, #-104]
	ldrh	r3, [r3]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-92]
	ldr	r1, .L56+20
	bl	fprintf
	ldr	r3, [fp, #-104]
	ldrh	r3, [r3, #2]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L49
.L51:
	.word	.L49
	.word	.L53
	.word	.L52
	.word	.L50
.L53:
	ldr	r3, [fp, #-104]
	add	r3, r3, #4
	mov	r0, r3
	bl	print_operand
	b	.L49
.L52:
	ldr	r3, [fp, #-104]
	add	r3, r3, #4
	mov	r0, r3
	bl	print_operand
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
	ldr	r3, [fp, #-104]
	add	r3, r3, #12
	mov	r0, r3
	bl	print_operand
	b	.L49
.L50:
	ldr	r3, [fp, #-104]
	add	r3, r3, #4
	mov	r0, r3
	bl	print_operand
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
	ldr	r3, [fp, #-104]
	add	r3, r3, #12
	mov	r0, r3
	bl	print_operand
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
	ldr	r3, [fp, #-104]
	add	r3, r3, #20
	mov	r0, r3
	bl	print_operand
	nop
.L49:
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L44:
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC32
	.word	.LC28
	.word	.LC29
	.word	stderr
	.word	.LC30
	.word	.LC31
	.size	print_opcode, .-print_opcode
	.align	2
	.global	is_stack_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_stack_empty, %function
is_stack_empty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L59
	mov	r3, #1
	b	.L60
.L59:
	mov	r3, #0
.L60:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_stack_empty, .-is_stack_empty
	.section	.rodata
	.align	2
.LC33:
	.ascii	"Empty stack\000"
	.text
	.align	2
	.global	pop_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_stack, %function
pop_stack:
	@ 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, [fp, #-16]
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L62
	ldr	r0, .L64
	bl	puts
	ldr	r3, .L64+4
	b	.L63
.L62:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrh	r3, [r3, #4]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldrh	r3, [fp, #-10]
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC33
	.word	65535
	.size	pop_stack, .-pop_stack
	.align	2
	.global	push_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_stack, %function
push_stack:
	@ 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, r1
	strh	r3, [fp, #-18]	@ movhi
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-18]	@ movhi
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	push_stack, .-push_stack
	.section	.rodata
	.align	2
.LC34:
	.ascii	"rb\000"
	.align	2
.LC35:
	.ascii	"Supplied program size too large, %ld bytes\012\000"
	.align	2
.LC36:
	.ascii	"Odd filesize\000"
	.text
	.align	2
	.global	load_program
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_program, %function
load_program:
	@ 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	r1, .L71
	ldr	r0, [fp, #-28]
	bl	fopen
	str	r0, [fp, #-12]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	rewind
	ldr	r3, [fp, #-8]
	ldr	r2, .L71+4
	cmp	r3, r2
	ble	.L68
	ldr	r1, [fp, #-8]
	ldr	r0, .L71+8
	bl	printf
	mov	r3, #0
	b	.L69
.L68:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsr	r3, r3, #1
	strh	r3, [fp, #-16]	@ movhi
	ldrh	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldrh	r3, [fp, #-14]
	cmp	r2, r3
	beq	.L70
	ldr	r0, .L71+12
	bl	puts
	mov	r3, #0
	b	.L69
.L70:
	ldrh	r3, [fp, #-14]
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC34
	.word	65534
	.word	.LC35
	.word	.LC36
	.size	load_program, .-load_program
	.section	.rodata
	.align	2
.LC37:
	.ascii	"STRING: %s\012\000"
	.align	2
.LC38:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	disassemble
	.syntax unified
	.arm
	.fpu softvfp
	.type	disassemble, %function
disassemble:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	mov	r0, r1
	mov	r1, r2
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #14
	mov	r2, r0	@ movhi
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #1072
	mov	r2, r1	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	sub	r2, fp, #4
	sub	r2, r2, #1056
	sub	r2, r2, #14
	ldrh	r2, [r2]	@ movhi
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-1065]
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L74
.L79:
	sub	r2, fp, #1056
	sub	r2, r2, #4
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	get_instruction
	sub	r3, fp, #4
	sub	r3, r3, #1056
	ldrh	r3, [r3]
	cmp	r3, #19
	bne	.L75
	mov	r3, #1
	strb	r3, [fp, #-1065]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	ldrh	r2, [r3, #4]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #2
	ldrh	r3, [r3]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-1028]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #2
	sub	r2, fp, #4
	sub	r2, r2, #1056
	sub	r2, r2, #2
	ldrh	r2, [r2]	@ movhi
	add	r2, r2, #1
	strh	r2, [r3]	@ movhi
	b	.L76
.L75:
	ldrb	r3, [fp, #-1065]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L77
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L82+4
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L77:
	mov	r3, #0
	strb	r3, [fp, #-1065]
.L76:
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	ldrh	r1, [r3]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r2, #0
	mov	r0, r3
	bl	print_opcode
	sub	r3, fp, #4
	sub	r3, r3, #1056
	ldrh	r2, [r3, #2]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	ldrh	r3, [r3]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	add	r2, r2, #1
	strh	r2, [r3]	@ movhi
.L74:
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	ldrh	r3, [r3]
	ldr	r2, .L82+8
	cmp	r3, r2
	bcs	.L81
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	ldrh	r2, [r3]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #14
	ldrh	r1, [r3]
	sub	r3, fp, #4
	sub	r3, r3, #1072
	ldrh	r3, [r3]
	add	r3, r1, r3
	cmp	r2, r3
	blt	.L79
.L81:
	nop
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC38
	.word	.LC37
	.word	32767
	.size	disassemble, .-disassemble
	.section	.rodata
	.align	2
.LC39:
	.ascii	"Invalid program\000"
	.global	__aeabi_uidivmod
	.align	2
.LC40:
	.ascii	"UNKNOWN OPCODE\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	virtual_machine
	.syntax unified
	.arm
	.fpu softvfp
	.type	virtual_machine, %function
virtual_machine:
	@ args = 0, pretend = 0, frame = 65592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #65536
	sub	sp, sp, #56
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-52]
	mov	r2, r1
	sub	r3, fp, #65536
	sub	r3, r3, #12
	strb	r2, [r3, #-53]
	ldr	r3, .L144
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-52]
	mov	r0, r3
	bl	load_program
	mov	r3, r0
	strh	r3, [r4, #-38]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-38]
	cmp	r3, #0
	bne	.L85
	ldr	r0, .L144+4
	bl	puts
	b	.L84
.L85:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-42]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-43]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-40]	@ movhi
	b	.L87
.L129:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r1, [r3, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	get_instruction
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-53]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L88
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r2, [r3, #-42]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r1, [r3, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r0, r3
	bl	print_opcode
.L88:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r2, [r3, #-30]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-40]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #65536
	sub	r2, r2, #12
	add	r3, r3, #1
	strh	r3, [r2, #-40]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-32]
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L89
.L91:
	.word	.L112
	.word	.L111
	.word	.L110
	.word	.L109
	.word	.L108
	.word	.L107
	.word	.L106
	.word	.L105
	.word	.L104
	.word	.L103
	.word	.L102
	.word	.L101
	.word	.L100
	.word	.L99
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L95
	.word	.L94
	.word	.L93
	.word	.L92
	.word	.L132
.L112:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-43]
	b	.L87
.L111:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r4, [r3, #-24]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	b	.L87
.L110:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r2
	mov	r0, r3
	bl	push_stack
	b	.L87
.L109:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r4, [r3, #-24]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r0, r3
	bl	pop_stack
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	b	.L87
.L108:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L134
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L87
.L107:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L135
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	cmp	r4, r3
	movhi	r3, #1
	movls	r3, #0
	and	r2, r3, #255
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L87
.L106:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	strh	r3, [r4, #-40]	@ movhi
	b	.L87
.L105:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	cmp	r3, #0
	beq	.L136
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	strh	r3, [r4, #-40]	@ movhi
	b	.L136
.L104:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	cmp	r3, #0
	bne	.L137
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	strh	r3, [r4, #-40]	@ movhi
	b	.L137
.L103:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L138
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	add	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r2]	@ movhi
	b	.L87
.L102:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L139
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mul	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r2]	@ movhi
	b	.L87
.L101:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L140
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r5, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r4, [r3, #-24]
	mov	r1, r2
	mov	r0, r5
	bl	__aeabi_uidivmod
	mov	r3, r1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4]	@ movhi
	b	.L87
.L100:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L141
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	and	r2, r2, r4
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L87
.L99:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L142
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #20
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	orr	r2, r4, r2
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L87
.L98:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	operand_is_register
	mov	r3, r0
	cmp	r3, #0
	beq	.L143
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	eor	r3, r3, #32512
	eor	r3, r3, #255
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r2]	@ movhi
	b	.L87
.L97:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r1, fp, #65536
	sub	r1, r1, #12
	lsl	r2, r2, #1
	add	r2, r1, r2
	sub	r2, r2, #4
	ldrh	r2, [r2]
	strh	r2, [r3]	@ movhi
	b	.L87
.L96:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #12
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #1
	add	r3, r1, r3
	sub	r3, r3, #4
	strh	r2, [r3]	@ movhi
	b	.L87
.L95:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-42]	@ movhi
	add	r3, r3, #1
	strh	r3, [r2, #-42]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r2, [r3, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r2
	mov	r0, r3
	bl	push_stack
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	strh	r3, [r4, #-40]	@ movhi
	b	.L87
.L94:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-42]	@ movhi
	sub	r3, r3, #1
	strh	r3, [r2, #-42]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	mov	r0, r3
	bl	is_stack_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-43]
	b	.L87
.L126:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r0, r3
	bl	pop_stack
	mov	r3, r0
	strh	r3, [r4, #-40]	@ movhi
	b	.L87
.L93:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	get_operand_value
	mov	r3, r0
	mov	r0, r3
	bl	putchar
	b	.L87
.L92:
	ldr	r3, .L144+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r2, r0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L87
.L89:
	ldr	r0, .L144+12
	bl	puts
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r2, [r3, #-42]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r1, [r3, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r0, r3
	bl	print_opcode
	b	.L84
.L132:
	nop
	b	.L87
.L136:
	nop
	b	.L87
.L137:
	nop
.L87:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-43]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L129
	b	.L84
.L133:
	nop
	b	.L84
.L134:
	nop
	b	.L84
.L135:
	nop
	b	.L84
.L138:
	nop
	b	.L84
.L139:
	nop
	b	.L84
.L140:
	nop
	b	.L84
.L141:
	nop
	b	.L84
.L142:
	nop
	b	.L84
.L143:
	nop
.L84:
	ldr	r3, .L144
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L131
	bl	__stack_chk_fail
.L131:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L145:
	.align	2
.L144:
	.word	.LC41
	.word	.LC39
	.word	stdin
	.word	.LC40
	.size	virtual_machine, .-virtual_machine
	.section	.rodata
	.align	2
.LC42:
	.ascii	"No program supplied\000"
	.align	2
.LC43:
	.ascii	"Starting virtual machine with %s\012\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L152
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-265]
	ldr	r3, [fp, #-272]
	cmp	r3, #1
	bgt	.L147
	ldr	r0, .L152+4
	bl	puts
	mov	r3, #1
	b	.L150
.L147:
	ldr	r3, [fp, #-272]
	cmp	r3, #2
	ble	.L149
	ldr	r3, [fp, #-276]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	strb	r3, [fp, #-265]
.L149:
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-276]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L152+8
	bl	printf
	ldrb	r2, [fp, #-265]	@ zero_extendqisi2
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	virtual_machine
	mov	r3, #0
.L150:
	ldr	r2, .L152
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L151
	bl	__stack_chk_fail
.L151:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	.LC44
	.word	.LC42
	.word	.LC43
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
