	.file	"390448.c"
	.intel_syntax noprefix
	.text
	.globl	ZoneSecSize
	.section	.rodata
	.align 32
	.type	ZoneSecSize, @object
	.size	ZoneSecSize, 64
ZoneSecSize:
	.long	232
	.long	216
	.long	208
	.long	192
	.long	176
	.long	160
	.long	144
	.long	128
	.long	216
	.long	208
	.long	192
	.long	176
	.long	160
	.long	144
	.long	128
	.long	112
	.globl	ZoneTracks
	.align 32
	.type	ZoneTracks, @object
	.size	ZoneTracks, 64
ZoneTracks:
	.long	158
	.long	158
	.long	149
	.long	149
	.long	149
	.long	149
	.long	149
	.long	114
	.long	158
	.long	158
	.long	149
	.long	149
	.long	149
	.long	149
	.long	149
	.long	114
	.globl	DiskTypeZones
	.align 32
	.type	DiskTypeZones, @object
	.size	DiskTypeZones, 448
DiskTypeZones:
	.long	0
	.long	1
	.long	2
	.long	9
	.long	8
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	0
	.long	1
	.long	2
	.long	3
	.long	10
	.long	9
	.long	8
	.long	4
	.long	5
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	11
	.long	10
	.long	9
	.long	8
	.long	5
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.long	7
	.long	15
	.long	14
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.long	15
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.globl	RevDiskTypeZones
	.align 32
	.type	RevDiskTypeZones, @object
	.size	RevDiskTypeZones, 448
RevDiskTypeZones:
	.long	0
	.long	1
	.long	2
	.long	5
	.long	6
	.long	7
	.long	8
	.long	9
	.long	4
	.long	3
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	0
	.long	1
	.long	2
	.long	3
	.long	7
	.long	8
	.long	9
	.long	10
	.long	6
	.long	5
	.long	4
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	9
	.long	10
	.long	11
	.long	8
	.long	7
	.long	6
	.long	5
	.long	15
	.long	14
	.long	13
	.long	12
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	11
	.long	12
	.long	10
	.long	9
	.long	8
	.long	7
	.long	6
	.long	15
	.long	14
	.long	13
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.long	7
	.long	15
	.long	14
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.long	15
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	10
	.long	9
	.long	8
	.globl	StartBlock
	.align 32
	.type	StartBlock, @object
	.size	StartBlock, 448
StartBlock:
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.globl	StartTrack
	.align 32
	.type	StartTrack, @object
	.size	StartTrack, 64
StartTrack:
	.long	0
	.long	158
	.long	316
	.long	465
	.long	614
	.long	763
	.long	912
	.long	1061
	.long	158
	.long	316
	.long	465
	.long	614
	.long	763
	.long	912
	.long	1061
	.long	1175
	.align 8
.LC0:
	.string	"Usage: ddconvert infile outfile"
.LC1:
	.string	"rb"
.LC2:
	.string	"wb"
.LC3:
	.string	"Disk Type = %d\n"
.LC4:
	.string	"Input Offset %d: %x\n"
.LC5:
	.string	"Output Offset %d: %x\n"
.LC6:
	.string	"Alt Track, Zone %d Track %x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -40960[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3152
	mov	DWORD PTR -44100[rbp], edi
	mov	QWORD PTR -44112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44068[rbp], 0
	mov	DWORD PTR -44064[rbp], 0
	mov	DWORD PTR -44060[rbp], 0
	mov	DWORD PTR -44076[rbp], 0
	mov	DWORD PTR -44072[rbp], 0
	mov	DWORD PTR -44056[rbp], 0
	mov	QWORD PTR -44032[rbp], 0
	mov	QWORD PTR -43904[rbp], 0
	cmp	DWORD PTR -44100[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -44112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -44048[rbp], rax
	mov	rax, QWORD PTR -44112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -44040[rbp], rax
	mov	rax, QWORD PTR -44048[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -43776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 232
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -43771[rbp]
	movzx	eax, al
	and	eax, 15
	mov	DWORD PTR -44068[rbp], eax
	mov	eax, DWORD PTR -44068[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44084[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -44084[rbp]
	sub	eax, 1
	cdqe
	mov	rsi, QWORD PTR -44032[rbp+rax*8]
	mov	eax, DWORD PTR -44084[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -44068[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, DiskTypeZones[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -44084[rbp]
	sub	edx, 1
	movsx	rcx, edx
	mov	edx, DWORD PTR -44068[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, DiskTypeZones[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	mov	edx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, ZoneTracks[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	imul	edx, edx, 170
	sub	edx, 2040
	imul	eax, edx
	mov	eax, eax
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	QWORD PTR -44032[rbp+rax*8], rdx
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	rdx, QWORD PTR -44032[rbp+rax*8]
	mov	eax, DWORD PTR -44084[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44084[rbp], 1
.L4:
	cmp	DWORD PTR -44084[rbp], 15
	jle	.L5
	mov	DWORD PTR -44084[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -44084[rbp]
	sub	eax, 1
	cdqe
	mov	rsi, QWORD PTR -43904[rbp+rax*8]
	mov	eax, DWORD PTR -44084[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44084[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	imul	eax, eax, 170
	mov	eax, eax
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	QWORD PTR -43904[rbp+rax*8], rdx
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	rdx, QWORD PTR -43904[rbp+rax*8]
	mov	eax, DWORD PTR -44084[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44084[rbp], 1
.L6:
	cmp	DWORD PTR -44084[rbp], 15
	jle	.L7
	mov	DWORD PTR -44084[rbp], 0
	jmp	.L8
.L15:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	rax, QWORD PTR -43904[rbp+rax*8]
	mov	DWORD PTR -44056[rbp], eax
	mov	eax, DWORD PTR -44084[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44068[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, RevDiskTypeZones[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	eax, eax
	mov	rax, QWORD PTR -44032[rbp+rax*8]
	mov	DWORD PTR -44052[rbp], eax
	mov	ecx, DWORD PTR -44052[rbp]
	mov	rax, QWORD PTR -44048[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	ecx, DWORD PTR -44056[rbp]
	mov	rax, QWORD PTR -44040[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -44084[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44068[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, StartBlock[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -44072[rbp], eax
	mov	DWORD PTR -44076[rbp], 0
	mov	DWORD PTR -44080[rbp], 0
	jmp	.L9
.L14:
	cmp	DWORD PTR -44076[rbp], 11
	jg	.L10
	mov	edx, DWORD PTR -44084[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	lea	edx, 32[rax]
	mov	eax, DWORD PTR -44076[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -43776[rbp+rax]
	movzx	eax, al
	cmp	DWORD PTR -44080[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	edx, eax
	lea	rax, -43536[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	edx, eax
	lea	rax, -21776[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	DWORD PTR -44076[rbp], 1
	mov	edx, DWORD PTR -44080[rbp]
	mov	eax, DWORD PTR -44084[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -44072[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L12
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
.L13:
	mov	eax, 1
	sub	eax, DWORD PTR -44072[rbp]
	mov	DWORD PTR -44072[rbp], eax
.L11:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44040[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44040[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -44080[rbp], 1
.L9:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44080[rbp]
	cmp	edx, eax
	ja	.L14
	add	DWORD PTR -44084[rbp], 1
.L8:
	cmp	DWORD PTR -44084[rbp], 7
	jle	.L15
	mov	DWORD PTR -44084[rbp], 8
	jmp	.L16
.L23:
	mov	eax, DWORD PTR -44084[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44068[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, RevDiskTypeZones[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	eax, eax
	mov	rax, QWORD PTR -44032[rbp+rax*8]
	mov	DWORD PTR -44052[rbp], eax
	mov	ecx, DWORD PTR -44052[rbp]
	mov	rax, QWORD PTR -44048[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -44084[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44068[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, StartBlock[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -44072[rbp], eax
	mov	DWORD PTR -44076[rbp], 11
	mov	DWORD PTR -44080[rbp], 1
	jmp	.L17
.L22:
	cmp	DWORD PTR -44076[rbp], 0
	js	.L18
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -44080[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	edx, DWORD PTR -44084[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	lea	edx, 32[rax]
	mov	eax, DWORD PTR -44076[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -43776[rbp+rax]
	movzx	eax, al
	cmp	ecx, eax
	jne	.L18
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	edx, eax
	lea	rax, -43536[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	edx, eax
	lea	rax, -21776[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	sub	DWORD PTR -44076[rbp], 1
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -44080[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -44084[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -44072[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L20
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44048[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
.L21:
	mov	eax, 1
	sub	eax, DWORD PTR -44072[rbp]
	mov	DWORD PTR -44072[rbp], eax
.L19:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	mov	rax, QWORD PTR -43904[rbp+rax*8]
	mov	esi, eax
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -44080[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, ecx
	imul	eax, eax, 170
	add	eax, esi
	mov	DWORD PTR -44056[rbp], eax
	mov	ecx, DWORD PTR -44056[rbp]
	mov	rax, QWORD PTR -44040[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44040[rbp]
	lea	rax, -43536[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneSecSize[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, eax, 85
	mov	esi, eax
	mov	rdx, QWORD PTR -44040[rbp]
	lea	rax, -21776[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -44080[rbp], 1
.L17:
	mov	eax, DWORD PTR -44084[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ZoneTracks[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -44080[rbp]
	cmp	edx, eax
	ja	.L22
	add	DWORD PTR -44084[rbp], 1
.L16:
	cmp	DWORD PTR -44084[rbp], 15
	jle	.L23
	mov	rax, QWORD PTR -44048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -44040[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L3:
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"390448.c"
	.text
	.global	ZoneSecSize
	.section	.rodata
	.align	2
	.type	ZoneSecSize, %object
	.size	ZoneSecSize, 64
ZoneSecSize:
	.word	232
	.word	216
	.word	208
	.word	192
	.word	176
	.word	160
	.word	144
	.word	128
	.word	216
	.word	208
	.word	192
	.word	176
	.word	160
	.word	144
	.word	128
	.word	112
	.global	ZoneTracks
	.align	2
	.type	ZoneTracks, %object
	.size	ZoneTracks, 64
ZoneTracks:
	.word	158
	.word	158
	.word	149
	.word	149
	.word	149
	.word	149
	.word	149
	.word	114
	.word	158
	.word	158
	.word	149
	.word	149
	.word	149
	.word	149
	.word	149
	.word	114
	.global	DiskTypeZones
	.align	2
	.type	DiskTypeZones, %object
	.size	DiskTypeZones, 448
DiskTypeZones:
	.word	0
	.word	1
	.word	2
	.word	9
	.word	8
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	0
	.word	1
	.word	2
	.word	3
	.word	10
	.word	9
	.word	8
	.word	4
	.word	5
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	11
	.word	10
	.word	9
	.word	8
	.word	5
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.word	7
	.word	15
	.word	14
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.word	15
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.global	RevDiskTypeZones
	.align	2
	.type	RevDiskTypeZones, %object
	.size	RevDiskTypeZones, 448
RevDiskTypeZones:
	.word	0
	.word	1
	.word	2
	.word	5
	.word	6
	.word	7
	.word	8
	.word	9
	.word	4
	.word	3
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	0
	.word	1
	.word	2
	.word	3
	.word	7
	.word	8
	.word	9
	.word	10
	.word	6
	.word	5
	.word	4
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	9
	.word	10
	.word	11
	.word	8
	.word	7
	.word	6
	.word	5
	.word	15
	.word	14
	.word	13
	.word	12
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	11
	.word	12
	.word	10
	.word	9
	.word	8
	.word	7
	.word	6
	.word	15
	.word	14
	.word	13
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.word	7
	.word	15
	.word	14
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.word	15
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	10
	.word	9
	.word	8
	.global	StartBlock
	.align	2
	.type	StartBlock, %object
	.size	StartBlock, 448
StartBlock:
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	0
	.word	0
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.word	1
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.word	1
	.word	0
	.word	1
	.word	0
	.word	1
	.word	1
	.global	StartTrack
	.align	2
	.type	StartTrack, %object
	.size	StartTrack, 64
StartTrack:
	.word	0
	.word	158
	.word	316
	.word	465
	.word	614
	.word	763
	.word	912
	.word	1061
	.word	158
	.word	316
	.word	465
	.word	614
	.word	763
	.word	912
	.word	1061
	.word	1175
	.align	2
.LC0:
	.ascii	"Usage: ddconvert infile outfile\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"Disk Type = %d\012\000"
	.align	2
.LC4:
	.ascii	"Input Offset %d: %x\012\000"
	.align	2
.LC5:
	.ascii	"Output Offset %d: %x\012\000"
	.align	2
.LC6:
	.ascii	"Alt Track, Zone %d Track %x\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 = 43936
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #43776
	sub	sp, sp, #164
	sub	r3, fp, #40960
	sub	r3, r3, #12
	str	r0, [r3, #-2972]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	str	r1, [r3, #-2976]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2952]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2948]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2944]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2960]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2956]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2940]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2924]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2860]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2972]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L26+4
	bl	puts
	b	.L3
.L2:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2976]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L26+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-2936]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2976]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L26+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-2932]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-2936]
	bl	fseek
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #236
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	mov	r1, #232
	bl	fread
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldrb	r3, [r3, #-2791]	@ zero_extendqisi2
	sub	r2, fp, #40960
	sub	r2, r2, #12
	and	r3, r3, #15
	str	r3, [r2, #-2952]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r1, [r3, #-2952]
	ldr	r0, .L26+16
	bl	printf
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2968]
	b	.L4
.L5:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	sub	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-2924]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	sub	r3, r3, #1
	ldr	r0, .L26+20
	sub	r2, fp, #40960
	sub	r2, r2, #12
	ldr	r2, [r2, #-2952]
	lsl	r2, r2, #4
	add	r3, r2, r3
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L26+24
	ldr	r0, [r2, r3, lsl #2]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	sub	r3, r3, #1
	ldr	ip, .L26+20
	sub	r2, fp, #40960
	sub	r2, r2, #12
	ldr	r2, [r2, #-2952]
	lsl	r2, r2, #4
	add	r3, r2, r3
	ldr	r3, [ip, r3, lsl #2]
	ldr	r2, .L26+28
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r3, #2032
	sub	r3, r3, #8
	mul	r3, r0, r3
	add	r2, r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-2924]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2924]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2968]
	ldr	r0, .L26+32
	bl	printf
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r3, #1
	str	r3, [r2, #-2968]
.L4:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	cmp	r3, #15
	ble	.L5
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2968]
	b	.L6
.L7:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	sub	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-2860]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	sub	r3, r3, #1
	ldr	r2, .L26+24
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	ldr	r2, [r2, #-2968]
	sub	r2, r2, #1
	ldr	r0, .L26+28
	ldr	r2, [r0, r2, lsl #2]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-2860]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2860]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2968]
	ldr	r0, .L26+36
	bl	printf
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r3, #1
	str	r3, [r2, #-2968]
.L6:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	cmp	r3, #15
	ble	.L7
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2968]
	b	.L8
.L15:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2860]
	str	r3, [r2, #-2940]
	ldr	r1, .L26+40
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2952]
	lsl	r2, r3, #4
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	sub	r1, fp, #40960
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2924]
	str	r3, [r2, #-2928]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2928]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2936]
	bl	fseek
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2940]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2932]
	bl	fseek
	ldr	r1, .L26+44
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2952]
	lsl	r2, r3, #4
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	str	r3, [r2, #-2956]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2960]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2964]
	b	.L9
.L14:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	cmp	r3, #11
	bgt	.L10
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r2, [r3, #-2968]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, #32
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-2796]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	cmp	r3, r2
	bne	.L10
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	sub	r3, fp, #43520
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	sub	r3, fp, #21760
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	add	r3, r3, #1
	str	r3, [r2, #-2960]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r2, [r2, #-2964]
	ldr	r1, [r3, #-2968]
	ldr	r0, .L26+48
	bl	printf
	b	.L11
.L10:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2956]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L12
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	b	.L13
.L12:
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
.L13:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2956]
	rsb	r3, r3, #1
	str	r3, [r2, #-2956]
.L11:
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2932]
	mov	r2, #1
	bl	fwrite
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2932]
	mov	r2, #1
	bl	fwrite
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	add	r3, r3, #1
	str	r3, [r2, #-2964]
.L9:
	ldr	r2, .L26+28
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	cmp	r2, r3
	bhi	.L14
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r3, #1
	str	r3, [r2, #-2968]
.L8:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	cmp	r3, #7
	ble	.L15
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #8
	str	r3, [r2, #-2968]
	b	.L16
.L23:
	ldr	r1, .L26+40
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2952]
	lsl	r2, r3, #4
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	sub	r1, fp, #40960
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2924]
	str	r3, [r2, #-2928]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2928]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2936]
	bl	fseek
	ldr	r1, .L26+44
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2952]
	lsl	r2, r3, #4
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	str	r3, [r2, #-2956]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #11
	str	r3, [r2, #-2960]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2964]
	b	.L17
.L22:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	cmp	r3, #0
	blt	.L18
	ldr	r2, .L26+28
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	sub	r1, r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r2, [r3, #-2968]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, #32
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	add	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-2796]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L18
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	sub	r3, fp, #43520
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	sub	r3, fp, #21760
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2960]
	sub	r3, r3, #1
	str	r3, [r2, #-2960]
	ldr	r2, .L26+28
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	sub	r3, r2, r3
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2968]
	ldr	r0, .L26+48
	bl	printf
	b	.L19
.L18:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2956]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L20
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	b	.L21
.L20:
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2936]
	mov	r2, #1
	bl	fread
.L21:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2956]
	rsb	r3, r3, #1
	str	r3, [r2, #-2956]
.L19:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-2860]
	ldr	r2, .L26+28
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	sub	r3, r2, r3
	ldr	r0, .L26+24
	sub	r2, fp, #40960
	sub	r2, r2, #12
	ldr	r2, [r2, #-2968]
	ldr	r2, [r0, r2, lsl #2]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #40960
	sub	r2, r2, #12
	add	r3, r1, r3
	str	r3, [r2, #-2940]
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2940]
	sub	r2, fp, #40960
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2932]
	bl	fseek
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #43520
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2932]
	mov	r2, #1
	bl	fwrite
	ldr	r2, .L26+24
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #40960
	sub	r3, r3, #12
	sub	r0, fp, #21760
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-2932]
	mov	r2, #1
	bl	fwrite
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	add	r3, r3, #1
	str	r3, [r2, #-2964]
.L17:
	ldr	r2, .L26+28
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2964]
	cmp	r2, r3
	bhi	.L22
	sub	r3, fp, #40960
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	add	r3, r3, #1
	str	r3, [r2, #-2968]
.L16:
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r3, [r3, #-2968]
	cmp	r3, #15
	ble	.L23
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r0, [r3, #-2936]
	bl	fclose
	sub	r3, fp, #40960
	sub	r3, r3, #12
	ldr	r0, [r3, #-2932]
	bl	fclose
.L3:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	DiskTypeZones
	.word	ZoneSecSize
	.word	ZoneTracks
	.word	.LC4
	.word	.LC5
	.word	RevDiskTypeZones
	.word	StartBlock
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
