	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeTnode                      ## -- Begin function MakeTnode
	.p2align	4, 0x90
_MakeTnode:                             ## @MakeTnode
	.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	_tnode_p@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r12
	leal	1(%r12), %eax
	movl	%eax, (%rcx)
	movq	_dnodes@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%edi, %rbx
	movq	_dplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	shlq	$4, %rbx
	movslq	(%r15,%rbx), %r14
	movl	%r14d, (%r12)
	movl	4(%r13,%r14,8), %edi
	callq	_PlaneTypeForNormal
	movl	%eax, 24(%r12)
	movl	4(%r13,%r14,8), %edi
	movl	20(%r12), %esi
	callq	_VectorCopy
	movl	(%r13,%r14,8), %eax
	movl	%eax, 16(%r12)
	movq	8(%r15,%rbx), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.5:
	movq	_tnode_p@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_tnodes@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	addq	%r15, %rbx
	addq	$8, %rbx
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %edi
	callq	_MakeTnode
	movq	(%rbx), %rax
	movq	%r14, %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_tnode_p@GOTPCREL(%rip), %rsi
	notl	%ecx
	movq	_dleafs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$-1, (%rdx,%rcx,4)
	je	LBB0_2
## %bb.4:
	orl	$-2147483648, %ecx              ## imm = 0x80000000
	jmp	LBB0_3
LBB0_2:
	orl	$-1073741824, %ecx              ## imm = 0xC0000000
LBB0_3:
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx)
LBB0_6:
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.11:
	movl	(%rsi), %ecx
	movq	_tnodes@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movq	8(%r12), %rdx
	movl	%ecx, 4(%rdx)
	movl	4(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MakeTnode                      ## TAILCALL
LBB0_7:
	notl	%ecx
	movq	_dleafs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$-1, (%rax,%rcx,4)
	je	LBB0_9
## %bb.8:
	orl	$-2147483648, %ecx              ## imm = 0x80000000
	jmp	LBB0_10
LBB0_9:
	orl	$-1073741824, %ecx              ## imm = 0xC0000000
LBB0_10:
	movq	8(%r12), %rax
	movl	%ecx, 4(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tnode_p,4,2                    ## @tnode_p
	.comm	_dnodes,8,3                     ## @dnodes
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_tnodes,4,2                     ## @tnodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeTnode                      ; -- Begin function MakeTnode
	.p2align	2
_MakeTnode:                             ; @MakeTnode
	.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	x20, _tnode_p@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tnode_p@GOTPAGEOFF]
	ldrsw	x19, [x20]
	add	w8, w19, #1
	str	w8, [x20]
Lloh2:
	adrp	x8, _dnodes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dnodes@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _dplanes@GOTPAGE
Lloh6:
	ldr	x9, [x9, _dplanes@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x22, x8, w0, sxtw #4
	ldrsw	x8, [x22]
	str	w8, [x19]
	add	x21, x9, x8, lsl #3
	ldr	w0, [x21, #4]
	bl	_PlaneTypeForNormal
	str	w0, [x19, #24]
	ldr	w0, [x21, #4]
	ldr	w1, [x19, #20]
	bl	_VectorCopy
	ldr	w8, [x21]
	str	w8, [x19, #16]
	ldr	x8, [x22, #8]!
	ldr	w9, [x8]
Lloh8:
	adrp	x21, _tnodes@GOTPAGE
Lloh9:
	ldr	x21, [x21, _tnodes@GOTPAGEOFF]
	tbnz	w9, #31, LBB0_3
; %bb.1:
	ldr	w9, [x20]
	ldr	w10, [x21]
	sub	w9, w9, w10
	ldr	x10, [x19, #8]
	str	w9, [x10]
	ldr	w0, [x8]
	bl	_MakeTnode
	ldr	x8, [x22]
	ldr	w9, [x8, #4]
	tbnz	w9, #31, LBB0_7
LBB0_2:
	ldr	w9, [x20]
	ldr	w10, [x21]
	sub	w9, w9, w10
	ldr	x10, [x19, #8]
	str	w9, [x10, #4]
	ldr	w0, [x8, #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
	b	_MakeTnode
LBB0_3:
	mvn	w9, w9
Lloh10:
	adrp	x10, _dleafs@GOTPAGE
Lloh11:
	ldr	x10, [x10, _dleafs@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	ldr	w10, [x10, w9, uxtw #2]
	cmn	w10, #1
	b.eq	LBB0_5
; %bb.4:
	orr	w9, w9, #0x80000000
	b	LBB0_6
LBB0_5:
	orr	w9, w9, #0xc0000000
LBB0_6:
	ldr	x10, [x19, #8]
	str	w9, [x10]
	ldr	w9, [x8, #4]
	tbz	w9, #31, LBB0_2
LBB0_7:
	mvn	w8, w9
Lloh13:
	adrp	x9, _dleafs@GOTPAGE
Lloh14:
	ldr	x9, [x9, _dleafs@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w9, [x9, w8, uxtw #2]
	cmn	w9, #1
	b.eq	LBB0_9
; %bb.8:
	orr	w8, w8, #0x80000000
	b	LBB0_10
LBB0_9:
	orr	w8, w8, #0xc0000000
LBB0_10:
	ldr	x9, [x19, #8]
	str	w8, [x9, #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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_tnode_p,4,2                    ; @tnode_p
	.comm	_dnodes,8,3                     ; @dnodes
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_tnodes,4,2                     ; @tnodes
.subsections_via_symbols
