	.file	"23574228.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"probleme d'allocation memoire"
	.text
	.globl	fmatrix_allocate
	.type	fmatrix_allocate, @function
fmatrix_allocate:
.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	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fmatrix_allocate, .-fmatrix_allocate
	.section	.rodata
.LC1:
	.string	"---> Ouverture de %s\n"
.LC2:
	.string	"r"
	.align 8
.LC3:
	.string	"\n- Grave erreur a l'ouverture de %s  -\n"
.LC4:
	.string	"%d %d"
.LC5:
	.string	"%d"
	.text
	.globl	LoadImagePgm
	.type	LoadImagePgm, @function
LoadImagePgm:
.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, 496
	mov	QWORD PTR -472[rbp], rdi
	mov	QWORD PTR -480[rbp], rsi
	mov	QWORD PTR -488[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -472[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -416[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1835495470
	mov	BYTE PTR 4[rax], 0
	lea	rax, -416[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jne	.L5
	lea	rax, -416[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -208[rbp]
	mov	esi, 199
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -453[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	edx, 1
	mov	rsi, -1
	mov	rdi, rax
	call	fseek@PLT
	movzx	eax, BYTE PTR -453[rbp]
	cmp	al, 35
	jne	.L6
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -208[rbp]
	mov	esi, 199
	mov	rdi, rax
	call	fgets@PLT
.L6:
	lea	rcx, -448[rbp]
	lea	rdx, -452[rbp]
	mov	rax, QWORD PTR -432[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rdx, -444[rbp]
	mov	rax, QWORD PTR -432[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -208[rbp]
	mov	esi, 199
	mov	rdi, rax
	call	fgets@PLT
	mov	edx, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -488[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -448[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -452[rbp]
	mov	eax, DWORD PTR -448[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -424[rbp], rax
	mov	DWORD PTR -440[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -436[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -453[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -453[rbp]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -452[rbp]
	imul	eax, DWORD PTR -440[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -436[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR .LC6[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -436[rbp], 1
.L8:
	mov	eax, DWORD PTR -452[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L9
	add	DWORD PTR -440[rbp], 1
.L7:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L10
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	LoadImagePgm, .-LoadImagePgm
	.section	.rodata
.LC7:
	.string	"w"
	.align 8
.LC8:
	.string	" Probleme dans la sauvegarde de %s"
.LC9:
	.string	"<--- Sauvegarde de %s\n"
.LC10:
	.string	"P5"
.LC11:
	.string	"\n#\n"
.LC12:
	.string	"\n# IMG Module, %s"
.LC13:
	.string	"\n255\n"
	.text
	.globl	SaveImagePgm
	.type	SaveImagePgm, @function
SaveImagePgm:
.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, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	DWORD PTR -260[rbp], edx
	mov	DWORD PTR -264[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -208[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1835495470
	mov	BYTE PTR 4[rax], 0
	lea	rax, -208[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L14
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L14:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	ctime@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	jmp	.L16
.L15:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	mov	ecx, DWORD PTR -260[rbp]
	mov	edx, DWORD PTR -264[rbp]
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	DWORD PTR -232[rbp], 0
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC6[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -228[rbp], xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -228[rbp]
	jbe	.L26
	pxor	xmm0, xmm0
	movss	DWORD PTR -228[rbp], xmm0
	jmp	.L20
.L26:
	movss	xmm0, DWORD PTR -228[rbp]
	comiss	xmm0, DWORD PTR .LC6[rip]
	jbe	.L20
	movss	xmm0, DWORD PTR .LC6[rip]
	movss	DWORD PTR -228[rbp], xmm0
.L20:
	movss	xmm0, DWORD PTR -228[rbp]
	cvttss2si	eax, xmm0
	movsx	eax, al
	mov	rdx, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -232[rbp], 1
.L17:
	mov	eax, DWORD PTR -260[rbp]
	imul	eax, DWORD PTR -264[rbp]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L22
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	SaveImagePgm, .-SaveImagePgm
	.globl	SafeSample
	.type	SafeSample, @function
SafeSample:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	cmp	DWORD PTR -12[rbp], 0
	js	.L28
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L29
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	jmp	.L31
.L29:
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L31
.L28:
	mov	eax, 0
.L31:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	js	.L32
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L33
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	jmp	.L35
.L33:
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L35
.L32:
	mov	eax, 0
.L35:
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	SafeSample, .-SafeSample
	.globl	FastMean
	.type	FastMean, @function
FastMean:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	DWORD PTR -120[rbp], ecx
	mov	DWORD PTR -124[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	imul	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L38:
	cmp	rsp, rdx
	je	.L39
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L38
.L39:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L40
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L40:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L41
.L46:
	pxor	xmm0, xmm0
	movss	DWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	neg	eax
	mov	DWORD PTR -92[rbp], eax
	jmp	.L42
.L43:
	mov	edi, DWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movss	xmm1, DWORD PTR -88[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -88[rbp], xmm0
	add	DWORD PTR -92[rbp], 1
.L42:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L43
	mov	DWORD PTR -96[rbp], 0
	jmp	.L44
.L45:
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -64[rbp]
	lea	esi, [rdx+rax]
	mov	edi, DWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movss	xmm1, DWORD PTR -88[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	mov	edi, DWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movaps	xmm1, xmm0
	movss	xmm0, DWORD PTR -88[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -88[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -120[rbp]
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -96[rbp]
	add	edx, eax
	movss	xmm0, DWORD PTR -88[rbp]
	divss	xmm0, xmm1
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -96[rbp], 1
.L44:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L45
	add	DWORD PTR -84[rbp], 1
.L41:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L46
	mov	DWORD PTR -80[rbp], 0
	jmp	.L47
.L52:
	pxor	xmm0, xmm0
	movss	DWORD PTR -76[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	neg	eax
	mov	DWORD PTR -72[rbp], eax
	jmp	.L48
.L49:
	mov	edi, DWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movss	xmm1, DWORD PTR -76[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -76[rbp], xmm0
	add	DWORD PTR -72[rbp], 1
.L48:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L49
	mov	DWORD PTR -68[rbp], 0
	jmp	.L50
.L51:
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -64[rbp]
	lea	edi, [rdx+rax]
	mov	ecx, DWORD PTR -116[rbp]
	mov	edx, DWORD PTR -120[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	SafeSample
	movss	xmm1, DWORD PTR -76[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -76[rbp], xmm0
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	edi, DWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movaps	xmm1, xmm0
	movss	xmm0, DWORD PTR -76[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -76[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -120[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -76[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -68[rbp], 1
.L50:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L51
	add	DWORD PTR -80[rbp], 1
.L47:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L52
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	FastMean, .-FastMean
	.globl	ElementAddScalar
	.type	ElementAddScalar, @function
ElementAddScalar:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	movss	DWORD PTR -36[rbp], xmm0
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	addss	xmm0, DWORD PTR -36[rbp]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L55:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L56
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ElementAddScalar, .-ElementAddScalar
	.globl	ElementAdd
	.type	ElementAdd, @function
ElementAdd:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	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 -4[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L58:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L59
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ElementAdd, .-ElementAdd
	.globl	ElementSub
	.type	ElementSub, @function
ElementSub:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	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 -4[rbp], 0
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L61:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L62
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ElementSub, .-ElementSub
	.globl	ElementMul
	.type	ElementMul, @function
ElementMul:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	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 -4[rbp], 0
	jmp	.L64
.L65:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mulss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L64:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L65
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	ElementMul, .-ElementMul
	.globl	ElementDiv
	.type	ElementDiv, @function
ElementDiv:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	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 -4[rbp], 0
	jmp	.L67
.L68:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L67:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L68
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	ElementDiv, .-ElementDiv
	.globl	SampleBilinear
	.type	SampleBilinear, @function
SampleBilinear:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	movss	DWORD PTR -60[rbp], xmm0
	movss	DWORD PTR -64[rbp], xmm1
	mov	DWORD PTR -68[rbp], esi
	mov	DWORD PTR -72[rbp], edx
	mov	eax, DWORD PTR -60[rbp]
	movd	xmm0, eax
	call	floorf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	movd	xmm0, eax
	call	ceilf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	movd	xmm0, eax
	call	floorf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	movd	xmm0, eax
	call	ceilf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR -60[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR -64[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm0, DWORD PTR .LC15[rip]
	subss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR .LC15[rip]
	subss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -16[rbp], xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	mulss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -12[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -8[rbp], xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	mulss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -4[rbp], xmm0
	mov	edi, DWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movd	eax, xmm0
	movd	xmm2, eax
	mulss	xmm2, DWORD PTR -16[rbp]
	movss	DWORD PTR -76[rbp], xmm2
	mov	edi, DWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movd	eax, xmm0
	movd	xmm0, eax
	mulss	xmm0, DWORD PTR -12[rbp]
	addss	xmm0, DWORD PTR -76[rbp]
	movss	DWORD PTR -76[rbp], xmm0
	mov	edi, DWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movd	eax, xmm0
	movd	xmm4, eax
	mulss	xmm4, DWORD PTR -8[rbp]
	movaps	xmm0, xmm4
	movaps	xmm5, xmm0
	addss	xmm5, DWORD PTR -76[rbp]
	movss	DWORD PTR -76[rbp], xmm5
	mov	edi, DWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	SafeSample
	movd	eax, xmm0
	movd	xmm0, eax
	mulss	xmm0, DWORD PTR -4[rbp]
	addss	xmm0, DWORD PTR -76[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	SampleBilinear, .-SampleBilinear
	.globl	Resample
	.type	Resample, @function
Resample:
.LFB17:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	QWORD PTR -72[rbp], rcx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	mov	DWORD PTR -36[rbp], 0
	jmp	.L72
.L73:
	mov	eax, DWORD PTR -36[rbp]
	cdq
	idiv	DWORD PTR -64[rbp]
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	cdq
	idiv	DWORD PTR -64[rbp]
	mov	DWORD PTR -28[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -32[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -64[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -80[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -28[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -60[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -76[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -76[rbp]
	mov	esi, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, ecx
	mov	rdi, rax
	call	SampleBilinear
	movd	eax, xmm0
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -36[rbp], 1
.L72:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L73
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	Resample, .-Resample
	.globl	ResampleNyquist
	.type	ResampleNyquist, @function
ResampleNyquist:
.LFB18:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	DWORD PTR -60[rbp], r8d
	mov	DWORD PTR -64[rbp], r9d
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -44[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -60[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -64[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR .LC16[rip]
	jb	.L75
	movss	xmm0, DWORD PTR -24[rbp]
	comiss	xmm0, DWORD PTR .LC16[rip]
	jb	.L75
	mov	r8d, DWORD PTR -64[rbp]
	mov	edi, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	Resample
	jmp	.L78
.L75:
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -60[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, ecx
	cmp	DWORD PTR -44[rbp], eax
	cmovge	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -64[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, ecx
	cmp	DWORD PTR -48[rbp], eax
	cmovge	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -28[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -60[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -28[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -60[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	movss	xmm0, DWORD PTR .LC16[rip]
	comiss	xmm0, DWORD PTR -16[rbp]
	jbe	.L79
	add	DWORD PTR -32[rbp], 1
.L79:
	movss	xmm0, DWORD PTR .LC16[rip]
	comiss	xmm0, DWORD PTR -12[rbp]
	jbe	.L81
	add	DWORD PTR -28[rbp], 1
.L81:
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -8[rbp], rax
	mov	r8d, DWORD PTR -64[rbp]
	mov	edi, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	Resample
	mov	r8d, DWORD PTR -28[rbp]
	mov	edi, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	ResampleNyquist
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
.L78:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	ResampleNyquist, .-ResampleNyquist
	.globl	GuidedFilter
	.type	GuidedFilter, @function
GuidedFilter:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	DWORD PTR -140[rbp], ecx
	mov	DWORD PTR -144[rbp], r8d
	mov	DWORD PTR -148[rbp], r9d
	movss	DWORD PTR -152[rbp], xmm0
	mov	eax, DWORD PTR -140[rbp]
	imul	eax, DWORD PTR -144[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -72[rbp], rax
	mov	edi, DWORD PTR -148[rbp]
	mov	rcx, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -144[rbp]
	mov	esi, DWORD PTR -140[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r9d, DWORD PTR 16[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	ResampleNyquist
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -56[rbp], rax
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -40[rbp], rax
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	ElementSub
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ElementSub
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -100[rbp]
	mov	esi, DWORD PTR -152[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -96[rbp]
	movd	xmm0, esi
	mov	rsi, rcx
	mov	rdi, rax
	call	ElementAddScalar
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ElementDiv
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ElementSub
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	FastMean
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -8[rbp], rax
	mov	edi, DWORD PTR -144[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9d, edi
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	ResampleNyquist
	mov	edi, DWORD PTR -144[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, edi
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	ResampleNyquist
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -136[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ElementMul
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	ElementAdd
	mov	rax, QWORD PTR -16[rbp]
	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
.LFE19:
	.size	GuidedFilter, .-GuidedFilter
	.section	.rodata
	.align 8
.LC17:
	.string	"Usage :\n\t GuidedFilter image image_guide image_output kernel_size epsilon\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 5
	jg	.L89
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L93
.L89:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -92[rbp]
	lea	rcx, -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	LoadImagePgm
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -84[rbp]
	lea	rcx, -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	LoadImagePgm
	mov	QWORD PTR -64[rbp], rax
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -48[rbp], rax
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -40[rbp], rax
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, edx
	mov	edi, eax
	call	fmatrix_allocate
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -80[rbp], xmm0
	movss	xmm0, DWORD PTR .LC18[rip]
	comiss	xmm0, DWORD PTR -80[rbp]
	jbe	.L91
	movss	xmm0, DWORD PTR .LC18[rip]
	movss	DWORD PTR -80[rbp], xmm0
.L91:
	movss	xmm0, DWORD PTR -80[rbp]
	mulss	xmm0, xmm0
	movd	edi, xmm0
	mov	r8d, DWORD PTR -84[rbp]
	mov	r11d, DWORD PTR -88[rbp]
	mov	r10d, DWORD PTR -92[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9d, DWORD PTR -76[rbp]
	push	r9
	push	r8
	movd	xmm0, edi
	mov	r9d, r11d
	mov	r8d, r10d
	mov	rdi, rax
	call	GuidedFilter
	add	rsp, 16
	mov	ecx, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	SaveImagePgm
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L93:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L94
	call	__stack_chk_fail@PLT
.L94:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC6:
	.long	1132396544
	.align 4
.LC15:
	.long	1065353216
	.align 4
.LC16:
	.long	1056964608
	.align 4
.LC18:
	.long	981668463
	.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	"23574228.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"probleme d'allocation memoire\000"
	.text
	.align	2
	.global	fmatrix_allocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmatrix_allocate, %function
fmatrix_allocate:
	@ 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]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4
	bl	printf
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	fmatrix_allocate, .-fmatrix_allocate
	.section	.rodata
	.align	2
.LC1:
	.ascii	".pgm\000"
	.align	2
.LC2:
	.ascii	"---> Ouverture de %s\012\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"\012- Grave erreur a l'ouverture de %s  -\012\000"
	.align	2
.LC5:
	.ascii	"%d %d\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LoadImagePgm
	.syntax unified
	.arm
	.fpu softvfp
	.type	LoadImagePgm, %function
LoadImagePgm:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #460
	str	r0, [fp, #-456]
	str	r1, [fp, #-460]
	str	r2, [fp, #-464]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #416
	ldr	r1, [fp, #-456]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #416
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #416
	add	r3, r3, r2
	ldr	r2, .L15+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #416
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	sub	r3, fp, #416
	ldr	r1, .L15+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #416
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L7:
	sub	r3, fp, #216
	ldr	r2, [fp, #-424]
	mov	r1, #199
	mov	r0, r3
	bl	fgets
	sub	r0, fp, #444
	sub	r0, r0, #1
	ldr	r3, [fp, #-424]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r2, #1
	mvn	r1, #0
	ldr	r0, [fp, #-424]
	bl	fseek
	ldrb	r3, [fp, #-445]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L8
	sub	r3, fp, #216
	ldr	r2, [fp, #-424]
	mov	r1, #199
	mov	r0, r3
	bl	fgets
.L8:
	sub	r3, fp, #440
	sub	r2, fp, #444
	ldr	r1, .L15+20
	ldr	r0, [fp, #-424]
	bl	__isoc99_fscanf
	sub	r3, fp, #436
	mov	r2, r3
	ldr	r1, .L15+24
	ldr	r0, [fp, #-424]
	bl	__isoc99_fscanf
	sub	r3, fp, #216
	ldr	r2, [fp, #-424]
	mov	r1, #199
	mov	r0, r3
	bl	fgets
	ldr	r2, [fp, #-444]
	ldr	r3, [fp, #-464]
	str	r2, [r3]
	ldr	r2, [fp, #-440]
	ldr	r3, [fp, #-460]
	str	r2, [r3]
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-440]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L10
.L11:
	sub	r0, fp, #444
	sub	r0, r0, #1
	ldr	r3, [fp, #-424]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	ldrb	r3, [fp, #-445]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-432]
	mul	r2, r3, r2
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-420]
	add	r4, r2, r3
	ldr	r1, .L15+28
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L10:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L9:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L12
	ldr	r0, [fp, #-424]
	bl	fclose
	ldr	r3, [fp, #-420]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1132396544
	.size	LoadImagePgm, .-LoadImagePgm
	.section	.rodata
	.align	2
.LC8:
	.ascii	"w\000"
	.align	2
.LC9:
	.ascii	" Probleme dans la sauvegarde de %s\000"
	.align	2
.LC10:
	.ascii	"<--- Sauvegarde de %s\012\000"
	.align	2
.LC11:
	.ascii	"P5\000"
	.align	2
.LC12:
	.ascii	"\012#\012\000"
	.align	2
.LC13:
	.ascii	"\012# IMG Module, %s\000"
	.align	2
.LC14:
	.ascii	"\012255\012\000"
	.global	__aeabi_fmul
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.global	__aeabi_f2uiz
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SaveImagePgm
	.syntax unified
	.arm
	.fpu softvfp
	.type	SaveImagePgm, %function
SaveImagePgm:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-232]
	str	r1, [fp, #-236]
	str	r2, [fp, #-240]
	str	r3, [fp, #-244]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #208
	ldr	r1, [fp, #-232]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #208
	add	r3, r3, r2
	ldr	r2, .L31+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #208
	ldr	r1, .L31+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L31+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L18:
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, [fp, #-212]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L31+20
	bl	fwrite
	sub	r3, fp, #224
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-212]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L31+24
	bl	fwrite
	b	.L20
.L19:
	sub	r3, fp, #224
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L31+28
	ldr	r0, [fp, #-212]
	bl	fprintf
.L20:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-244]
	ldr	r1, .L31+32
	ldr	r0, [fp, #-212]
	bl	fprintf
	ldr	r3, [fp, #-212]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L21
.L26:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-236]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	ldr	r1, .L31+40
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-216]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-216]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	mov	r3, #0
	str	r3, [fp, #-216]	@ float
	b	.L24
.L30:
	ldr	r1, .L31+40
	ldr	r0, [fp, #-216]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L31+40
	str	r3, [fp, #-216]	@ float
.L24:
	ldr	r0, [fp, #-216]	@ float
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
	ldr	r1, [fp, #-212]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L21:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-244]
	mul	r3, r2, r3
	ldr	r2, [fp, #-220]
	cmp	r2, r3
	blt	.L26
	ldr	r0, [fp, #-212]
	bl	fclose
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC15
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC5
	.word	.LC14
	.word	1132396544
	.size	SaveImagePgm, .-SaveImagePgm
	.align	2
	.global	SafeSample
	.syntax unified
	.arm
	.fpu softvfp
	.type	SafeSample, %function
SafeSample:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L34
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L35
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	b	.L37
.L35:
	ldr	r3, [fp, #-12]
	b	.L37
.L34:
	mov	r3, #0
.L37:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L38
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	b	.L41
.L39:
	ldr	r3, [fp, #-16]
	b	.L41
.L38:
	mov	r3, #0
.L41:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	SafeSample, .-SafeSample
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FastMean
	.syntax unified
	.arm
	.fpu softvfp
	.type	FastMean, %function
FastMean:
	@ args = 4, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, [fp, #4]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	mul	ip, r2, r3
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L44
.L49:
	mov	r3, #0
	str	r3, [fp, #-56]	@ float
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L45
.L46:
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-76]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L45:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L46
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L47
.L48:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-52]
	ldr	r0, [fp, #-76]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-28]
	sub	r1, r2, r3
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-52]
	ldr	r0, [fp, #-76]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r4, r2, r3
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, r4, lsl #2]	@ float
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L47:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L44:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L49
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L50
.L55:
	mov	r3, #0
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	str	r3, [fp, #-40]
	b	.L51
.L52:
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-20]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L51:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L52
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L53
.L54:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-20]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-20]
	bl	SafeSample
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r4, r2, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L53:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L50:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L55
	mov	sp, r5
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC16
	.size	FastMean, .-FastMean
	.align	2
	.global	ElementAddScalar
	.syntax unified
	.arm
	.fpu softvfp
	.type	ElementAddScalar, %function
ElementAddScalar:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]	@ float
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L60
.L61:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r1, [fp, #-32]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L60:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L61
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ElementAddScalar, .-ElementAddScalar
	.align	2
	.global	ElementAdd
	.syntax unified
	.arm
	.fpu softvfp
	.type	ElementAdd, %function
ElementAdd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L63
.L64:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L63:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L64
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ElementAdd, .-ElementAdd
	.align	2
	.global	ElementSub
	.syntax unified
	.arm
	.fpu softvfp
	.type	ElementSub, %function
ElementSub:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L66
.L67:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L66:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L67
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ElementSub, .-ElementSub
	.align	2
	.global	ElementMul
	.syntax unified
	.arm
	.fpu softvfp
	.type	ElementMul, %function
ElementMul:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L69
.L70:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L69:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L70
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ElementMul, .-ElementMul
	.align	2
	.global	ElementDiv
	.syntax unified
	.arm
	.fpu softvfp
	.type	ElementDiv, %function
ElementDiv:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L72
.L73:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L72:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L73
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ElementDiv, .-ElementDiv
	.global	__aeabi_f2iz
	.align	2
	.global	SampleBilinear
	.syntax unified
	.arm
	.fpu softvfp
	.type	SampleBilinear, %function
SampleBilinear:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]	@ float
	str	r2, [fp, #-72]	@ float
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-68]	@ float
	bl	floorf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r0, [fp, #-68]	@ float
	bl	ceilf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-72]	@ float
	bl	floorf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-72]	@ float
	bl	ceilf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-68]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-72]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	ldr	r1, [fp, #-44]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r1, [fp, #-40]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r1, [fp, #-32]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r1, [fp, #-32]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r1, [fp, #-40]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-40]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	SafeSample
	mov	r3, r0
	ldr	r1, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	SafeSample
	mov	r3, r0
	ldr	r1, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	SafeSample
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	SafeSample
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	SampleBilinear, .-SampleBilinear
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	Resample
	.syntax unified
	.arm
	.fpu softvfp
	.type	Resample, %function
Resample:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L77
.L78:
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #8]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-16]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-52]
	bl	SampleBilinear
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L77:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L78
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	Resample, .-Resample
	.global	__aeabi_fcmpge
	.align	2
	.global	ResampleNyquist
	.syntax unified
	.arm
	.fpu softvfp
	.type	ResampleNyquist, %function
ResampleNyquist:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #8]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	mov	r1, #1056964608
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	mov	r1, #1056964608
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	Resample
	b	.L83
.L80:
	ldr	r3, [fp, #4]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #4]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #8]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	mov	r1, #1056964608
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L84:
	mov	r1, #1056964608
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L86:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-16]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-16]
	bl	Resample
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	ResampleNyquist
	ldr	r0, [fp, #-16]
	bl	free
	nop
.L83:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ResampleNyquist, .-ResampleNyquist
	.align	2
	.global	GuidedFilter
	.syntax unified
	.arm
	.fpu softvfp
	.type	GuidedFilter, %function
GuidedFilter:
	@ args = 20, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-40]
	ldr	r3, [fp, #12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-40]
	bl	ResampleNyquist
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	FastMean
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-44]
	bl	FastMean
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-52]
	bl	ElementMul
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-36]
	bl	FastMean
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-52]
	bl	ElementMul
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-32]
	bl	FastMean
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	ElementMul
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	ElementSub
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	ElementMul
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	ElementSub
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-56]
	bl	fmatrix_allocate
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #20]	@ float
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-52]
	bl	ElementAddScalar
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	ElementDiv
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-52]
	bl	ElementMul
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-16]
	bl	ElementSub
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	FastMean
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	FastMean
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-12]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #12]
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #-12]
	bl	ResampleNyquist
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #12]
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #-8]
	bl	ResampleNyquist
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	ElementMul
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-64]
	bl	ElementAdd
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	GuidedFilter, .-GuidedFilter
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Usage :\012\011 GuidedFilter image image_guide imag"
	.ascii	"e_output kernel_size epsilon\012\000"
	.global	__aeabi_d2f
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #5
	bgt	.L94
	ldr	r0, .L101+4
	bl	puts
	mov	r3, #0
	b	.L98
.L94:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #76
	sub	r1, fp, #80
	mov	r0, r3
	bl	LoadImagePgm
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #68
	sub	r1, fp, #72
	mov	r0, r3
	bl	LoadImagePgm
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	mov	r0, r3
	bl	fmatrix_allocate
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-92]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-92]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
	ldr	r1, .L101+8
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L101+8
	str	r3, [fp, #-64]	@ float
.L96:
	ldr	r7, [fp, #-80]
	ldr	r4, [fp, #-76]
	ldr	r5, [fp, #-72]
	ldr	r6, [fp, #-68]
	ldr	r1, [fp, #-64]	@ float
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [sp, #16]	@ float
	ldr	r3, [fp, #-28]
	str	r3, [sp, #12]
	str	r6, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r7
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-32]
	bl	GuidedFilter
	ldr	r3, [fp, #-92]
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	ldr	r1, [fp, #-32]
	bl	SaveImagePgm
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L98:
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC18
	.word	.LC17
	.word	981668463
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
