	.file	"564776.c"
	.intel_syntax noprefix
	.text
	.globl	createImage
	.type	createImage, @function
createImage:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	createImage, .-createImage
	.globl	destroyImage
	.type	destroyImage, @function
destroyImage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	destroyImage, .-destroyImage
	.globl	lerp
	.type	lerp, @function
lerp:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	movss	DWORD PTR -108[rbp], xmm0
	movss	DWORD PTR -112[rbp], xmm1
	mov	QWORD PTR -120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -108[rbp]
	ja	.L5
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -112[rbp]
	ja	.L5
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -108[rbp]
	comiss	xmm0, xmm1
	jnb	.L5
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -112[rbp]
	comiss	xmm0, xmm1
	jb	.L14
.L5:
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 8[rax]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rdx], xmm0
	mov	rax, QWORD PTR -120[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L4
.L14:
	movss	xmm0, DWORD PTR -112[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -88[rbp], eax
	movss	xmm0, DWORD PTR -108[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, rcx
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, rcx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -80[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, rcx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -80[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, rcx
	mov	QWORD PTR -40[rbp], rax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -84[rbp]
	movss	xmm0, DWORD PTR -108[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -96[rbp], 0
	jmp	.L9
.L10:
	movss	xmm0, DWORD PTR .LC1[rip]
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -72[rbp]
	addss	xmm0, xmm1
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movss	DWORD PTR -32[rbp+rax*4], xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -72[rbp]
	addss	xmm0, xmm1
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movss	DWORD PTR -20[rbp+rax*4], xmm0
	add	DWORD PTR -96[rbp], 1
.L9:
	cmp	DWORD PTR -96[rbp], 2
	jle	.L10
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -88[rbp]
	movss	xmm0, DWORD PTR -112[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -68[rbp], xmm0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L11
.L12:
	movss	xmm0, DWORD PTR .LC1[rip]
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movss	xmm0, DWORD PTR -32[rbp+rax*4]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movss	xmm0, DWORD PTR -20[rbp+rax*4]
	mulss	xmm0, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -92[rbp], 1
.L11:
	cmp	DWORD PTR -92[rbp], 2
	jle	.L12
.L4:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	lerp, .-lerp
	.section	.rodata
.LC2:
	.string	"rb"
.LC3:
	.string	"P3"
.LC4:
	.string	"P6"
.LC5:
	.string	"%s: not a PPM image!\n"
.LC6:
	.string	"%d %d"
.LC7:
	.string	"%s: bogus image size!\n"
.LC8:
	.string	"%d"
	.align 8
.LC9:
	.string	"%s: max channel value is bogus!\n"
	.align 8
.LC10:
	.string	"%s: max pixel value should be 255!\n"
	.align 8
.LC11:
	.string	"%s: error reading raw pixel values!\n"
.LC13:
	.string	"%s: unexpected EOF\n"
.LC14:
	.string	"%s: pixel value of out range\n"
	.text
	.globl	readImage
	.type	readImage, @function
readImage:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 200
	lea	rdi, buf.0[rip]
	call	fgets@PLT
	test	rax, rax
	je	.L17
	mov	edx, 2
	lea	rsi, .LC3[rip]
	lea	rdi, buf.0[rip]
	call	strncmp@PLT
	test	eax, eax
	je	.L18
	mov	edx, 2
	lea	rsi, .LC4[rip]
	lea	rdi, buf.0[rip]
	call	strncmp@PLT
	test	eax, eax
	je	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -4
	call	exit@PLT
.L18:
	movzx	eax, BYTE PTR buf.0[rip+1]
	cmp	al, 54
	sete	al
	mov	BYTE PTR -61[rbp], al
	nop
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 200
	lea	rdi, buf.0[rip]
	call	fgets@PLT
	test	rax, rax
	je	.L19
	movzx	eax, BYTE PTR buf.0[rip]
	cmp	al, 35
	je	.L20
.L19:
	lea	rdx, -56[rbp]
	lea	rax, -60[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	je	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L40:
	nop
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 200
	lea	rdi, buf.0[rip]
	call	fgets@PLT
	test	rax, rax
	je	.L22
	movzx	eax, BYTE PTR buf.0[rip]
	cmp	al, 35
	je	.L23
.L22:
	lea	rax, -52[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L24
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jg	.L25
.L24:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L25:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, edx
	mov	edi, eax
	call	createImage
	mov	QWORD PTR -16[rbp], rax
	cmp	BYTE PTR -61[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 255
	je	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L27:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	imul	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -52[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L29
.L37:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L30
.L36:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L31
.L35:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L32:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	js	.L33
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cmp	edx, eax
	jle	.L34
.L33:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -2
	call	exit@PLT
.L34:
	mov	eax, DWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cdqe
	add	rax, rcx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -36[rbp], 1
.L31:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L35
	add	DWORD PTR -40[rbp], 1
.L30:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L36
	add	DWORD PTR -44[rbp], 1
.L29:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L37
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	readImage, .-readImage
	.section	.rodata
	.align 8
.LC16:
	.string	"usage: %s <image.ppm> <W> <H>\n"
.LC17:
	.string	"bogus output image size!\n"
.LC18:
	.string	"%lf"
.LC19:
	.string	"unable to read H matrix!\n"
.LC20:
	.string	"%d %d\n"
.LC21:
	.string	"255"
.LC22:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 4
	je	.L42
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	readImage
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -144[rbp], eax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -144[rbp], 0
	jle	.L43
	cmp	DWORD PTR -140[rbp], 0
	jg	.L44
.L43:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	edi, -2
	call	exit@PLT
.L44:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L45
.L49:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L46
.L48:
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -160[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -164[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, -3
	call	exit@PLT
.L47:
	add	DWORD PTR -160[rbp], 1
.L46:
	cmp	DWORD PTR -160[rbp], 2
	jle	.L48
	add	DWORD PTR -164[rbp], 1
.L45:
	cmp	DWORD PTR -164[rbp], 2
	jle	.L49
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	DWORD PTR -156[rbp], 0
	jmp	.L50
.L55:
	mov	DWORD PTR -152[rbp], 0
	jmp	.L51
.L54:
	movsd	xmm1, QWORD PTR -80[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -152[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm2, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -156[rbp]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -136[rbp], xmm0
	movsd	xmm1, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -152[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm2, QWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -156[rbp]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -132[rbp], xmm0
	movsd	xmm1, QWORD PTR -32[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -152[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm2, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -156[rbp]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -128[rbp], xmm0
	movss	xmm0, DWORD PTR -136[rbp]
	divss	xmm0, DWORD PTR -128[rbp]
	movss	DWORD PTR -124[rbp], xmm0
	movss	xmm0, DWORD PTR -132[rbp]
	divss	xmm0, DWORD PTR -128[rbp]
	movss	DWORD PTR -120[rbp], xmm0
	lea	rcx, -92[rbp]
	movss	xmm0, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	movaps	xmm1, xmm0
	movd	xmm0, edx
	mov	rdi, rax
	call	lerp
	mov	DWORD PTR -148[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movss	xmm0, DWORD PTR -92[rbp+rax*4]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -148[rbp], 1
.L52:
	cmp	DWORD PTR -148[rbp], 2
	jle	.L53
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -152[rbp], 1
.L51:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	jl	.L54
	add	DWORD PTR -156[rbp], 1
.L50:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L55
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	destroyImage
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,200,32
	.section	.rodata
	.align 4
.LC1:
	.long	1065353216
	.align 8
.LC12:
	.long	0
	.long	1081073664
	.align 8
.LC15:
	.long	0
	.long	1071644672
	.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	"564776.c"
	.text
	.align	2
	.global	createImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	createImage, %function
createImage:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createImage, .-createImage
	.align	2
	.global	destroyImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroyImage, %function
destroyImage:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroyImage, .-destroyImage
	.global	__aeabi_fcmplt
	.global	__aeabi_i2f
	.global	__aeabi_fcmpge
	.global	__aeabi_f2iz
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lerp
	.syntax unified
	.arm
	.fpu softvfp
	.type	lerp, %function
lerp:
	@ 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]	@ float
	str	r2, [fp, #-104]	@ float
	str	r3, [fp, #-108]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r1, #0
	ldr	r0, [fp, #-104]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-104]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
.L5:
	ldr	r3, [fp, #-108]
	add	r2, r3, #8
	mov	r3, #0
	str	r3, [r2]	@ float
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-108]
	str	r2, [r3]	@ float
	b	.L4
.L14:
	ldr	r0, [fp, #-104]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-96]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-96]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-96]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-96]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-48]	@ float
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L9
.L10:
	ldr	r1, [fp, #-48]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-48]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-28]	@ float
	ldr	r1, [fp, #-48]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-48]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-16]	@ float
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L9:
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	ble	.L10
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-104]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L11
.L12:
	ldr	r1, [fp, #-44]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-28]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-16]	@ float
	ldr	r1, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L11:
	ldr	r3, [fp, #-84]
	cmp	r3, #2
	ble	.L12
.L4:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	lerp, .-lerp
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"P3\000"
	.align	2
.LC3:
	.ascii	"P6\000"
	.align	2
.LC4:
	.ascii	"%s: not a PPM image!\012\000"
	.align	2
.LC5:
	.ascii	"%d %d\000"
	.align	2
.LC6:
	.ascii	"%s: bogus image size!\012\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"%s: max channel value is bogus!\012\000"
	.align	2
.LC9:
	.ascii	"%s: max pixel value should be 255!\012\000"
	.align	2
.LC10:
	.ascii	"%s: error reading raw pixel values!\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.align	2
.LC11:
	.ascii	"%s: unexpected EOF\012\000"
	.align	2
.LC12:
	.ascii	"%s: pixel value of out range\012\000"
	.global	__aeabi_f2d
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	readImage, %function
readImage:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-80]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L43+4
	ldr	r0, [fp, #-80]
	bl	fopen
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-80]
	bl	perror
	mvn	r0, #0
	bl	exit
.L18:
	ldr	r2, [fp, #-40]
	mov	r1, #200
	ldr	r0, .L43+8
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r2, #2
	ldr	r1, .L43+12
	ldr	r0, .L43+8
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r2, #2
	ldr	r1, .L43+16
	ldr	r0, .L43+8
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
.L19:
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+24
	mov	r0, r3
	bl	fprintf
	mvn	r0, #3
	bl	exit
.L20:
	ldr	r3, .L43+8
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #54
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-69]
	nop
.L22:
	ldr	r2, [fp, #-40]
	mov	r1, #200
	ldr	r0, .L43+8
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L43+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L22
.L21:
	sub	r3, fp, #64
	sub	r2, fp, #68
	ldr	r1, .L43+28
	ldr	r0, .L43+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L42
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+32
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L42:
	nop
.L25:
	ldr	r2, [fp, #-40]
	mov	r1, #200
	ldr	r0, .L43+8
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L43+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L25
.L24:
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L43+36
	ldr	r0, .L43+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L26
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L27
.L26:
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+40
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	mov	r1, r2
	mov	r0, r3
	bl	createImage
	str	r0, [fp, #-36]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-60]
	cmp	r3, #255
	beq	.L29
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+44
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L29:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r0, [r3, #8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	mov	r1, #1
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L30
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+48
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L43+52
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L31
.L39:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L32
.L38:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L33
.L37:
	sub	r3, fp, #56
	mov	r2, r3
	ldr	r1, .L43+36
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L34
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+56
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L35
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	ble	.L36
.L35:
	ldr	r3, .L43+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L43+60
	mov	r0, r3
	bl	fprintf
	mvn	r0, #1
	bl	exit
.L36:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L43+64
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-36]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	add	r4, r1, r3
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L33:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L37
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L32:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L31:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L39
.L30:
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r3, [fp, #-36]
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC13
	.word	.LC1
	.word	buf.5338
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	1081073664
	.word	.LC11
	.word	.LC12
	.word	1071644672
	.size	readImage, .-readImage
	.section	.rodata
	.align	2
.LC14:
	.ascii	"usage: %s <image.ppm> <W> <H>\012\000"
	.align	2
.LC15:
	.ascii	"bogus output image size!\012\000"
	.align	2
.LC16:
	.ascii	"%lf\000"
	.align	2
.LC17:
	.ascii	"unable to read H matrix!\012\000"
	.align	2
.LC18:
	.ascii	"%d %d\012\000"
	.align	2
.LC19:
	.ascii	"255\000"
	.global	__aeabi_dmul
	.global	__aeabi_fdiv
	.global	__aeabi_d2iz
	.align	2
.LC20:
	.ascii	"%d \000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #160
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-176]
	cmp	r3, #4
	beq	.L46
	ldr	r3, .L62+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-180]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L62+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L46:
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-152]
	ldr	r0, [fp, #-152]
	bl	readImage
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-180]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-180]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	ble	.L47
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bgt	.L48
.L47:
	ldr	r3, .L62+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L62+12
	bl	fwrite
	mvn	r0, #1
	bl	exit
.L48:
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L49
.L53:
	mov	r3, #0
	str	r3, [fp, #-168]
	b	.L50
.L52:
	sub	r1, fp, #100
	ldr	r2, [fp, #-172]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-168]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L62+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L51
	ldr	r3, .L62+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L62+20
	bl	fwrite
	mvn	r0, #2
	bl	exit
.L51:
	ldr	r3, [fp, #-168]
	add	r3, r3, #1
	str	r3, [fp, #-168]
.L50:
	ldr	r3, [fp, #-168]
	cmp	r3, #2
	ble	.L52
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L49:
	ldr	r3, [fp, #-172]
	cmp	r3, #2
	ble	.L53
	ldr	r0, .L62+24
	bl	puts
	ldr	r2, [fp, #-140]
	ldr	r1, [fp, #-144]
	ldr	r0, .L62+28
	bl	printf
	ldr	r0, .L62+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L54
.L59:
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L55
.L58:
	sub	r5, fp, #100
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r5, fp, #92
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-164]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-136]	@ float
	sub	r5, fp, #76
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-164]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-132]	@ float
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-164]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-128]	@ float
	ldr	r1, [fp, #-128]	@ float
	ldr	r0, [fp, #-136]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-124]	@ float
	ldr	r1, [fp, #-128]	@ float
	ldr	r0, [fp, #-132]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-120]	@ float
	sub	r3, fp, #112
	ldr	r2, [fp, #-120]	@ float
	ldr	r1, [fp, #-124]	@ float
	ldr	r0, [fp, #-148]
	bl	lerp
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L56
.L57:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-92]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L62+36
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-116]
	ldr	r0, .L62+40
	bl	printf
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L56:
	ldr	r3, [fp, #-156]
	cmp	r3, #2
	ble	.L57
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L55:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	blt	.L58
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L54:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	blt	.L59
	ldr	r0, [fp, #-148]
	bl	destroyImage
	mov	r3, #0
	ldr	r2, .L62
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC21
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC2
	.word	.LC18
	.word	.LC19
	.word	1071644672
	.word	.LC20
	.size	main, .-main
	.local	buf.5338
	.comm	buf.5338,200,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
