	.file	"855771.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"65C02.bin"
	.align 8
.LC2:
	.string	"\n***Problem opening Opcode List '65C02.bin'!***"
.LC3:
	.string	"%04x: "
.LC4:
	.string	"Opcode%d?["
.LC5:
	.string	"Opcode (%02x) "
.LC6:
	.string	"(%02x) ???\n"
	.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	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -65660[rbp], 0
	mov	DWORD PTR -65648[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -65640[rbp], rax
	cmp	QWORD PTR -65640[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	jmp	.L21
.L2:
	mov	rax, QWORD PTR -65640[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -65640[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -65644[rbp], eax
	mov	rax, QWORD PTR -65640[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -65644[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -65640[rbp]
	lea	rax, -65552[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -65648[rbp], 1024
.L19:
	mov	eax, DWORD PTR -65648[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -65632[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	mov	DWORD PTR -65656[rbp], 0
	mov	DWORD PTR -65652[rbp], 0
	mov	BYTE PTR -65659[rbp], 0
.L12:
	movzx	eax, BYTE PTR -65659[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	add	DWORD PTR -65652[rbp], 1
.L4:
	mov	eax, DWORD PTR -65652[rbp]
	cdqe
	movzx	eax, BYTE PTR -65632[rbp+rax]
	cmp	al, 32
	je	.L5
	mov	eax, DWORD PTR -65652[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -65652[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -65632[rbp+rax]
	mov	BYTE PTR -65661[rbp], al
	cmp	BYTE PTR -65661[rbp], 96
	jbe	.L6
	cmp	BYTE PTR -65661[rbp], 122
	ja	.L6
	and	BYTE PTR -65661[rbp], -33
.L6:
	movzx	eax, BYTE PTR -65661[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L7
.L8:
	add	DWORD PTR -65656[rbp], 1
.L7:
	mov	eax, DWORD PTR -65656[rbp]
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	cmp	al, 32
	je	.L8
	mov	eax, DWORD PTR -65656[rbp]
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	and	eax, 127
	mov	BYTE PTR -65658[rbp], al
	mov	eax, DWORD PTR -65656[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -65656[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	and	eax, -128
	mov	BYTE PTR -65657[rbp], al
	movzx	eax, BYTE PTR -65658[rbp]
	cmp	al, BYTE PTR -65661[rbp]
	jne	.L9
	cmp	BYTE PTR -65657[rbp], 0
	jne	.L4
.L9:
	cmp	BYTE PTR -65657[rbp], 0
	jne	.L11
	cmp	BYTE PTR -65658[rbp], 0
	jne	.L12
.L11:
	movzx	eax, BYTE PTR -65658[rbp]
	cmp	al, BYTE PTR -65661[rbp]
	jne	.L13
	movzx	eax, BYTE PTR -65659[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -65656[rbp], 1
.L14:
	sub	DWORD PTR -65656[rbp], 1
	mov	eax, DWORD PTR -65656[rbp]
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	test	al, al
	jns	.L14
	add	DWORD PTR -65656[rbp], 1
.L15:
	mov	eax, DWORD PTR -65656[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -65656[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	movzx	eax, al
	and	eax, 127
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -65656[rbp]
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	test	al, al
	jns	.L15
	mov	edi, 10
	call	putchar@PLT
	jmp	.L19
.L13:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -65652[rbp], 0
	jmp	.L17
.L18:
	add	DWORD PTR -65656[rbp], 1
.L17:
	mov	eax, DWORD PTR -65656[rbp]
	cdqe
	movzx	eax, BYTE PTR -65552[rbp+rax]
	test	al, al
	jns	.L18
	add	DWORD PTR -65656[rbp], 1
	movzx	eax, BYTE PTR -65659[rbp]
	add	eax, 1
	mov	BYTE PTR -65659[rbp], al
	jmp	.L19
.L21:
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"855771.c"
	.text
	.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	"%04x: \000"
	.align	2
.LC4:
	.ascii	"Opcode%d?[\000"
	.align	2
.LC5:
	.ascii	"Opcode (%02x) \000"
	.align	2
.LC6:
	.ascii	"(%02x) ???\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65648
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #116
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-108]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-96]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [r4, #-92]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L22+12
	bl	puts
	mvn	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	b	.L21
.L2:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-92]
	bl	fseek
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-92]
	bl	ftell
	str	r0, [r4, #-88]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-92]
	bl	fseek
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r1, [r3, #-88]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r0, fp, #65536
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-92]
	mov	r2, #1
	bl	fread
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1024
	str	r3, [r2, #-96]
.L19:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r1, [r3, #-96]
	ldr	r0, .L22+16
	bl	printf
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #84
	mov	r0, r3
	bl	gets
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-104]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-107]
.L12:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-107]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+20
	bl	printf
	b	.L4
.L5:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #1
	str	r3, [r2, #-100]
.L4:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r2, r3
	sub	r3, r3, #84
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L5
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-100]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r1, fp, #65536
	sub	r1, r1, #12
	add	r3, r1, r3
	ldrb	r3, [r3, #-84]
	strb	r3, [r2, #-109]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-109]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L6
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-109]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L6
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-109]
	bic	r3, r3, #32
	strb	r3, [r2, #-109]
.L6:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-109]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L7
.L8:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
.L7:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L8
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	and	r3, r3, #127
	strb	r3, [r2, #-106]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-104]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	bic	r3, r3, #127
	strb	r3, [r2, #-105]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r2, [r2, #-106]	@ zero_extendqisi2
	ldrb	r3, [r3, #-109]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-105]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
.L9:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-105]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-106]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L11:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r2, [r2, #-106]	@ zero_extendqisi2
	ldrb	r3, [r3, #-109]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-107]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	sub	r3, r3, #1
	str	r3, [r2, #-104]
.L14:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	sub	r3, r3, #1
	str	r3, [r2, #-104]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L14
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
.L15:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-104]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	and	r3, r3, #127
	mov	r0, r3
	bl	putchar
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L15
	mov	r0, #10
	bl	putchar
	b	.L19
.L13:
	ldr	r0, .L22+28
	bl	printf
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	b	.L17
.L18:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
.L17:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L18
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-107]	@ zero_extendqisi2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	add	r3, r3, #1
	strb	r3, [r2, #-107]
	b	.L19
.L21:
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
