	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MergeNodeFaces                 ## -- Begin function MergeNodeFaces
	.p2align	4, 0x90
_MergeNodeFaces:                        ## @MergeNodeFaces
	.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	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	_mapplanes@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rax)
	movq	%rax, 8(%rcx)
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	cmpq	$0, 24(%r15)
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rbx), %rbx
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, %rbx
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, 24(%rbx)
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TryMerge
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, %rcx
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MergeNodeFaces                 ; -- Begin function MergeNodeFaces
	.p2align	2
_MergeNodeFaces:                        ; @MergeNodeFaces
	.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
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _mapplanes@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mapplanes@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x0, #8]
	str	x0, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	cbnz	x9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19, #8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x21, [x21, #8]
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x21, x20
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x21, #16]
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_TryMerge
	cbz	x0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_15
	b	LBB0_2
LBB0_16:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
