	.file	"extr_rescaler_utils.c_WebPRescalerInit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	WebPRescalerInit
	.type	WebPRescalerInit, @function
WebPRescalerInit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	esi, r8d
	mov	QWORD PTR 96[rdi], rcx
	setl	dl
	mov	r14d, DWORD PTR 72[rsp]
	mov	ecx, DWORD PTR 64[rsp]
	mov	DWORD PTR 8[rdi], esi
	mov	DWORD PTR [rdi], edx
	xor	edx, edx
	cmp	r13d, r9d
	mov	r15, QWORD PTR 80[rsp]
	setl	dl
	mov	DWORD PTR 12[rdi], r13d
	mov	DWORD PTR 4[rdi], edx
	mov	DWORD PTR 16[rdi], r8d
	mov	DWORD PTR 20[rdi], r9d
	mov	QWORD PTR 112[rdi], 0
	mov	QWORD PTR 104[rdi], 0
	mov	DWORD PTR 24[rdi], ecx
	mov	DWORD PTR 28[rdi], r14d
	cmp	esi, r8d
	jge	.L2
	lea	ecx, -1[r8]
	sub	eax, 1
	mov	DWORD PTR 32[rdi], ecx
	mov	DWORD PTR 36[rdi], eax
	test	edx, edx
	je	.L3
.L8:
	sub	r12d, 1
	sub	r13d, 1
	movsx	rsi, ecx
	mov	edi, 1
	mov	DWORD PTR 40[rbx], r13d
	mov	DWORD PTR 44[rbx], r12d
	mov	DWORD PTR 48[rbx], r12d
	call	WEBP_RESCALER_FRAC@PLT
	mov	QWORD PTR 80[rbx], rax
.L4:
	imul	ebp, r14d
	mov	QWORD PTR 72[rbx], r15
	mov	rdi, r15
	xor	esi, esi
	movsx	rax, ebp
	lea	edx, 0[0+rbp*8]
	lea	rax, [r15+rax*4]
	mov	QWORD PTR 64[rbx], rax
	call	memset@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	WebPRescalerDspInit@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	DWORD PTR 32[rdi], esi
	movsx	rsi, r8d
	mov	DWORD PTR 36[rdi], r8d
	mov	edi, 1
	call	WEBP_RESCALER_FRAC@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR 32[rbx]
	mov	QWORD PTR 88[rbx], rax
	test	edx, edx
	jne	.L8
.L3:
	mov	rax, QWORD PTR WEBP_RESCALER_ONE[rip]
	movsx	rsi, r12d
	mov	DWORD PTR 40[rbx], r13d
	mov	edi, 1
	mov	DWORD PTR 48[rbx], r13d
	imul	r13d, ecx
	imul	rax, rsi
	mov	DWORD PTR 44[rbx], r12d
	movsx	rcx, r13d
	cqo
	idiv	rcx
	mov	QWORD PTR 56[rbx], rax
	call	WEBP_RESCALER_FRAC@PLT
	mov	QWORD PTR 80[rbx], rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	WebPRescalerInit, .-WebPRescalerInit
	.comm	WEBP_RESCALER_ONE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rescaler_utils.c_WebPRescalerInit.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	WebPRescalerInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	WebPRescalerInit, %function
WebPRescalerInit:
	@ args = 20, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [sp, #32]
	ldr	r7, [sp, #36]
	mov	r4, r0
	cmp	r1, r6
	movge	ip, #0
	movlt	ip, #1
	cmp	r2, r7
	mov	r5, r2
	mov	r0, #0
	movge	r2, #0
	movlt	r2, #1
	ldr	r8, [sp, #44]
	str	r3, [r4, #72]
	ldr	r3, [sp, #40]
	cmp	r1, r6
	ldr	r9, [sp, #48]
	str	r1, [r4, #8]
	str	r5, [r4, #12]
	str	r6, [r4, #16]
	str	ip, [r4]
	str	r3, [r4, #24]
	str	r7, [r4, #20]
	str	r2, [r4, #4]
	str	r0, [r4, #80]
	str	r0, [r4, #76]
	str	r8, [r4, #28]
	bge	.L2
	sub	r3, r1, #1
	cmp	r2, #0
	sub	r1, r6, #1
	str	r3, [r4, #36]
	str	r1, [r4, #32]
	beq	.L3
.L8:
	sub	r7, r7, #1
	sub	r5, r5, #1
	mov	r0, #1
	str	r5, [r4, #40]
	str	r7, [r4, #44]
	str	r7, [r4, #48]
	bl	WEBP_RESCALER_FRAC
	str	r0, [r4, #64]
.L4:
	mul	r2, r8, r6
	add	r3, r9, r2, lsl #2
	mov	r0, r9
	str	r9, [r4, #60]
	str	r3, [r4, #56]
	mov	r1, #0
	lsl	r2, r2, #3
	bl	memset
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	WebPRescalerDspInit
.L2:
	str	r1, [r4, #32]
	mov	r0, #1
	mov	r1, r6
	str	r6, [r4, #36]
	bl	WEBP_RESCALER_FRAC
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #32]
	cmp	r2, #0
	str	r0, [r4, #68]
	bne	.L8
.L3:
	ldr	r3, .L9
	mul	r1, r5, r1
	ldr	r0, [r3]
	str	r5, [r4, #40]
	mul	r0, r7, r0
	str	r7, [r4, #44]
	str	r5, [r4, #48]
	bl	__aeabi_idiv
	mov	r1, r7
	str	r0, [r4, #52]
	mov	r0, #1
	bl	WEBP_RESCALER_FRAC
	str	r0, [r4, #64]
	b	.L4
.L10:
	.align	2
.L9:
	.word	WEBP_RESCALER_ONE
	.size	WebPRescalerInit, .-WebPRescalerInit
	.comm	WEBP_RESCALER_ONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
