	.file	"1122617.c"
	.intel_syntax noprefix
	.text
	.local	memory
	.comm	memory,65536,32
	.local	tape
	.comm	tape,262144,32
	.local	tapeCnt
	.comm	tapeCnt,4,4
	.local	junkbuf
	.comm	junkbuf,262144,32
	.local	databuf
	.comm	databuf,262144,32
	.local	ruboutbuf
	.comm	ruboutbuf,262144,32
	.data
	.align 2
	.type	lastModifiedAddress, @object
	.size	lastModifiedAddress, 2
lastModifiedAddress:
	.value	-1
	.align 2
	.type	lastModifiedData, @object
	.size	lastModifiedData, 2
lastModifiedData:
	.value	-1
	.local	section
	.comm	section,4,4
	.local	leaderlen
	.comm	leaderlen,4,4
	.local	footerlen
	.comm	footerlen,4,4
	.local	addresslen
	.comm	addresslen,4,4
	.local	state
	.comm	state,4,4
	.local	i
	.comm	i,4,4
	.local	origin
	.comm	origin,4,4
	.local	address
	.comm	address,4,4
	.local	data
	.comm	data,4,4
	.local	field
	.comm	field,4,4
	.local	inrubout
	.comm	inrubout,4,4
	.local	chksum
	.comm	chksum,4,4
	.local	gotNewAddress
	.comm	gotNewAddress,4,4
	.text
	.globl	ClearMemory
	.type	ClearMemory, @function
ClearMemory:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 65536
	mov	esi, 255
	lea	rdi, memory[rip]
	call	memset@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ClearMemory, .-ClearMemory
	.section	.rodata
.LC0:
	.string	"  %04o      : "
.LC1:
	.string	"  %04o-%04o : "
	.text
	.globl	ShowDataBuffer
	.type	ShowDataBuffer, @function
ShowDataBuffer:
.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, 16
	lea	rdi, databuf[rip]
	call	strlen@PLT
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR gotNewAddress[rip]
	test	eax, eax
	je	.L7
.L3:
	cmp	DWORD PTR -4[rbp], 1
	jg	.L5
	mov	eax, DWORD PTR origin[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	mov	edx, DWORD PTR origin[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR origin[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	BYTE PTR databuf[rip+100], 46
	mov	BYTE PTR databuf[rip+101], 46
	mov	BYTE PTR databuf[rip+102], 46
	mov	BYTE PTR databuf[rip+103], 0
	lea	rdi, databuf[rip]
	call	puts@PLT
	mov	DWORD PTR gotNewAddress[rip], 0
	mov	BYTE PTR databuf[rip], 0
	jmp	.L2
.L7:
	nop
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ShowDataBuffer, .-ShowDataBuffer
	.section	.rodata
.LC2:
	.string	"Can't open file '%s'\n"
.LC3:
	.string	"%04o "
.LC4:
	.string	"Leader %d bytes\n"
.LC5:
	.string	"Field is set to %d\n"
.LC6:
	.string	"Checksum %04o OK\n"
	.align 8
.LC7:
	.string	"Checksum fail, file:%04o calculated: %04o\n"
.LC8:
	.string	"Invalid  byte @in_idle %03o\n"
.LC9:
	.string	"Invalid  byte @wf_addr2 %03o\n"
	.text
	.globl	ProcessFile
	.type	ProcessFile, @function
ProcessFile:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 2
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 262144
	lea	rsi, tape[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR tapeCnt[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	BYTE PTR junkbuf[rip], 0
	mov	BYTE PTR ruboutbuf[rip], 0
	mov	DWORD PTR section[rip], 0
	jmp	.L11
.L43:
	mov	eax, DWORD PTR inrubout[rip]
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -1
	jne	.L13
	mov	DWORD PTR inrubout[rip], 0
	jmp	.L14
.L13:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	ebx, al
	lea	rdi, ruboutbuf[rip]
	call	strlen@PLT
	lea	rdx, ruboutbuf[rip]
	add	rax, rdx
	mov	edx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L14:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR state[rip]
	test	eax, eax
	jne	.L15
	call	ClearMemory
	mov	DWORD PTR leaderlen[rip], 0
	mov	DWORD PTR footerlen[rip], 0
	mov	DWORD PTR addresslen[rip], 0
	mov	DWORD PTR address[rip], 0
	mov	DWORD PTR data[rip], 0
	mov	DWORD PTR chksum[rip], 0
	mov	DWORD PTR inrubout[rip], 0
	mov	DWORD PTR state[rip], 1
.L15:
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 1
	jne	.L16
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -1
	jne	.L17
	mov	DWORD PTR inrubout[rip], 1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -128
	jne	.L19
	mov	eax, DWORD PTR leaderlen[rip]
	add	eax, 1
	mov	DWORD PTR leaderlen[rip], eax
	mov	eax, DWORD PTR section[rip]
	add	eax, 1
	mov	DWORD PTR section[rip], eax
	mov	DWORD PTR state[rip], 2
	jmp	.L18
.L19:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	ebx, al
	lea	rdi, junkbuf[rip]
	call	strlen@PLT
	lea	rdx, junkbuf[rip]
	add	rax, rdx
	mov	edx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L18:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L11
.L16:
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 2
	jne	.L20
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -1
	jne	.L21
	mov	DWORD PTR inrubout[rip], 1
	jmp	.L11
.L21:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	shr	al, 6
	movzx	eax, al
	cmp	eax, 3
	je	.L22
	cmp	eax, 3
	jg	.L23
	cmp	eax, 1
	je	.L24
	cmp	eax, 2
	jne	.L23
	mov	eax, DWORD PTR leaderlen[rip]
	add	eax, 1
	mov	DWORD PTR leaderlen[rip], eax
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L25
.L22:
	mov	eax, DWORD PTR leaderlen[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR leaderlen[rip], 0
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	and	eax, 3
	mov	DWORD PTR field[rip], eax
	mov	eax, DWORD PTR field[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR state[rip], 3
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L25
.L24:
	mov	eax, DWORD PTR leaderlen[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR leaderlen[rip], 0
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR chksum[rip]
	add	eax, edx
	mov	DWORD PTR chksum[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	mov	DWORD PTR address[rip], eax
	mov	DWORD PTR state[rip], 4
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L25
.L23:
	mov	eax, DWORD PTR leaderlen[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR leaderlen[rip], 0
	mov	DWORD PTR state[rip], 1
	nop
.L25:
	jmp	.L11
.L20:
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 3
	jne	.L26
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -1
	jne	.L27
	mov	DWORD PTR inrubout[rip], 1
	jmp	.L11
.L27:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	shr	al, 6
	movzx	eax, al
	cmp	eax, 3
	je	.L28
	cmp	eax, 3
	jg	.L29
	cmp	eax, 2
	je	.L30
	cmp	eax, 2
	jg	.L29
	test	eax, eax
	je	.L31
	cmp	eax, 1
	je	.L32
	jmp	.L29
.L30:
	movzx	eax, WORD PTR lastModifiedAddress[rip]
	cmp	ax, -1
	je	.L33
	movzx	eax, WORD PTR lastModifiedAddress[rip]
	movsx	edx, ax
	movzx	eax, WORD PTR lastModifiedData[rip]
	movsx	rdx, edx
	lea	rcx, [rdx+rdx]
	lea	rdx, memory[rip]
	mov	WORD PTR [rcx+rdx], ax
	lea	rdi, databuf[rip]
	call	strlen@PLT
	cmp	rax, 4
	jbe	.L34
	lea	rdi, databuf[rip]
	call	strlen@PLT
	lea	rdx, -5[rax]
	lea	rax, databuf[rip]
	mov	BYTE PTR [rdx+rax], 0
.L34:
	mov	WORD PTR lastModifiedAddress[rip], -1
	mov	WORD PTR lastModifiedData[rip], -1
.L33:
	call	ShowDataBuffer
	mov	eax, DWORD PTR chksum[rip]
	mov	edx, DWORD PTR data[rip]
	mov	ecx, edx
	and	ecx, 63
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR data[rip]
	shr	eax, 6
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	and	eax, 4095
	mov	DWORD PTR chksum[rip], eax
	mov	edx, DWORD PTR data[rip]
	mov	eax, DWORD PTR chksum[rip]
	cmp	edx, eax
	jne	.L35
	mov	eax, DWORD PTR chksum[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L36
.L35:
	mov	edx, DWORD PTR chksum[rip]
	mov	eax, DWORD PTR data[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	mov	DWORD PTR chksum[rip], 0
	mov	DWORD PTR state[rip], 2
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L37
.L28:
	call	ShowDataBuffer
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	and	eax, 3
	mov	DWORD PTR field[rip], eax
	mov	eax, DWORD PTR field[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L37
.L32:
	call	ShowDataBuffer
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR chksum[rip]
	add	eax, edx
	mov	DWORD PTR chksum[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	mov	DWORD PTR address[rip], eax
	mov	DWORD PTR state[rip], 4
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L37
.L31:
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR chksum[rip]
	add	eax, edx
	mov	DWORD PTR chksum[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	mov	DWORD PTR data[rip], eax
	mov	DWORD PTR state[rip], 5
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L37
.L29:
	call	ShowDataBuffer
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L10
.L37:
	jmp	.L11
.L26:
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 4
	jne	.L38
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	shr	al, 6
	movzx	eax, al
	test	eax, eax
	jne	.L39
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR chksum[rip]
	add	eax, edx
	mov	DWORD PTR chksum[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	and	eax, 63
	mov	edx, eax
	mov	eax, DWORD PTR address[rip]
	add	eax, edx
	mov	DWORD PTR address[rip], eax
	mov	eax, DWORD PTR address[rip]
	mov	DWORD PTR origin[rip], eax
	mov	DWORD PTR gotNewAddress[rip], 1
	mov	DWORD PTR state[rip], 3
	mov	eax, DWORD PTR addresslen[rip]
	add	eax, 1
	mov	DWORD PTR addresslen[rip], eax
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	nop
	jmp	.L11
.L39:
	call	ShowDataBuffer
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L10
.L38:
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 5
	jne	.L11
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	shr	al, 6
	movzx	eax, al
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	and	eax, 63
	mov	edx, eax
	mov	eax, DWORD PTR data[rip]
	add	eax, edx
	mov	DWORD PTR data[rip], eax
	mov	ebx, DWORD PTR data[rip]
	lea	rdi, databuf[rip]
	call	strlen@PLT
	lea	rdx, databuf[rip]
	add	rax, rdx
	mov	edx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR address[rip]
	mov	WORD PTR lastModifiedAddress[rip], ax
	mov	eax, DWORD PTR address[rip]
	mov	eax, eax
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	movzx	eax, WORD PTR [rdx+rax]
	mov	WORD PTR lastModifiedData[rip], ax
	mov	eax, DWORD PTR data[rip]
	mov	edx, DWORD PTR address[rip]
	mov	ecx, eax
	mov	eax, edx
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	mov	WORD PTR [rdx+rax], cx
	mov	eax, DWORD PTR address[rip]
	add	eax, 1
	mov	DWORD PTR address[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR chksum[rip]
	add	eax, edx
	mov	DWORD PTR chksum[rip], eax
	mov	DWORD PTR state[rip], 3
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	nop
	jmp	.L11
.L41:
	call	ShowDataBuffer
	mov	eax, DWORD PTR i[rip]
	mov	edx, eax
	lea	rax, tape[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L10
.L11:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR tapeCnt[rip]
	cmp	edx, eax
	jb	.L43
	mov	eax, DWORD PTR leaderlen[rip]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR leaderlen[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	call	ShowDataBuffer
	mov	eax, 0
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ProcessFile, .-ProcessFile
	.section	.rodata
.LC10:
	.string	"0.00"
.LC11:
	.string	"pt8exam"
.LC12:
	.string	"%s version %s\n"
.LC13:
	.string	"wrbvMV"
.LC14:
	.string	"Failed to create %s : %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -170[rbp], 0
	mov	BYTE PTR -169[rbp], 0
	mov	BYTE PTR -168[rbp], 0
	mov	BYTE PTR -167[rbp], 0
	jmp	.L46
.L53:
	mov	eax, DWORD PTR -160[rbp]
	sub	eax, 86
	cmp	eax, 33
	ja	.L46
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L48[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L48[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L48:
	.long	.L52-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L51-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L50-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L49-.L48
	.long	.L47-.L48
	.text
.L47:
	movzx	eax, BYTE PTR -168[rbp]
	add	eax, 1
	mov	BYTE PTR -168[rbp], al
	jmp	.L46
.L50:
	movzx	eax, BYTE PTR -169[rbp]
	add	eax, 1
	mov	BYTE PTR -169[rbp], al
	jmp	.L46
.L51:
	movzx	eax, BYTE PTR -170[rbp]
	add	eax, 1
	mov	BYTE PTR -170[rbp], al
	jmp	.L46
.L49:
	movzx	eax, BYTE PTR -167[rbp]
	add	eax, 1
	mov	BYTE PTR -167[rbp], al
	jmp	.L46
.L52:
	lea	rdx, .LC10[rip]
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L46:
	mov	rcx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -180[rbp]
	lea	rdx, .LC13[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], -1
	jne	.L53
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	ProcessFile
	cmp	BYTE PTR -168[rbp], 0
	je	.L54
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1919902510
	mov	WORD PTR 4[rax], 101
	lea	rax, -144[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L55
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L55:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L56
.L59:
	mov	WORD PTR -166[rbp], 3842
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	movzx	eax, WORD PTR [rdx+rax]
	test	ax, ax
	js	.L57
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 4095
	jg	.L57
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	movzx	eax, WORD PTR [rdx+rax]
	mov	WORD PTR -166[rbp], ax
.L57:
	lea	rcx, -166[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 2
	je	.L58
	mov	edi, 1
	call	exit@PLT
.L58:
	add	DWORD PTR -164[rbp], 1
.L56:
	cmp	DWORD PTR -164[rbp], 32767
	jle	.L59
	mov	eax, DWORD PTR -156[rbp]
	mov	edi, eax
	call	close@PLT
.L54:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"1122617.c"
	.text
	.local	memory
	.comm	memory,65536,4
	.local	tape
	.comm	tape,262144,4
	.local	tapeCnt
	.comm	tapeCnt,4,4
	.local	junkbuf
	.comm	junkbuf,262144,4
	.local	databuf
	.comm	databuf,262144,4
	.local	ruboutbuf
	.comm	ruboutbuf,262144,4
	.data
	.align	1
	.type	lastModifiedAddress, %object
	.size	lastModifiedAddress, 2
lastModifiedAddress:
	.short	-1
	.align	1
	.type	lastModifiedData, %object
	.size	lastModifiedData, 2
lastModifiedData:
	.short	-1
	.local	section
	.comm	section,4,4
	.local	leaderlen
	.comm	leaderlen,4,4
	.local	footerlen
	.comm	footerlen,4,4
	.local	addresslen
	.comm	addresslen,4,4
	.local	state
	.comm	state,4,4
	.local	i
	.comm	i,4,4
	.local	origin
	.comm	origin,4,4
	.local	address
	.comm	address,4,4
	.local	data
	.comm	data,4,4
	.local	field
	.comm	field,4,4
	.local	inrubout
	.comm	inrubout,4,4
	.local	chksum
	.comm	chksum,4,4
	.local	gotNewAddress
	.comm	gotNewAddress,4,4
	.text
	.align	2
	.global	ClearMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	ClearMemory, %function
ClearMemory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #65536
	mov	r1, #255
	ldr	r0, .L2
	bl	memset
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	memory
	.size	ClearMemory, .-ClearMemory
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  %04o      : \000"
	.align	2
.LC1:
	.ascii	"  %04o-%04o : \000"
	.text
	.align	2
	.global	ShowDataBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	ShowDataBuffer, %function
ShowDataBuffer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L10
	bl	strlen
	mov	r3, r0
	ldr	r2, .L10+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L7
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	b	.L8
.L7:
	ldr	r3, .L10+12
	ldr	r1, [r3]
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L10+20
	bl	printf
.L8:
	ldr	r3, .L10
	mov	r2, #46
	strb	r2, [r3, #100]
	ldr	r3, .L10
	mov	r2, #46
	strb	r2, [r3, #101]
	ldr	r3, .L10
	mov	r2, #46
	strb	r2, [r3, #102]
	ldr	r3, .L10
	mov	r2, #0
	strb	r2, [r3, #103]
	ldr	r0, .L10
	bl	puts
	ldr	r3, .L10+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L10
	mov	r2, #0
	strb	r2, [r3]
	b	.L4
.L9:
	nop
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	databuf
	.word	-858993459
	.word	gotNewAddress
	.word	origin
	.word	.LC0
	.word	.LC1
	.size	ShowDataBuffer, .-ShowDataBuffer
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Can't open file '%s'\012\000"
	.align	2
.LC3:
	.ascii	"%04o \000"
	.align	2
.LC4:
	.ascii	"Leader %d bytes\012\000"
	.align	2
.LC5:
	.ascii	"Field is set to %d\012\000"
	.align	2
.LC6:
	.ascii	"Checksum %04o OK\012\000"
	.align	2
.LC7:
	.ascii	"Checksum fail, file:%04o calculated: %04o\012\000"
	.align	2
.LC8:
	.ascii	"Invalid  byte @in_idle %03o\012\000"
	.align	2
.LC9:
	.ascii	"Invalid  byte @wf_addr2 %03o\012\000"
	.text
	.align	2
	.global	ProcessFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessFile, %function
ProcessFile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L13
	ldr	r1, [fp, #-16]
	ldr	r0, .L50
	bl	printf
	mov	r3, #2
	b	.L14
.L13:
	mov	r2, #262144
	ldr	r1, .L50+4
	ldr	r0, [fp, #-8]
	bl	read
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L50+8
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, .L50+12
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L50+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L50+20
	mov	r2, #0
	str	r2, [r3]
	b	.L15
.L48:
	ldr	r3, .L50+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L17
	ldr	r3, .L50+24
	mov	r2, #0
	str	r2, [r3]
	b	.L18
.L17:
	ldr	r0, .L50+16
	bl	strlen
	mov	r3, r0
	ldr	r2, .L50+16
	add	r0, r3, r2
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L50+32
	bl	sprintf
.L18:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L15
.L16:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	bl	ClearMemory
	ldr	r3, .L50+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+48
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+52
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+56
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+36
	mov	r2, #1
	str	r2, [r3]
.L19:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L20
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L21
	ldr	r3, .L50+24
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L21:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #128
	bne	.L23
	ldr	r3, .L50+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+40
	str	r3, [r2]
	ldr	r3, .L50+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+20
	str	r3, [r2]
	ldr	r3, .L50+36
	mov	r2, #2
	str	r2, [r3]
	b	.L22
.L23:
	ldr	r0, .L50+12
	bl	strlen
	mov	r3, r0
	ldr	r2, .L50+12
	add	r0, r3, r2
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L50+32
	bl	sprintf
.L22:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L15
.L20:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L24
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L25
	ldr	r3, .L50+24
	mov	r2, #1
	str	r2, [r3]
	b	.L15
.L25:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #3
	beq	.L26
	cmp	r3, #3
	bgt	.L27
	cmp	r3, #1
	beq	.L28
	cmp	r3, #2
	bne	.L27
	ldr	r3, .L50+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+40
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L29
.L26:
	ldr	r3, .L50+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+64
	bl	printf
	ldr	r3, .L50+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #3
	ldr	r2, .L50+68
	str	r3, [r2]
	ldr	r3, .L50+68
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+72
	bl	printf
	ldr	r3, .L50+36
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L29
.L28:
	ldr	r3, .L50+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+64
	bl	printf
	ldr	r3, .L50+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L50+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	ldr	r2, .L50+52
	str	r3, [r2]
	ldr	r3, .L50+36
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L29
.L27:
	ldr	r3, .L50+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+64
	bl	printf
	ldr	r3, .L50+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+36
	mov	r2, #1
	str	r2, [r3]
	nop
.L29:
	b	.L15
.L24:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L30
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L31
	ldr	r3, .L50+24
	mov	r2, #1
	str	r2, [r3]
	b	.L15
.L31:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L32
.L34:
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L33
.L35:
	ldr	r3, .L50+76
	ldrsh	r3, [r3]
	cmn	r3, #1
	beq	.L38
	ldr	r3, .L50+76
	ldrsh	r3, [r3]
	mov	r0, r3
	ldr	r3, .L50+80
	ldrsh	r2, [r3]
	ldr	r1, .L50+84
	lsl	r3, r0, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldr	r0, .L50+88
	bl	strlen
	mov	r3, r0
	cmp	r3, #4
	bls	.L39
	ldr	r0, .L50+88
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #5
	ldr	r2, .L50+88
	mov	r1, #0
	strb	r1, [r2, r3]
.L39:
	ldr	r3, .L50+76
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L50+80
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
.L38:
	bl	ShowDataBuffer
	ldr	r3, .L50+60
	ldr	r2, [r3]
	ldr	r3, .L50+56
	ldr	r3, [r3]
	and	r3, r3, #63
	sub	r2, r2, r3
	ldr	r3, .L50+56
	ldr	r3, [r3]
	lsr	r3, r3, #6
	sub	r3, r2, r3
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+56
	ldr	r2, [r3]
	ldr	r3, .L50+60
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L40
	ldr	r3, .L50+60
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+92
	bl	printf
	b	.L41
.L40:
	ldr	r3, .L50+56
	ldr	r3, [r3]
	ldr	r2, .L50+60
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L50+96
	bl	printf
.L41:
	ldr	r3, .L50+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+36
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L42
.L33:
	bl	ShowDataBuffer
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #3
	ldr	r2, .L50+68
	str	r3, [r2]
	ldr	r3, .L50+68
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+72
	bl	printf
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L42
.L36:
	bl	ShowDataBuffer
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L50+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	ldr	r2, .L50+52
	str	r3, [r2]
	ldr	r3, .L50+36
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L42
.L37:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L50+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	ldr	r2, .L50+56
	str	r3, [r2]
	ldr	r3, .L50+36
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	b	.L42
.L32:
	bl	ShowDataBuffer
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L50+100
	bl	printf
	mov	r3, #1
	b	.L14
.L42:
	b	.L15
.L30:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L43
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L44
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L50+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r2, r3, #63
	ldr	r3, .L50+52
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+52
	str	r3, [r2]
	ldr	r3, .L50+52
	ldr	r3, [r3]
	ldr	r2, .L50+104
	str	r3, [r2]
	ldr	r3, .L50+108
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L50+36
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L50+48
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+48
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	nop
	b	.L15
.L44:
	bl	ShowDataBuffer
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L50+112
	bl	printf
	mov	r3, #1
	b	.L14
.L43:
	ldr	r3, .L50+36
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L15
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r2, r3, #63
	ldr	r3, .L50+56
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+56
	str	r3, [r2]
	ldr	r0, .L50+88
	bl	strlen
	mov	r3, r0
	ldr	r2, .L50+88
	add	r3, r3, r2
	ldr	r2, .L50+56
	ldr	r2, [r2]
	ldr	r1, .L50+32
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+52
	ldr	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L50+76
	strh	r3, [r2]	@ movhi
	ldr	r3, .L50+52
	ldr	r3, [r3]
	ldr	r2, .L50+84
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	ldr	r2, .L50+80
	strh	r3, [r2]	@ movhi
	ldr	r3, .L50+56
	ldr	r2, [r3]
	ldr	r3, .L50+52
	ldr	r3, [r3]
	lsl	r2, r2, #16
	asr	r2, r2, #16
	ldr	r1, .L50+84
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldr	r3, .L50+52
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+52
	str	r3, [r2]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L50+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+60
	str	r3, [r2]
	ldr	r3, .L50+36
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L50+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+28
	str	r3, [r2]
	nop
	b	.L15
.L46:
	bl	ShowDataBuffer
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, .L50+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L50+112
	bl	printf
	mov	r3, #1
	b	.L14
.L15:
	ldr	r3, .L50+28
	ldr	r2, [r3]
	ldr	r3, .L50+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L48
	ldr	r3, .L50+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L50+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+64
	bl	printf
.L49:
	bl	ShowDataBuffer
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC2
	.word	tape
	.word	tapeCnt
	.word	junkbuf
	.word	ruboutbuf
	.word	section
	.word	inrubout
	.word	i
	.word	.LC3
	.word	state
	.word	leaderlen
	.word	footerlen
	.word	addresslen
	.word	address
	.word	data
	.word	chksum
	.word	.LC4
	.word	field
	.word	.LC5
	.word	lastModifiedAddress
	.word	lastModifiedData
	.word	memory
	.word	databuf
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	origin
	.word	gotNewAddress
	.word	.LC9
	.size	ProcessFile, .-ProcessFile
	.section	.rodata
	.align	2
.LC10:
	.ascii	"0.00\000"
	.align	2
.LC11:
	.ascii	"pt8exam\000"
	.align	2
.LC12:
	.ascii	"%s version %s\012\000"
	.align	2
.LC13:
	.ascii	"wrbvMV\000"
	.align	2
.LC14:
	.ascii	".core\000"
	.align	2
.LC15:
	.ascii	"Failed to create %s : %s\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-158]
	mov	r3, #0
	strb	r3, [fp, #-157]
	mov	r3, #0
	strb	r3, [fp, #-156]
	mov	r3, #0
	strb	r3, [fp, #-155]
	b	.L53
.L60:
	ldr	r3, [fp, #-148]
	sub	r3, r3, #86
	cmp	r3, #33
	ldrls	pc, [pc, r3, asl #2]
	b	.L53
.L55:
	.word	.L59
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L58
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L57
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L56
	.word	.L54
.L54:
	ldrb	r3, [fp, #-156]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-156]
	b	.L53
.L57:
	ldrb	r3, [fp, #-157]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-157]
	b	.L53
.L58:
	ldrb	r3, [fp, #-158]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-158]
	b	.L53
.L56:
	ldrb	r3, [fp, #-155]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-155]
	b	.L53
.L59:
	ldr	r2, .L69+4
	ldr	r1, .L69+8
	ldr	r0, .L69+12
	bl	printf
	nop
.L53:
	ldr	r2, .L69+16
	ldr	r1, [fp, #-172]
	ldr	r0, [fp, #-168]
	bl	getopt
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L60
	ldr	r3, .L69+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	ProcessFile
	ldrb	r3, [fp, #-156]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L69+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #136
	add	r3, r3, r2
	ldr	r2, .L69+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #136
	mov	r2, #420
	ldr	r1, .L69+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L62
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L69+32
	bl	printf
.L62:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L63
.L66:
	ldr	r3, .L69+36
	strh	r3, [fp, #-154]	@ movhi
	ldr	r2, .L69+40
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #0
	blt	.L64
	ldr	r2, .L69+40
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #4096
	bge	.L64
	ldr	r2, .L69+40
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-154]	@ movhi
.L64:
	sub	r3, fp, #154
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	write
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	beq	.L65
	mov	r0, #1
	bl	exit
.L65:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L63:
	ldr	r3, [fp, #-152]
	cmp	r3, #32768
	blt	.L66
	ldr	r0, [fp, #-144]
	bl	close
.L61:
	mov	r3, #0
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC16
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	optind
	.word	.LC14
	.word	577
	.word	.LC15
	.word	3842
	.word	memory
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
