	.file	"745427.c"
	.intel_syntax noprefix
	.text
	.globl	compare
	.type	compare, @function
compare:
.LFB6:
	.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	test	eax, eax
	jle	.L3
	add	DWORD PTR -12[rbp], 1
.L3:
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L4
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.globl	rescaleImage000
	.type	rescaleImage000, @function
rescaleImage000:
.LFB7:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L7
.L16:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -36[rbp], eax
	jge	.L9
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
.L9:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L10
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L19
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L14
.L19:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L14
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L14:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L11:
	add	DWORD PTR -32[rbp], 1
.L7:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L16
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rescaleImage000, .-rescaleImage000
	.globl	rescaleImage001
	.type	rescaleImage001, @function
rescaleImage001:
.LFB8:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L21
.L32:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L22
.L31:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L23
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L24
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L24:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L25
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L35
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L29
.L35:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L29
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L29:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L26:
	add	DWORD PTR -32[rbp], 1
.L22:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L31
	add	DWORD PTR -36[rbp], 1
.L21:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L32
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rescaleImage001, .-rescaleImage001
	.globl	rescaleImage010
	.type	rescaleImage010, @function
rescaleImage010:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L37
.L48:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L38
.L47:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L39
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L40
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L40:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L41
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L51
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L45
.L51:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L45
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L45:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L42:
	add	DWORD PTR -32[rbp], 1
.L38:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L47
	add	DWORD PTR -36[rbp], 1
.L37:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L48
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rescaleImage010, .-rescaleImage010
	.globl	rescaleImage011
	.type	rescaleImage011, @function
rescaleImage011:
.LFB10:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L53
.L64:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L54
.L63:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L55
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L56
.L55:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L56
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L56:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L57
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L58
.L57:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L67
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L61
.L67:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L61
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L61:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L58:
	add	DWORD PTR -32[rbp], 1
.L54:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L63
	add	DWORD PTR -36[rbp], 1
.L53:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L64
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	rescaleImage011, .-rescaleImage011
	.globl	rescaleImage100
	.type	rescaleImage100, @function
rescaleImage100:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L69
.L80:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L70
.L79:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L71
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L72
.L71:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L72
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L72:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L73
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L74
.L73:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L83
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L77
.L83:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L77
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L77:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L74:
	add	DWORD PTR -32[rbp], 1
.L70:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L79
	add	DWORD PTR -36[rbp], 1
.L69:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L80
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	rescaleImage100, .-rescaleImage100
	.globl	rescaleImage101
	.type	rescaleImage101, @function
rescaleImage101:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L85
.L96:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L86
.L95:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L87
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L88
.L87:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L88
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L88:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L89
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L90
.L89:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L99
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L93
.L99:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L93
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L93:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L90:
	add	DWORD PTR -32[rbp], 1
.L86:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L95
	add	DWORD PTR -36[rbp], 1
.L85:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L96
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	rescaleImage101, .-rescaleImage101
	.globl	rescaleImage110
	.type	rescaleImage110, @function
rescaleImage110:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L101
.L112:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L102
.L111:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L103
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L104
.L103:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L104
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L104:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L105
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L106
.L105:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L115
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L109
.L115:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L109
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L109:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L106:
	add	DWORD PTR -32[rbp], 1
.L102:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L111
	add	DWORD PTR -36[rbp], 1
.L101:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L112
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	rescaleImage110, .-rescaleImage110
	.globl	rescaleImage111
	.type	rescaleImage111, @function
rescaleImage111:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	DWORD PTR -80[rbp], r9d
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L117
.L128:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L118
.L127:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -44[rbp], eax
	jle	.L119
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L120
.L119:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR -40[rbp], eax
	jge	.L120
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -40[rbp], eax
.L120:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	DWORD PTR 16[rbp], eax
	jg	.L121
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	jmp	.L122
.L121:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L131
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L125
.L131:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L125
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
.L125:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
.L122:
	add	DWORD PTR -32[rbp], 1
.L118:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L127
	add	DWORD PTR -36[rbp], 1
.L117:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L128
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	rescaleImage111, .-rescaleImage111
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"745427.c"
	.text
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L4:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare, .-compare
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
	.global	rescaleImage000
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage000, %function
rescaleImage000:
	@ args = 32, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-60]
	ldrh	r3, [r3]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L7
.L16:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	ble	.L8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
	b	.L9
.L8:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r3, r2
	bge	.L9
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-48]
.L9:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L10
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	b	.L11
.L10:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L14
.L19:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L14:
	mov	r2, #0
	ldr	r3, .L20
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L7:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-48]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	1071644672
	.size	rescaleImage000, .-rescaleImage000
	.align	2
	.global	rescaleImage001
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage001, %function
rescaleImage001:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L23
.L34:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L24
.L33:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	ble	.L25
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	b	.L26
.L25:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bge	.L26
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
.L26:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L27
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L28
.L27:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L31
.L37:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L31:
	mov	r2, #0
	ldr	r3, .L38
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r4, r3, r2
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L28:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L24:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L23:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L39:
	.align	2
.L38:
	.word	1071644672
	.size	rescaleImage001, .-rescaleImage001
	.align	2
	.global	rescaleImage010
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage010, %function
rescaleImage010:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L41
.L52:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L42
.L51:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	ble	.L43
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	b	.L44
.L43:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bge	.L44
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
.L44:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L45
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L46
.L45:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L49
.L55:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L49:
	mov	r2, #0
	ldr	r3, .L56
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r4, r3, r2
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L46:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L42:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L51
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L41:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L52
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	1071644672
	.size	rescaleImage010, .-rescaleImage010
	.align	2
	.global	rescaleImage011
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage011, %function
rescaleImage011:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L59
.L70:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L60
.L69:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	ble	.L61
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	b	.L62
.L61:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	bge	.L62
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
.L62:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L63
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L64
.L63:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L67
.L73:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L67:
	mov	r2, #0
	ldr	r3, .L74
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r4, r3, r2
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L64:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L60:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L59:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L70
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L75:
	.align	2
.L74:
	.word	1071644672
	.size	rescaleImage011, .-rescaleImage011
	.align	2
	.global	rescaleImage100
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage100, %function
rescaleImage100:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L77
.L88:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L78
.L87:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	ble	.L79
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	b	.L80
.L79:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	bge	.L80
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
.L80:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L81
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r2, r3, r2
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L82
.L81:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L85
.L91:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L85:
	mov	r2, #0
	ldr	r3, .L92
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r2, r3, r2
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r4, r3, r2
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L82:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L78:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L87
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L77:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L88
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L93:
	.align	2
.L92:
	.word	1071644672
	.size	rescaleImage100, .-rescaleImage100
	.align	2
	.global	rescaleImage101
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage101, %function
rescaleImage101:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L95
.L106:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L96
.L105:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	ble	.L97
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-56]
	b	.L98
.L97:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bge	.L98
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-52]
.L98:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L99
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L100
.L99:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L103
.L109:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L103
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L103:
	mov	r2, #0
	ldr	r3, .L110
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r4, r3, r2
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L100:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L96:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L105
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L95:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L106
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L111:
	.align	2
.L110:
	.word	1071644672
	.size	rescaleImage101, .-rescaleImage101
	.align	2
	.global	rescaleImage110
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage110, %function
rescaleImage110:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L113
.L124:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L114
.L123:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	ble	.L115
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	b	.L116
.L115:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	bge	.L116
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
.L116:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L117
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-84]
	mul	r2, r3, r2
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L118
.L117:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L127
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L121
.L127:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L121
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L121:
	mov	r2, #0
	ldr	r3, .L128
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-84]
	mul	r2, r3, r2
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r4, r3, r2
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L118:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L114:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L123
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L113:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L124
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L129:
	.align	2
.L128:
	.word	1071644672
	.size	rescaleImage110, .-rescaleImage110
	.align	2
	.global	rescaleImage111
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescaleImage111, %function
rescaleImage111:
	@ args = 32, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r0, [fp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L131
.L142:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L132
.L141:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	ble	.L133
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-64]
	b	.L134
.L133:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	bge	.L134
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-60]
.L134:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #12]
	cmp	r3, r2
	bgt	.L135
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mvn	r2, #0
	strb	r2, [r3]
	b	.L136
.L135:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L139
.L145:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L139
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L139:
	mov	r2, #0
	ldr	r3, .L146
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-80]
	mul	r2, r3, r2
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r4, r3, r2
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
.L136:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L132:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L141
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L131:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L142
	ldr	r3, [fp, #28]
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r3, [fp, #32]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L147:
	.align	2
.L146:
	.word	1071644672
	.size	rescaleImage111, .-rescaleImage111
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
