	.file	"119195.c"
	.intel_syntax noprefix
	.text
	.globl	rom
	.bss
	.align 32
	.type	rom, @object
	.size	rom, 1500
rom:
	.zero	1500
	.globl	ram
	.align 32
	.type	ram, @object
	.size	ram, 65536
ram:
	.zero	65536
	.globl	arch
	.align 8
	.type	arch, @object
	.size	arch, 8
arch:
	.zero	8
	.globl	b
	.type	b, @object
	.size	b, 1
b:
	.zero	1
	.globl	i
	.type	i, @object
	.size	i, 1
i:
	.zero	1
	.globl	opcode
	.type	opcode, @object
	.size	opcode, 1
opcode:
	.zero	1
	.globl	c
	.type	c, @object
	.size	c, 1
c:
	.zero	1
	.globl	x
	.type	x, @object
	.size	x, 1
x:
	.zero	1
	.globl	buf
	.align 32
	.type	buf, @object
	.size	buf, 80
buf:
	.zero	80
	.globl	ptr
	.align 4
	.type	ptr, @object
	.size	ptr, 4
ptr:
	.zero	4
	.globl	oldptr
	.align 4
	.type	oldptr, @object
	.size	oldptr, 4
oldptr:
	.zero	4
	.globl	siz
	.align 4
	.type	siz, @object
	.size	siz, 4
siz:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	tmp
	.align 8
	.type	tmp, @object
	.size	tmp, 8
tmp:
	.zero	8
	.globl	scan
	.align 4
	.type	scan, @object
	.size	scan, 4
scan:
	.zero	4
	.globl	oldscan
	.align 4
	.type	oldscan, @object
	.size	oldscan, 4
oldscan:
	.zero	4
	.globl	cursor
	.align 4
	.type	cursor, @object
	.size	cursor, 4
cursor:
	.zero	4
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"65C02.bin"
	.align 8
.LC2:
	.string	"\n***Problem opening Opcode List '65C02.bin'!***"
.LC3:
	.string	">0400[\n(press ^C to stop)"
.LC4:
	.string	"%04x: "
.LC5:
	.string	"[%02x] "
.LC6:
	.string	"$%02x"
.LC7:
	.string	"$%02x%02x"
.LC8:
	.string	"***ERROR***"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR arch[rip], rax
	mov	rax, QWORD PTR arch[rip]
	test	rax, rax
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L26
.L2:
	mov	rax, QWORD PTR arch[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR arch[rip]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR siz[rip], eax
	mov	rax, QWORD PTR arch[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR arch[rip]
	mov	eax, DWORD PTR siz[rip]
	cdqe
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, rom[rip]
	call	fread@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR ptr[rip], 1024
.L25:
	mov	eax, DWORD PTR ptr[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, buf[rip]
	mov	eax, 0
	call	gets@PLT
	mov	DWORD PTR scan[rip], 0
	mov	DWORD PTR oldscan[rip], 0
	mov	DWORD PTR cursor[rip], 0
	mov	BYTE PTR opcode[rip], 0
.L18:
	call	getNextChar
	call	getListChar
	movzx	eax, BYTE PTR c[rip]
	movzx	eax, al
	cmp	eax, 38
	je	.L4
	cmp	eax, 64
	jne	.L5
	mov	DWORD PTR tmp[rip+4], 0
	mov	BYTE PTR i[rip], 0
	jmp	.L6
.L9:
	call	hex2nibble
	movzx	eax, BYTE PTR b[rip]
	cmp	al, -1
	je	.L27
	mov	eax, DWORD PTR tmp[rip+4]
	sal	eax, 4
	mov	DWORD PTR tmp[rip+4], eax
	mov	edx, DWORD PTR tmp[rip+4]
	movzx	eax, BYTE PTR b[rip]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR tmp[rip+4], eax
	mov	eax, DWORD PTR cursor[rip]
	add	eax, 1
	mov	DWORD PTR cursor[rip], eax
	call	getNextChar
	movzx	eax, BYTE PTR i[rip]
	add	eax, 1
	mov	BYTE PTR i[rip], al
.L6:
	movzx	eax, BYTE PTR i[rip]
	cmp	al, 1
	jbe	.L9
	jmp	.L8
.L27:
	nop
.L8:
	mov	eax, DWORD PTR scan[rip]
	add	eax, 1
	mov	DWORD PTR scan[rip], eax
	call	checkEnd
	jmp	.L10
.L4:
	mov	DWORD PTR tmp[rip], 0
	mov	DWORD PTR tmp[rip+4], 0
	mov	BYTE PTR i[rip], 0
	jmp	.L11
.L14:
	call	hex2nibble
	movzx	eax, BYTE PTR b[rip]
	cmp	al, -1
	je	.L28
	movzx	eax, BYTE PTR i[rip]
	shr	al
	movzx	edx, al
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tmp[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movzx	eax, al
	mov	ecx, edx
	sal	ecx, 4
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tmp[rip]
	mov	DWORD PTR [rdx+rax], ecx
	movzx	eax, BYTE PTR i[rip]
	shr	al
	movzx	edx, al
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tmp[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	movzx	edx, BYTE PTR b[rip]
	movzx	edx, dl
	movzx	eax, al
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tmp[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR cursor[rip]
	add	eax, 1
	mov	DWORD PTR cursor[rip], eax
	call	getNextChar
	movzx	eax, BYTE PTR i[rip]
	add	eax, 1
	mov	BYTE PTR i[rip], al
.L11:
	movzx	eax, BYTE PTR i[rip]
	cmp	al, 3
	jbe	.L14
	jmp	.L13
.L28:
	nop
.L13:
	mov	eax, DWORD PTR scan[rip]
	add	eax, 1
	mov	DWORD PTR scan[rip], eax
	call	checkEnd
	jmp	.L10
.L5:
	movzx	edx, BYTE PTR b[rip]
	movzx	eax, BYTE PTR c[rip]
	cmp	dl, al
	je	.L15
	nop
.L16:
	mov	eax, DWORD PTR scan[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR scan[rip], edx
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jns	.L16
	mov	eax, DWORD PTR scan[rip]
	mov	DWORD PTR oldscan[rip], eax
	movzx	eax, BYTE PTR opcode[rip]
	add	eax, 1
	mov	BYTE PTR opcode[rip], al
	movzx	eax, BYTE PTR opcode[rip]
	test	al, al
	jne	.L17
	mov	BYTE PTR x[rip], 1
	jmp	.L10
.L17:
	mov	DWORD PTR cursor[rip], 0
	mov	BYTE PTR x[rip], 0
	jmp	.L10
.L15:
	mov	eax, DWORD PTR cursor[rip]
	add	eax, 1
	mov	DWORD PTR cursor[rip], eax
	mov	eax, DWORD PTR scan[rip]
	add	eax, 1
	mov	DWORD PTR scan[rip], eax
	call	checkEnd
.L10:
	movzx	eax, BYTE PTR x[rip]
	test	al, al
	je	.L18
	movzx	eax, BYTE PTR x[rip]
	cmp	al, -128
	jne	.L19
	mov	eax, DWORD PTR oldscan[rip]
	sub	eax, 1
	mov	DWORD PTR oldscan[rip], eax
	mov	DWORD PTR count[rip], 1
	movzx	eax, BYTE PTR opcode[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	eax, DWORD PTR oldscan[rip]
	add	eax, 1
	mov	DWORD PTR oldscan[rip], eax
	mov	eax, DWORD PTR oldscan[rip]
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, 127
	mov	BYTE PTR c[rip], al
	movzx	eax, BYTE PTR c[rip]
	movzx	eax, al
	cmp	eax, 38
	je	.L20
	cmp	eax, 64
	jne	.L21
	mov	eax, DWORD PTR tmp[rip+4]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	jmp	.L22
.L20:
	mov	edx, DWORD PTR tmp[rip+4]
	mov	eax, DWORD PTR tmp[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 2
	mov	DWORD PTR count[rip], eax
	jmp	.L22
.L21:
	movzx	eax, BYTE PTR c[rip]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L22:
	mov	eax, DWORD PTR oldscan[rip]
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jns	.L23
	jmp	.L24
.L19:
	mov	DWORD PTR count[rip], 0
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR ptr[rip]
	mov	eax, DWORD PTR count[rip]
	add	eax, edx
	mov	DWORD PTR ptr[rip], eax
	jmp	.L25
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	getNextChar
	.type	getNextChar, @function
getNextChar:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L30
.L31:
	mov	eax, DWORD PTR cursor[rip]
	add	eax, 1
	mov	DWORD PTR cursor[rip], eax
.L30:
	mov	eax, DWORD PTR cursor[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L31
	mov	eax, DWORD PTR cursor[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR b[rip], al
	movzx	eax, BYTE PTR b[rip]
	cmp	al, 96
	jbe	.L33
	movzx	eax, BYTE PTR b[rip]
	cmp	al, 122
	ja	.L33
	movzx	eax, BYTE PTR b[rip]
	and	eax, -33
	mov	BYTE PTR b[rip], al
.L33:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getNextChar, .-getNextChar
	.globl	getListChar
	.type	getListChar, @function
getListChar:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L35
.L36:
	mov	eax, DWORD PTR scan[rip]
	add	eax, 1
	mov	DWORD PTR scan[rip], eax
.L35:
	mov	eax, DWORD PTR scan[rip]
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L36
	mov	eax, DWORD PTR scan[rip]
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, 127
	mov	BYTE PTR c[rip], al
	mov	eax, DWORD PTR scan[rip]
	cdqe
	lea	rdx, rom[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, -128
	mov	BYTE PTR x[rip], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getListChar, .-getListChar
	.globl	hex2nibble
	.type	hex2nibble, @function
hex2nibble:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR b[rip]
	sub	eax, 48
	mov	BYTE PTR b[rip], al
	movzx	eax, BYTE PTR b[rip]
	cmp	al, 9
	jbe	.L40
	movzx	eax, BYTE PTR b[rip]
	cmp	al, 16
	jbe	.L39
	movzx	eax, BYTE PTR b[rip]
	cmp	al, 22
	ja	.L39
	movzx	eax, BYTE PTR b[rip]
	sub	eax, 7
	mov	BYTE PTR b[rip], al
	jmp	.L40
.L39:
	mov	BYTE PTR b[rip], -1
	mov	eax, DWORD PTR cursor[rip]
	sub	eax, 1
	mov	DWORD PTR cursor[rip], eax
.L40:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	hex2nibble, .-hex2nibble
	.globl	checkEnd
	.type	checkEnd, @function
checkEnd:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR x[rip]
	cmp	al, -128
	jne	.L45
	jmp	.L43
.L44:
	mov	eax, DWORD PTR cursor[rip]
	add	eax, 1
	mov	DWORD PTR cursor[rip], eax
.L43:
	mov	eax, DWORD PTR cursor[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L44
	mov	eax, DWORD PTR cursor[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L45
	mov	eax, DWORD PTR scan[rip]
	mov	DWORD PTR oldscan[rip], eax
	movzx	eax, BYTE PTR opcode[rip]
	add	eax, 1
	mov	BYTE PTR opcode[rip], al
	mov	DWORD PTR cursor[rip], 0
	mov	BYTE PTR x[rip], 0
.L45:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	checkEnd, .-checkEnd
	.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	"119195.c"
	.text
	.comm	rom,1500,4
	.comm	ram,65536,4
	.comm	arch,4,4
	.comm	b,1,1
	.comm	i,1,1
	.comm	opcode,1,1
	.comm	c,1,1
	.comm	x,1,1
	.comm	buf,80,4
	.global	ptr
	.bss
	.align	2
	.type	ptr, %object
	.size	ptr, 4
ptr:
	.space	4
	.comm	oldptr,4,4
	.comm	siz,4,4
	.comm	count,4,4
	.comm	tmp,8,4
	.comm	scan,4,4
	.comm	oldscan,4,4
	.comm	cursor,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"65C02.bin\000"
	.align	2
.LC2:
	.ascii	"\012***Problem opening Opcode List '65C02.bin'!***\000"
	.align	2
.LC3:
	.ascii	">0400[\012(press ^C to stop)\000"
	.align	2
.LC4:
	.ascii	"%04x: \000"
	.align	2
.LC5:
	.ascii	"[%02x] \000"
	.align	2
.LC6:
	.ascii	"$%02x\000"
	.align	2
.LC7:
	.ascii	"$%02x%02x\000"
	.align	2
.LC8:
	.ascii	"***ERROR***\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L29
	ldr	r0, .L29+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L29+8
	str	r3, [r2]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L29+12
	bl	puts
	mvn	r3, #0
	b	.L26
.L2:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	ldr	r2, .L29+16
	str	r3, [r2]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L29+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r0, .L29+20
	bl	fread
	ldr	r0, .L29+24
	bl	puts
	ldr	r3, .L29+28
	mov	r2, #1024
	str	r2, [r3]
.L25:
	ldr	r3, .L29+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+32
	bl	printf
	ldr	r0, .L29+36
	bl	gets
	ldr	r3, .L29+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+48
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+52
	mov	r2, #0
	strb	r2, [r3]
.L18:
	bl	getNextChar
	bl	getListChar
	ldr	r3, .L29+56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	beq	.L4
	cmp	r3, #64
	bne	.L5
	ldr	r3, .L29+60
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L29+64
	mov	r2, #0
	strb	r2, [r3]
	b	.L6
.L9:
	bl	hex2nibble
	ldr	r3, .L29+68
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L27
	ldr	r3, .L29+60
	ldr	r3, [r3, #4]
	lsl	r3, r3, #4
	ldr	r2, .L29+60
	str	r3, [r2, #4]
	ldr	r3, .L29+60
	ldr	r3, [r3, #4]
	ldr	r2, .L29+68
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	ldr	r2, .L29+60
	str	r3, [r2, #4]
	ldr	r3, .L29+48
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+48
	str	r3, [r2]
	bl	getNextChar
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L29+64
	strb	r2, [r3]
.L6:
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L9
	b	.L8
.L27:
	nop
.L8:
	ldr	r3, .L29+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+40
	str	r3, [r2]
	bl	checkEnd
	b	.L10
.L4:
	ldr	r3, .L29+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+60
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L29+64
	mov	r2, #0
	strb	r2, [r3]
	b	.L11
.L14:
	bl	hex2nibble
	ldr	r3, .L29+68
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L28
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r2, r3, #255
	mov	r1, r2
	ldr	r3, .L29+60
	ldr	r3, [r3, r1, lsl #2]
	mov	r1, r2
	lsl	r3, r3, #4
	ldr	r2, .L29+60
	str	r3, [r2, r1, lsl #2]
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r1, r3, #255
	mov	r2, r1
	ldr	r3, .L29+60
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, .L29+68
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	ldr	r2, .L29+60
	str	r3, [r2, r1, lsl #2]
	ldr	r3, .L29+48
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+48
	str	r3, [r2]
	bl	getNextChar
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L29+64
	strb	r2, [r3]
.L11:
	ldr	r3, .L29+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L14
	b	.L13
.L28:
	nop
.L13:
	ldr	r3, .L29+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+40
	str	r3, [r2]
	bl	checkEnd
	b	.L10
.L5:
	ldr	r3, .L29+68
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L29+56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L15
	nop
.L16:
	ldr	r3, .L29+40
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L29+40
	str	r2, [r1]
	ldr	r2, .L29+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L29+40
	ldr	r3, [r3]
	ldr	r2, .L29+44
	str	r3, [r2]
	ldr	r3, .L29+52
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L29+52
	strb	r2, [r3]
	ldr	r3, .L29+52
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L29+72
	mov	r2, #1
	strb	r2, [r3]
	b	.L10
.L17:
	ldr	r3, .L29+48
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+72
	mov	r2, #0
	strb	r2, [r3]
	b	.L10
.L15:
	ldr	r3, .L29+48
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+48
	str	r3, [r2]
	ldr	r3, .L29+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+40
	str	r3, [r2]
	bl	checkEnd
.L10:
	ldr	r3, .L29+72
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L29+72
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #128
	bne	.L19
	ldr	r3, .L29+44
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L29+44
	str	r3, [r2]
	ldr	r3, .L29+76
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L29+52
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+80
	bl	printf
.L23:
	ldr	r3, .L29+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+44
	str	r3, [r2]
	ldr	r3, .L29+44
	ldr	r3, [r3]
	ldr	r2, .L29+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #127
	and	r2, r3, #255
	ldr	r3, .L29+56
	strb	r2, [r3]
	ldr	r3, .L29+56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	beq	.L20
	cmp	r3, #64
	bne	.L21
	ldr	r3, .L29+60
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L29+84
	bl	printf
	ldr	r3, .L29+76
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+76
	str	r3, [r2]
	b	.L22
.L20:
	ldr	r3, .L29+60
	ldr	r3, [r3]
	ldr	r2, .L29+60
	ldr	r2, [r2, #4]
	mov	r1, r3
	ldr	r0, .L29+88
	bl	printf
	ldr	r3, .L29+76
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, .L29+76
	str	r3, [r2]
	b	.L22
.L21:
	ldr	r3, .L29+56
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L22:
	ldr	r3, .L29+44
	ldr	r3, [r3]
	ldr	r2, .L29+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L23
	b	.L24
.L19:
	ldr	r3, .L29+76
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L29+92
	bl	printf
.L24:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L29+28
	ldr	r2, [r3]
	ldr	r3, .L29+76
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L29+28
	str	r3, [r2]
	b	.L25
.L26:
	mov	r0, r3
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	.LC1
	.word	arch
	.word	.LC2
	.word	siz
	.word	rom
	.word	.LC3
	.word	ptr
	.word	.LC4
	.word	buf
	.word	scan
	.word	oldscan
	.word	cursor
	.word	opcode
	.word	c
	.word	tmp
	.word	i
	.word	b
	.word	x
	.word	count
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	getNextChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNextChar, %function
getNextChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	b	.L32
.L33:
	ldr	r3, .L36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L36
	str	r3, [r2]
.L32:
	ldr	r3, .L36
	ldr	r3, [r3]
	ldr	r2, .L36+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L33
	ldr	r3, .L36
	ldr	r3, [r3]
	ldr	r2, .L36+4
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldr	r3, .L36+8
	strb	r2, [r3]
	ldr	r3, .L36+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L35
	ldr	r3, .L36+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L35
	ldr	r3, .L36+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	bic	r3, r3, #32
	and	r2, r3, #255
	ldr	r3, .L36+8
	strb	r2, [r3]
.L35:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L37:
	.align	2
.L36:
	.word	cursor
	.word	buf
	.word	b
	.size	getNextChar, .-getNextChar
	.align	2
	.global	getListChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getListChar, %function
getListChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	b	.L39
.L40:
	ldr	r3, .L41
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L41
	str	r3, [r2]
.L39:
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, .L41+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L40
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, .L41+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #127
	and	r2, r3, #255
	ldr	r3, .L41+8
	strb	r2, [r3]
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, .L41+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r2, r3, #255
	ldr	r3, .L41+12
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	scan
	.word	rom
	.word	c
	.word	x
	.size	getListChar, .-getListChar
	.align	2
	.global	hex2nibble
	.syntax unified
	.arm
	.fpu softvfp
	.type	hex2nibble, %function
hex2nibble:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, .L47
	strb	r2, [r3]
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L46
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #16
	bls	.L45
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #22
	bhi	.L45
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #7
	and	r2, r3, #255
	ldr	r3, .L47
	strb	r2, [r3]
	b	.L46
.L45:
	ldr	r3, .L47
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L47+4
	str	r3, [r2]
.L46:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	b
	.word	cursor
	.size	hex2nibble, .-hex2nibble
	.align	2
	.global	checkEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkEnd, %function
checkEnd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L54
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #128
	bne	.L53
	b	.L51
.L52:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L54+4
	str	r3, [r2]
.L51:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, .L54+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L52
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, .L54+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L54+12
	ldr	r3, [r3]
	ldr	r2, .L54+16
	str	r3, [r2]
	ldr	r3, .L54+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L54+20
	strb	r2, [r3]
	ldr	r3, .L54+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L54
	mov	r2, #0
	strb	r2, [r3]
.L53:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.word	x
	.word	cursor
	.word	buf
	.word	scan
	.word	oldscan
	.word	opcode
	.size	checkEnd, .-checkEnd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
