	.file	"extr_vf_midequalizer.c_compute_histogram8.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compute_histogram8, @function
compute_histogram8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 0[0+r9*4]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rdx, r12
	mov	rbp, rdi
	mov	rdi, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], esi
	xor	esi, esi
	call	memset@PLT
	test	r14d, r14d
	jle	.L2
	movsx	r8, DWORD PTR 12[rsp]
	lea	eax, -1[r13]
	movss	xmm1, DWORD PTR .LC0[rip]
	xor	edi, edi
	lea	rsi, 8[rbp+rax*8]
	sal	r8, 3
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, rbp
	test	r13d, r13d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR [rax]
	add	rax, 8
	lea	rdx, [rbx+rdx*4]
	movss	xmm0, DWORD PTR [rdx]
	addss	xmm0, xmm1
	movss	DWORD PTR [rdx], xmm0
	cmp	rsi, rax
	jne	.L4
.L6:
	add	edi, 1
	add	rbp, r8
	add	rsi, r8
	cmp	r14d, edi
	jne	.L3
.L2:
	lea	rsi, -1[r15]
	test	r15, r15
	js	.L7
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, r15
.L8:
	test	rsi, rsi
	je	.L9
	mov	rax, rbx
	lea	rdx, -4[rbx+r12]
	.p2align 4,,10
	.p2align 3
.L10:
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR 4[rax]
	add	rax, 4
	addss	xmm1, xmm0
	divss	xmm0, xmm2
	movss	DWORD PTR [rax], xmm1
	movss	DWORD PTR -4[rax], xmm0
	cmp	rax, rdx
	jne	.L10
	lea	rbx, [rbx+rsi*4]
.L9:
	movss	xmm0, DWORD PTR [rbx]
	divss	xmm0, xmm2
	movss	DWORD PTR [rbx], xmm0
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L7:
	.cfi_restore_state
	mov	rax, r15
	and	r15d, 1
	pxor	xmm2, xmm2
	shr	rax
	or	rax, r15
	cvtsi2ss	xmm2, rax
	addss	xmm2, xmm2
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	compute_histogram8, .-compute_histogram8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.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_vf_midequalizer.c_compute_histogram8.c"
	.text
	.global	__aeabi_fadd
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_histogram8, %function
compute_histogram8:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r10, r2
	sub	sp, sp, #20
	ldr	r4, [sp, #56]
	str	r3, [sp, #8]
	ldr	r3, [sp, #60]
	mov	r6, r0
	lsl	r2, r3, #2
	mov	r8, r1
	mov	r0, r4
	mov	r1, #0
	str	r2, [sp, #12]
	str	r10, [sp, #4]
	bl	memset
	cmp	r5, #0
	ble	.L2
	mov	r7, #0
	mov	fp, #1065353216
	add	r5, r6, r10, lsl #2
	lsl	r8, r8, #2
	sub	r5, r5, #4
.L3:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	subgt	r9, r6, #4
	ble	.L6
.L4:
	ldr	r10, [r9, #4]!
	mov	r1, fp
	ldr	r0, [r4, r10, lsl #2]	@ float
	bl	__aeabi_fadd
	cmp	r5, r9
	str	r0, [r4, r10, lsl #2]	@ float
	bne	.L4
.L6:
	ldr	r3, [sp, #8]
	add	r7, r7, #1
	cmp	r3, r7
	add	r6, r6, r8
	add	r5, r5, r8
	bne	.L3
.L2:
	ldr	r0, [sp, #60]
	bl	__aeabi_ui2f
	ldr	r3, [sp, #60]
	mov	r6, r0
	sub	r7, r3, #1
	cmp	r7, #0
	beq	.L7
	mov	r5, r4
	ldr	r2, [sp, #12]
	sub	r3, r4, #4
	add	fp, r3, r2
.L8:
	ldr	r1, [r5]	@ float
	ldr	r0, [r5, #4]	@ float
	bl	__aeabi_fadd
	str	r0, [r5, #4]!	@ float
	ldr	r0, [r5, #-4]	@ float
	mov	r1, r6
	bl	__aeabi_fdiv
	cmp	r5, fp
	str	r0, [r5, #-4]	@ float
	bne	.L8
	add	r4, r4, r7, lsl #2
.L7:
	ldr	r0, [r4]	@ float
	mov	r1, r6
	bl	__aeabi_fdiv
	str	r0, [r4]	@ float
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	compute_histogram8, .-compute_histogram8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
