	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function fade_gain
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_2:
	.quad	0xc00d8f0602675c8e              ## double -3.6948356807511749
LCPI0_3:
	.quad	0xbf98d4b514942172              ## double -0.024248914128322814
LCPI0_4:
	.quad	0x3fee72b4aeb6bde8              ## double 0.95150217174335427
LCPI0_5:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_6:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
LCPI0_7:
	.quad	0xc027069e2aa2aa5a              ## double -11.512925464970227
LCPI0_8:
	.quad	0x3fd45f306dc9c883              ## double 0.31830988618379069
LCPI0_9:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_10:
	.quad	0xbff0000000000000              ## double -1
LCPI0_11:
	.quad	0x3fe45f306dc9c883              ## double 0.63661977236758138
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fade_gain:                             ## @fade_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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%esi, %esi
	callq	_av_clipd
	addl	$-128, %ebx
	cmpl	$16, %ebx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	sqrtsd	%xmm0, %xmm0
	jmp	LBB0_26
LBB0_3:
	movapd	%xmm0, %xmm2
	jmp	LBB0_26
LBB0_4:
	mulsd	%xmm0, %xmm0
	movapd	%xmm0, %xmm2
	jmp	LBB0_26
LBB0_5:
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	LCPI0_5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sin                            ## TAILCALL
LBB0_6:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm1, %xmm0
	jmp	LBB0_7
LBB0_8:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_26
LBB0_9:
	addsd	LCPI0_1(%rip), %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	_exp
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm0
	divsd	%xmm0, %xmm2
	addsd	LCPI0_3(%rip), %xmm2
	divsd	LCPI0_4(%rip), %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_10:
	callq	_asin
	movapd	%xmm0, %xmm2
	mulsd	LCPI0_11(%rip), %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_11:
	addsd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_acos
	movapd	%xmm0, %xmm2
	mulsd	LCPI0_8(%rip), %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_12:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_7(%rip), %xmm1
	movapd	%xmm1, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_exp                            ## TAILCALL
LBB0_13:
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	mulsd	LCPI0_9(%rip), %xmm2
	addsd	%xmm0, %xmm0
	addsd	LCPI0_10(%rip), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm1
	mulsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	callq	_cos
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
LBB0_7:
	subsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_14:
	movsd	LCPI0_5(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_23
## %bb.15:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_16:
	movsd	LCPI0_5(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_25
## %bb.17:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_cbrt
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	$1, %eax
	subl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	jmp	LBB0_26
LBB0_18:
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_19:
	cvttsd2si	%xmm0, %edi
	callq	_cbrt
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	jmp	LBB0_26
LBB0_20:
	callq	_log10
	mulsd	LCPI0_6(%rip), %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edi
	xorl	%esi, %esi
	movapd	%xmm1, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_av_clipd                       ## TAILCALL
LBB0_21:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	subsd	%xmm1, %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_22:
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	_cos
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	jmp	LBB0_24
LBB0_23:
	addsd	%xmm0, %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
LBB0_24:
	mulsd	LCPI0_5(%rip), %xmm2
	movapd	%xmm2, %xmm0
	jmp	LBB0_26
LBB0_25:
	addsd	%xmm0, %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_cbrt
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_20
	.long	L0_0_set_10
	.long	L0_0_set_21
	.long	L0_0_set_11
	.long	L0_0_set_22
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
	.no_dead_strip	_fade_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fade_gain
_fade_gain:                             ; @fade_gain
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	fmov	d0, #1.00000000
	mov	w1, #0
	bl	_av_clipd
	sub	w8, w19, #128
	cmp	w8, #16
	b.hi	LBB0_25
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	fsqrt	d0, d0
	b	LBB0_25
LBB0_3:
	fmul	d0, d0, d0
	b	LBB0_25
LBB0_4:
Lloh2:
	adrp	x8, _M_PI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh4:
	ldr	d1, [x8]
	fmul	d0, d0, d1
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_sin
LBB0_5:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fsqrt	d0, d0
	fsub	d0, d1, d0
	b	LBB0_25
LBB0_6:
	fmov	d0, #1.00000000
	b	LBB0_25
LBB0_7:
	fmov	d1, #-0.50000000
	fadd	d0, d0, d1
	mov	x8, #23694
	movk	x8, #615, lsl #16
	movk	x8, #36614, lsl #32
	movk	x8, #49165, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	movi	d1, #0000000000000000
	fmov	d2, #2.00000000
	fmadd	d0, d0, d2, d1
	bl	_exp
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	fdiv	d0, d1, d0
	mov	x8, #8562
	movk	x8, #5268, lsl #16
	movk	x8, #54453, lsl #32
	movk	x8, #49048, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	mov	x8, #48616
	movk	x8, #44726, lsl #16
	movk	x8, #29364, lsl #32
	movk	x8, #16366, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	b	LBB0_25
LBB0_8:
	bl	_asin
	mov	x8, #51331
	movk	x8, #28105, lsl #16
	movk	x8, #24368, lsl #32
	movk	x8, #16356, lsl #48
	b	LBB0_10
LBB0_9:
	fmov	d1, #1.00000000
	fmov	d2, #-2.00000000
	fmadd	d0, d0, d2, d1
	fcvtzs	w0, d0
	bl	_acos
	mov	x8, #51331
	movk	x8, #28105, lsl #16
	movk	x8, #24368, lsl #32
	movk	x8, #16340, lsl #48
LBB0_10:
	fmov	d1, x8
	fmul	d0, d0, d1
	b	LBB0_25
LBB0_11:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	mov	x8, #43610
	movk	x8, #10914, lsl #16
	movk	x8, #1694, lsl #32
	movk	x8, #49191, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_exp
LBB0_12:
Lloh5:
	adrp	x8, _M_PI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh7:
	ldr	d1, [x8]
	fmov	d2, #0.25000000
	fmul	d1, d1, d2
	fmov	d2, #-1.00000000
	fmov	d3, #2.00000000
	fmadd	d0, d0, d3, d2
	fmul	d2, d0, d0
	fmov	d8, #1.00000000
	fmadd	d0, d2, d0, d8
	fmul	d0, d0, d1
	bl	_cos
	scvtf	d0, w0
	fsub	d0, d8, d0
	b	LBB0_25
LBB0_13:
	fmov	d1, #0.50000000
	fcmp	d0, d1
	b.ls	LBB0_22
; %bb.14:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fadd	d0, d0, d0
	fmul	d2, d0, d0
	fmul	d0, d0, d2
	fmov	d2, #-0.50000000
	fmul	d0, d0, d2
	fadd	d0, d0, d1
	b	LBB0_25
LBB0_15:
	fmov	d1, #0.50000000
	fcmp	d0, d1
	b.ls	LBB0_23
; %bb.16:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fadd	d0, d0, d0
	fcvtzs	w0, d0
	bl	_cbrt
	cmp	w0, #0
	cinc	w8, w0, lt
	mov	w9, #1
	sub	w8, w9, w8, asr #1
	b	LBB0_24
LBB0_17:
	fmul	d1, d0, d0
	fmul	d0, d0, d1
	b	LBB0_25
LBB0_18:
	fcvtzs	w0, d0
	bl	_cbrt
	scvtf	d0, w0
	b	LBB0_25
LBB0_19:
	bl	_log10
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16329, lsl #48
	fmov	d1, x8
	fmov	d2, #1.00000000
	fmadd	d0, d0, d1, d2
	fcvtzs	w0, d0
	fmov	d0, #1.00000000
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_av_clipd
LBB0_20:
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fmsub	d0, d0, d0, d1
	b	LBB0_25
LBB0_21:
Lloh8:
	adrp	x8, _M_PI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh10:
	ldr	d1, [x8]
	fmul	d0, d0, d1
	bl	_cos
	scvtf	d0, w0
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	b	LBB0_25
LBB0_22:
	fadd	d0, d0, d0
	fmul	d2, d0, d0
	fmul	d0, d0, d2
	fmul	d0, d0, d1
	b	LBB0_25
LBB0_23:
	fadd	d0, d0, d0
	fcvtzs	w0, d0
	bl	_cbrt
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
LBB0_24:
	scvtf	d0, w8
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
	.no_dead_strip	_fade_gain
.subsections_via_symbols
