	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function find_hb_gain
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff4000000000000              ## double 1.25
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_3:
	.long	0x38800000                      ## float 6.10351563E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_find_hb_gain:                          ## @find_hb_gain
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	(%rdi), %rax
	movq	_MODE_23k85@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	_qua_hb_gain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_3(%rip), %xmm0
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$4, %rsi
	movq	_AMRWB_SFR_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	decq	%rdx
	movq	%r15, %rdi
	callq	*8(%rbx)
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_3
## %bb.2:
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movq	%r15, %rsi
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	callq	*8(%rbx)
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	cvtss2sd	%xmm1, %xmm1
LBB0_3:
	xorl	%eax, %eax
	testq	%r14, %r14
	setg	%al
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	leaq	LCPI0_1(%rip), %rcx
	mulsd	(%rcx,%rax,8), %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_clipf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_23k85,8,3                 ## @MODE_23k85
	.comm	_qua_hb_gain,8,3                ## @qua_hb_gain
	.comm	_AMRWB_SFR_SIZE,8,3             ## @AMRWB_SFR_SIZE
	.no_dead_strip	_find_hb_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_hb_gain
_find_hb_gain:                          ; @find_hb_gain
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MODE_23k85@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_23k85@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _qua_hb_gain@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qua_hb_gain@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	s0, [x8, x2, lsl #2]
	mov	w8, #947912704
	fmov	s1, w8
	fmul	s0, s0, s1
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	add	x1, x1, #4
Lloh6:
	adrp	x22, _AMRWB_SFR_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AMRWB_SFR_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	sub	x2, x9, #1
	mov	x0, x20
	blr	x8
	fmov	s8, s0
	movi	d9, #0000000000000000
	fcmp	s0, #0.0
	movi	d0, #0000000000000000
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x20
	blr	x8
	fdiv	s0, s8, s0
	fcvt	d0, s0
LBB0_4:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	cmp	x19, #0
	fcsel	d1, d1, d9, gt
	fmov	d2, #1.25000000
	fmov	d3, #-0.25000000
	fmadd	d1, d1, d3, d2
	fmul	d0, d1, d0
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fmov	d2, #1.00000000
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_av_clipf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_23k85,8,3                 ; @MODE_23k85
	.comm	_qua_hb_gain,8,3                ; @qua_hb_gain
	.comm	_AMRWB_SFR_SIZE,8,3             ; @AMRWB_SFR_SIZE
	.no_dead_strip	_find_hb_gain
.subsections_via_symbols
