	.file	"478733.c"
	.intel_syntax noprefix
	.text
	.globl	diff
	.type	diff, @function
diff:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	test	rax, rax
	jns	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1000000000
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	diff, .-diff
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"Unable to open file '%s'\n"
.LC2:
	.string	"P5\n"
.LC3:
	.string	"%d %d\n"
.LC4:
	.string	"%d\n"
	.text
	.globl	writePPMGS
	.type	writePPMGS, @function
writePPMGS:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 255
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rsi, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	writePPMGS, .-writePPMGS
	.globl	change_image_warping
	.type	change_image_warping, @function
change_image_warping:
.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
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -80[rbp], eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	DWORD PTR -92[rbp], 0
	jmp	.L8
.L12:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L9
.L11:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -84[rbp]
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -88[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -112[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -92[rbp]
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR -40[rbp]
	movq	rax, xmm2
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm3, xmm0
	addsd	xmm3, QWORD PTR -112[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	movq	xmm1, rax
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	mov	DWORD PTR -76[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -92[rbp]
	subsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movapd	xmm5, xmm0
	mulsd	xmm5, QWORD PTR -112[rbp]
	movsd	QWORD PTR -112[rbp], xmm5
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -88[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -120[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	call	sin@PLT
	mulsd	xmm0, QWORD PTR -120[rbp]
	addsd	xmm0, QWORD PTR -112[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -72[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -92[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movq	xmm1, QWORD PTR .LC7[rip]
	xorpd	xmm0, xmm1
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movapd	xmm4, xmm0
	mulsd	xmm4, QWORD PTR -112[rbp]
	movsd	QWORD PTR -112[rbp], xmm4
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -88[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -120[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -120[rbp]
	addsd	xmm0, QWORD PTR -112[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -64[rbp], 0
	js	.L10
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jge	.L10
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 2[rax], dl
.L10:
	add	DWORD PTR -88[rbp], 1
.L9:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L11
	add	DWORD PTR -92[rbp], 1
.L8:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L12
	mov	rax, QWORD PTR -48[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	change_image_warping, .-change_image_warping
	.section	.rodata
.LC8:
	.string	"rb"
	.align 8
.LC9:
	.string	"Invalid image format (must be 'P6')\n"
.LC10:
	.string	"Unable to allocate memory\n"
.LC11:
	.string	"%d %d"
	.align 8
.LC12:
	.string	"Invalid image size (error loading '%s')\n"
.LC13:
	.string	"%d"
	.align 8
.LC14:
	.string	"Invalid rgb component (error loading '%s')\n"
	.align 8
.LC15:
	.string	"'%s' does not have 8-bits components\n"
.LC16:
	.string	"Error loading image '%s'\n"
	.text
	.type	readPPM, @function
readPPM:
.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, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	movzx	eax, BYTE PTR -32[rbp]
	cmp	al, 80
	jne	.L17
	movzx	eax, BYTE PTR -31[rbp]
	cmp	al, 54
	je	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -52[rbp], eax
	jmp	.L20
.L22:
	nop
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	cmp	eax, 10
	jne	.L21
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -52[rbp], eax
.L20:
	cmp	DWORD PTR -52[rbp], 35
	je	.L22
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 4[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L24
	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, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 255
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	nop
.L26:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L26
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	cmp	QWORD PTR -40[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	movsx	rsi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rdx]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	readPPM, .-readPPM
	.section	.rodata
.LC17:
	.string	"P6\n"
	.text
	.globl	writePPM
	.type	writePPM, @function
writePPM:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 255
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	movsx	rsi, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	writePPM, .-writePPM
	.section	.rodata
.LC18:
	.string	"Usage: %s n p \n"
.LC19:
	.string	"image_warping"
.LC20:
	.string	"data_divison"
.LC21:
	.string	"output/%s_%s_%s_%s_output.txt"
.LC22:
	.string	"w"
.LC23:
	.string	"%s,%s,%d,%d,%d,%ld,%d,%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2352
	mov	DWORD PTR -2340[rbp], edi
	mov	QWORD PTR -2352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -2272[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	cmp	DWORD PTR -2340[rbp], 2
	jg	.L35
	mov	rax, QWORD PTR -2352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L37
.L35:
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2324[rbp], eax
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2320[rbp], eax
	lea	rax, .LC19[rip]
	mov	QWORD PTR -2312[rbp], rax
	lea	rax, .LC20[rip]
	mov	QWORD PTR -2304[rbp], rax
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 16
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rcx, QWORD PTR -2304[rbp]
	mov	rdx, QWORD PTR -2312[rbp]
	lea	rax, -2176[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -2320[rbp]
	mov	DWORD PTR -2316[rbp], eax
	mov	eax, DWORD PTR -2316[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	mov	BYTE PTR -2064[rbp], 0
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2064[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1836085294
	mov	BYTE PTR 4[rax], 0
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	readPPM
	mov	QWORD PTR -2296[rbp], rax
	lea	rax, -2240[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -2296[rbp]
	mov	rdi, rax
	call	change_image_warping
	mov	QWORD PTR -2288[rbp], rax
	lea	rax, -2224[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	BYTE PTR -1040[rbp], 0
	mov	rax, QWORD PTR -2352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	movabs	rcx, 28259031300798303
	mov	QWORD PTR [rax], rcx
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1836085294
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR -2288[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	writePPM
	lea	rax, -2256[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -2256[rbp]
	mov	rdx, QWORD PTR -2248[rbp]
	mov	rdi, QWORD PTR -2272[rbp]
	mov	rsi, QWORD PTR -2264[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	diff
	mov	QWORD PTR -2208[rbp], rax
	mov	QWORD PTR -2200[rbp], rdx
	mov	rax, QWORD PTR -2224[rbp]
	mov	rdx, QWORD PTR -2216[rbp]
	mov	rdi, QWORD PTR -2240[rbp]
	mov	rsi, QWORD PTR -2232[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	diff
	mov	QWORD PTR -2192[rbp], rax
	mov	QWORD PTR -2184[rbp], rdx
	lea	rax, -2176[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2280[rbp], rax
	mov	r8, QWORD PTR -2184[rbp]
	mov	rdi, QWORD PTR -2192[rbp]
	mov	rsi, QWORD PTR -2200[rbp]
	mov	r9, QWORD PTR -2208[rbp]
	mov	r10d, DWORD PTR -2320[rbp]
	mov	ecx, DWORD PTR -2324[rbp]
	mov	rdx, QWORD PTR -2304[rbp]
	mov	rax, QWORD PTR -2312[rbp]
	sub	rsp, 8
	push	r8
	push	rdi
	push	rsi
	mov	r8d, r10d
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	mov	eax, 0
.L37:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 8
.LC6:
	.long	-1571644103
	.long	1066524486
	.align 16
.LC7:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"478733.c"
	.text
	.align	2
	.global	diff
	.syntax unified
	.arm
	.fpu softvfp
	.type	diff, %function
diff:
	@ args = 12, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #8
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	sub	r0, fp, #24
	stm	r0, {r1, r2}
	str	r3, [fp, #8]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L2
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #12]
	ldr	r3, .L5
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	sub	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #8
	bx	lr
.L6:
	.align	2
.L5:
	.word	1000000000
	.size	diff, .-diff
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"Unable to open file '%s'\012\000"
	.align	2
.LC2:
	.ascii	"P5\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\012\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	writePPMGS
	.syntax unified
	.arm
	.fpu softvfp
	.type	writePPMGS, %function
writePPMGS:
	@ 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]
	ldr	r1, .L9
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L9+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-8]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L9+12
	bl	fwrite
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r1, .L9+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r2, #255
	ldr	r1, .L9+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	writePPMGS, .-writePPMGS
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	change_image_warping
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_image_warping, %function
change_image_warping:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #88
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-96]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-100]
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-96]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-96]
	mul	r3, r2, r3
	mov	r2, r3
	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, #-92]
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L12
.L16:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L13
.L15:
	ldr	r0, [fp, #-100]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-96]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-108]
	bl	__aeabi_i2d
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	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
	bl	sqrt
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L18
	ldr	r3, .L18+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-108]
	mul	r3, r2, r3
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r0, [fp, #-108]
	bl	__aeabi_i2d
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	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, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-108]
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	eor	r5, r3, #-2147483648
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	sin
	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
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	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, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-92]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	blt	.L14
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-96]
	mul	r3, r2, r3
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bge	.L14
	ldr	r3, [fp, #-112]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-56]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #2]
.L14:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L13:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L12:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-92]
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L19:
	.align	2
.L18:
	.word	-1571644103
	.word	1066524486
	.size	change_image_warping, .-change_image_warping
	.section	.rodata
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"Invalid image format (must be 'P6')\012\000"
	.align	2
.LC7:
	.ascii	"Unable to allocate memory\012\000"
	.align	2
.LC8:
	.ascii	"%d %d\000"
	.align	2
.LC9:
	.ascii	"Invalid image size (error loading '%s')\012\000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"Invalid rgb component (error loading '%s')\012\000"
	.align	2
.LC12:
	.ascii	"'%s' does not have 8-bits components\012\000"
	.align	2
.LC13:
	.ascii	"Error loading image '%s'\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readPPM, %function
readPPM:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L38+4
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L38+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #24
	ldr	r2, [fp, #-32]
	mov	r1, #16
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r0, [fp, #-48]
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L23
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	cmp	r3, #54
	beq	.L24
.L23:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L38+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L38+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L38+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L25:
	ldr	r0, [fp, #-32]
	bl	getc
	str	r0, [fp, #-36]
	b	.L26
.L28:
	nop
.L27:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	cmp	r3, #10
	bne	.L27
	ldr	r0, [fp, #-32]
	bl	getc
	str	r0, [fp, #-36]
.L26:
	ldr	r3, [fp, #-36]
	cmp	r3, #35
	beq	.L28
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	ungetc
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r1, .L38+24
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L29
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L38+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L29:
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L38+32
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L30
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L38+36
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-40]
	cmp	r3, #255
	beq	.L37
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L38+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L37:
	nop
.L32:
	ldr	r0, [fp, #-32]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L32
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #4]
	mul	r3, r2, r3
	mov	r2, r3
	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, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L38+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L38+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L34
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L38+44
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r3, [fp, #-28]
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC14
	.word	.LC5
	.word	stderr
	.word	.LC1
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	readPPM, .-readPPM
	.section	.rodata
	.align	2
.LC15:
	.ascii	"P6\012\000"
	.text
	.align	2
	.global	writePPM
	.syntax unified
	.arm
	.fpu softvfp
	.type	writePPM, %function
writePPM:
	@ 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]
	ldr	r1, .L42
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L42+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L42+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L41:
	ldr	r3, [fp, #-8]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L42+12
	bl	fwrite
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r1, .L42+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r2, #255
	ldr	r1, .L42+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC15
	.word	.LC3
	.word	.LC4
	.size	writePPM, .-writePPM
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Usage: %s n p \012\000"
	.align	2
.LC17:
	.ascii	"image_warping\000"
	.align	2
.LC18:
	.ascii	"data_divison\000"
	.align	2
.LC19:
	.ascii	"output/%s_%s_%s_%s_output.txt\000"
	.align	2
.LC20:
	.ascii	".ppm\000"
	.align	2
.LC21:
	.ascii	"_warped\000"
	.align	2
.LC22:
	.ascii	"w\000"
	.align	2
.LC23:
	.ascii	"%s,%s,%d,%d,%d,%ld,%d,%ld\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2256
	sub	sp, sp, #8
	str	r0, [fp, #-2240]
	str	r1, [fp, #-2244]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, [fp, #-2240]
	cmp	r3, #2
	bgt	.L45
	ldr	r3, [fp, #-2244]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L49+4
	bl	printf
	mvn	r3, #0
	b	.L47
.L45:
	ldr	r3, [fp, #-2244]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2236]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2232]
	ldr	r3, .L49+8
	str	r3, [fp, #-2228]
	ldr	r3, .L49+12
	str	r3, [fp, #-2224]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-2244]
	add	r2, r2, #8
	ldr	r2, [r2]
	sub	r0, fp, #2144
	sub	r0, r0, #4
	sub	r0, r0, #8
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-2224]
	ldr	r2, [fp, #-2228]
	ldr	r1, .L49+16
	bl	sprintf
	ldr	r3, [fp, #-2232]
	str	r3, [fp, #-2220]
	ldr	r0, [fp, #-2220]
	bl	omp_set_num_threads
	mov	r3, #0
	strb	r3, [fp, #-2056]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L49+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	readPPM
	str	r0, [fp, #-2216]
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r0, [fp, #-2216]
	bl	change_image_warping
	str	r0, [fp, #-2212]
	sub	r3, fp, #2176
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, #0
	strb	r3, [fp, #-1032]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L49+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L49+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2212]
	mov	r0, r3
	bl	writePPM
	sub	r3, fp, #2192
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r0, fp, #2160
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r3, [fp, #-2192]
	str	r3, [sp]
	ldr	r3, [fp, #-2196]
	sub	r2, fp, #2192
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldm	r2, {r1, r2}
	bl	diff
	sub	r0, fp, #2160
	sub	r0, r0, #4
	ldr	r3, [fp, #-2176]
	str	r3, [sp]
	ldr	r3, [fp, #-2180]
	sub	r2, fp, #2176
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldm	r2, {r1, r2}
	bl	diff
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L49+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2208]
	ldr	r3, [fp, #-2172]
	ldr	r2, [fp, #-2168]
	ldr	r1, [fp, #-2164]
	ldr	r0, [fp, #-2160]
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-2232]
	str	r3, [sp]
	ldr	r3, [fp, #-2236]
	ldr	r2, [fp, #-2224]
	ldr	r1, [fp, #-2228]
	ldr	r0, .L49+32
	bl	printf
	mov	r3, #0
.L47:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC24
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
