	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_InitSkyTexCoords             ## -- Begin function R_InitSkyTexCoords
	.p2align	4, 0x90
_R_InitSkyTexCoords:                    ## @R_InitSkyTexCoords
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_backEnd@GOTPCREL(%rip), %rax
	movl	$1024, (%rax)                   ## imm = 0x400
	movq	_SKY_SUBDIVISIONS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jns	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	callq	_R_InitSkyTexCoords.cold.1
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function R_InitSkyTexCoords.cold.1
LCPI1_0:
	.long	0x3f800000                      ## float 1
LCPI1_1:
	.long	0x45800000                      ## float 4096
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_R_InitSkyTexCoords.cold.1:             ## @R_InitSkyTexCoords.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movss	%xmm0, -16(%rbp)                ## 4-byte Spill
	movq	_HALF_SKY_SUBDIVISIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cvtsi2ss	%eax, %xmm0
	negl	%eax
	cvtsi2ss	%eax, %xmm1
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	movl	%edi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_MakeSkyVec
	callq	_DotProduct
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	movss	LCPI1_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -20(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	movl	%eax, %ebx
	movss	LCPI1_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_SQR
	imull	%ebx, %eax
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	mulss	LCPI1_1(%rip), %xmm0
	mulss	-16(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	movl	%eax, %ebx
	movss	-16(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_SQR
	imull	%ebx, %eax
	cvtsi2ss	%eax, %xmm0
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	mulss	LCPI1_1(%rip), %xmm0
	mulss	-16(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	movl	%eax, %ebx
	movss	-16(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_SQR
	imull	%ebx, %eax
	cvtsi2ss	%eax, %xmm0
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	mulss	LCPI1_1(%rip), %xmm0
	mulss	-16(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	callq	_SQR
	movl	%eax, %ebx
	movss	-16(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_SQR
	imull	%ebx, %eax
	cvtsi2ss	%eax, %xmm0
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	callq	_sqrt
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	mulss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	movq	_s_cloudTexP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movss	%xmm0, (%rax)
	callq	_VectorScale
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_backEnd,4,2                    ## @backEnd
	.comm	_SKY_SUBDIVISIONS,4,2           ## @SKY_SUBDIVISIONS
	.comm	_HALF_SKY_SUBDIVISIONS,4,2      ## @HALF_SKY_SUBDIVISIONS
	.comm	_s_cloudTexP,8,3                ## @s_cloudTexP
	.comm	_s_cloudTexCoords,8,3           ## @s_cloudTexCoords
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_InitSkyTexCoords             ; -- Begin function R_InitSkyTexCoords
	.p2align	2
_R_InitSkyTexCoords:                    ; @R_InitSkyTexCoords
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _backEnd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
	mov	w9, #1024
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _SKY_SUBDIVISIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SKY_SUBDIVISIONS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tbz	w8, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_R_InitSkyTexCoords.cold.1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function R_InitSkyTexCoords.cold.1
_R_InitSkyTexCoords.cold.1:             ; @R_InitSkyTexCoords.cold.1
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	fmov	s8, s0
Lloh6:
	adrp	x8, _HALF_SKY_SUBDIVISIONS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HALF_SKY_SUBDIVISIONS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w9, w8
	scvtf	s0, w9
	scvtf	s1, w8
	fdiv	s0, s0, s1
	fcvtzs	w0, s0
	mov	x1, x0
	mov	w2, #0
	mov	x3, #0
	bl	_MakeSkyVec
	bl	_DotProduct
	lsl	w8, w0, #1
	scvtf	s0, w8
	fmov	s1, #1.00000000
	fdiv	s10, s1, s0
	bl	_OUTLINED_FUNCTION_0
	mov	x19, x0
	mov	w8, #1166016512
	fmov	s9, w8
	fmov	s0, s9
	bl	_SQR
	mul	w8, w0, w19
	scvtf	s11, w8
	bl	_OUTLINED_FUNCTION_0
	lsl	w8, w0, #1
	scvtf	s0, w8
	fmul	s0, s0, s9
	fmadd	s11, s0, s8, s11
	bl	_OUTLINED_FUNCTION_0
	bl	_OUTLINED_FUNCTION_1
	mul	w8, w0, w19
	scvtf	s0, w8
	fadd	s11, s11, s0
	bl	_OUTLINED_FUNCTION_0
	lsl	w8, w0, #1
	scvtf	s0, w8
	fmul	s0, s0, s9
	fmadd	s11, s0, s8, s11
	bl	_OUTLINED_FUNCTION_0
	bl	_OUTLINED_FUNCTION_1
	mul	w8, w0, w19
	scvtf	s0, w8
	fadd	s11, s11, s0
	bl	_OUTLINED_FUNCTION_0
	lsl	w8, w0, #1
	scvtf	s0, w8
	fmul	s0, s0, s9
	fmadd	s9, s0, s8, s11
	bl	_OUTLINED_FUNCTION_0
	bl	_OUTLINED_FUNCTION_1
	mul	w8, w0, w19
	scvtf	s0, w8
	fadd	s0, s9, s0
	fcvtzs	w0, s0
	bl	_sqrt
	lsl	w8, w0, #1
	scvtf	s0, w8
	fmul	s0, s10, s0
Lloh9:
	adrp	x8, _s_cloudTexP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_cloudTexP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	s0, [x8]
	bl	_VectorScale
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	movi	d0, #0000000000000000
	b	_SQR
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_1
_OUTLINED_FUNCTION_1:                   ; @OUTLINED_FUNCTION_1 Thunk
	.cfi_startproc
; %bb.0:
	mov	x19, x0
	fmov	s0, s8
	b	_SQR
	.cfi_endproc
                                        ; -- End function
	.comm	_backEnd,4,2                    ; @backEnd
	.comm	_SKY_SUBDIVISIONS,4,2           ; @SKY_SUBDIVISIONS
	.comm	_HALF_SKY_SUBDIVISIONS,4,2      ; @HALF_SKY_SUBDIVISIONS
	.comm	_s_cloudTexP,8,3                ; @s_cloudTexP
	.comm	_s_cloudTexCoords,8,3           ; @s_cloudTexCoords
.subsections_via_symbols
