	.file	"117045.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%04x %02x %02x "
.LC1:
	.string	"CLS"
.LC2:
	.string	"%-10s"
.LC3:
	.string	"RTS"
.LC4:
	.string	"UNKNOWN 0"
.LC5:
	.string	"JUMP"
.LC6:
	.string	"%-10s $%01x%02x"
.LC7:
	.string	"CALL"
.LC8:
	.string	"SKIP.EQ"
.LC9:
	.string	"%-10s V%01X,#$%02x"
.LC10:
	.string	"SKIP.NE"
.LC11:
	.string	"%-10s V%01X,V%01X"
.LC12:
	.string	"MVI"
.LC13:
	.string	"ADI"
.LC14:
	.string	"MOV."
.LC15:
	.string	"OR."
.LC16:
	.string	"AND."
.LC17:
	.string	"XOR."
.LC18:
	.string	"ADD."
.LC19:
	.string	"SUB."
.LC20:
	.string	"%-10s V%01X,V%01X,V%01X"
.LC21:
	.string	"SHR."
.LC22:
	.string	"SHL."
.LC23:
	.string	"UNKNOWN 8"
.LC24:
	.string	"%-10s I,#$%01x%02x"
.LC25:
	.string	"%-10s $%01x%02x(V0)"
.LC26:
	.string	"RNDMSK"
.LC27:
	.string	"%-10s V%01X,#$%02X"
.LC28:
	.string	"SPRITE"
.LC29:
	.string	"%-10s V%01X,V%01X,#$%01x"
.LC30:
	.string	"SKIPKEY.Y"
.LC31:
	.string	"%-10s V%01X"
.LC32:
	.string	"SKIPKEY.N"
.LC33:
	.string	"UNKNOWN E"
.LC34:
	.string	"MOV"
.LC35:
	.string	"%-10s V%01X,DELAY"
.LC36:
	.string	"KEY"
.LC37:
	.string	"%-10s DELAY,V%01X"
.LC38:
	.string	"%-10s SOUND,V%01X"
.LC39:
	.string	"%-10s I,V%01X"
.LC40:
	.string	"SPRITECHAR"
.LC41:
	.string	"MOVBCD"
.LC42:
	.string	"%-10s (I),V%01X"
.LC43:
	.string	"MOVM"
.LC44:
	.string	"%-10s (I),V0-V%01X"
.LC45:
	.string	"%-10s V0-V%01X,(I)"
.LC46:
	.string	"UNKNOWN F"
	.text
	.type	DisassembleChip8Op, @function
DisassembleChip8Op:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -10[rbp]
	cmp	eax, 15
	ja	.L55
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L19-.L4
	.long	.L18-.L4
	.long	.L17-.L4
	.long	.L16-.L4
	.long	.L15-.L4
	.long	.L14-.L4
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L19:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 224
	je	.L20
	cmp	eax, 238
	je	.L21
	jmp	.L53
.L20:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L21:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L53:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L23:
	jmp	.L2
.L18:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L17:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L16:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L15:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L14:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC8[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L13:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC12[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L12:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC13[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L11:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	cmp	eax, 14
	ja	.L24
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L26[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L26[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L26:
	.long	.L34-.L26
	.long	.L33-.L26
	.long	.L32-.L26
	.long	.L31-.L26
	.long	.L30-.L26
	.long	.L29-.L26
	.long	.L28-.L26
	.long	.L27-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L25-.L26
	.text
.L34:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC14[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L33:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L32:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC16[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L31:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC17[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L30:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC18[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L29:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L28:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC21[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L27:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	r8d, ecx
	mov	ecx, eax
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L25:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC22[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L24:
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L35:
	jmp	.L2
.L10:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L9:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC12[rip]
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L8:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	ecx, eax
	lea	rsi, .LC26[rip]
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	and	edx, 15
	mov	r8d, ecx
	mov	ecx, eax
	lea	rsi, .LC28[rip]
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 158
	je	.L36
	cmp	eax, 161
	je	.L37
	jmp	.L54
.L36:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L37:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC32[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L54:
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L39:
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 101
	je	.L40
	cmp	eax, 101
	jg	.L41
	cmp	eax, 51
	jg	.L42
	cmp	eax, 7
	jl	.L41
	sub	eax, 7
	cmp	eax, 44
	ja	.L41
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L44[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L44[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L44:
	.long	.L50-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L49-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L48-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L47-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L46-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L45-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L41-.L44
	.long	.L43-.L44
	.text
.L42:
	cmp	eax, 85
	je	.L51
	jmp	.L41
.L50:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC34[rip]
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L49:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC36[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L48:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC34[rip]
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L47:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC34[rip]
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L46:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC13[rip]
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L45:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC40[rip]
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L43:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC41[rip]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC43[rip]
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L40:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 15
	mov	edx, eax
	lea	rsi, .LC43[rip]
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L41:
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L52:
	nop
.L2:
.L55:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	DisassembleChip8Op, .-DisassembleChip8Op
	.section	.rodata
.LC47:
	.string	"rb"
.LC48:
	.string	"error: Couldn't open %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L57
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	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 -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 512
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	lea	rdi, 512[rdx]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -24[rbp], 512
	jmp	.L58
.L59:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	DisassembleChip8Op
	add	DWORD PTR -24[rbp], 2
	mov	edi, 10
	call	putchar@PLT
.L58:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 511
	cmp	DWORD PTR -24[rbp], eax
	jle	.L59
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"117045.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%04x %02x %02x \000"
	.align	2
.LC1:
	.ascii	"CLS\000"
	.align	2
.LC2:
	.ascii	"%-10s\000"
	.align	2
.LC3:
	.ascii	"RTS\000"
	.align	2
.LC4:
	.ascii	"UNKNOWN 0\000"
	.align	2
.LC5:
	.ascii	"JUMP\000"
	.align	2
.LC6:
	.ascii	"%-10s $%01x%02x\000"
	.align	2
.LC7:
	.ascii	"CALL\000"
	.align	2
.LC8:
	.ascii	"SKIP.EQ\000"
	.align	2
.LC9:
	.ascii	"%-10s V%01X,#$%02x\000"
	.align	2
.LC10:
	.ascii	"SKIP.NE\000"
	.align	2
.LC11:
	.ascii	"%-10s V%01X,V%01X\000"
	.align	2
.LC12:
	.ascii	"MVI\000"
	.align	2
.LC13:
	.ascii	"ADI\000"
	.align	2
.LC14:
	.ascii	"MOV.\000"
	.align	2
.LC15:
	.ascii	"OR.\000"
	.align	2
.LC16:
	.ascii	"AND.\000"
	.align	2
.LC17:
	.ascii	"XOR.\000"
	.align	2
.LC18:
	.ascii	"ADD.\000"
	.align	2
.LC19:
	.ascii	"SUB.\000"
	.align	2
.LC20:
	.ascii	"%-10s V%01X,V%01X,V%01X\000"
	.align	2
.LC21:
	.ascii	"SHR.\000"
	.align	2
.LC22:
	.ascii	"SHL.\000"
	.align	2
.LC23:
	.ascii	"UNKNOWN 8\000"
	.align	2
.LC24:
	.ascii	"%-10s I,#$%01x%02x\000"
	.align	2
.LC25:
	.ascii	"%-10s $%01x%02x(V0)\000"
	.align	2
.LC26:
	.ascii	"RNDMSK\000"
	.align	2
.LC27:
	.ascii	"%-10s V%01X,#$%02X\000"
	.align	2
.LC28:
	.ascii	"SPRITE\000"
	.align	2
.LC29:
	.ascii	"%-10s V%01X,V%01X,#$%01x\000"
	.align	2
.LC30:
	.ascii	"SKIPKEY.Y\000"
	.align	2
.LC31:
	.ascii	"%-10s V%01X\000"
	.align	2
.LC32:
	.ascii	"SKIPKEY.N\000"
	.align	2
.LC33:
	.ascii	"UNKNOWN E\000"
	.align	2
.LC34:
	.ascii	"MOV\000"
	.align	2
.LC35:
	.ascii	"%-10s V%01X,DELAY\000"
	.align	2
.LC36:
	.ascii	"KEY\000"
	.align	2
.LC37:
	.ascii	"%-10s DELAY,V%01X\000"
	.align	2
.LC38:
	.ascii	"%-10s SOUND,V%01X\000"
	.align	2
.LC39:
	.ascii	"%-10s I,V%01X\000"
	.align	2
.LC40:
	.ascii	"SPRITECHAR\000"
	.align	2
.LC41:
	.ascii	"MOVBCD\000"
	.align	2
.LC42:
	.ascii	"%-10s (I),V%01X\000"
	.align	2
.LC43:
	.ascii	"MOVM\000"
	.align	2
.LC44:
	.ascii	"%-10s (I),V0-V%01X\000"
	.align	2
.LC45:
	.ascii	"%-10s V0-V%01X,(I)\000"
	.align	2
.LC46:
	.ascii	"UNKNOWN F\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DisassembleChip8Op, %function
DisassembleChip8Op:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	ldr	r0, .L56
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-10]
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L55
.L4:
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #224
	beq	.L20
	cmp	r3, #238
	beq	.L21
	b	.L53
.L20:
	ldr	r1, .L56+4
	ldr	r0, .L56+8
	bl	printf
	b	.L23
.L21:
	ldr	r1, .L56+12
	ldr	r0, .L56+8
	bl	printf
	b	.L23
.L53:
	ldr	r0, .L56+16
	bl	printf
	nop
.L23:
	b	.L2
.L18:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+20
	ldr	r0, .L56+24
	bl	printf
	b	.L2
.L17:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+28
	ldr	r0, .L56+24
	bl	printf
	b	.L2
.L16:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+32
	ldr	r0, .L56+36
	bl	printf
	b	.L2
.L15:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+40
	ldr	r0, .L56+36
	bl	printf
	b	.L2
.L14:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+32
	ldr	r0, .L56+44
	bl	printf
	b	.L2
.L13:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+48
	ldr	r0, .L56+36
	bl	printf
	b	.L2
.L12:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+52
	ldr	r0, .L56+36
	bl	printf
	b	.L2
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L26:
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L24
	.word	.L24
	.word	.L24
	.word	.L24
	.word	.L24
	.word	.L24
	.word	.L25
.L34:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+56
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L33:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+60
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L32:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+64
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L31:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+68
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L30:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+72
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L29:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r1, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L56+76
	ldr	r0, .L56+80
	bl	printf
	b	.L35
.L28:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+84
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L27:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L56+76
	ldr	r0, .L56+80
	bl	printf
	b	.L35
.L25:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+88
	ldr	r0, .L56+44
	bl	printf
	b	.L35
.L24:
	ldr	r0, .L56+92
	bl	printf
	nop
.L35:
	b	.L2
.L10:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldr	r1, .L56+40
	ldr	r0, .L56+44
	bl	printf
	b	.L2
.L9:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+48
	ldr	r0, .L56+96
	bl	printf
	b	.L2
.L8:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+20
	ldr	r0, .L56+100
	bl	printf
	b	.L2
.L7:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L56+104
	ldr	r0, .L56+108
	bl	printf
	b	.L2
.L6:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L56+112
	ldr	r0, .L56+116
	bl	printf
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #158
	beq	.L36
	cmp	r3, #161
	beq	.L37
	b	.L54
.L36:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+120
	ldr	r0, .L56+124
	bl	printf
	b	.L39
.L37:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+128
	ldr	r0, .L56+124
	bl	printf
	b	.L39
.L54:
	ldr	r0, .L56+132
	bl	printf
	nop
.L39:
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L40
	cmp	r3, #101
	bgt	.L41
	cmp	r3, #51
	bgt	.L42
	cmp	r3, #7
	blt	.L41
	sub	r3, r3, #7
	cmp	r3, #44
	ldrls	pc, [pc, r3, asl #2]
	b	.L41
.L44:
	.word	.L50
	.word	.L41
	.word	.L41
	.word	.L49
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L48
	.word	.L41
	.word	.L41
	.word	.L47
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L46
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L45
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L43
.L42:
	cmp	r3, #85
	beq	.L51
	b	.L41
.L50:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+136
	ldr	r0, .L56+140
	bl	printf
	b	.L52
.L49:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+144
	ldr	r0, .L56+124
	bl	printf
	b	.L52
.L48:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+136
	ldr	r0, .L56+148
	bl	printf
	b	.L52
.L47:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+136
	ldr	r0, .L56+152
	bl	printf
	b	.L52
.L46:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+52
	ldr	r0, .L56+156
	bl	printf
	b	.L52
.L45:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+160
	ldr	r0, .L56+156
	bl	printf
	b	.L52
.L43:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+164
	ldr	r0, .L56+168
	bl	printf
	b	.L52
.L51:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+172
	ldr	r0, .L56+176
	bl	printf
	b	.L52
.L40:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r2, r3
	ldr	r1, .L56+172
	ldr	r0, .L56+180
	bl	printf
	b	.L52
.L41:
	ldr	r0, .L56+184
	bl	printf
	nop
.L52:
	nop
.L2:
.L55:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.size	DisassembleChip8Op, .-DisassembleChip8Op
	.section	.rodata
	.align	2
.LC47:
	.ascii	"rb\000"
	.align	2
.LC48:
	.ascii	"error: Couldn't open %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L63
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L63+4
	bl	printf
	mov	r0, #1
	bl	exit
.L59:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-12]
	add	r3, r3, #512
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #512
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	bl	fread
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, #512
	str	r3, [fp, #-20]
	b	.L60
.L61:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	DisassembleChip8Op
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r0, #10
	bl	putchar
.L60:
	ldr	r3, [fp, #-12]
	add	r3, r3, #508
	add	r3, r3, #3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L61
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC47
	.word	.LC48
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
