	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CullBox                      ## -- Begin function R_CullBox
	.p2align	4, 0x90
_R_CullBox:                             ## @R_CullBox
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_tr@GOTPCREL(%rip), %r14
	movq	_VPF_FARPLANEFRUSTUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%r14)
	setne	%cl
	leaq	16(,%rcx,4), %r15
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rbx
	cmpq	%rbx, %r15
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdx
	addq	%rbx, %rdx
	movl	(%r13), %edi
	movl	4(%r13), %esi
	callq	_BoxOnPlaneSide
	cmpl	$3, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.3:
	movq	_CULL_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.8:
	movq	_CULL_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_CULL_CLIP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,16,3                        ## @tr
	.comm	_VPF_FARPLANEFRUSTUM,4,2        ## @VPF_FARPLANEFRUSTUM
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_CULL_OUT,4,2                   ## @CULL_OUT
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_CULL_IN,4,2                    ## @CULL_IN
	.comm	_CULL_CLIP,4,2                  ## @CULL_CLIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CullBox                      ; -- Begin function R_CullBox
	.p2align	2
_R_CullBox:                             ; @R_CullBox
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _tr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh2:
	adrp	x8, _VPF_FARPLANEFRUSTUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VPF_FARPLANEFRUSTUM@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x2, [x21, #8]
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_BoxOnPlaneSide
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.1:
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _qtrue@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_3:
	ldr	x8, [x21, #8]
	add	x2, x8, #4
	ldp	w0, w1, [x19]
	bl	_BoxOnPlaneSide
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.4:
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_6:
	ldr	x8, [x21, #8]
	add	x2, x8, #8
	ldp	w0, w1, [x19]
	bl	_BoxOnPlaneSide
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.7:
	cmp	w0, #3
	b.ne	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _qtrue@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_9:
	ldr	x8, [x21, #8]
	add	x2, x8, #12
	ldp	w0, w1, [x19]
	bl	_BoxOnPlaneSide
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.10:
	and	w8, w23, w22
	cmp	w0, #3
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x9, _qtrue@GOTPAGE
Lloh18:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x9]
LBB0_12:
	cbz	w8, LBB0_16
; %bb.13:
	ldr	x8, [x21, #8]
	add	x2, x8, #16
	ldp	w0, w1, [x19]
	bl	_BoxOnPlaneSide
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.14:
	cmp	w0, #3
	b.ne	LBB0_16
; %bb.15:
Lloh20:
	adrp	x8, _qtrue@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
LBB0_16:
Lloh23:
	adrp	x8, _CULL_CLIP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CULL_CLIP@GOTPAGEOFF]
Lloh25:
	adrp	x9, _CULL_IN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CULL_IN@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	b	LBB0_18
LBB0_17:
Lloh27:
	adrp	x8, _CULL_OUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CULL_OUT@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,16,3                        ; @tr
	.comm	_VPF_FARPLANEFRUSTUM,4,2        ; @VPF_FARPLANEFRUSTUM
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_CULL_OUT,4,2                   ; @CULL_OUT
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_CULL_IN,4,2                    ; @CULL_IN
	.comm	_CULL_CLIP,4,2                  ; @CULL_CLIP
.subsections_via_symbols
