	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_CullGrid
_R_CullGrid:                            ## @R_CullGrid
	.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	_r_nocurves@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_qtrue@GOTPCREL(%rip), %r14
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	_tr@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_ENTITYNUM_WORLD@GOTPCREL(%rip), %rcx
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	callq	_R_CullPointAndRadius
	jmp	LBB0_4
LBB0_2:
	callq	_R_CullLocalPointAndRadius
LBB0_4:
	movq	_CULL_OUT@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.5:
	incl	28(%r15)
	jmp	LBB0_14
LBB0_6:
	movq	_CULL_CLIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.7:
	incl	24(%r15)
	movl	(%rbx), %edi
	callq	_R_CullLocalBox
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.8:
	incl	20(%r15)
	jmp	LBB0_14
LBB0_12:
	incl	8(%r15)
	jmp	LBB0_13
LBB0_9:
	movq	_CULL_IN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	incl	16(%r15)
	jmp	LBB0_13
LBB0_11:
	incl	12(%r15)
LBB0_13:
	movq	_qfalse@GOTPCREL(%rip), %r14
LBB0_14:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_nocurves,8,3                 ## @r_nocurves
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_tr,32,3                        ## @tr
	.comm	_ENTITYNUM_WORLD,8,3            ## @ENTITYNUM_WORLD
	.comm	_CULL_OUT,4,2                   ## @CULL_OUT
	.comm	_CULL_CLIP,4,2                  ## @CULL_CLIP
	.comm	_CULL_IN,4,2                    ## @CULL_IN
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_R_CullGrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_CullGrid
_R_CullGrid:                            ; @R_CullGrid
	.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	x8, _r_nocurves@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_nocurves@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _tr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _ENTITYNUM_WORLD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENTITYNUM_WORLD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #4]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	bl	_R_CullPointAndRadius
	b	LBB0_4
LBB0_3:
	bl	_R_CullLocalPointAndRadius
LBB0_4:
Lloh8:
	adrp	x21, _CULL_OUT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CULL_OUT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
LBB0_6:
Lloh10:
	adrp	x8, _qtrue@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
LBB0_8:
Lloh12:
	adrp	x8, _CULL_CLIP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CULL_CLIP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	w0, [x19]
	bl	_R_CullLocalBox
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	b	LBB0_6
LBB0_11:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_15
LBB0_12:
Lloh15:
	adrp	x8, _CULL_IN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CULL_IN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_15
LBB0_14:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_15:
Lloh18:
	adrp	x8, _qfalse@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_r_nocurves,8,3                 ; @r_nocurves
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_tr,32,3                        ; @tr
	.comm	_ENTITYNUM_WORLD,8,3            ; @ENTITYNUM_WORLD
	.comm	_CULL_OUT,4,2                   ; @CULL_OUT
	.comm	_CULL_CLIP,4,2                  ; @CULL_CLIP
	.comm	_CULL_IN,4,2                    ; @CULL_IN
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_R_CullGrid
.subsections_via_symbols
