	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function R_SetupProjection
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x43b40000                      ## float 360
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_SetupProjection
	.p2align	4, 0x90
_R_SetupProjection:                     ## @R_SetupProjection
	.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	%rsi, %r14
	movaps	%xmm0, %xmm3
	movq	%rdi, %rbx
	movq	_r_stereoSeparation@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm0
	movss	%xmm1, -32(%rbp)                ## 4-byte Spill
	jne	LBB0_2
	jnp	LBB0_1
LBB0_2:
	movq	(%rbx), %rax
	movq	_STEREO_LEFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rcx
	xorps	%xmm1, %xmm1
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	xorps	LCPI0_0(%rip), %xmm0
LBB0_5:
	movaps	%xmm3, %xmm1
	divss	%xmm0, %xmm1
	jmp	LBB0_6
LBB0_1:
	movaps	%xmm0, %xmm1
LBB0_6:
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movq	_M_PI@GOTPCREL(%rip), %r15
	mulss	(%r15), %xmm0
	divss	LCPI0_1(%rip), %xmm0
	movss	%xmm3, -28(%rbp)                ## 4-byte Spill
	callq	_tan
	mulss	-28(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movss	12(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r15), %xmm0
	divss	LCPI0_1(%rip), %xmm0
	callq	_tan
	movss	-40(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movss	-28(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	mulss	%xmm3, %xmm1
	movaps	%xmm1, %xmm2
	addss	%xmm1, %xmm2
	movss	-36(%rbp), %xmm8                ## 4-byte Reload
                                        ## xmm8 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm0
	addss	%xmm8, %xmm0
	movaps	%xmm3, %xmm6
	addss	%xmm3, %xmm6
	movaps	%xmm6, %xmm4
	divss	%xmm2, %xmm4
	cvttss2si	%xmm4, %ecx
	movq	16(%rbx), %rax
	movl	%ecx, (%rax)
	movaps	%xmm1, %xmm4
	subss	%xmm1, %xmm4
	movaps	%xmm5, %xmm7
	addss	%xmm5, %xmm7
	addss	%xmm4, %xmm7
	divss	%xmm2, %xmm7
	cvttss2si	%xmm7, %ecx
	movl	%ecx, 32(%rax)
	movaps	%xmm6, %xmm4
	mulss	%xmm5, %xmm4
	divss	%xmm2, %xmm4
	cvttss2si	%xmm4, %ecx
	movl	%ecx, 48(%rax)
	movl	$0, 4(%rax)
	divss	%xmm0, %xmm6
	cvttss2si	%xmm6, %ecx
	movaps	%xmm8, %xmm4
	subss	%xmm8, %xmm4
	divss	%xmm0, %xmm4
	cvttss2si	%xmm4, %edx
	movl	%ecx, 20(%rax)
	movl	%edx, 36(%rax)
	movl	$0, 52(%rax)
	movq	$0, 12(%rax)
	movl	$0, 28(%rax)
	movl	$-1, 44(%rax)
	movl	$0, 60(%rax)
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movaps	%xmm8, %xmm2
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm0
	movq	%rbx, %rdi
	movss	-32(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_SetupFrustum                 ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_stereoSeparation,8,3         ## @r_stereoSeparation
	.comm	_STEREO_LEFT,8,3                ## @STEREO_LEFT
	.comm	_STEREO_RIGHT,8,3               ## @STEREO_RIGHT
	.comm	_M_PI,4,2                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_SetupProjection              ; -- Begin function R_SetupProjection
	.p2align	2
_R_SetupProjection:                     ; @R_SetupProjection
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	mov	x20, x1
	fmov	s8, s1
	fmov	s9, s0
	mov	x19, x0
Lloh0:
	adrp	x8, _r_stereoSeparation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_stereoSeparation@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	s10, [x8]
	fcmp	s10, #0.0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _STEREO_LEFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STEREO_LEFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	fdiv	s10, s9, s10
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _STEREO_RIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STEREO_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	movi	d0, #0000000000000000
	cmp	x8, x9
	fneg	s1, s10
	fdiv	s1, s9, s1
	fcsel	s10, s0, s1, ne
LBB0_4:
Lloh9:
	adrp	x21, _M_PI@GOTPAGE
Lloh10:
	ldr	x21, [x21, _M_PI@GOTPAGEOFF]
	ldr	s0, [x19, #8]
	ldr	s1, [x21]
	fmul	s0, s0, s1
	mov	w8, #1135869952
	fmov	s12, w8
	fdiv	s0, s0, s12
	bl	_tan
	fmul	s11, s0, s9
	ldr	s0, [x19, #12]
	ldr	s1, [x21]
	fmul	s0, s0, s1
	fdiv	s0, s0, s12
	bl	_tan
	fmul	s1, s0, s9
	fadd	s0, s1, s1
	fadd	s2, s11, s11
	fadd	s3, s9, s9
	fdiv	s4, s3, s0
	fcvtzs	w8, s4
	fsub	s4, s1, s1
	fmov	s5, #2.00000000
	fmadd	s4, s10, s5, s4
	fdiv	s4, s4, s0
	fcvtzs	w9, s4
	fmul	s4, s3, s10
	fdiv	s0, s4, s0
	fcvtzs	w10, s0
	fdiv	s0, s3, s2
	fcvtzs	w11, s0
	ldr	x12, [x19, #16]
	stp	wzr, w11, [x12, #16]
	fsub	s0, s11, s11
	fdiv	s0, s0, s2
	fcvtzs	w11, s0
	stp	w9, w11, [x12, #32]
	stp	w8, wzr, [x12]
	stp	w10, wzr, [x12, #48]
	str	wzr, [x12, #12]
	str	wzr, [x12, #28]
	mov	w8, #-1
	str	w8, [x12, #44]
	str	wzr, [x12, #60]
	cbz	x20, LBB0_6
; %bb.5:
	fneg	s0, s1
	mov	x0, x19
	fmov	s2, s11
	fmov	s3, s9
	fmov	s4, s8
	fmov	s5, s10
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [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], #96             ; 16-byte Folded Reload
	b	_R_SetupFrustum
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [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], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_r_stereoSeparation,8,3         ; @r_stereoSeparation
	.comm	_STEREO_LEFT,8,3                ; @STEREO_LEFT
	.comm	_STEREO_RIGHT,8,3               ; @STEREO_RIGHT
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
