	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function freq_gain
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_freq_gain:                             ## @freq_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
	movq	%rdi, %rbx
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm2
	divsd	%xmm1, %xmm2
	mulsd	%xmm2, %xmm0
	callq	___sincos_stret
	movapd	%xmm0, %xmm4
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm4, %xmm0
	movapd	%xmm0, %xmm8
	movapd	%xmm0, -48(%rbp)                ## 16-byte Spill
	cvtsi2sdl	(%rbx), %xmm5
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	16(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm3
	mulsd	%xmm1, %xmm3
	addsd	%xmm5, %xmm3
	movapd	%xmm4, %xmm5
	movapd	%xmm4, -64(%rbp)                ## 16-byte Spill
	mulsd	%xmm4, %xmm5
	movapd	%xmm1, %xmm7
	movapd	%xmm1, %xmm6
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	mulsd	%xmm1, %xmm7
	subsd	%xmm5, %xmm7
	movsd	%xmm7, -32(%rbp)                ## 8-byte Spill
	movapd	%xmm2, %xmm1
	mulsd	%xmm7, %xmm1
	addsd	%xmm3, %xmm1
	cvttsd2si	%xmm1, %edi
	addsd	%xmm2, %xmm2
	mulsd	%xmm6, %xmm2
	mulsd	%xmm4, %xmm2
	mulsd	%xmm8, %xmm0
	subsd	%xmm2, %xmm0
	callq	_hypot
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	32(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movapd	-48(%rbp), %xmm2                ## 16-byte Reload
	mulsd	%xmm0, %xmm2
	movsd	-24(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	movsd	-32(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	mulsd	%xmm1, %xmm4
	addsd	%xmm0, %xmm4
	cvttsd2si	%xmm4, %edi
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm1
	mulsd	-64(%rbp), %xmm1                ## 16-byte Folded Reload
	subsd	%xmm1, %xmm2
	movapd	%xmm2, %xmm0
	callq	_hypot
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
	.no_dead_strip	_freq_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_gain
_freq_gain:                             ; @freq_gain
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	d2, [x8]
	fadd	d2, d2, d2
	fdiv	d1, d2, d1
	fmul	d0, d1, d0
	bl	___sincos_stret
	fmov	d8, d0
	fmov	d9, d1
	fneg	d11, d0
	ldr	s0, [x19]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	ldp	d1, d2, [x19, #8]
	fmadd	d0, d1, d9, d0
	fmul	d3, d8, d11
	fmadd	d12, d9, d9, d3
	fmadd	d0, d2, d12, d0
	fcvtzs	w0, d0
	fadd	d0, d2, d2
	fmul	d0, d0, d9
	fmul	d0, d0, d11
	fmsub	d0, d1, d8, d0
	bl	_hypot
	fmov	d10, d0
	fmov	d0, #1.00000000
	ldp	d1, d2, [x19, #24]
	fmadd	d0, d1, d9, d0
	fmadd	d0, d2, d12, d0
	fcvtzs	w0, d0
	fadd	d0, d2, d2
	fmul	d0, d9, d0
	fmul	d0, d0, d11
	fmsub	d0, d1, d8, d0
	bl	_hypot
	fdiv	d0, d10, d0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
	.no_dead_strip	_freq_gain
.subsections_via_symbols
