	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function R_SetupProjection
LCPI0_0:
	.long	0x43b40000                      ## float 360
LCPI0_2:
	.long	0xc0000000                      ## float -2
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_SetFarClip
	movq	_r_znear@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movq	_tr@GOTPCREL(%rip), %rbx
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	_M_PI@GOTPCREL(%rip), %r14
	mulss	(%r14), %xmm0
	divss	LCPI0_0(%rip), %xmm0
	callq	_tan
	mulss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -24(%rbp)                ## 4-byte Spill
	movss	20(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r14), %xmm0
	divss	LCPI0_0(%rip), %xmm0
	callq	_tan
	movss	-20(%rbp), %xmm6                ## 4-byte Reload
                                        ## xmm6 = mem[0],zero,zero,zero
	mulss	%xmm6, %xmm0
	movaps	%xmm0, %xmm2
	addss	%xmm0, %xmm2
	movss	-24(%rbp), %xmm7                ## 4-byte Reload
                                        ## xmm7 = mem[0],zero,zero,zero
	movaps	%xmm7, %xmm3
	addss	%xmm7, %xmm3
	movss	-28(%rbp), %xmm8                ## 4-byte Reload
                                        ## xmm8 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm1
	movaps	%xmm6, %xmm4
	addss	%xmm6, %xmm4
	movaps	%xmm4, %xmm5
	divss	%xmm2, %xmm5
	cvttss2si	%xmm5, %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	subss	%xmm0, %xmm0
	divss	%xmm2, %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 32(%rax)
	divss	%xmm3, %xmm4
	cvttss2si	%xmm4, %ecx
	subss	%xmm6, %xmm1
	movl	%ecx, 20(%rax)
	movaps	%xmm7, %xmm0
	subss	%xmm7, %xmm0
	divss	%xmm3, %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 36(%rax)
	movl	$0, 52(%rax)
	movq	$0, 24(%rax)
	movaps	%xmm6, %xmm0
	addss	%xmm8, %xmm0
	xorps	LCPI0_1(%rip), %xmm0
	divss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 40(%rax)
	movaps	%xmm8, %xmm0
	mulss	LCPI0_2(%rip), %xmm0
	mulss	%xmm6, %xmm0
	divss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 56(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%rax)
	movl	$4294967295, %ecx               ## imm = 0xFFFFFFFF
	movq	%rcx, 44(%rax)
	movl	$0, 60(%rax)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_znear,8,3                    ## @r_znear
	.comm	_tr,24,3                        ## @tr
	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	bl	_SetFarClip
Lloh0:
	adrp	x8, _r_znear@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_znear@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x19, _tr@GOTPAGE
Lloh4:
	ldr	x19, [x19, _tr@GOTPAGEOFF]
	ldr	s2, [x8]
	ldr	s8, [x19]
	ldr	s0, [x19, #16]
Lloh5:
	adrp	x20, _M_PI@GOTPAGE
Lloh6:
	ldr	x20, [x20, _M_PI@GOTPAGEOFF]
	ldr	s1, [x20]
	fmul	s0, s0, s1
	mov	w8, #1135869952
	fmov	s9, w8
	fdiv	s0, s0, s9
	str	q2, [sp, #16]                   ; 16-byte Folded Spill
	fsub	s10, s8, s2
	fadd	s11, s2, s2
	bl	_tan
	str	d0, [sp]                        ; 16-byte Folded Spill
	ldr	s0, [x19, #20]
	ldr	s1, [x20]
	fmul	s0, s0, s1
	fdiv	s0, s0, s9
	bl	_tan
                                        ; kill: def $s0 killed $s0 def $q0
	ldp	q1, q4, [sp]                    ; 32-byte Folded Reload
	mov.s	v0[1], v1[0]
	fmul.2s	v0, v0, v4[0]
	fadd.2s	v1, v0, v0
	fdiv	s2, s11, s1
	fcvtzs	w8, s2
	ldr	x9, [x19, #8]
	mov	s2, v1[1]
	fdiv	s2, s11, s2
	fadd	s3, s4, s8
	fneg	s3, s3
	fdiv	s3, s3, s10
	fcvtzs	w10, s3
	str	w10, [x9, #40]
	fmov	s3, #-2.00000000
	fmul	s3, s8, s3
	fmul	s3, s4, s3
	fdiv	s3, s3, s10
	fcvtzs	w10, s3
	stp	wzr, w10, [x9, #52]
	fcvtzs	w10, s2
	fsub.2s	v0, v0, v0
	fdiv.2s	v0, v0, v1
	fcvtzs.2s	v0, v0
	str	d0, [x9, #32]
	stp	wzr, w10, [x9, #16]
	str	xzr, [x9, #8]
	stp	w8, wzr, [x9]
	str	xzr, [x9, #24]
	movi	d0, #0x000000ffffffff
	stur	d0, [x9, #44]
	str	wzr, [x9, #60]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_r_znear,8,3                    ; @r_znear
	.comm	_tr,24,3                        ; @tr
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
