	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderBSPNode                ## -- Begin function R_RenderBSPNode
	.p2align	4, 0x90
_R_RenderBSPNode:                       ## @R_RenderBSPNode
	.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	_NF_SUBSECTOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	testl	%edi, %ecx
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_nodes@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%edi, %r12
	shlq	$4, %r12
	leaq	(%r15,%r12), %rbx
	movq	_viewx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_viewy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_R_PointOnSide
	movq	(%r15,%r12), %rcx
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edi
	callq	_R_RenderBSPNode
	movq	8(%r15,%r12), %rax
	xorl	$1, %r13d
	movslq	%r13d, %r15
	movl	(%rax,%r15,4), %edi
	callq	_R_CheckBBox
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	jmp	LBB0_1
LBB0_4:
	notl	%ecx
	andl	%edi, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %edi
	cmovnel	%ecx, %eax
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_Subsector                    ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_SUBSECTOR,4,2               ## @NF_SUBSECTOR
	.comm	_nodes,8,3                      ## @nodes
	.comm	_viewx,4,2                      ## @viewx
	.comm	_viewy,4,2                      ## @viewy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderBSPNode                ; -- Begin function R_RenderBSPNode
	.p2align	2
_R_RenderBSPNode:                       ; @R_RenderBSPNode
	.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
Lloh0:
	adrp	x20, _NF_SUBSECTOR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NF_SUBSECTOR@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x21, _nodes@GOTPAGE
Lloh3:
	ldr	x21, [x21, _nodes@GOTPAGEOFF]
Lloh4:
	adrp	x22, _viewx@GOTPAGE
Lloh5:
	ldr	x22, [x22, _viewx@GOTPAGEOFF]
Lloh6:
	adrp	x23, _viewy@GOTPAGE
Lloh7:
	ldr	x23, [x23, _viewy@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x19, x8, w0, sxtw #4
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	x2, x19
	bl	_R_PointOnSide
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	sxtw	x24, w0
	ldr	w0, [x8, w0, sxtw #2]
	bl	_R_RenderBSPNode
	ldr	x8, [x19, #8]
	eor	x24, x24, #0x1
	ldr	w0, [x8, x24, lsl #2]
	bl	_R_CheckBBox
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x24, lsl #2]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_4:
	bic	w8, w0, w8
	cmn	w0, #1
	csel	w0, wzr, w8, eq
	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
	b	_R_Subsector
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_SUBSECTOR,4,2               ; @NF_SUBSECTOR
	.comm	_nodes,8,3                      ; @nodes
	.comm	_viewx,4,2                      ; @viewx
	.comm	_viewy,4,2                      ; @viewy
.subsections_via_symbols
