	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gain_interpolate_func
_gain_interpolate_func:                 ## @gain_interpolate_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movsd	%xmm0, -24(%rbp)
	movq	(%rdi), %rbx
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movslq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jae	LBB0_5
## %bb.6:
	decq	%rdx
	movq	%rdx, %rcx
	shlq	$4, %rcx
	ucomisd	(%rax,%rcx), %xmm1
	jae	LBB0_7
## %bb.8:
	addq	$8, %rbx
	movq	_gain_entry_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$16, %ecx
	callq	_bsearch
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_av_assert0
	movsd	(%rbx), %xmm5                   ## xmm5 = mem[0],zero
	movsd	-24(%rbp), %xmm4                ## xmm4 = mem[0],zero
	movapd	%xmm4, %xmm0
	subsd	%xmm5, %xmm0
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm0
	jne	LBB0_9
	jnp	LBB0_11
LBB0_9:
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm3
	subsd	%xmm4, %xmm3
	ucomisd	%xmm2, %xmm3
	jne	LBB0_10
	jnp	LBB0_11
LBB0_10:
	subsd	%xmm5, %xmm1
	mulsd	8(%rbx), %xmm3
	mulsd	24(%rbx), %xmm0
	addsd	%xmm3, %xmm0
	divsd	%xmm1, %xmm0
	jmp	LBB0_14
LBB0_3:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_14
LBB0_5:
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_7:
	movsd	8(%rax,%rcx), %xmm0             ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_11:
	ucomisd	%xmm2, %xmm0
	jne	LBB0_12
	jnp	LBB0_13
LBB0_12:
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_13:
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_gain_entry_compare,4,2         ## @gain_entry_compare
	.no_dead_strip	_gain_interpolate_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gain_interpolate_func
_gain_interpolate_func:                 ; @gain_interpolate_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
	str	d0, [sp, #8]
	ldr	x19, [x0]
	bl	_isnan
	cbz	x0, LBB0_2
LBB0_1:
	fmov	d0, d8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w9, [x19]
	cbz	w9, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]!
	ldr	d0, [x8]
	fcmp	d0, d8
	b.ge	LBB0_9
; %bb.4:
	sub	w9, w9, #1
	sxtw	x2, w9
	sbfiz	x9, x9, #4, #32
	ldr	d0, [x8, x9]
	fcmp	d0, d8
	b.ls	LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _gain_entry_compare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gain_entry_compare@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x0, sp, #8
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #16
	bl	_bsearch
	mov	x19, x0
	bl	_av_assert0
	ldr	d1, [x19]
	ldr	d2, [sp, #8]
	fsub	d0, d2, d1
	fcmp	d0, #0.0
	b.eq	LBB0_11
; %bb.6:
	ldr	d3, [x19, #16]
	fsub	d2, d3, d2
	fcmp	d2, #0.0
	b.eq	LBB0_11
; %bb.7:
	fsub	d1, d3, d1
	ldr	d3, [x19, #24]
	ldr	d4, [x19, #8]
	fmul	d2, d2, d4
	fmadd	d0, d0, d3, d2
	fdiv	d8, d0, d1
	b	LBB0_1
LBB0_8:
	movi	d8, #0000000000000000
	b	LBB0_1
LBB0_9:
	ldr	d8, [x8, #8]
	b	LBB0_1
LBB0_10:
	add	x8, x8, x2, lsl #4
	ldr	d8, [x8, #8]
	b	LBB0_1
LBB0_11:
	fcmp	d0, #0.0
	b.eq	LBB0_13
; %bb.12:
	ldr	d8, [x19, #24]
	b	LBB0_1
LBB0_13:
	ldr	d8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gain_entry_compare,4,2         ; @gain_entry_compare
	.no_dead_strip	_gain_interpolate_func
.subsections_via_symbols
