	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_BuildCloudData               ## -- Begin function R_BuildCloudData
	.p2align	4, 0x90
_R_BuildCloudData:                      ## @R_BuildCloudData
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movl	8(%r14), %edi
	callq	_assert
	movq	_sky_min@GOTPCREL(%rip), %rax
	movabsq	$4571153621781053440, %rcx      ## imm = 0x3F70000000000000
	movq	%rcx, (%rax)
	movq	_sky_max@GOTPCREL(%rip), %rax
	movabsq	$4607147234427928576, %rcx      ## imm = 0x3FEFE00000000000
	movq	%rcx, (%rax)
	xorps	%xmm0, %xmm0
	movq	_tess@GOTPCREL(%rip), %r15
	movups	%xmm0, 8(%r15)
	movq	$0, 24(%r15)
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.1:
	movq	_MAX_SHADER_STAGES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_FillCloudBox
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sky_min,8,3                    ## @sky_min
	.comm	_sky_max,8,3                    ## @sky_max
	.comm	_tess,32,3                      ## @tess
	.comm	_MAX_SHADER_STAGES,4,2          ## @MAX_SHADER_STAGES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_BuildCloudData               ; -- Begin function R_BuildCloudData
	.p2align	2
_R_BuildCloudData:                      ; @R_BuildCloudData
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #8]
	bl	_assert
Lloh0:
	adrp	x8, _sky_min@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sky_min@GOTPAGEOFF]
	mov	x9, #4571153621781053440
Lloh2:
	str	x9, [x8]
Lloh3:
	adrp	x8, _sky_max@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sky_max@GOTPAGEOFF]
	mov	x9, #246290604621824
	movk	x9, #16367, lsl #48
Lloh5:
	str	x9, [x8]
Lloh6:
	adrp	x21, _tess@GOTPAGE
Lloh7:
	ldr	x21, [x21, _tess@GOTPAGEOFF]
	stp	xzr, xzr, [x21, #16]
	str	xzr, [x21, #8]
	ldr	x8, [x19]
Lloh8:
	adrp	x22, _MAX_SHADER_STAGES@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAX_SHADER_STAGES@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w8, [x8, x20, lsl #2]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_FillCloudBox
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sky_min,8,3                    ; @sky_min
	.comm	_sky_max,8,3                    ; @sky_max
	.comm	_tess,32,3                      ; @tess
	.comm	_MAX_SHADER_STAGES,4,2          ; @MAX_SHADER_STAGES
.subsections_via_symbols
