	.file	"898415.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"bin2bas {--offset n} {--nolineno} {--startaddress n} [bin file]"
	.text
	.globl	err
	.type	err, @function
err:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	err, .-err
	.section	.rodata
.LC1:
	.string	"--offset"
.LC2:
	.string	"--nolineno"
.LC3:
	.string	"--startaddress"
.LC4:
	.string	"rb"
.LC5:
	.string	"can't open file"
.LC6:
	.string	"\nPOKE#%03X"
.LC7:
	.string	"\n%d POKE#%03X"
.LC8:
	.string	",%d"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 1
	jg	.L3
	mov	eax, 0
	call	err
.L3:
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 1792
	mov	QWORD PTR -72[rbp], 0
	mov	DWORD PTR -100[rbp], 1
	jmp	.L4
.L12:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L5
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	cmp	DWORD PTR -116[rbp], eax
	jg	.L7
	mov	eax, 0
	call	err
	jmp	.L25
.L7:
	add	DWORD PTR -100[rbp], 1
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -112[rbp], eax
.L6:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -108[rbp], 1
.L9:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	cmp	DWORD PTR -116[rbp], eax
	jg	.L11
	mov	eax, 0
	call	err
	jmp	.L25
.L11:
	add	DWORD PTR -100[rbp], 1
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -104[rbp], eax
	jmp	.L10
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -72[rbp], rax
.L10:
	add	DWORD PTR -100[rbp], 1
.L4:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L12
	cmp	QWORD PTR -72[rbp], 0
	jne	.L13
	mov	eax, 0
	call	err
	jmp	.L25
.L13:
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L25
.L14:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L16
	mov	eax, 0
	jmp	.L25
.L16:
	add	DWORD PTR -96[rbp], 1
.L15:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jl	.L17
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 10
.L24:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], -1
	je	.L28
	mov	eax, DWORD PTR -92[rbp]
	and	eax, 31
	test	eax, eax
	je	.L20
	cmp	DWORD PTR -88[rbp], 0
	je	.L21
.L20:
	mov	DWORD PTR -88[rbp], 0
	cmp	DWORD PTR -108[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L22:
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	add	DWORD PTR -84[rbp], 10
.L21:
	add	DWORD PTR -92[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L28:
	nop
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"898415.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"bin2bas {--offset n} {--nolineno} {--startaddress n"
	.ascii	"} [bin file]\000"
	.text
	.align	2
	.global	err
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	err, .-err
	.section	.rodata
	.align	2
.LC1:
	.ascii	"--offset\000"
	.align	2
.LC2:
	.ascii	"--nolineno\000"
	.align	2
.LC3:
	.ascii	"--startaddress\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"can't open file\000"
	.align	2
.LC6:
	.ascii	"\012POKE#%03X\000"
	.align	2
.LC7:
	.ascii	"\012%d POKE#%03X\000"
	.align	2
.LC8:
	.ascii	",%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	bgt	.L5
	bl	err
.L5:
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1792
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L6
.L14:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L7
	ldr	r1, .L31+4
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bgt	.L9
	bl	err
	mov	r3, r0
	b	.L27
.L9:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-92]
.L8:
	ldr	r1, .L31+8
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-88]
.L11:
	ldr	r1, .L31+12
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bgt	.L13
	bl	err
	mov	r3, r0
	b	.L27
.L13:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-84]
	b	.L12
.L7:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-80]
.L12:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L6:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L15
	bl	err
	mov	r3, r0
	b	.L27
.L15:
	ldr	r1, .L31+16
	ldr	r0, [fp, #-80]
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L31+20
	bl	puts
	mov	r3, #1
	b	.L27
.L16:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L17
.L19:
	ldr	r0, [fp, #-56]
	bl	fgetc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L18
	mov	r3, #0
	b	.L27
.L18:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L17:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #10
	str	r3, [fp, #-60]
.L26:
	ldr	r0, [fp, #-56]
	bl	fgetc
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	beq	.L30
	ldr	r3, [fp, #-68]
	and	r3, r3, #31
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L23
.L22:
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L24
	ldr	r1, [fp, #-68]
	ldr	r0, .L31+24
	bl	printf
	b	.L25
.L24:
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-60]
	ldr	r0, .L31+28
	bl	printf
.L25:
	ldr	r3, [fp, #-60]
	add	r3, r3, #10
	str	r3, [fp, #-60]
.L23:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r1, [fp, #-52]
	ldr	r0, .L31+32
	bl	printf
	b	.L26
.L30:
	nop
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-56]
	bl	fclose
	mov	r3, #0
.L27:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC9
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
