	.file	"304567.c"
	.intel_syntax noprefix
	.text
	.globl	indata
	.bss
	.align 8
	.type	indata, @object
	.size	indata, 8
indata:
	.zero	8
	.globl	outdata
	.align 8
	.type	outdata, @object
	.size	outdata, 8
outdata:
	.zero	8
	.globl	width
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.globl	gauss8
	.data
	.align 32
	.type	gauss8, @object
	.size	gauss8, 32
gauss8:
	.long	1040831503
	.long	1040343420
	.long	1037875894
	.long	1034367443
	.long	1029875444
	.long	1024030799
	.long	1016412601
	.long	1007743746
	.text
	.globl	getpx
	.type	getpx, @function
getpx:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	QWORD PTR -40[rbp], r9
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	mov	DWORD PTR -4[rbp], 0
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L3
	mov	DWORD PTR -8[rbp], 0
.L3:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L4
	mov	DWORD PTR -12[rbp], 0
.L4:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L5:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
.L6:
	mov	eax, DWORD PTR depth[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L7:
	mov	rcx, QWORD PTR indata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR indata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, 1
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rcx, QWORD PTR indata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, 2
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getpx, .-getpx
	.globl	putpx
	.type	putpx, @function
putpx:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	movss	DWORD PTR -16[rbp], xmm0
	movss	DWORD PTR -20[rbp], xmm1
	movss	DWORD PTR -24[rbp], xmm2
	cmp	DWORD PTR -4[rbp], 0
	jns	.L9
	mov	DWORD PTR -4[rbp], 0
.L9:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L10
	mov	DWORD PTR -8[rbp], 0
.L10:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L11
	mov	DWORD PTR -12[rbp], 0
.L11:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L12
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L12:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
.L13:
	mov	eax, DWORD PTR depth[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L14:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -16[rbp]
	jbe	.L15
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
.L15:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -20[rbp]
	jbe	.L17
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
.L17:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -24[rbp]
	jbe	.L19
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
.L19:
	movss	xmm0, DWORD PTR -16[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	comiss	xmm0, xmm1
	jbe	.L21
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -16[rbp], xmm0
.L21:
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	comiss	xmm0, xmm1
	jbe	.L23
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -20[rbp], xmm0
.L23:
	movss	xmm0, DWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	comiss	xmm0, xmm1
	jbe	.L25
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -24[rbp], xmm0
.L25:
	movss	xmm1, DWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	mov	rcx, QWORD PTR outdata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, rcx
	cvttss2si	edx, xmm0
	mov	BYTE PTR [rax], dl
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	mov	rcx, QWORD PTR outdata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, 1
	add	rax, rcx
	cvttss2si	edx, xmm0
	mov	BYTE PTR [rax], dl
	movss	xmm1, DWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	mov	rcx, QWORD PTR outdata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, 2
	add	rax, rcx
	cvttss2si	edx, xmm0
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR outdata[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR width[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	add	eax, esi
	sal	eax, 2
	cdqe
	add	rax, 3
	add	rax, rcx
	mov	BYTE PTR [rax], -1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	putpx, .-putpx
	.section	.rodata
	.align 8
.LC4:
	.string	"\rlutsmooth: Applying blur... %3d%%"
	.text
	.globl	smoothenlut
	.type	smoothenlut, @function
smoothenlut:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	edx, eax
	mov	eax, DWORD PTR depth[rip]
	imul	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L34
.L43:
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR -36[rbp], xmm0
	mov	DWORD PTR -16[rbp], -7
	jmp	.L35
.L40:
	mov	DWORD PTR -20[rbp], -7
	jmp	.L36
.L39:
	mov	DWORD PTR -24[rbp], -7
	jmp	.L37
.L38:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	esi, [rcx+rax]
	mov	ecx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	edi, [rcx+rax]
	lea	r8, -56[rbp]
	lea	rcx, -60[rbp]
	lea	rax, -64[rbp]
	mov	r9, r8
	mov	r8, rcx
	mov	rcx, rax
	call	getpx
	mov	eax, DWORD PTR -24[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	movss	xmm0, DWORD PTR -64[rbp]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -16[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -36[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -36[rbp], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	movss	xmm0, DWORD PTR -60[rbp]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -16[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -32[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	movss	xmm0, DWORD PTR -56[rbp]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -16[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gauss8[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -28[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	add	DWORD PTR -24[rbp], 1
.L37:
	cmp	DWORD PTR -24[rbp], 7
	jle	.L38
	add	DWORD PTR -20[rbp], 1
.L36:
	cmp	DWORD PTR -20[rbp], 7
	jle	.L39
	add	DWORD PTR -16[rbp], 1
.L35:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L40
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, esi
	mov	esi, ecx
	mov	edi, eax
	call	putpx
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L41
	mov	DWORD PTR -52[rbp], 0
	add	DWORD PTR -48[rbp], 1
.L41:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L42
	mov	DWORD PTR -48[rbp], 0
	add	DWORD PTR -44[rbp], 1
.L42:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, eax, 100
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L43
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 1
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	smoothenlut, .-smoothenlut
	.section	.rodata
	.align 8
.LC5:
	.string	"LUTSMOOTH 1.0 - (C)2017 Marisa Kirisame, UnSX Team.\nThis program is free software under the GNU GPL v3.\nSee https://www.gnu.org/licenses/gpl.html for details.\n"
.LC6:
	.string	"rb"
.LC7:
	.string	"Failed to load %s: %s\n"
	.align 8
.LC8:
	.string	"File %s is not a valid DDS file\n"
	.align 8
.LC9:
	.ascii	"%s has one or more unsupported properties.\nlutsmooth requir"
	.ascii	"es an uncompressed RGBA8 volume map with no mipmaps.\n flags"
	.ascii	": expected 80100f"
	.string	" got %x\n pf_flags: expected 41 got %x\n pf_fourcc: expected 0 got %x\n pf_bitcount: expected 32 got %u\n mipmaps: expected 0 got %u\n pf_rmask: expected ff got %x\n width: expected nonzero got %u\n height: expected nonzero got %u\n depth: expected nonzero got %u\n"
.LC10:
	.string	"Failed to process %s\n"
	.align 8
.LC11:
	.string	"Failed to rename %s to %s: %s\n"
.LC12:
	.string	"wb"
.LC13:
	.string	"Failed to create %s: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 448
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 29
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	DWORD PTR -440[rbp], 1
	jmp	.L47
.L56:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jne	.L48
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L49
.L48:
	mov	rdx, QWORD PTR -432[rbp]
	lea	rax, -416[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 128
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -416[rbp]
	cmp	eax, 542327876
	je	.L50
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, 8392719
	jne	.L51
	mov	eax, DWORD PTR -336[rbp]
	cmp	eax, 65
	jne	.L51
	mov	eax, DWORD PTR -332[rbp]
	test	eax, eax
	jne	.L51
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, 32
	jne	.L51
	mov	eax, DWORD PTR -388[rbp]
	test	eax, eax
	jne	.L51
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, 255
	jne	.L51
	mov	eax, DWORD PTR -400[rbp]
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -404[rbp]
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -392[rbp]
	test	eax, eax
	jne	.L52
.L51:
	mov	r10d, DWORD PTR -392[rbp]
	mov	r9d, DWORD PTR -404[rbp]
	mov	r8d, DWORD PTR -400[rbp]
	mov	edi, DWORD PTR -324[rbp]
	mov	esi, DWORD PTR -388[rbp]
	mov	ebx, DWORD PTR -328[rbp]
	mov	r11d, DWORD PTR -332[rbp]
	mov	ecx, DWORD PTR -336[rbp]
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	r12, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, r12
	mov	rax, QWORD PTR [rax]
	sub	rsp, 8
	push	r10
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9d, ebx
	mov	r8d, r11d
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 48
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L49
.L52:
	mov	eax, DWORD PTR -400[rbp]
	mov	DWORD PTR width[rip], eax
	mov	eax, DWORD PTR -404[rbp]
	mov	DWORD PTR height[rip], eax
	mov	eax, DWORD PTR -392[rbp]
	mov	DWORD PTR depth[rip], eax
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	edx, eax
	mov	eax, DWORD PTR depth[rip]
	imul	eax, edx
	sal	eax, 2
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR indata[rip], rax
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	edx, eax
	mov	eax, DWORD PTR depth[rip]
	imul	eax, edx
	sal	eax, 2
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR outdata[rip], rax
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	edx, eax
	mov	eax, DWORD PTR depth[rip]
	imul	eax, edx
	sal	eax, 2
	movsx	rsi, eax
	mov	rax, QWORD PTR indata[rip]
	mov	rdx, QWORD PTR -432[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	smoothenlut
	mov	DWORD PTR -436[rbp], eax
	mov	rax, QWORD PTR indata[rip]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -436[rbp], 0
	jne	.L53
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR outdata[rip]
	mov	rdi, rax
	call	free@PLT
	jmp	.L49
.L53:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1684827950
	mov	BYTE PTR 4[rax], 0
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	test	eax, eax
	je	.L54
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR outdata[rip]
	mov	rdi, rax
	call	free@PLT
	jmp	.L49
.L54:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -464[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jne	.L55
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR outdata[rip]
	mov	rdi, rax
	call	free@PLT
	jmp	.L49
.L55:
	mov	rdx, QWORD PTR -424[rbp]
	lea	rax, -416[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 128
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	edx, eax
	mov	eax, DWORD PTR depth[rip]
	imul	eax, edx
	sal	eax, 2
	movsx	rsi, eax
	mov	rax, QWORD PTR outdata[rip]
	mov	rdx, QWORD PTR -424[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR outdata[rip]
	mov	rdi, rax
	call	free@PLT
.L49:
	add	DWORD PTR -440[rbp], 1
.L47:
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L56
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1081073664
	.align 4
.LC2:
	.long	1065353216
	.align 4
.LC3:
	.long	1132396544
	.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	"304567.c"
	.text
	.comm	indata,4,4
	.comm	outdata,4,4
	.comm	width,4,4
	.comm	height,4,4
	.comm	depth,4,4
	.global	gauss8
	.data
	.align	2
	.type	gauss8, %object
	.size	gauss8, 32
gauss8:
	.word	1040831503
	.word	1040343420
	.word	1037875894
	.word	1034367443
	.word	1029875444
	.word	1024030799
	.word	1016412601
	.word	1007743746
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.text
	.align	2
	.global	getpx
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpx, %function
getpx:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	mov	r3, #0
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L3
	mov	r3, #0
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L4
	mov	r3, #0
	str	r3, [fp, #-16]
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	ldr	r3, .L8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L8+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L8+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8
	ldr	r2, [r2]
	ldr	r1, [fp, #-12]
	mul	r1, r2, r1
	ldr	r2, [fp, #-8]
	add	r1, r1, r2
	ldr	r2, .L8
	ldr	r2, [r2]
	ldr	r0, [fp, #-16]
	mul	r2, r0, r2
	ldr	r0, .L8+4
	ldr	r0, [r0]
	mul	r2, r0, r2
	add	r2, r1, r2
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]	@ float
	ldr	r3, .L8+12
	ldr	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r1, r1, r3
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r0, [fp, #-16]
	mul	r3, r0, r3
	ldr	r0, .L8+4
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]	@ float
	ldr	r3, .L8+12
	ldr	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r1, r1, r3
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r0, [fp, #-16]
	mul	r3, r0, r3
	ldr	r0, .L8+4
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #8]
	str	r2, [r3]	@ float
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	width
	.word	height
	.word	depth
	.word	indata
	.word	1081073664
	.size	getpx, .-getpx
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.global	__aeabi_fmul
	.global	__aeabi_f2uiz
	.align	2
	.global	putpx
	.syntax unified
	.arm
	.fpu softvfp
	.type	putpx, %function
putpx:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L11
	mov	r3, #0
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	str	r3, [fp, #-20]
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L13
	mov	r3, #0
	str	r3, [fp, #-24]
.L13:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L14
	ldr	r3, .L35
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L35+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L16:
	mov	r1, #0
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
.L17:
	mov	r1, #0
	ldr	r0, [fp, #4]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r3, #0
	str	r3, [fp, #4]	@ float
.L19:
	mov	r1, #0
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	mov	r3, #0
	str	r3, [fp, #8]	@ float
.L21:
	mov	r1, #1065353216
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r3, #1065353216
	str	r3, [fp, #-28]	@ float
.L23:
	mov	r1, #1065353216
	ldr	r0, [fp, #4]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #1065353216
	str	r3, [fp, #4]	@ float
.L25:
	mov	r1, #1065353216
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r3, #1065353216
	str	r3, [fp, #8]	@ float
.L27:
	ldr	r1, .L35+12
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	ip, r3
	ldr	r3, .L35+16
	ldr	r3, [r3]
	ldr	r2, .L35
	ldr	r2, [r2]
	ldr	r1, [fp, #-20]
	mul	r1, r2, r1
	ldr	r2, [fp, #-16]
	add	r1, r1, r2
	ldr	r2, .L35
	ldr	r2, [r2]
	ldr	r0, [fp, #-24]
	mul	r2, r0, r2
	ldr	r0, .L35+4
	ldr	r0, [r0]
	mul	r2, r0, r2
	add	r2, r1, r2
	lsl	r2, r2, #2
	add	r4, r3, r2
	mov	r0, ip
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
	ldr	r1, .L35+12
	ldr	r0, [fp, #4]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	ip, r3
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-16]
	add	r1, r1, r3
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	mul	r3, r0, r3
	ldr	r0, .L35+4
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r3, #1
	add	r4, r2, r3
	mov	r0, ip
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
	ldr	r1, .L35+12
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	ip, r3
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-16]
	add	r1, r1, r3
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	mul	r3, r0, r3
	ldr	r0, .L35+4
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r3, #2
	add	r4, r2, r3
	mov	r0, ip
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r3, [fp, #-16]
	add	r1, r1, r3
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	mul	r3, r0, r3
	ldr	r0, .L35+4
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	width
	.word	height
	.word	depth
	.word	1132396544
	.word	outdata
	.size	putpx, .-putpx
	.global	__aeabi_fadd
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\015lutsmooth: Applying blur... %3d%%\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	smoothenlut
	.syntax unified
	.arm
	.fpu softvfp
	.type	smoothenlut, %function
smoothenlut:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r2, .L50+8
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L50+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L38
.L47:
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-28]	@ float
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-32]	@ float
	str	r3, [fp, #-36]	@ float
	mvn	r3, #6
	str	r3, [fp, #-16]
	b	.L39
.L44:
	mvn	r3, #6
	str	r3, [fp, #-20]
	b	.L40
.L43:
	mvn	r3, #6
	str	r3, [fp, #-24]
	b	.L41
.L42:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-24]
	add	r0, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	sub	ip, fp, #64
	sub	r3, fp, #56
	str	r3, [sp, #4]
	sub	r3, fp, #60
	str	r3, [sp]
	mov	r3, ip
	bl	getpx
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	ldr	r2, [fp, #-64]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	ldr	r2, [fp, #-60]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	ldr	r2, [fp, #-56]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, .L50+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L41:
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	ble	.L42
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L44
	ldr	r3, [fp, #-28]	@ float
	str	r3, [sp, #4]	@ float
	ldr	r3, [fp, #-32]	@ float
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-36]	@ float
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	putpx
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L45
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L45:
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L46
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L46:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L50+20
	bl	printf
.L38:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L47
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC1
	.word	width
	.word	height
	.word	depth
	.word	gauss8
	.word	.LC0
	.size	smoothenlut, .-smoothenlut
	.section	.rodata
	.align	2
.LC2:
	.ascii	"LUTSMOOTH 1.0 - (C)2017 Marisa Kirisame, UnSX Team."
	.ascii	"\012This program is free software under the GNU GPL"
	.ascii	" v3.\012See https://www.gnu.org/licenses/gpl.html f"
	.ascii	"or details.\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"Failed to load %s: %s\012\000"
	.align	2
.LC5:
	.ascii	"File %s is not a valid DDS file\012\000"
	.align	2
.LC6:
	.ascii	"%s has one or more unsupported properties.\012lutsm"
	.ascii	"ooth requires an uncompressed RGBA8 volume map with"
	.ascii	" no mipmaps.\012 flags: expected 80100f got %x\012 "
	.ascii	"pf_flags: expected 41 got %x\012 pf_fourcc: expecte"
	.ascii	"d 0 got %x\012 pf_bitcount: expected 32 got %u\012 "
	.ascii	"mipmaps: expected 0 got %u\012 pf_rmask: expected f"
	.ascii	"f got %x\012 width: expected nonzero got %u\012 hei"
	.ascii	"ght: expected nonzero got %u\012 depth: expected no"
	.ascii	"nzero got %u\012\000"
	.align	2
.LC7:
	.ascii	"Failed to process %s\012\000"
	.align	2
.LC8:
	.ascii	".old\000"
	.align	2
.LC9:
	.ascii	"Failed to rename %s to %s: %s\012\000"
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"Failed to create %s: %s\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #448
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L65+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	mov	r2, #251
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-424]
	b	.L53
.L62:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L65+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L65+12
	bl	printf
	b	.L55
.L54:
	sub	r0, fp, #408
	ldr	r3, [fp, #-420]
	mov	r2, #1
	mov	r1, #128
	bl	fread
	ldr	r3, [fp, #-408]
	ldr	r2, .L65+16
	cmp	r3, r2
	beq	.L56
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L65+20
	bl	printf
	ldr	r0, [fp, #-420]
	bl	fclose
	b	.L55
.L56:
	ldr	r3, [fp, #-400]
	ldr	r2, .L65+24
	cmp	r3, r2
	bne	.L57
	ldr	r3, [fp, #-328]
	cmp	r3, #65
	bne	.L57
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-320]
	cmp	r3, #32
	bne	.L57
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-316]
	cmp	r3, #255
	bne	.L57
	ldr	r3, [fp, #-392]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-384]
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r6, [fp, #-400]
	ldr	r7, [fp, #-328]
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-320]
	ldr	r1, [fp, #-380]
	ldr	r0, [fp, #-316]
	ldr	ip, [fp, #-392]
	ldr	lr, [fp, #-396]
	ldr	r4, [fp, #-384]
	str	r4, [sp, #24]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	ldr	r0, .L65+28
	bl	printf
	ldr	r0, [fp, #-420]
	bl	fclose
	b	.L55
.L58:
	ldr	r3, [fp, #-392]
	mov	r2, r3
	ldr	r3, .L65+32
	str	r2, [r3]
	ldr	r3, [fp, #-396]
	mov	r2, r3
	ldr	r3, .L65+36
	str	r2, [r3]
	ldr	r3, [fp, #-384]
	mov	r2, r3
	ldr	r3, .L65+40
	str	r2, [r3]
	ldr	r3, .L65+32
	ldr	r3, [r3]
	ldr	r2, .L65+36
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L65+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L65+44
	str	r2, [r3]
	ldr	r3, .L65+32
	ldr	r3, [r3]
	ldr	r2, .L65+36
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L65+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L65+48
	str	r2, [r3]
	ldr	r3, .L65+44
	ldr	r0, [r3]
	ldr	r3, .L65+32
	ldr	r3, [r3]
	ldr	r2, .L65+36
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L65+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-420]
	mov	r2, #1
	bl	fread
	ldr	r0, [fp, #-420]
	bl	fclose
	bl	smoothenlut
	str	r0, [fp, #-416]
	ldr	r3, .L65+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L65+52
	bl	printf
	ldr	r3, .L65+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L55
.L59:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #280
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #280
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #280
	add	r3, r3, r2
	ldr	r2, .L65+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #280
	mov	r1, r2
	mov	r0, r3
	bl	rename
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #280
	mov	r1, r4
	ldr	r0, .L65+60
	bl	printf
	ldr	r3, .L65+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L55
.L60:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L65+64
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L61
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, .L65+68
	bl	printf
	ldr	r3, .L65+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L55
.L61:
	sub	r0, fp, #408
	ldr	r3, [fp, #-412]
	mov	r2, #1
	mov	r1, #128
	bl	fwrite
	ldr	r3, .L65+48
	ldr	r0, [r3]
	ldr	r3, .L65+32
	ldr	r3, [r3]
	ldr	r2, .L65+36
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L65+40
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-412]
	mov	r2, #1
	bl	fwrite
	ldr	r0, [fp, #-412]
	bl	fclose
	ldr	r3, .L65+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L55:
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
.L53:
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-432]
	cmp	r2, r3
	blt	.L62
	mov	r3, #0
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC12
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	542327876
	.word	.LC5
	.word	8392719
	.word	.LC6
	.word	width
	.word	height
	.word	depth
	.word	indata
	.word	outdata
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
