	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_FreePortals_r             ## -- Begin function Tree_FreePortals_r
	.p2align	4, 0x90
_Tree_FreePortals_r:                    ## @Tree_FreePortals_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	callq	_Tree_FreePortals_r
	movq	16(%r14), %rax
	movq	8(%rax), %rdi
	callq	_Tree_FreePortals_r
LBB0_2:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpq	%r14, 8(%rax)
	setne	%dl
	sete	%sil
	movq	(%rcx,%rsi,8), %r15
	movq	(%rax,%rdx,8), %rsi
	movq	%rbx, %rdi
	callq	_RemovePortalFromNode
	movq	%rbx, %rdi
	callq	_FreePortal
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_3
LBB0_4:
	movq	$0, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_freedtreemem,4,2               ## @freedtreemem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_FreePortals_r             ; -- Begin function Tree_FreePortals_r
	.p2align	2
_Tree_FreePortals_r:                    ; @Tree_FreePortals_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.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_Tree_FreePortals_r
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_Tree_FreePortals_r
LBB0_2:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20, #8]
	ldr	x10, [x8, #8]
	cmp	x10, x19
	cset	w10, ne
	cset	w11, eq
	ldr	x21, [x9, w11, uxtw #3]
	ldr	x1, [x8, w10, uxtw #3]
	mov	x0, x20
	bl	_RemovePortalFromNode
	mov	x0, x20
	bl	_FreePortal
	mov	x20, x21
	cbnz	x21, LBB0_3
LBB0_4:
	str	xzr, [x19, #8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_freedtreemem,4,2               ; @freedtreemem
.subsections_via_symbols
