	.file	"820870.c"
	.intel_syntax noprefix
	.text
	.globl	outfile
	.bss
	.align 8
	.type	outfile, @object
	.size	outfile, 8
outfile:
	.zero	8
	.globl	image_data
	.align 8
	.type	image_data, @object
	.size	image_data, 8
image_data:
	.zero	8
	.globl	rgb_image_data
	.align 8
	.type	rgb_image_data, @object
	.size	rgb_image_data, 8
rgb_image_data:
	.zero	8
	.globl	temp_image_data
	.align 8
	.type	temp_image_data, @object
	.size	temp_image_data, 8
temp_image_data:
	.zero	8
	.globl	outfile_name
	.align 8
	.type	outfile_name, @object
	.size	outfile_name, 8
outfile_name:
	.zero	8
	.globl	enable_pgm
	.data
	.align 4
	.type	enable_pgm, @object
	.size	enable_pgm, 4
enable_pgm:
	.long	1
	.globl	enable_pfm
	.bss
	.align 4
	.type	enable_pfm, @object
	.size	enable_pfm, 4
enable_pfm:
	.zero	4
	.globl	enable_wu
	.data
	.align 4
	.type	enable_wu, @object
	.size	enable_wu, 4
enable_wu:
	.long	1
	.globl	x_dim
	.align 4
	.type	x_dim, @object
	.size	x_dim, 4
x_dim:
	.long	256
	.globl	y_dim
	.align 4
	.type	y_dim, @object
	.size	y_dim, 4
y_dim:
	.long	256
	.section	.rodata
.LC0:
	.string	"P2\n"
.LC1:
	.string	"P5\n"
.LC2:
	.string	"# %s\n"
.LC3:
	.string	"%d %d\n"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d "
	.text
	.globl	write_pgm_file
	.type	write_pgm_file, @function
write_pgm_file:
.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, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -52[rbp], r9d
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR 40[rbp], 1
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
.L3:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR 24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L9:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L8:
	cmp	DWORD PTR 40[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR 32[rbp]
	mov	eax, DWORD PTR 32[rbp]
	sub	eax, 1
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L7:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L8
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_pgm_file, .-write_pgm_file
	.globl	WriteFloat
	.type	WriteFloat, @function
WriteFloat:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
.L11:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	eax, 1
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	WriteFloat, .-WriteFloat
	.section	.rodata
.LC8:
	.string	"PF\n"
.LC9:
	.string	"Pf\n"
	.align 8
.LC10:
	.string	"Error: Image type invalid for PFM format!\n"
.LC11:
	.string	"%f\n"
	.text
	.globl	write_pfm_file
	.type	write_pfm_file, @function
write_pfm_file:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	mov	DWORD PTR -68[rbp], r9d
	cmp	DWORD PTR 16[rbp], 1
	setne	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR 16[rbp], 1
	jne	.L15
	movss	xmm0, DWORD PTR .LC6[rip]
	jmp	.L16
.L15:
	movss	xmm0, DWORD PTR .LC7[rip]
.L16:
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -68[rbp], 16
	jne	.L17
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	jmp	.L18
.L17:
	cmp	DWORD PTR -68[rbp], 17
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L18
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -12[rbp]
	movq	rdx, xmm1
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L20
.L25:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L21
.L24:
	cmp	DWORD PTR -68[rbp], 16
	jne	.L22
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	WriteFloat
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	WriteFloat
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	WriteFloat
	jmp	.L23
.L22:
	cmp	DWORD PTR -68[rbp], 17
	jne	.L23
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	WriteFloat
.L23:
	add	DWORD PTR -20[rbp], 1
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L24
	add	DWORD PTR -24[rbp], 1
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_pfm_file, .-write_pfm_file
	.globl	ipart
	.type	ipart, @function
ipart:
.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
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L32
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	floor@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L29
.L32:
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -20[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	ceil@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
.L29:
	movss	xmm0, DWORD PTR -4[rbp]
	cvttss2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ipart, .-ipart
	.globl	fround
	.type	fround, @function
fround:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC13[rip]
	addss	xmm1, xmm0
	movd	eax, xmm1
	movd	xmm0, eax
	call	ipart
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fround, .-fround
	.globl	fpart
	.type	fpart, @function
fpart:
.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, 32
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	movd	xmm0, eax
	call	ipart
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -20[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fpart, .-fpart
	.globl	rfpart
	.type	rfpart, @function
rfpart:
.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, 32
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	movd	xmm0, eax
	call	fpart
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC14[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	rfpart, .-rfpart
	.globl	wu
	.type	wu, @function
wu:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 96
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -100[rbp], edi
	mov	DWORD PTR -104[rbp], esi
	mov	DWORD PTR -108[rbp], edx
	mov	DWORD PTR -112[rbp], ecx
	mov	eax, DWORD PTR -112[rbp]
	sub	eax, DWORD PTR -104[rbp]
	test	eax, eax
	jle	.L40
	mov	eax, DWORD PTR -112[rbp]
	sub	eax, DWORD PTR -104[rbp]
	mov	edx, eax
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -112[rbp]
	neg	eax
	sub	eax, DWORD PTR -104[rbp]
	mov	edx, eax
.L41:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, DWORD PTR -100[rbp]
	test	eax, eax
	jle	.L42
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, DWORD PTR -100[rbp]
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -108[rbp]
	neg	eax
	sub	eax, DWORD PTR -100[rbp]
.L43:
	cmp	edx, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L44
	mov	eax, DWORD PTR -80[rbp]
	xor	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	xor	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	xor	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	xor	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	DWORD PTR -84[rbp], eax
.L44:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L45
	mov	eax, DWORD PTR -84[rbp]
	xor	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	xor	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	xor	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	xor	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	DWORD PTR -80[rbp], eax
.L45:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -60[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -60[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -64[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -56[rbp], xmm0
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -88[rbp]
	movd	eax, xmm2
	movd	xmm0, eax
	call	fround
	mov	DWORD PTR -52[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -88[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -56[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -48[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -88[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtsd2ss	xmm3, xmm0
	movd	eax, xmm3
	movd	xmm0, eax
	call	rfpart
	movd	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	ipart
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	rfpart
	movss	xmm1, DWORD PTR -44[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	fpart
	movss	xmm1, DWORD PTR -44[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	cmp	DWORD PTR -68[rbp], 0
	je	.L46
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L47
.L46:
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR x_dim[rip]
	imul	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
.L47:
	movss	xmm0, DWORD PTR -48[rbp]
	addss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR -72[rbp], xmm0
	pxor	xmm4, xmm4
	cvtsi2ss	xmm4, DWORD PTR -84[rbp]
	movd	eax, xmm4
	movd	xmm0, eax
	call	fround
	mov	DWORD PTR -52[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -108[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -56[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -48[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -84[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtsd2ss	xmm5, xmm0
	movd	eax, xmm5
	movd	xmm0, eax
	call	fpart
	movd	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	ipart
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	rfpart
	movss	xmm1, DWORD PTR -44[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	fpart
	movss	xmm1, DWORD PTR -44[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	cmp	DWORD PTR -68[rbp], 0
	je	.L48
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L49
.L48:
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR x_dim[rip]
	imul	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
.L49:
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -92[rbp], eax
	jmp	.L50
.L53:
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	rfpart
	movd	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	fpart
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L51
	mov	rbx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -92[rbp]
	mov	r12d, eax
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	ipart
	add	eax, r12d
	cdqe
	sal	rax, 2
	add	rax, rbx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rbx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR x_dim[rip]
	imul	eax, DWORD PTR -92[rbp]
	mov	r12d, eax
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	ipart
	add	eax, 1
	add	eax, r12d
	cdqe
	sal	rax, 2
	add	rax, rbx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L52
.L51:
	mov	rbx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	ipart
	mov	edx, DWORD PTR x_dim[rip]
	imul	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rbx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rbx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -72[rbp]
	movd	xmm0, eax
	call	ipart
	lea	edx, 1[rax]
	mov	eax, DWORD PTR x_dim[rip]
	imul	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rbx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
.L52:
	movss	xmm0, DWORD PTR -72[rbp]
	addss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR -72[rbp], xmm0
	add	DWORD PTR -92[rbp], 1
.L50:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jg	.L53
	nop
	nop
	add	rsp, 96
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	wu, .-wu
	.section	.rodata
	.align 8
.LC16:
	.string	"Error: Line drawing algorithm not yet implemented!\n"
	.text
	.globl	linedraw_antialias
	.type	linedraw_antialias, @function
linedraw_antialias:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	eax, DWORD PTR enable_wu[rip]
	cmp	eax, 1
	jne	.L55
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	wu
	jmp	.L57
.L55:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	linedraw_antialias, .-linedraw_antialias
	.section	.rodata
.LC17:
	.string	"* Usage:"
.LC18:
	.string	"* ./wu [options] <outfile>"
.LC19:
	.string	"* "
.LC20:
	.string	"* Options:"
	.align 8
.LC21:
	.string	"*   -h:              Print this help."
	.align 8
.LC22:
	.string	"*   -w:              Use Xiaolin Wu's anti-aliasing line drawing algorithm."
	.align 8
.LC23:
	.string	"*   -pgm:            Generate a PGM image (default)."
	.align 8
.LC24:
	.string	"*   -pfm:            Generate a PFM (Portable Float Map) image."
	.align 8
.LC25:
	.string	"*   -x <num>:        Value for the x-dimension of the image (default:256)."
	.align 8
.LC26:
	.string	"*   -y <num>:        Value for the y-dimension of the image (default:256)."
	.align 8
.LC27:
	.string	"* For further information, please refer to the website:"
.LC28:
	.string	"* http://www.nkavvadias.com\n"
	.text
	.type	print_usage, @function
print_usage:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC29:
	.string	"-h"
.LC30:
	.string	"-w"
.LC31:
	.string	"-pgm"
.LC32:
	.string	"-pfm"
.LC33:
	.string	"-x"
.LC34:
	.string	"-y"
	.align 8
.LC35:
	.string	"Error: Unknown command-line option: %s.\n"
	.align 8
.LC36:
	.string	"Error: Unspecified line generation algorithm\n"
.LC37:
	.string	"w"
.LC38:
	.string	"wb"
	.align 8
.LC39:
	.string	"Error: The specified output file has not been created.\n"
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L60
	mov	eax, 0
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L61
.L69:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	mov	eax, 0
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L62:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	mov	DWORD PTR enable_wu[rip], 1
	jmp	.L64
.L63:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L65
	mov	DWORD PTR enable_pgm[rip], 1
	mov	DWORD PTR enable_pfm[rip], 0
	jmp	.L64
.L65:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L66
	mov	DWORD PTR enable_pgm[rip], 0
	mov	DWORD PTR enable_pfm[rip], 1
	jmp	.L64
.L66:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L67
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jle	.L64
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR x_dim[rip], eax
	jmp	.L64
.L67:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jle	.L64
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR y_dim[rip], eax
	jmp	.L64
.L68:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L64:
	add	DWORD PTR -24[rbp], 1
.L61:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L69
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	eax, edx
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR image_data[rip], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L70
.L71:
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -24[rbp], 1
.L70:
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L71
	mov	edi, 7
	call	malloc@PLT
	mov	QWORD PTR outfile_name[rip], rax
	mov	eax, DWORD PTR enable_wu[rip]
	cmp	eax, 1
	jne	.L72
	mov	rax, QWORD PTR outfile_name[rip]
	mov	WORD PTR [rax], 30071
	mov	BYTE PTR 2[rax], 0
.L72:
	mov	eax, DWORD PTR enable_pgm[rip]
	cmp	eax, 1
	jne	.L73
	mov	rbx, QWORD PTR outfile_name[rip]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	DWORD PTR [rax], 1835495470
	mov	BYTE PTR 4[rax], 0
	jmp	.L74
.L73:
	mov	eax, DWORD PTR enable_pfm[rip]
	cmp	eax, 1
	jne	.L75
	mov	rbx, QWORD PTR outfile_name[rip]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	DWORD PTR [rax], 1835429934
	mov	BYTE PTR 4[rax], 0
	jmp	.L74
.L75:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L74:
	mov	eax, DWORD PTR enable_pgm[rip]
	cmp	eax, 1
	jne	.L76
	mov	rax, QWORD PTR outfile_name[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR outfile[rip], rax
	jmp	.L77
.L76:
	mov	eax, DWORD PTR enable_pfm[rip]
	cmp	eax, 1
	jne	.L78
	mov	rax, QWORD PTR outfile_name[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR outfile[rip], rax
	jmp	.L77
.L78:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L77:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L79
.L80:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR x_dim[rip]
	sar	eax
	add	eax, 16
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 16
	mov	edi, 16
	call	linedraw_antialias
	add	DWORD PTR -20[rbp], 8
.L79:
	mov	eax, DWORD PTR x_dim[rip]
	sar	eax
	cmp	DWORD PTR -20[rbp], eax
	jle	.L80
	mov	DWORD PTR -20[rbp], 0
	jmp	.L81
.L82:
	mov	eax, DWORD PTR x_dim[rip]
	sar	eax
	add	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 16
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 16
	mov	edi, 16
	call	linedraw_antialias
	add	DWORD PTR -20[rbp], 8
.L81:
	mov	eax, DWORD PTR x_dim[rip]
	sar	eax
	cmp	DWORD PTR -20[rbp], eax
	jle	.L82
	mov	eax, DWORD PTR enable_pgm[rip]
	cmp	eax, 1
	jne	.L83
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	eax, edx
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR temp_image_data[rip], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L84
.L85:
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC40[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	ecx, xmm0
	mov	rdx, QWORD PTR temp_image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, 255
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -24[rbp], 1
.L84:
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L85
	jmp	.L86
.L83:
	mov	eax, DWORD PTR enable_pfm[rip]
	cmp	eax, 1
	jne	.L86
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR rgb_image_data[rip], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L87
.L88:
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR rgb_image_data[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rsi
	movss	xmm0, DWORD PTR [rcx]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR rgb_image_data[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rsi
	movss	xmm0, DWORD PTR [rcx]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR image_data[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR rgb_image_data[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, 2
	sal	rax, 2
	add	rax, rsi
	movss	xmm0, DWORD PTR [rcx]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -24[rbp], 1
.L87:
	mov	edx, DWORD PTR x_dim[rip]
	mov	eax, DWORD PTR y_dim[rip]
	imul	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L88
.L86:
	mov	eax, DWORD PTR enable_pgm[rip]
	cmp	eax, 1
	jne	.L89
	mov	edi, DWORD PTR y_dim[rip]
	mov	ecx, DWORD PTR x_dim[rip]
	mov	rdx, QWORD PTR outfile_name[rip]
	mov	rsi, QWORD PTR temp_image_data[rip]
	mov	rax, QWORD PTR outfile[rip]
	push	1
	push	16
	push	255
	push	1
	mov	r9d, 1
	mov	r8d, edi
	mov	rdi, rax
	call	write_pgm_file
	add	rsp, 32
	jmp	.L90
.L89:
	mov	eax, DWORD PTR enable_pfm[rip]
	cmp	eax, 1
	jne	.L90
	mov	edi, DWORD PTR y_dim[rip]
	mov	ecx, DWORD PTR x_dim[rip]
	mov	rdx, QWORD PTR outfile_name[rip]
	mov	rsi, QWORD PTR rgb_image_data[rip]
	mov	rax, QWORD PTR outfile[rip]
	sub	rsp, 8
	push	-1
	mov	r9d, 16
	mov	r8d, edi
	mov	rdi, rax
	call	write_pfm_file
	add	rsp, 16
.L90:
	mov	rax, QWORD PTR image_data[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR enable_pgm[rip]
	cmp	eax, 1
	jne	.L91
	mov	rax, QWORD PTR temp_image_data[rip]
	mov	rdi, rax
	call	free@PLT
.L91:
	mov	eax, DWORD PTR enable_pfm[rip]
	cmp	eax, 1
	jne	.L92
	mov	rax, QWORD PTR rgb_image_data[rip]
	mov	rdi, rax
	call	free@PLT
.L92:
	mov	rax, QWORD PTR outfile_name[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC6:
	.long	1065353216
	.align 4
.LC7:
	.long	-1082130432
	.align 4
.LC13:
	.long	1056964608
	.align 8
.LC14:
	.long	0
	.long	1072693248
	.align 8
.LC15:
	.long	0
	.long	1071644672
	.align 8
.LC40:
	.long	0
	.long	1081073664
	.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	"820870.c"
	.text
	.comm	outfile,4,4
	.comm	image_data,4,4
	.comm	rgb_image_data,4,4
	.comm	temp_image_data,4,4
	.global	outfile_name
	.bss
	.align	2
	.type	outfile_name, %object
	.size	outfile_name, 4
outfile_name:
	.space	4
	.global	enable_pgm
	.data
	.align	2
	.type	enable_pgm, %object
	.size	enable_pgm, 4
enable_pgm:
	.word	1
	.global	enable_pfm
	.bss
	.align	2
	.type	enable_pfm, %object
	.size	enable_pfm, 4
enable_pfm:
	.space	4
	.global	enable_wu
	.data
	.align	2
	.type	enable_wu, %object
	.size	enable_wu, 4
enable_wu:
	.word	1
	.global	x_dim
	.align	2
	.type	x_dim, %object
	.size	x_dim, 4
x_dim:
	.word	256
	.global	y_dim
	.align	2
	.type	y_dim, %object
	.size	y_dim, 4
y_dim:
	.word	256
	.section	.rodata
	.align	2
.LC0:
	.ascii	"P2\012\000"
	.align	2
.LC1:
	.ascii	"P5\012\000"
	.align	2
.LC2:
	.ascii	"# %s\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\012\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"%d \000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	write_pgm_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_pgm_file, %function
write_pgm_file:
	@ args = 24, 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, #-36]
	ldr	r2, [fp, #8]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #24]
	cmp	r3, #1
	bne	.L2
	ldr	r3, [fp, #-24]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L10
	bl	fwrite
	b	.L3
.L2:
	ldr	r3, [fp, #-24]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L10+4
	bl	fwrite
.L3:
	ldr	r2, [fp, #-32]
	ldr	r1, .L10+8
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L10+12
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r2, [fp, #16]
	ldr	r1, .L10+16
	ldr	r0, [fp, #-24]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, [fp, #24]
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+20
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [fp, #20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #20]
	sub	r3, r3, #1
	cmp	r2, r3
	bne	.L7
	ldr	r1, [fp, #-24]
	mov	r0, #10
	bl	fputc
	b	.L7
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	fputc
.L7:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L9
	ldr	r0, [fp, #-24]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	write_pgm_file, .-write_pgm_file
	.align	2
	.global	WriteFloat
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteFloat, %function
WriteFloat:
	@ 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	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L13:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-20]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	mov	r3, #0
	b	.L15
.L14:
	mov	r3, #1
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	WriteFloat, .-WriteFloat
	.section	.rodata
	.align	2
.LC6:
	.ascii	"PF\012\000"
	.align	2
.LC7:
	.ascii	"Pf\012\000"
	.align	2
.LC8:
	.ascii	"Error: Image type invalid for PFM format!\012\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"%f\012\000"
	.text
	.align	2
	.global	write_pfm_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_pfm_file, %function
write_pfm_file:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #12]
	cmp	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
	ldr	r3, [fp, #12]
	cmp	r3, #1
	bne	.L17
	mov	r3, #1065353216
	b	.L18
.L17:
	ldr	r3, .L28
.L18:
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #8]
	cmp	r3, #16
	bne	.L19
	ldr	r3, [fp, #-32]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L28+4
	bl	fwrite
	b	.L20
.L19:
	ldr	r3, [fp, #8]
	cmp	r3, #17
	bne	.L21
	ldr	r3, [fp, #-32]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L28+8
	bl	fwrite
	b	.L20
.L21:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L28+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L28+20
	ldr	r0, [fp, #-32]
	bl	fprintf
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L28+24
	ldr	r0, [fp, #-32]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L22
.L27:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L26:
	ldr	r3, [fp, #8]
	cmp	r3, #16
	bne	.L24
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	WriteFloat
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	WriteFloat
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #8
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	WriteFloat
	b	.L25
.L24:
	ldr	r3, [fp, #8]
	cmp	r3, #17
	bne	.L25
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	WriteFloat
.L25:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L23:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L27
	ldr	r0, [fp, #-32]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	-1082130432
	.word	.LC6
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC3
	.word	.LC9
	.size	write_pfm_file, .-write_pfm_file
	.global	__aeabi_fcmpgt
	.global	__aeabi_d2f
	.global	__aeabi_f2iz
	.align	2
	.global	ipart
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipart, %function
ipart:
	@ 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]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	b	.L33
.L36:
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
.L33:
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ipart, .-ipart
	.global	__aeabi_fadd
	.align	2
	.global	fround
	.syntax unified
	.arm
	.fpu softvfp
	.type	fround, %function
fround:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]	@ float
	mov	r1, #1056964608
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	ipart
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fround, .-fround
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.align	2
	.global	fpart
	.syntax unified
	.arm
	.fpu softvfp
	.type	fpart, %function
fpart:
	@ 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]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	ipart
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fpart, .-fpart
	.align	2
	.global	rfpart
	.syntax unified
	.arm
	.fpu softvfp
	.type	rfpart, %function
rfpart:
	@ 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]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	fpart
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	rfpart, .-rfpart
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.align	2
	.global	wu
	.syntax unified
	.arm
	.fpu softvfp
	.type	wu, %function
wu:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	str	r3, [fp, #-108]
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-100]
	sub	r3, r2, r3
	cmp	r3, #0
	ble	.L44
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-100]
	sub	r2, r2, r3
	b	.L45
.L44:
	ldr	r3, [fp, #-108]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-100]
	sub	r2, r2, r3
.L45:
	ldr	r1, [fp, #-104]
	ldr	r3, [fp, #-96]
	sub	r3, r1, r3
	cmp	r3, #0
	ble	.L46
	ldr	r1, [fp, #-104]
	ldr	r3, [fp, #-96]
	sub	r3, r1, r3
	b	.L47
.L46:
	ldr	r3, [fp, #-104]
	rsb	r1, r3, #0
	ldr	r3, [fp, #-96]
	sub	r3, r1, r3
.L47:
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L48
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	eor	r3, r3, r2
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	eor	r3, r3, r2
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-76]
	eor	r3, r3, r2
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	eor	r3, r3, r2
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-80]
	eor	r3, r3, r2
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	eor	r3, r3, r2
	str	r3, [fp, #-80]
.L48:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	ble	.L49
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	eor	r3, r3, r2
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-84]
	eor	r3, r3, r2
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	eor	r3, r3, r2
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	eor	r3, r3, r2
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-76]
	eor	r3, r3, r2
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	eor	r3, r3, r2
	str	r3, [fp, #-76]
.L49:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-52]	@ float
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	fround
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-52]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L58
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	bl	rfpart
	str	r0, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-44]	@ float
	bl	ipart
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-44]	@ float
	bl	rfpart
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	fpart
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
	b	.L51
.L50:
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mul	r1, r3, r1
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r1, .L58+8
	ldr	r1, [r1]
	mul	r1, r3, r1
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
.L51:
	ldr	r1, [fp, #-52]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-68]	@ float
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	fround
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-52]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L58
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	bl	fpart
	str	r0, [fp, #-40]	@ float
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-44]	@ float
	bl	ipart
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-44]	@ float
	bl	rfpart
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	fpart
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
	b	.L53
.L52:
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r1, r3, r1
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, .L58+8
	ldr	r1, [r1]
	mul	r1, r3, r1
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
.L53:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	b	.L54
.L57:
	ldr	r0, [fp, #-68]	@ float
	bl	rfpart
	str	r0, [fp, #-28]	@ float
	ldr	r0, [fp, #-68]	@ float
	bl	fpart
	str	r0, [fp, #-24]	@ float
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L58+4
	ldr	r4, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-88]
	mul	r5, r2, r3
	ldr	r0, [fp, #-68]	@ float
	bl	ipart
	mov	r3, r0
	add	r3, r5, r3
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r4, [r3]
	ldr	r3, .L58+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-88]
	mul	r5, r2, r3
	ldr	r0, [fp, #-68]	@ float
	bl	ipart
	mov	r3, r0
	add	r3, r3, #1
	add	r3, r5, r3
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
	b	.L56
.L55:
	ldr	r3, .L58+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-68]	@ float
	bl	ipart
	mov	r2, r0
	ldr	r3, .L58+8
	ldr	r3, [r3]
	mul	r2, r3, r2
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-28]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L58+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-68]	@ float
	bl	ipart
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, .L58+8
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
.L56:
	ldr	r1, [fp, #-52]	@ float
	ldr	r0, [fp, #-68]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-68]	@ float
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L54:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bgt	.L57
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L59:
	.align	2
.L58:
	.word	1071644672
	.word	image_data
	.word	x_dim
	.size	wu, .-wu
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Error: Line drawing algorithm not yet implemented!\012"
	.ascii	"\000"
	.text
	.align	2
	.global	linedraw_antialias
	.syntax unified
	.arm
	.fpu softvfp
	.type	linedraw_antialias, %function
linedraw_antialias:
	@ 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, .L64
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L61
	ldr	r0, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	bl	wu
	b	.L63
.L61:
	ldr	r3, .L64+4
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L64+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L63:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	enable_wu
	.word	stderr
	.word	.LC10
	.size	linedraw_antialias, .-linedraw_antialias
	.section	.rodata
	.align	2
.LC11:
	.ascii	"* Usage:\000"
	.align	2
.LC12:
	.ascii	"* ./wu [options] <outfile>\000"
	.align	2
.LC13:
	.ascii	"* \000"
	.align	2
.LC14:
	.ascii	"* Options:\000"
	.align	2
.LC15:
	.ascii	"*   -h:              Print this help.\000"
	.align	2
.LC16:
	.ascii	"*   -w:              Use Xiaolin Wu's anti-aliasing"
	.ascii	" line drawing algorithm.\000"
	.align	2
.LC17:
	.ascii	"*   -pgm:            Generate a PGM image (default)"
	.ascii	".\000"
	.align	2
.LC18:
	.ascii	"*   -pfm:            Generate a PFM (Portable Float"
	.ascii	" Map) image.\000"
	.align	2
.LC19:
	.ascii	"*   -x <num>:        Value for the x-dimension of t"
	.ascii	"he image (default:256).\000"
	.align	2
.LC20:
	.ascii	"*   -y <num>:        Value for the y-dimension of t"
	.ascii	"he image (default:256).\000"
	.align	2
.LC21:
	.ascii	"* For further information, please refer to the webs"
	.ascii	"ite:\000"
	.align	2
.LC22:
	.ascii	"* http://www.nkavvadias.com\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #10
	bl	putchar
	ldr	r0, .L67
	bl	puts
	ldr	r0, .L67+4
	bl	puts
	ldr	r0, .L67+8
	bl	puts
	ldr	r0, .L67+12
	bl	puts
	ldr	r0, .L67+16
	bl	puts
	ldr	r0, .L67+20
	bl	puts
	ldr	r0, .L67+24
	bl	puts
	ldr	r0, .L67+28
	bl	puts
	ldr	r0, .L67+32
	bl	puts
	ldr	r0, .L67+36
	bl	puts
	ldr	r0, .L67+8
	bl	puts
	ldr	r0, .L67+40
	bl	puts
	ldr	r0, .L67+44
	bl	puts
	nop
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC23:
	.ascii	"-h\000"
	.align	2
.LC24:
	.ascii	"-w\000"
	.align	2
.LC25:
	.ascii	"-pgm\000"
	.align	2
.LC26:
	.ascii	"-pfm\000"
	.align	2
.LC27:
	.ascii	"-x\000"
	.align	2
.LC28:
	.ascii	"-y\000"
	.align	2
.LC29:
	.ascii	"Error: Unknown command-line option: %s.\012\000"
	.align	2
.LC30:
	.ascii	"wu\000"
	.align	2
.LC31:
	.ascii	".pgm\000"
	.align	2
.LC32:
	.ascii	".pfm\000"
	.align	2
.LC33:
	.ascii	"Error: Unspecified line generation algorithm\012\000"
	.align	2
.LC34:
	.ascii	"w\000"
	.align	2
.LC35:
	.ascii	"wb\000"
	.align	2
.LC36:
	.ascii	"Error: The specified output file has not been creat"
	.ascii	"ed.\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L70
	bl	print_usage
	mov	r0, #1
	bl	exit
.L70:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L71
.L79:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	bl	print_usage
	mov	r0, #1
	bl	exit
.L72:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	ldr	r3, .L104+8
	mov	r2, #1
	str	r2, [r3]
	b	.L74
.L73:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L104+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L104+20
	mov	r2, #0
	str	r2, [r3]
	b	.L74
.L75:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L104+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L104+20
	mov	r2, #1
	str	r2, [r3]
	b	.L74
.L76:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104+28
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L74
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L104+32
	str	r3, [r2]
	b	.L74
.L77:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L104+36
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L74
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L104+40
	str	r3, [r2]
	b	.L74
.L78:
	ldr	r3, .L104+44
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L104+48
	bl	fprintf
	mov	r0, #1
	bl	exit
.L74:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L71:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L79
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L104+52
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L80
.L81:
	ldr	r3, .L104+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L80:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L81
	mov	r0, #7
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L104+56
	str	r2, [r3]
	ldr	r3, .L104+8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L82
	ldr	r3, .L104+56
	ldr	r3, [r3]
	ldr	r2, .L104+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
.L82:
	ldr	r3, .L104+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L83
	ldr	r3, .L104+56
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L104+64
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	b	.L84
.L83:
	ldr	r3, .L104+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L85
	ldr	r3, .L104+56
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L104+68
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	b	.L84
.L85:
	ldr	r3, .L104+44
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L104+72
	bl	fwrite
	mov	r0, #1
	bl	exit
.L84:
	ldr	r3, .L104+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L86
	ldr	r3, .L104+56
	ldr	r3, [r3]
	ldr	r1, .L104+76
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L104+80
	str	r3, [r2]
	b	.L87
.L86:
	ldr	r3, .L104+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L88
	ldr	r3, .L104+56
	ldr	r3, [r3]
	ldr	r1, .L104+84
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L104+80
	str	r3, [r2]
	b	.L87
.L88:
	ldr	r3, .L104+44
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L104+88
	bl	fwrite
	mov	r0, #1
	bl	exit
.L87:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L89
.L90:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	asr	r3, r3, #1
	add	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r1, #16
	mov	r0, #16
	bl	linedraw_antialias
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	str	r3, [fp, #-16]
.L89:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	asr	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L90
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L91
.L92:
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L104+32
	ldr	r3, [r3]
	asr	r3, r3, #1
	add	r3, r3, #16
	mov	r1, #16
	mov	r0, #16
	bl	linedraw_antialias
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	str	r3, [fp, #-16]
.L91:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	asr	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L92
	ldr	r3, .L104+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L93
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L104+92
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L94
.L95:
	ldr	r3, .L104+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L104+96
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r1, r0
	ldr	r3, .L104+92
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	rsb	r2, r1, #255
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L94:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L95
	b	.L96
.L93:
	ldr	r3, .L104+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L96
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L104+100
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L97
.L98:
	ldr	r3, .L104+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, .L104+100
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L104+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, .L104+100
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #4
	add	r3, r0, r3
	ldr	r2, [r1]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L104+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, .L104+100
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #8
	add	r3, r0, r3
	ldr	r2, [r1]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L97:
	ldr	r3, .L104+32
	ldr	r3, [r3]
	ldr	r2, .L104+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L98
.L96:
	ldr	r3, .L104+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L99
	ldr	r3, .L104+80
	ldr	r0, [r3]
	ldr	r3, .L104+92
	ldr	r1, [r3]
	ldr	r3, .L104+56
	ldr	r2, [r3]
	ldr	r3, .L104+32
	ldr	ip, [r3]
	ldr	r3, .L104+40
	ldr	r3, [r3]
	mov	lr, #1
	str	lr, [sp, #20]
	mov	lr, #16
	str	lr, [sp, #16]
	mov	lr, #255
	str	lr, [sp, #12]
	mov	lr, #1
	str	lr, [sp, #8]
	mov	lr, #1
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	write_pgm_file
	b	.L100
.L99:
	ldr	r3, .L104+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L100
	ldr	r3, .L104+80
	ldr	r0, [r3]
	ldr	r3, .L104+100
	ldr	r1, [r3]
	ldr	r3, .L104+56
	ldr	r2, [r3]
	ldr	r3, .L104+32
	ldr	ip, [r3]
	ldr	r3, .L104+40
	ldr	r3, [r3]
	mvn	lr, #0
	str	lr, [sp, #8]
	mov	lr, #16
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	write_pfm_file
.L100:
	ldr	r3, .L104+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L104+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L101
	ldr	r3, .L104+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L101:
	ldr	r3, .L104+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L102
	ldr	r3, .L104+100
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L102:
	ldr	r3, .L104+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC23
	.word	.LC24
	.word	enable_wu
	.word	.LC25
	.word	enable_pgm
	.word	enable_pfm
	.word	.LC26
	.word	.LC27
	.word	x_dim
	.word	.LC28
	.word	y_dim
	.word	stderr
	.word	.LC29
	.word	image_data
	.word	outfile_name
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	outfile
	.word	.LC35
	.word	.LC36
	.word	temp_image_data
	.word	1081073664
	.word	rgb_image_data
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
