	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemovePortalFromNode           ## -- Begin function RemovePortalFromNode
	.p2align	4, 0x90
_RemovePortalFromNode:                  ## @RemovePortalFromNode
	.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	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str.1(%rip), %r12
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %r15
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	cmpq	%r13, (%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, 8(%rax)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_Error
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rbx
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rbx
	addq	$8, %rbx
	jmp	LBB0_1
LBB0_9:
	movq	(%r14), %rax
	cmpq	%r13, (%rax)
	je	LBB0_10
## %bb.11:
	cmpq	%r13, 8(%rax)
	je	LBB0_12
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	callq	_Error
	jmp	LBB0_14
LBB0_10:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	$0, (%rax)
	jmp	LBB0_14
LBB0_12:
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	$0, 8(%rax)
LBB0_14:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.15:
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ecx, %ecx
	cmpq	%r13, 8(%rax)
	sete	%cl
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	%r13, (%rax)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r13, 8(%rax)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	callq	_Error
	movq	(%rbx), %rax
	jmp	LBB0_19
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RemovePortalFromNode: portal not in leaf"

L_.str.1:                               ## @.str.1
	.asciz	"RemovePortalFromNode: portal not bounding leaf"

L_.str.2:                               ## @.str.2
	.asciz	"RemovePortalFromNode: mislinked portal"

L_.str.4:                               ## @.str.4
	.asciz	"RemovePortalFromNodes: portal does not belong to node\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemovePortalFromNode           ; -- Begin function RemovePortalFromNode
	.p2align	2
_RemovePortalFromNode:                  ; @RemovePortalFromNode
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x23, x1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x23]
	cbnz	x24, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_Error
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x24, x20
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8, #8]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_Error
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [x24, #8]
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x24, #8]
	add	x23, x8, #8
	b	LBB0_1
LBB0_9:
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x8, #8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.11:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Error
	ldr	x21, [x19]
	cbnz	x21, LBB0_14
	b	LBB0_19
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x8, [x23]
	ldr	x8, [x20]
	str	xzr, [x8]
	ldr	x21, [x19]
	cbnz	x21, LBB0_14
	b	LBB0_19
LBB0_13:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	x8, [x23]
	ldr	x8, [x20]
	str	xzr, [x8, #8]
	ldr	x21, [x19]
	cbz	x21, LBB0_19
LBB0_14:
Lloh6:
	adrp	x20, l_.str.4@PAGE
Lloh7:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w8, eq
	ldr	x9, [x21, #8]
	ldr	x21, [x9, w8, uxtw #3]
	cbz	x21, LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x8, #8]
	cmp	x9, x19
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_Error
	ldr	x8, [x21]
	b	LBB0_15
LBB0_19:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RemovePortalFromNode: portal not in leaf"

l_.str.1:                               ; @.str.1
	.asciz	"RemovePortalFromNode: portal not bounding leaf"

l_.str.2:                               ; @.str.2
	.asciz	"RemovePortalFromNode: mislinked portal"

l_.str.4:                               ; @.str.4
	.asciz	"RemovePortalFromNodes: portal does not belong to node\n"

.subsections_via_symbols
