	.file	"extr_picture_tools_enc.c_SmoothenBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SmoothenBlock, @function
SmoothenBlock:
.LFB0:
	.cfi_startproc
	endbr64
	test	r9d, r9d
	jle	.L14
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movsx	rsi, esi
	movsx	rcx, ecx
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r9, 0[0+rcx*8]
	mov	r13, rdx
	mov	r10, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r11d, r11d
	xor	r12d, r12d
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, r8d
	lea	r8, 0[0+rsi*8]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	lea	edx, -1[rbp]
	.p2align 4,,10
	.p2align 3
.L3:
	xor	ecx, ecx
	test	ebp, ebp
	jg	.L5
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, rsi
.L5:
	cmp	QWORD PTR [r10+rcx*8], 0
	je	.L4
	add	r12d, 1
	add	eax, DWORD PTR 0[r13+rcx*8]
.L4:
	lea	rsi, 1[rcx]
	cmp	rcx, rdx
	jne	.L15
.L8:
	lea	ecx, 1[r11]
	add	r10, r8
	add	r13, r9
	cmp	r14d, ecx
	je	.L6
	mov	r11d, ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r10d, r10d
	test	r12d, r12d
	sete	r10b
	je	.L1
	imul	r14d, ebp
	cmp	r14d, r12d
	jle	.L1
	cdq
	lea	esi, -1[rbp]
	idiv	r12d
	xor	r12d, r12d
	movsx	rdx, eax
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	test	ebp, ebp
	jg	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, rcx
.L11:
	cmp	QWORD PTR [rdi+rax*8], 0
	jne	.L10
	mov	QWORD PTR [rbx+rax*8], rdx
.L10:
	lea	rcx, 1[rax]
	cmp	rsi, rax
	jne	.L16
.L13:
	add	rdi, r8
	add	rbx, r9
	lea	eax, 1[r12]
	cmp	r11d, r12d
	je	.L1
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r10d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	r10d, 1
	mov	eax, r10d
	ret
	.cfi_endproc
.LFE0:
	.size	SmoothenBlock, .-SmoothenBlock
	.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_picture_tools_enc.c_SmoothenBlock.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SmoothenBlock, %function
SmoothenBlock:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	fp, [sp, #52]
	ldr	r7, [sp, #48]
	cmp	fp, #0
	str	r2, [sp]
	ble	.L14
	mov	r8, r0
	mov	r5, #0
	mov	r10, r2
	lsl	r2, r7, #2
	sub	r2, r2, #4
	lsl	r4, r1, #2
	add	lr, r0, r2
	mov	r1, r5
	mov	r0, r5
	mov	r9, r8
	str	r2, [sp, #4]
	lsl	r6, r3, #2
.L3:
	cmp	r7, #0
	movgt	r2, r10
	subgt	r3, r9, #4
	ble	.L8
.L5:
	ldr	ip, [r3, #4]!
	add	r2, r2, #4
	cmp	ip, #0
	ldrne	ip, [r2, #-4]
	addne	r1, r1, #1
	addne	r0, r0, ip
	cmp	r3, lr
	bne	.L5
.L8:
	add	r3, r5, #1
	cmp	fp, r3
	add	r9, r9, r4
	add	r10, r10, r6
	add	lr, lr, r4
	movne	r5, r3
	bne	.L3
.L6:
	cmp	r1, #0
	moveq	r9, #1
	movne	r9, #0
	beq	.L1
	mul	fp, r7, fp
	cmp	fp, r1
	ble	.L1
	bl	__aeabi_idiv
	mov	lr, #0
	ldr	r3, [sp, #4]
	ldr	r10, [sp]
	add	ip, r8, r3
.L9:
	cmp	r7, #0
	movgt	r2, r10
	subgt	r3, r8, #4
	ble	.L13
.L11:
	ldr	r1, [r3, #4]!
	add	r2, r2, #4
	cmp	r1, #0
	streq	r0, [r2, #-4]
	cmp	ip, r3
	bne	.L11
.L13:
	cmp	r5, lr
	add	r8, r8, r4
	add	r10, r10, r6
	add	lr, lr, #1
	add	ip, ip, r4
	bne	.L9
.L1:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r9, #1
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	SmoothenBlock, .-SmoothenBlock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
