	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Portal_EntityFlood             ## -- Begin function Portal_EntityFlood
	.p2align	4, 0x90
_Portal_EntityFlood:                    ## @Portal_EntityFlood
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rcx), %rsi
	cmpq	%rax, (%rsi)
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
LBB0_3:
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%esi, 8(%rdx)
	jne	LBB0_5
## %bb.4:
	movq	8(%rcx), %rcx
	xorl	%eax, %eax
	testl	%esi, 8(%rcx)
	sete	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Portal_EntityFlood: not a leaf"

	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Portal_EntityFlood             ; -- Begin function Portal_EntityFlood
	.p2align	2
_Portal_EntityFlood:                    ; @Portal_EntityFlood
	.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
	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_2
; %bb.1:
	ldr	x11, [x8, #8]
	ldr	x11, [x11]
	cmp	x11, x10
	b.eq	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x19]
	ldr	x9, [x8]
LBB0_3:
	ldr	w10, [x9, #8]
Lloh5:
	adrp	x9, _CONTENTS_SOLID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	tst	w8, w9
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Portal_EntityFlood: not a leaf"

	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
.subsections_via_symbols
