	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function voice_factor
LCPI0_0:
	.quad	0x3f847ae147ae147b              ## double 0.01
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_voice_factor:                          ## @voice_factor
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	movq	%rsi, %rbx
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	movq	_AMRWB_SFR_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rdi, %rsi
	callq	*(%r14)
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	*(%r14)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	addsd	%xmm2, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	divsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm1, %xmm0
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMRWB_SFR_SIZE,4,2             ## @AMRWB_SFR_SIZE
	.no_dead_strip	_voice_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function voice_factor
_voice_factor:                          ; @voice_factor
	.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
	mov	x19, x2
	fmov	s8, s1
	mov	x20, x1
	fmov	s9, s0
	ldr	x8, [x2]
Lloh0:
	adrp	x21, _AMRWB_SFR_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AMRWB_SFR_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x0
	blr	x8
	scvtf	d0, x0
	fcvt	d1, s9
	fmul	d0, d1, d0
	fmul	d9, d0, d1
	ldr	x8, [x19]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x20
	blr	x8
	scvtf	d0, x0
	fcvt	d1, s8
	fmul	d0, d1, d0
	fmul	d0, d0, d1
	fsub	d1, d9, d0
	fadd	d0, d9, d0
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d2, x8
	fadd	d0, d0, d2
	fdiv	d0, d1, d0
	fcvt	s0, d0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AMRWB_SFR_SIZE,4,2             ; @AMRWB_SFR_SIZE
	.no_dead_strip	_voice_factor
.subsections_via_symbols
