	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupGrid                      ## -- Begin function SetupGrid
	.p2align	4, 0x90
_SetupGrid:                             ## @SetupGrid
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_gridSize@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_dmodels@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ebx
	movl	%eax, %edi
	callq	_ceil
	imull	%ebx, %eax
	movq	_gridMins@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rcx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_floor
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_gridSize,8,3                   ## @gridSize
	.comm	_dmodels,8,3                    ## @dmodels
	.comm	_gridMins,8,3                   ## @gridMins
	.comm	_gridBounds,8,3                 ## @gridBounds
	.comm	_numGridPoints,4,2              ## @numGridPoints
	.comm	_MAX_MAP_LIGHTGRID,4,2          ## @MAX_MAP_LIGHTGRID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupGrid                      ; -- Begin function SetupGrid
	.p2align	2
_SetupGrid:                             ; @SetupGrid
	.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
Lloh0:
	adrp	x19, _gridSize@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gridSize@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w20, [x8]
Lloh2:
	adrp	x21, _dmodels@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dmodels@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sdiv	w0, w8, w20
	bl	_ceil
	mul	w8, w0, w20
Lloh4:
	adrp	x9, _gridMins@GOTPAGE
Lloh5:
	ldr	x9, [x9, _gridMins@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	sdiv	w0, w9, w8
	bl	_floor
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gridSize,8,3                   ; @gridSize
	.comm	_dmodels,8,3                    ; @dmodels
	.comm	_gridMins,8,3                   ; @gridMins
	.comm	_gridBounds,8,3                 ; @gridBounds
	.comm	_numGridPoints,4,2              ; @numGridPoints
	.comm	_MAX_MAP_LIGHTGRID,4,2          ; @MAX_MAP_LIGHTGRID
.subsections_via_symbols
