	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Portal_Passable                ## -- Begin function Portal_Passable
	.p2align	4, 0x90
_Portal_Passable:                       ## @Portal_Passable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_qfalse@GOTPCREL(%rip), %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
## %bb.2:
	movq	8(%rax), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%rbx), %rax
	movq	(%rax), %rcx
LBB0_4:
	cmpl	$0, 8(%rcx)
	jne	LBB0_7
## %bb.5:
	movq	8(%rax), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_7
## %bb.6:
	movq	_qtrue@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Portal_EntityFlood: not a leaf"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Portal_Passable                ; -- Begin function Portal_Passable
	.p2align	2
_Portal_Passable:                       ; @Portal_Passable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
	ldr	x10, [x9]
Lloh0:
	adrp	x11, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PLANENUM_LEAF@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
	ldr	x11, [x8, #8]
	ldr	x11, [x11]
	cmp	x11, x10
	b.eq	LBB0_4
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x19]
	ldr	x9, [x8]
LBB0_4:
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x8, _qtrue@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Portal_EntityFlood: not a leaf"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
