	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_histogram
_get_histogram:                         ## @get_histogram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HIST_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$16, %esi
	callq	_av_calloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	addq	$8, %r12
	xorl	%ebx, %ebx
	movq	_HIST_GRAIN@GOTPCREL(%rip), %r13
	movq	_ABS_THRES@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r13), %xmm1
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r14), %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rdi
	movq	%rdi, -8(%r12)
	callq	_ENERGY
	movl	%eax, (%r12)
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIST_SIZE,4,2                  ## @HIST_SIZE
	.comm	_HIST_GRAIN,8,3                 ## @HIST_GRAIN
	.comm	_ABS_THRES,8,3                  ## @ABS_THRES
	.no_dead_strip	_get_histogram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_histogram
_get_histogram:                         ; @get_histogram
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _HIST_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HIST_SIZE@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #16
	bl	_av_calloc
	mov	x19, x0
	ldr	w8, [x20]
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	add	x22, x19, #8
Lloh2:
	adrp	x23, _HIST_GRAIN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HIST_GRAIN@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ABS_THRES@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ABS_THRES@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w21
	ldr	d1, [x23]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	ldr	d1, [x24]
	scvtf	d1, d1
	fadd	d0, d0, d1
	fcvtzs	x0, d0
	stur	x0, [x22, #-8]
	bl	_ENERGY
	str	w0, [x22], #16
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HIST_SIZE,4,2                  ; @HIST_SIZE
	.comm	_HIST_GRAIN,8,3                 ; @HIST_GRAIN
	.comm	_ABS_THRES,8,3                  ; @ABS_THRES
	.no_dead_strip	_get_histogram
.subsections_via_symbols
