	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function output_gain
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_output_gain:                           ## @output_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movsd	%xmm6, -64(%rbp)                ## 8-byte Spill
	movsd	%xmm5, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -24(%rbp)                ## 8-byte Spill
	movsd	%xmm3, -32(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	callq	_log
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_IS_FAKE_INFINITY
	movsd	-40(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movsd	LCPI0_0(%rip), %xmm5            ## xmm5 = mem[0],zero
LBB0_2:
	movsd	-16(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
	movapd	%xmm6, %xmm0
	movsd	-48(%rbp), %xmm7                ## 8-byte Reload
                                        ## xmm7 = mem[0],zero
	subsd	%xmm7, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm7, %xmm0
	testl	%ebx, %ebx
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	je	LBB0_6
## %bb.3:
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm1
	jbe	LBB0_10
## %bb.4:
	ucomisd	%xmm6, %xmm2
	movsd	-24(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	jbe	LBB0_10
## %bb.5:
	movapd	%xmm2, %xmm3
	subsd	%xmm7, %xmm3
	mulsd	%xmm5, %xmm3
	addsd	%xmm7, %xmm3
	movapd	%xmm6, %xmm0
	movapd	%xmm2, %xmm1
	movapd	%xmm4, %xmm2
	jmp	LBB0_9
LBB0_6:
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm1
	jbe	LBB0_10
## %bb.7:
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm6
	jbe	LBB0_10
## %bb.8:
	movapd	%xmm1, %xmm3
	subsd	%xmm7, %xmm3
	mulsd	%xmm5, %xmm3
	addsd	%xmm7, %xmm3
	movapd	%xmm6, %xmm0
	movapd	%xmm2, %xmm4
LBB0_9:
	movl	$1, %edi
	callq	_hermite_interpolation
	movsd	-16(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
LBB0_10:
	subsd	%xmm6, %xmm0
	callq	_exp
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_output_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_gain
_output_gain:                           ; @output_gain
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	.cfi_offset b14, -88
	.cfi_offset b15, -96
	mov	x19, x0
	fmov	d8, d6
	fmov	d10, d5
	fmov	d11, d4
	fmov	d13, d3
	fmov	d12, d2
	fmov	d14, d1
	bl	_log
	fmov	d9, d0
	fmov	d0, d14
	bl	_IS_FAKE_INFINITY
	cmp	x0, #0
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d0, x8
	fcsel	d5, d14, d0, eq
	fsub	d0, d9, d12
	fmadd	d0, d0, d5, d12
	fmov	d1, #1.00000000
	fcmp	d13, d1
	cbz	w19, LBB0_3
; %bb.1:
	fccmp	d9, d10, #0, gt
	b.pl	LBB0_6
; %bb.2:
	fsub	d0, d10, d12
	fmadd	d3, d0, d5, d12
	fmov	d0, d9
	fmov	d1, d10
	fmov	d2, d11
	fmov	d4, d11
	b	LBB0_5
LBB0_3:
	fccmp	d9, d11, #4, gt
	b.le	LBB0_6
; %bb.4:
	fsub	d0, d11, d12
	fmadd	d3, d0, d5, d12
	fmov	d0, d9
	fmov	d1, d11
	fmov	d2, d10
	fmov	d4, d10
LBB0_5:
	mov	w0, #1
	bl	_hermite_interpolation
LBB0_6:
	fsub	d0, d0, d9
	bl	_exp
	fmov	d0, d8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #96             ; 16-byte Folded Reload
	b	_FFMAX
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_output_gain
.subsections_via_symbols
