	.file	"796611.c"
	.intel_syntax noprefix
	.text
	.type	die, @function
die:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.type	parse_uint, @function
parse_uint:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -20[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	mov	eax, 0
	jmp	.L10
.L5:
	mov	rax, QWORD PTR -16[rbp]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L7
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jb	.L8
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jbe	.L9
.L8:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	mov	eax, 0
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
.L10:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_uint, .-parse_uint
	.section	.rodata
.LC0:
	.string	"%s: %s"
	.text
	.type	parse_segment_index, @function
parse_segment_index:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	parse_uint
	mov	DWORD PTR -4[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	die
.L13:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_segment_index, .-parse_segment_index
	.section	.rodata
.LC1:
	.string	"Bad start segment"
.LC2:
	.string	"Bad end segment"
	.text
	.type	parse_segment_range, @function
parse_segment_range:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	cmp	DWORD PTR -20[rbp], 3
	jle	.L16
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rcx, .LC1[rip]
	mov	edx, 834
	mov	esi, 0
	mov	rdi, rax
	call	parse_segment_index
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	cmp	DWORD PTR -20[rbp], 4
	jle	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rcx, .LC2[rip]
	mov	edx, 834
	mov	rdi, rax
	call	parse_segment_index
	jmp	.L19
.L18:
	mov	eax, 834
.L19:
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parse_segment_range, .-parse_segment_range
	.type	limit_within_bounds, @function
limit_within_bounds:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2048
	jbe	.L21
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	movzx	eax, ax
	jmp	.L23
.L21:
	mov	eax, DWORD PTR -4[rbp]
.L23:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	limit_within_bounds, .-limit_within_bounds
	.section	.rodata
.LC4:
	.string	"v %.3Lf %.3Lf %.3Lf\n"
	.text
	.type	convert_vertex, @function
convert_vertex:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	edi, eax
	call	limit_within_bounds
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	edi, eax
	call	limit_within_bounds
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	edi, eax
	call	limit_within_bounds
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	fild	QWORD PTR -56[rbp]
	test	rax, rax
	jns	.L25
	fld	TBYTE PTR .LC3[rip]
	faddp	st(1), st
.L25:
	fld	TBYTE PTR scale.0[rip]
	fmulp	st(1), st
	mov	eax, DWORD PTR -8[rbp]
	mov	QWORD PTR -56[rbp], rax
	fild	QWORD PTR -56[rbp]
	fld	TBYTE PTR scale.0[rip]
	fmulp	st(1), st
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	fild	QWORD PTR -56[rbp]
	test	rax, rax
	jns	.L26
	fld	TBYTE PTR .LC3[rip]
	faddp	st(1), st
.L26:
	fld	TBYTE PTR scale.0[rip]
	fmulp	st(1), st
	fxch	st(2)
	mov	rax, QWORD PTR -40[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 48
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	convert_vertex, .-convert_vertex
	.section	.rodata
.LC6:
	.string	" %lu"
	.text
	.type	convert_polygon, @function
convert_polygon:
.LFB12:
	.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	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 102
	call	fputc@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L30
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L30:
	add	DWORD PTR -12[rbp], 1
.L29:
	cmp	DWORD PTR -12[rbp], 3
	jne	.L31
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	convert_polygon, .-convert_polygon
	.section	.rodata
.LC7:
	.string	"Block offset too large\n"
	.align 8
.LC8:
	.string	"Block could cause a buffer overflow\n"
	.text
	.type	convert_block, @function
convert_block:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	sal	eax, 2
	mov	eax, eax
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 34560
	jbe	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -23[rbp], al
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -22[rbp], al
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -21[rbp], al
	movzx	eax, BYTE PTR -23[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -22[rbp]
	sal	rax, 3
	add	rdx, rax
	movzx	eax, BYTE PTR -21[rbp]
	sal	rax, 3
	add	rax, rdx
	add	rax, 8
	cmp	rax, 36864
	jbe	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L35
.L36:
	add	QWORD PTR -80[rbp], 4
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 3
	sal	rax, 11
	add	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 2
	mov	eax, eax
	sal	rax, 11
	add	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	DWORD PTR -20[rbp], 1
	mov	BYTE PTR -24[rbp], 0
	jmp	.L37
.L39:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	convert_polygon
	mov	DWORD PTR -20[rbp], eax
	add	BYTE PTR -24[rbp], 1
	add	QWORD PTR -80[rbp], 16
.L37:
	cmp	DWORD PTR -20[rbp], 0
	je	.L38
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, BYTE PTR -23[rbp]
	jne	.L39
.L38:
	mov	BYTE PTR -24[rbp], 0
	jmp	.L40
.L42:
	mov	rcx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	convert_vertex
	mov	DWORD PTR -20[rbp], eax
	add	BYTE PTR -24[rbp], 1
	add	QWORD PTR -80[rbp], 8
.L40:
	cmp	DWORD PTR -20[rbp], 0
	je	.L41
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, BYTE PTR -22[rbp]
	jne	.L42
.L41:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -20[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	convert_block, .-convert_block
	.section	.rodata
.LC9:
	.string	"Read failed\n"
.LC10:
	.string	"EOF was reached\n"
	.text
	.type	convert_segment, @function
convert_segment:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 36864
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L44
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
.L45:
	mov	eax, 0
	jmp	.L46
.L44:
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 31
	sal	rax, 13
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 5
	mov	eax, eax
	sal	rax, 13
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	jmp	.L47
.L49:
	mov	r8, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	edi, eax
	call	convert_block
	mov	DWORD PTR -24[rbp], eax
	add	DWORD PTR -20[rbp], 1
.L47:
	cmp	DWORD PTR -24[rbp], 0
	je	.L48
	cmp	DWORD PTR -20[rbp], 16
	jne	.L49
.L48:
	mov	eax, DWORD PTR -24[rbp]
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	convert_segment, .-convert_segment
	.section	.rodata
.LC11:
	.string	"Seek failed\n"
.LC12:
	.string	"Out of memory\n"
	.text
	.type	convert_to_obj, @function
convert_to_obj:
.LFB15:
	.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	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	QWORD PTR -80[rbp], rdx
	mov	QWORD PTR -88[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 12
	mov	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L59
.L51:
	mov	edi, 36864
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L59
.L53:
	mov	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	shr	eax, 5
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	shr	eax, 5
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	je	.L54
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 31
	jmp	.L55
.L54:
	mov	eax, 0
.L55:
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -60[rbp], eax
	jmp	.L56
.L58:
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rsi, -32[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	convert_segment
	mov	DWORD PTR -52[rbp], eax
	add	DWORD PTR -60[rbp], 1
	add	DWORD PTR -56[rbp], 1
.L56:
	cmp	DWORD PTR -52[rbp], 0
	je	.L57
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jbe	.L58
.L57:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -52[rbp]
.L59:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	convert_to_obj, .-convert_to_obj
	.section	.rodata
	.align 8
.LC13:
	.string	"Bad arguments: %s <in> <out> [<start>] [<end>]"
.LC14:
	.string	"rb"
.LC15:
	.string	"Failed to open input file: %s"
.LC16:
	.string	"w"
	.align 8
.LC17:
	.string	"Failed to open output file: %s"
	.align 8
.LC18:
	.string	"Starting conversion of segments %u-%u to %s\n"
.LC19:
	.string	"Conversion failed"
.LC20:
	.string	"Conversion successful"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 2
	jg	.L62
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	die
.L62:
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -36[rbp]
	mov	rdi, rax
	call	parse_segment_range
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L63
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	die
.L63:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	die
.L64:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	edi, eax
	call	convert_to_obj
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -28[rbp], 0
	jne	.L65
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	die
.L65:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	scale.0, @object
	.size	scale.0, 16
scale.0:
	.long	-1924145349
	.long	-2095944041
	.long	16373
	.long	0
	.align 16
.LC3:
	.long	0
	.long	-2147483648
	.long	16447
	.long	0
	.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	"796611.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_uint, %function
parse_uint:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtoul
	str	r0, [fp, #-12]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	mov	r3, #0
	b	.L11
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
	b	.L11
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L9
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bls	.L10
.L9:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	mov	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-12]
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.size	parse_uint, .-parse_uint
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_segment_index, %function
parse_segment_index:
	@ 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	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	parse_uint
	str	r0, [fp, #-8]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L18
	bl	die
.L16:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.size	parse_segment_index, .-parse_segment_index
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Bad start segment\000"
	.align	2
.LC4:
	.ascii	"Bad end segment\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_segment_range, %function
parse_segment_range:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L21
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	r3, .L25
	ldr	r2, .L25+4
	mov	r1, #0
	bl	parse_segment_index
	mov	r3, r0
	b	.L22
.L21:
	mov	r3, #0
.L22:
	ldr	r2, [fp, #-8]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L23
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, .L25+8
	ldr	r2, .L25+4
	bl	parse_segment_index
	mov	r3, r0
	b	.L24
.L23:
	ldr	r3, .L25+4
.L24:
	ldr	r2, [fp, #-12]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC3
	.word	834
	.word	.LC4
	.size	parse_segment_range, .-parse_segment_range
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	limit_within_bounds, %function
limit_within_bounds:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2048
	bls	.L28
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L30
.L28:
	ldr	r3, [fp, #-8]
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	limit_within_bounds, .-limit_within_bounds
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC5:
	.ascii	"v %.3Lf %.3Lf %.3Lf\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_vertex, %function
convert_vertex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	mov	r0, r3
	bl	limit_within_bounds
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-52]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	mov	r0, r3
	bl	limit_within_bounds
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	mov	r0, r3
	bl	limit_within_bounds
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_ui2d
	ldr	r3, .L33
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-28]
	bl	__aeabi_ui2d
	ldr	r3, .L33
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_ui2d
	ldr	r3, .L33
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L33+4
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r0, [fp, #-48]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L34:
	.align	2
.L33:
	.word	scale.5334
	.word	.LC5
	.size	convert_vertex, .-convert_vertex
	.section	.rodata
	.align	2
.LC6:
	.ascii	" %lu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_polygon, %function
convert_polygon:
	@ 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]
	ldr	r1, [fp, #-20]
	mov	r0, #102
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L38:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L40
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L37
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L37:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L38
	ldr	r1, [fp, #-20]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-20]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC6
	.size	convert_polygon, .-convert_polygon
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Block offset too large\012\000"
	.align	2
.LC8:
	.ascii	"Block could cause a buffer overflow\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_block, %function
convert_block:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #8]
	ldr	r3, [fp, #8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #34560
	bls	.L43
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L52+4
	bl	fwrite
	mov	r3, #0
	b	.L44
.L43:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	str	r3, [fp, #8]
	ldr	r3, [fp, #8]
	ldrb	r3, [r3]
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #8]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-18]
	ldr	r3, [fp, #8]
	ldrb	r3, [r3, #2]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #8
	cmp	r3, #36864
	bls	.L45
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L52+8
	bl	fwrite
	mov	r3, #0
	b	.L44
.L45:
	ldr	r3, [fp, #8]
	add	r3, r3, #4
	str	r3, [fp, #8]
	ldr	r3, [fp, #-24]
	and	r3, r3, #3
	lsl	r3, r3, #11
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #2
	lsl	r3, r3, #11
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #4]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-20]
	b	.L46
.L48:
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-36]
	bl	convert_polygon
	str	r0, [fp, #-16]
	ldrb	r3, [fp, #-20]
	add	r3, r3, #1
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	add	r3, r3, #16
	str	r3, [fp, #8]
.L46:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L47
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L48
.L47:
	mov	r3, #0
	strb	r3, [fp, #-20]
	b	.L49
.L51:
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	convert_vertex
	str	r0, [fp, #-16]
	ldrb	r3, [fp, #-20]
	add	r3, r3, #1
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	add	r3, r3, #8
	str	r3, [fp, #8]
.L49:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L50
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L51
.L50:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	stderr
	.word	.LC7
	.word	.LC8
	.size	convert_block, .-convert_block
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Read failed\012\000"
	.align	2
.LC10:
	.ascii	"EOF was reached\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_segment, %function
convert_segment:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #36864
	ldr	r0, [fp, #4]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L55
	ldr	r3, .L61
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L61+4
	bl	fwrite
	ldr	r0, [fp, #-32]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L61
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L61+8
	bl	fwrite
.L56:
	mov	r3, #0
	b	.L57
.L55:
	ldr	r3, [fp, #-24]
	and	r3, r3, #31
	lsl	r3, r3, #13
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #5
	lsl	r3, r3, #13
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L58
.L60:
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	convert_block
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-16]
	cmp	r3, #16
	bne	.L60
.L59:
	ldr	r3, [fp, #-20]
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	convert_segment, .-convert_segment
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Seek failed\012\000"
	.align	2
.LC12:
	.ascii	"Out of memory\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_to_obj, %function
convert_to_obj:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L74+4
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L74+8
	bl	fwrite
	mov	r3, #0
	b	.L72
.L64:
	mov	r0, #36864
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L66
	ldr	r3, .L74+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L74+12
	bl	fwrite
	mov	r3, #0
	b	.L72
.L66:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	lsr	r3, r3, #5
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	lsr	r3, r3, #5
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L67
	ldr	r3, [fp, #-48]
	and	r3, r3, #31
	b	.L68
.L67:
	mov	r3, #0
.L68:
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	b	.L69
.L71:
	sub	r1, fp, #16
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r0, [fp, #-36]
	bl	convert_segment
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L69:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L70
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bls	.L71
.L70:
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r3, [fp, #-32]
.L72:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC13
	.word	stderr
	.word	.LC11
	.word	.LC12
	.size	convert_to_obj, .-convert_to_obj
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Bad arguments: %s <in> <out> [<start>] [<end>]\000"
	.align	2
.LC15:
	.ascii	"rb\000"
	.align	2
.LC16:
	.ascii	"Failed to open input file: %s\000"
	.align	2
.LC17:
	.ascii	"w\000"
	.align	2
.LC18:
	.ascii	"Failed to open output file: %s\000"
	.align	2
.LC19:
	.ascii	"Starting conversion of segments %u-%u to %s\012\000"
	.align	2
.LC20:
	.ascii	"Conversion failed\000"
	.align	2
.LC21:
	.ascii	"Conversion successful\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bgt	.L77
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L82+4
	bl	die
.L77:
	sub	r1, fp, #24
	sub	r0, fp, #28
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	bl	parse_segment_range
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L82+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L78
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L82+12
	bl	die
.L78:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L82+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L79
	ldr	r0, [fp, #-20]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L82+20
	bl	die
.L79:
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r0, .L82+24
	bl	printf
	ldr	r0, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	bl	convert_to_obj
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L80
	ldr	r0, .L82+28
	bl	die
.L80:
	ldr	r0, .L82+32
	bl	puts
	mov	r0, #0
	bl	exit
.L83:
	.align	2
.L82:
	.word	.LC22
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.section	.rodata
	.align	3
	.type	scale.5334, %object
	.size	scale.5334, 8
scale.5334:
	.word	3539053052
	.word	1062232653
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
