	.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, %xmm2
	movq	%rdi, %rbx
	movq	_r_stereoSeparation@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	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	%xmm2, %xmm1
	divss	%xmm0, %xmm1
	jmp	LBB0_6
LBB0_1:
	movaps	%xmm0, %xmm1
LBB0_6:
	movss	%xmm1, -28(%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	%xmm2, -32(%rbp)                ## 4-byte Spill
	callq	_tan
	mulss	-32(%rbp), %xmm0                ## 4-byte Folded Reload
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movss	12(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r15), %xmm0
	divss	LCPI0_1(%rip), %xmm0
	callq	_tan
	movss	-32(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm8
	mulss	%xmm3, %xmm8
	movaps	%xmm8, %xmm1
	addss	%xmm8, %xmm1
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	movaps	-48(%rbp), %xmm2                ## 16-byte Reload
	xorps	%xmm2, %xmm0
	subss	%xmm2, %xmm0
	jmp	LBB0_9
LBB0_7:
	movaps	-48(%rbp), %xmm2                ## 16-byte Reload
	movaps	%xmm2, %xmm0
	addss	%xmm2, %xmm0
LBB0_9:
	movss	-28(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm6
	addss	%xmm3, %xmm6
	movaps	%xmm6, %xmm5
	divss	%xmm1, %xmm5
	cvttss2si	%xmm5, %edx
	movq	16(%rbx), %rcx
	movaps	%xmm8, %xmm7
	subss	%xmm8, %xmm7
	movaps	%xmm4, %xmm5
	addss	%xmm4, %xmm5
	addss	%xmm7, %xmm5
	divss	%xmm1, %xmm5
	cvttss2si	%xmm5, %esi
	movl	%edx, (%rcx)
	movl	%esi, 32(%rcx)
	movaps	%xmm6, %xmm5
	mulss	%xmm4, %xmm5
	divss	%xmm1, %xmm5
	cvttss2si	%xmm5, %edx
	movl	%edx, 48(%rcx)
	movl	$0, 4(%rcx)
	divss	%xmm0, %xmm6
	cvttss2si	%xmm6, %edx
	movl	%edx, 20(%rcx)
	movaps	%xmm2, %xmm1
	subss	%xmm2, %xmm1
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edx
	movl	%edx, 36(%rcx)
	movl	$0, 52(%rcx)
	movq	$0, 12(%rcx)
	movl	$0, 28(%rcx)
	movl	$-1, 44(%rcx)
	movl	$0, 60(%rcx)
	movq	%rax, 24(%rbx)
	testq	%r14, %r14
	je	LBB0_10
## %bb.11:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm8, %xmm0
	movq	%rbx, %rdi
	movaps	%xmm8, %xmm1
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_SetupFrustum                 ## TAILCALL
LBB0_10:
	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
	.comm	_tr,8,3                         ## @tr
.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, s0
	mov	x19, x0
Lloh0:
	adrp	x8, _r_stereoSeparation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_stereoSeparation@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	s9, [x8]
	fcmp	s9, #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	s9, s8, s9
	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, s9
	fdiv	s1, s8, s1
	fcsel	s9, 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
	fmov	s11, s0
	fmul	s10, s0, s8
	ldr	s0, [x19, #12]
	ldr	s1, [x21]
	fmul	s0, s0, s1
	fdiv	s0, s0, s12
	bl	_tan
	fmul	s1, s0, s8
	fadd	s0, s1, s1
Lloh11:
	adrp	x8, _tr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	fnmul	s2, s11, s8
	fsub	s2, s2, s10
	fadd	s3, s10, s10
	cmp	x8, #0
	fcsel	s2, s3, s2, eq
	fadd	s3, s8, s8
	fdiv	s4, s3, s0
	fcvtzs	w9, s4
	ldr	x10, [x19, #16]
	fsub	s4, s1, s1
	fmov	s5, #2.00000000
	fmadd	s4, s9, s5, s4
	fdiv	s4, s4, s0
	fcvtzs	w11, s4
	fmul	s4, s3, s9
	fdiv	s3, s3, s2
	fcvtzs	w12, s3
	stp	wzr, w12, [x10, #16]
	fsub	s3, s10, s10
	fdiv	s2, s3, s2
	fcvtzs	w12, s2
	stp	w11, w12, [x10, #32]
	fdiv	s0, s4, s0
	fcvtzs	w12, s0
	stp	w9, wzr, [x10]
	stp	w12, wzr, [x10, #48]
	str	wzr, [x10, #12]
	str	wzr, [x10, #28]
	mov	w9, #-1
	str	w9, [x10, #44]
	str	wzr, [x10, #60]
	str	x8, [x19, #24]
	cbz	x20, LBB0_6
; %bb.5:
	fneg	s0, s1
	mov	x0, x19
	fmov	s2, s10
	fmov	s3, s8
	fmov	s4, s9
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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
	.comm	_tr,8,3                         ; @tr
.subsections_via_symbols
