	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeFaces_r                    ## -- Begin function MakeFaces_r
	.p2align	4, 0x90
_MakeFaces_r:                           ## @MakeFaces_r
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_11
## %bb.6:
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.7:
	movq	_c_nodefaces@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	%r14, 8(%rax)
	sete	%r15b
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_FaceFromPortal
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	(%r12)
	movq	8(%rbx), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, (%rcx)
	movq	(%rax,%r15,8), %rax
	movq	%rax, (%rdx)
	jmp	LBB0_10
LBB0_1:
	movq	24(%r14), %rax
	movq	(%rax), %rdi
	callq	_MakeFaces_r
	movq	24(%r14), %rax
	movq	8(%rax), %rdi
	callq	_MakeFaces_r
	movq	_nomerge@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_MergeNodeFaces
LBB0_3:
	movq	_nosubdiv@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SubdivideNodeFaces             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_nomerge,4,2                    ## @nomerge
	.comm	_nosubdiv,4,2                   ## @nosubdiv
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_c_nodefaces,4,2                ## @c_nodefaces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeFaces_r                    ; -- Begin function MakeFaces_r
	.p2align	2
_MakeFaces_r:                           ; @MakeFaces_r
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANENUM_LEAF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _CONTENTS_SOLID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.2:
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_10
; %bb.3:
Lloh6:
	adrp	x22, _c_nodefaces@GOTPAGE
Lloh7:
	ldr	x22, [x22, _c_nodefaces@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	x20, [x8, x21, lsl #3]
	cbz	x20, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w21, eq
	mov	x0, x20
	mov	x1, x21
	bl	_FaceFromPortal
	ldr	x8, [x20]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x22]
	add	w10, w10, #1
	str	w10, [x22]
	ldr	x10, [x20, #8]
	ldr	x11, [x10]
	str	x11, [x9]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [x10]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_MakeFaces_r
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_MakeFaces_r
Lloh8:
	adrp	x8, _nomerge@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nomerge@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_MergeNodeFaces
LBB0_9:
Lloh11:
	adrp	x8, _nosubdiv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nosubdiv@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
LBB0_10:
	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_11:
	mov	x0, x19
	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	_SubdivideNodeFaces
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_nomerge,4,2                    ; @nomerge
	.comm	_nosubdiv,4,2                   ; @nosubdiv
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_c_nodefaces,4,2                ; @c_nodefaces
.subsections_via_symbols
