	.file	"98232.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%06lx"
.LC1:
	.string	"   "
.LC2:
	.string	" %02x"
.LC3:
	.string	" | "
	.text
	.globl	printhexdump
	.type	printhexdump, @function
printhexdump:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	jmp	.L2
.L15:
	mov	rax, QWORD PTR -32[rbp]
	and	rax, -16
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L4:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L4
	mov	DWORD PTR -4[rbp], 0
.L6:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	and	eax, 15
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR -4[rbp]
	cmp	QWORD PTR -40[rbp], rax
	ja	.L6
	jmp	.L7
.L8:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	and	eax, 15
	test	rax, rax
	jne	.L8
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	jmp	.L9
.L10:
	mov	edi, 32
	call	putchar@PLT
	sub	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L10
.L14:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 31
	jbe	.L11
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	ja	.L11
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	jmp	.L12
.L11:
	mov	eax, 46
.L12:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	and	eax, 15
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cmp	QWORD PTR -40[rbp], rax
	ja	.L14
.L13:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -4[rbp]
	add	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	sub	QWORD PTR -40[rbp], rax
.L2:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printhexdump, .-printhexdump
	.section	.rodata
.LC4:
	.string	"%06x %04x "
.LC5:
	.string	"BSS  "
.LC6:
	.string	"TEXT "
.LC7:
	.string	"DATA "
.LC8:
	.string	"EXT "
.LC9:
	.string	"REG "
.LC10:
	.string	"GLOBAL "
.LC11:
	.string	"EQU "
.LC12:
	.string	"DEF "
.LC13:
	.string	"FILE "
.LC14:
	.string	"ARCH "
.LC15:
	.string	"%.8s"
.LC16:
	.string	"%.14s"
	.text
	.globl	parse_symbols
	.type	parse_symbols, @function
parse_symbols:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L17
.L29:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 9[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	WORD PTR -14[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 11[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
	movzx	edx, WORD PTR -14[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 256
	test	eax, eax
	je	.L18
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 512
	test	eax, eax
	je	.L19
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 1024
	test	eax, eax
	je	.L20
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 2048
	test	eax, eax
	je	.L21
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 4096
	test	eax, eax
	je	.L22
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 8192
	test	eax, eax
	je	.L23
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 16384
	test	eax, eax
	je	.L24
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	movzx	eax, WORD PTR -14[rbp]
	test	ax, ax
	jns	.L25
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 640
	cmp	eax, 640
	jne	.L26
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 719
	cmp	eax, 704
	jne	.L27
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -14[rbp]
	and	eax, 72
	cmp	eax, 72
	jne	.L28
	add	QWORD PTR -8[rbp], 14
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -8[rbp], 14
.L17:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L29
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_symbols, .-parse_symbols
	.section	.rodata
.LC17:
	.string	"Fixup list too short\n"
	.align 8
.LC18:
	.string	"WARNING %ld extra bytes after fixup list\n"
	.align 8
.LC19:
	.string	"WARNING odd number $%02x in fixup list !\n"
	.align 8
.LC20:
	.string	"Fixup at address $%06x : value $%08x\n"
	.align 8
.LC21:
	.string	"overflow in fixup address $%06x\n"
	.text
	.globl	parse_fixups
	.type	parse_fixups, @function
parse_fixups:
.LFB8:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	cmp	QWORD PTR -32[rbp], 4
	ja	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	QWORD PTR -8[rbp], 4
	jmp	.L34
.L42:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L35
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	cmp	QWORD PTR -8[rbp], rax
	je	.L43
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L43
.L35:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L38
	add	DWORD PTR -12[rbp], 254
	jmp	.L39
.L38:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L40
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L40:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	QWORD PTR -48[rbp], rax
	jbe	.L41
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L41:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L39:
	add	QWORD PTR -8[rbp], 1
.L34:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L42
	jmp	.L37
.L43:
	nop
.L37:
	mov	eax, 0
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_fixups, .-parse_fixups
	.section	.rodata
.LC22:
	.string	"PRG too small (%lu bytes)\n"
.LC23:
	.string	"MAGIC is not $601a !\n"
.LC24:
	.string	"magic :     $%04x\n"
	.align 8
.LC25:
	.string	"text size : $%08x = %6u bytes\n"
	.align 8
.LC26:
	.string	"data size : $%08x = %6u bytes\n"
	.align 8
.LC27:
	.string	"bss size :  $%08x = %6u bytes\n"
	.align 8
.LC28:
	.string	"symb size : $%08x = %6u bytes\n"
.LC29:
	.string	"reserved :  $%08x\n"
.LC30:
	.string	"prgflags :  $%08x"
.LC31:
	.string	" fastload"
.LC32:
	.string	" alternate RAM"
.LC33:
	.string	" Malloc alternate RAM"
.LC34:
	.string	" Private"
.LC35:
	.string	" Global"
.LC36:
	.string	" Super"
.LC37:
	.string	" Read-only"
.LC38:
	.string	" Unknown"
.LC39:
	.string	" Shared TEXT"
.LC40:
	.string	" TPA size=%ukB"
.LC41:
	.string	"absflags :  $%04x\n"
	.align 8
.LC42:
	.string	"inconstitancies with sizes (total size = %lu).\n"
.LC43:
	.string	"fixup size: %5ld bytes\n"
	.text
	.globl	parse_prg
	.type	parse_prg, @function
parse_prg:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	cmp	QWORD PTR -96[rbp], 31
	ja	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L46
.L45:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	WORD PTR -68[rbp], ax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 10
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 11
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 13
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 14
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 15
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 16
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 17
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 18
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 19
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 20
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 21
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 22
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 23
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 25
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 26
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 27
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	WORD PTR -66[rbp], ax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 28
	mov	QWORD PTR -40[rbp], rax
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	cmp	WORD PTR -68[rbp], 24602
	je	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
.L47:
	movzx	eax, WORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 1
	test	eax, eax
	je	.L48
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
.L48:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 2
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
.L49:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 4
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
.L50:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 240
	cmp	eax, 48
	je	.L51
	cmp	eax, 48
	ja	.L52
	cmp	eax, 32
	je	.L53
	cmp	eax, 32
	ja	.L52
	test	eax, eax
	je	.L54
	cmp	eax, 16
	je	.L55
	jmp	.L52
.L54:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	jmp	.L56
.L55:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	jmp	.L56
.L53:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	jmp	.L56
.L51:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	jmp	.L56
.L52:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
.L56:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 4096
	test	eax, eax
	je	.L57
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
.L57:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, -268435456
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -44[rbp]
	shr	eax, 28
	sal	eax, 7
	mov	esi, eax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
.L58:
	mov	edi, 10
	call	putchar@PLT
	movzx	eax, WORD PTR -66[rbp]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L59
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -2
	jmp	.L46
.L59:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	WORD PTR -66[rbp], 0
	jne	.L60
	mov	ecx, DWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	parse_fixups
.L60:
	cmp	DWORD PTR -52[rbp], 0
	je	.L61
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_symbols
.L61:
	mov	eax, 0
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parse_prg, .-parse_prg
	.section	.rodata
	.align 8
.LC44:
	.string	"TOS executable display (c) 2016 Thomas Bernard"
.LC45:
	.string	"usage : %s <file.prg>\n"
.LC46:
	.string	"rb"
.LC47:
	.string	"Cannot open file %s : %s\n"
.LC48:
	.string	"fseek"
.LC49:
	.string	"ftell"
	.align 8
.LC50:
	.string	"Allocation of %ld bytes failed : %s\n"
	.align 8
.LC51:
	.string	"Failed to read %ld bytes from file.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L63
	lea	rdi, .LC44[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L64
.L63:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L65
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L64
.L65:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L66
	lea	rdi, .LC48[rip]
	call	perror@PLT
	mov	eax, 3
	jmp	.L64
.L66:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L67
	lea	rdi, .LC49[rip]
	call	perror@PLT
	mov	eax, 4
	jmp	.L64
.L67:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L68
	lea	rdi, .LC48[rip]
	call	perror@PLT
	mov	eax, 5
	jmp	.L64
.L68:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L69
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 6
	jmp	.L64
.L69:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -16[rbp]
	cmp	rax, rdx
	je	.L70
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 7
	jmp	.L64
.L70:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_prg
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -28[rbp]
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"98232.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%06lx\000"
	.align	2
.LC1:
	.ascii	"   \000"
	.align	2
.LC2:
	.ascii	" %02x\000"
	.align	2
.LC3:
	.ascii	" | \000"
	.text
	.align	2
	.global	printhexdump
	.syntax unified
	.arm
	.fpu softvfp
	.type	printhexdump, %function
printhexdump:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	b	.L2
.L15:
	ldr	r3, [fp, #-20]
	bic	r3, r3, #15
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	ldr	r3, [fp, #-20]
	and	r3, r3, #15
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	str	r3, [fp, #-8]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L6
	b	.L7
.L8:
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L16+12
	bl	printf
	ldr	r3, [fp, #-20]
	and	r3, r3, #15
	str	r3, [fp, #-8]
	b	.L9
.L10:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
.L14:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #31
	bls	.L11
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L11
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L12
.L11:
	mov	r3, #46
.L12:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L14
.L13:
	mov	r0, #10
	bl	putchar
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	printhexdump, .-printhexdump
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%06x %04x \000"
	.align	2
.LC5:
	.ascii	"BSS  \000"
	.align	2
.LC6:
	.ascii	"TEXT \000"
	.align	2
.LC7:
	.ascii	"DATA \000"
	.align	2
.LC8:
	.ascii	"EXT \000"
	.align	2
.LC9:
	.ascii	"REG \000"
	.align	2
.LC10:
	.ascii	"GLOBAL \000"
	.align	2
.LC11:
	.ascii	"EQU \000"
	.align	2
.LC12:
	.ascii	"DEF \000"
	.align	2
.LC13:
	.ascii	"FILE \000"
	.align	2
.LC14:
	.ascii	"ARCH \000"
	.align	2
.LC15:
	.ascii	"%.8s\000"
	.align	2
.LC16:
	.ascii	"%.14s\000"
	.text
	.align	2
	.global	parse_symbols
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_symbols, %function
parse_symbols:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L31:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	add	r3, r3, #9
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-12]
	add	r3, r3, #11
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r2, r2, #13
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L33
	bl	printf
	ldrh	r3, [fp, #-14]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L33+4
	bl	printf
.L20:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L33+8
	bl	printf
.L21:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L33+12
	bl	printf
.L22:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L33+16
	bl	printf
.L23:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L33+20
	bl	printf
.L24:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #8192
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L33+24
	bl	printf
.L25:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L33+28
	bl	printf
.L26:
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L33+32
	bl	printf
.L27:
	ldrh	r3, [fp, #-14]
	and	r3, r3, #640
	cmp	r3, #640
	bne	.L28
	ldr	r0, .L33+36
	bl	printf
.L28:
	ldrh	r2, [fp, #-14]
	ldr	r3, .L33+40
	and	r3, r3, r2
	cmp	r3, #704
	bne	.L29
	ldr	r0, .L33+44
	bl	printf
.L29:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L33+48
	bl	printf
	ldrh	r3, [fp, #-14]
	and	r3, r3, #72
	cmp	r3, #72
	bne	.L30
	ldr	r3, [fp, #-12]
	add	r3, r3, #14
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L33+52
	bl	printf
.L30:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #14
	str	r3, [fp, #-12]
.L19:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L31
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	719
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	parse_symbols, .-parse_symbols
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Fixup list too short\012\000"
	.align	2
.LC18:
	.ascii	"WARNING %ld extra bytes after fixup list\012\000"
	.align	2
.LC19:
	.ascii	"WARNING odd number $%02x in fixup list !\012\000"
	.align	2
.LC20:
	.ascii	"Fixup at address $%06x : value $%08x\012\000"
	.align	2
.LC21:
	.ascii	"overflow in fixup address $%06x\012\000"
	.text
	.align	2
	.global	parse_fixups
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_fixups, %function
parse_fixups:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bhi	.L36
	ldr	r3, .L48
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L48+4
	bl	fwrite
	mvn	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #4
	str	r3, [fp, #-12]
	b	.L38
.L46:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L47
	ldr	r3, .L48
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L48+8
	bl	fprintf
	b	.L47
.L39:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L42
	ldr	r3, [fp, #-8]
	add	r3, r3, #254
	str	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L48
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L48+12
	bl	fprintf
.L44:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L45
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #3
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L48+16
	bl	printf
	b	.L43
.L45:
	ldr	r3, .L48
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L48+20
	mov	r0, r3
	bl	fprintf
.L43:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L38:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L46
	b	.L41
.L47:
	nop
.L41:
	mov	r3, #0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	stderr
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	parse_fixups, .-parse_fixups
	.section	.rodata
	.align	2
.LC22:
	.ascii	"PRG too small (%lu bytes)\012\000"
	.align	2
.LC23:
	.ascii	"MAGIC is not $601a !\012\000"
	.align	2
.LC24:
	.ascii	"magic :     $%04x\012\000"
	.align	2
.LC25:
	.ascii	"text size : $%08x = %6u bytes\012\000"
	.align	2
.LC26:
	.ascii	"data size : $%08x = %6u bytes\012\000"
	.align	2
.LC27:
	.ascii	"bss size :  $%08x = %6u bytes\012\000"
	.align	2
.LC28:
	.ascii	"symb size : $%08x = %6u bytes\012\000"
	.align	2
.LC29:
	.ascii	"reserved :  $%08x\012\000"
	.align	2
.LC30:
	.ascii	"prgflags :  $%08x\000"
	.align	2
.LC31:
	.ascii	" fastload\000"
	.align	2
.LC32:
	.ascii	" alternate RAM\000"
	.align	2
.LC33:
	.ascii	" Malloc alternate RAM\000"
	.align	2
.LC34:
	.ascii	" Private\000"
	.align	2
.LC35:
	.ascii	" Global\000"
	.align	2
.LC36:
	.ascii	" Super\000"
	.align	2
.LC37:
	.ascii	" Read-only\000"
	.align	2
.LC38:
	.ascii	" Unknown\000"
	.align	2
.LC39:
	.ascii	" Shared TEXT\000"
	.align	2
.LC40:
	.ascii	" TPA size=%ukB\000"
	.align	2
.LC41:
	.ascii	"absflags :  $%04x\012\000"
	.align	2
.LC42:
	.ascii	"inconstitancies with sizes (total size = %lu).\012\000"
	.align	2
.LC43:
	.ascii	"fixup size: %5ld bytes\012\000"
	.text
	.align	2
	.global	parse_prg
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_prg, %function
parse_prg:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #31
	bhi	.L51
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	ldr	r1, .L68+4
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L52
.L51:
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-52]	@ movhi
	ldr	r3, [fp, #-56]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #5
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #9
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	add	r3, r3, #10
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #13
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	add	r3, r3, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #15
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #16
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #17
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-56]
	add	r3, r3, #18
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #19
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #20
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #21
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	add	r3, r3, #22
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-56]
	add	r3, r3, #23
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #25
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	add	r3, r3, #26
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-56]
	add	r3, r3, #27
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-50]	@ movhi
	ldr	r3, [fp, #-56]
	add	r3, r3, #28
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldrh	r3, [fp, #-52]
	ldr	r2, .L68+8
	cmp	r3, r2
	beq	.L53
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L68+12
	bl	fwrite
.L53:
	ldrh	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L68+16
	bl	printf
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, .L68+20
	bl	printf
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L68+24
	bl	printf
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, .L68+28
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, .L68+32
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L68+36
	bl	printf
	ldr	r1, [fp, #-28]
	ldr	r0, .L68+40
	bl	printf
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L68+48
	bl	fwrite
.L54:
	ldr	r3, [fp, #-28]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L68+52
	bl	fwrite
.L55:
	ldr	r3, [fp, #-28]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L68+56
	bl	fwrite
.L56:
	ldr	r3, [fp, #-28]
	and	r3, r3, #240
	cmp	r3, #48
	beq	.L57
	cmp	r3, #48
	bhi	.L58
	cmp	r3, #32
	beq	.L59
	cmp	r3, #32
	bhi	.L58
	cmp	r3, #0
	beq	.L60
	cmp	r3, #16
	beq	.L61
	b	.L58
.L60:
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L68+60
	bl	fwrite
	b	.L62
.L61:
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L68+64
	bl	fwrite
	b	.L62
.L59:
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L68+68
	bl	fwrite
	b	.L62
.L57:
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L68+72
	bl	fwrite
	b	.L62
.L58:
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L68+76
	bl	fwrite
.L62:
	ldr	r3, [fp, #-28]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L68+44
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L68+80
	bl	fwrite
.L63:
	ldr	r3, [fp, #-28]
	and	r3, r3, #-268435456
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #28
	lsl	r3, r3, #7
	mov	r1, r3
	ldr	r0, .L68+84
	bl	printf
.L64:
	mov	r0, #10
	bl	putchar
	ldrh	r3, [fp, #-50]
	mov	r1, r3
	ldr	r0, .L68+88
	bl	printf
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L65
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	ldr	r1, .L68+92
	mov	r0, r3
	bl	fprintf
	mvn	r3, #1
	b	.L52
.L65:
	ldr	r1, [fp, #-8]
	ldr	r0, .L68+96
	bl	printf
	ldrh	r3, [fp, #-50]
	cmp	r3, #0
	bne	.L66
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	parse_fixups
.L66:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L67
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	parse_symbols
.L67:
	mov	r3, #0
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC22
	.word	24602
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	stdout
	.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
	.size	parse_prg, .-parse_prg
	.section	.rodata
	.align	2
.LC44:
	.ascii	"TOS executable display (c) 2016 Thomas Bernard\000"
	.align	2
.LC45:
	.ascii	"usage : %s <file.prg>\012\000"
	.align	2
.LC46:
	.ascii	"rb\000"
	.align	2
.LC47:
	.ascii	"Cannot open file %s : %s\012\000"
	.align	2
.LC48:
	.ascii	"fseek\000"
	.align	2
.LC49:
	.ascii	"ftell\000"
	.align	2
.LC50:
	.ascii	"Allocation of %ld bytes failed : %s\012\000"
	.align	2
.LC51:
	.ascii	"Failed to read %ld bytes from file.\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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L71
	ldr	r0, .L79
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L79+4
	bl	printf
	mov	r3, #1
	b	.L72
.L71:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L79+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L73
	ldr	r3, .L79+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L79+16
	mov	r0, r4
	bl	fprintf
	mov	r3, #2
	b	.L72
.L73:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L74
	ldr	r0, .L79+20
	bl	perror
	mov	r3, #3
	b	.L72
.L74:
	ldr	r0, [fp, #-28]
	bl	ftell
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L75
	ldr	r0, .L79+24
	bl	perror
	mov	r3, #4
	b	.L72
.L75:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L76
	ldr	r0, .L79+20
	bl	perror
	mov	r3, #5
	b	.L72
.L76:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L77
	ldr	r3, .L79+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L79+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #6
	b	.L72
.L77:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L78
	ldr	r3, .L79+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L79+32
	mov	r0, r3
	bl	fprintf
	mov	r3, #7
	b	.L72
.L78:
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	parse_prg
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-16]
.L72:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	stderr
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
