	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function stereo_position
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stereo_position:                       ## @stereo_position
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movaps	%xmm1, -48(%rbp)                ## 16-byte Spill
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	cmpleps	%xmm2, %xmm1
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	cmpleps	%xmm0, %xmm2
	andps	%xmm1, %xmm2
	movd	%xmm2, %edi
	andl	$1, %edi
	callq	_av_assert2
	movq	_M_PI@GOTPCREL(%rip), %r15
	xorps	%xmm0, %xmm0
	movaps	-48(%rbp), %xmm2                ## 16-byte Reload
	cmpleps	%xmm2, %xmm0
	movss	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	cmpleps	%xmm1, %xmm2
	andps	%xmm0, %xmm2
	movd	%xmm2, %edi
	andl	$1, %edi
	callq	_av_assert2
	movq	_M_PI_2@GOTPCREL(%rip), %r12
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	mulss	%xmm0, %xmm0
	subss	(%r12), %xmm0
	xorl	%edi, %edi
	callq	_FFMAX
	movaps	-64(%rbp), %xmm1                ## 16-byte Reload
	mulss	%xmm1, %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_av_clipf
	movss	%xmm0, (%rbx)
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	mulss	(%r12), %xmm0
	addss	(%r15), %xmm0
	callq	_cosf
	movl	%eax, %ebx
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	-48(%rbp), %xmm1                ## 16-byte Reload
	divss	(%r15), %xmm1
	subss	%xmm1, %xmm0
	callq	_cosf
	imull	%eax, %ebx
	movq	_M_LN10@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	incl	%ebx
	movl	%ebx, %edi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_av_clipf
	movss	%xmm0, (%r14)
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_M_PI_2,4,2                     ## @M_PI_2
	.comm	_M_LN10,4,2                     ## @M_LN10
	.no_dead_strip	_stereo_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stereo_position
_stereo_position:                       ; @stereo_position
	.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, x1
	mov	x20, x0
	fmov	s8, s1
	fmov	s9, s0
	fmov	s0, #-1.00000000
	fcmp	s9, s0
	cset	w8, ge
	fmov	s0, #1.00000000
	fcmp	s9, s0
	cset	w9, ls
	and	w0, w8, w9
	bl	_av_assert2
	fcmp	s8, #0.0
	cset	w8, ge
Lloh0:
	adrp	x21, _M_PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_PI@GOTPAGEOFF]
	ldr	s0, [x21]
	fcmp	s0, s8
	cset	w9, ge
	and	w0, w8, w9
	bl	_av_assert2
Lloh2:
	adrp	x22, _M_PI_2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _M_PI_2@GOTPAGEOFF]
	ldr	s0, [x22]
	fnmsub	s0, s8, s8, s0
	mov	w0, #0
	bl	_FFMAX
	fmadd	s0, s9, s0, s9
	fcvtzs	w0, s0
	mov	w1, #-1
	mov	w2, #1
	bl	_av_clipf
	str	s0, [x20]
	ldr	s0, [x22]
	ldr	s1, [x21]
	fmadd	s0, s9, s0, s1
	bl	_cosf
	mov	x20, x0
	ldr	s0, [x22]
	ldr	s1, [x21]
	fdiv	s1, s8, s1
	fsub	s0, s0, s1
	bl	_cosf
	mul	w8, w0, w20
Lloh4:
	adrp	x9, _M_LN10@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_LN10@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w10, wzr, #0x1
	madd	w0, w8, w9, w10
	mov	w1, #-1
	mov	w2, #1
	bl	_av_clipf
	str	s0, [x19]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_M_PI_2,4,2                     ; @M_PI_2
	.comm	_M_LN10,4,2                     ; @M_LN10
	.no_dead_strip	_stereo_position
.subsections_via_symbols
