	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Portal_VisFlood                ## -- Begin function Portal_VisFlood
	.p2align	4, 0x90
_Portal_VisFlood:                       ## @Portal_VisFlood
	.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
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_ClusterContents
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ClusterContents
	movl	%eax, %ebx
	movl	%eax, %edi
	xorl	%r14d, %edi
	callq	_VisibleContents
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.3:
	movq	_CONTENTS_Q2TRANSLUCENT@GOTPCREL(%rip), %rax
	movq	_CONTENTS_DETAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%r14d, %ecx
	cmovnel	%eax, %r14d
	testl	%ebx, %ecx
	cmovnel	%eax, %ebx
	movl	%r14d, %ecx
	orl	%ebx, %ecx
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.4:
	xorl	%ebx, %r14d
	movl	$1, %eax
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_VisibleContents
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTENTS_Q2TRANSLUCENT,4,2     ## @CONTENTS_Q2TRANSLUCENT
	.comm	_CONTENTS_DETAIL,4,2            ## @CONTENTS_DETAIL
	.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_VisFlood                ; -- Begin function Portal_VisFlood
	.p2align	2
_Portal_VisFlood:                       ; @Portal_VisFlood
	.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_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_ClusterContents
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_ClusterContents
	mov	x20, x0
	eor	w0, w0, w19
	bl	_VisibleContents
	cbz	w0, LBB0_6
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x8, _CONTENTS_Q2TRANSLUCENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTENTS_Q2TRANSLUCENT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CONTENTS_DETAIL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONTENTS_DETAIL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
	tst	w9, w19
	csel	w8, w19, wzr, eq
	tst	w9, w20
	csel	w9, w20, wzr, eq
	orr	w10, w8, w9
Lloh6:
	adrp	x11, _CONTENTS_SOLID@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w11
	b.ne	LBB0_7
; %bb.3:
	eor	w0, w8, w9
	cbz	w0, LBB0_6
; %bb.4:
	bl	_VisibleContents
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTENTS_Q2TRANSLUCENT,4,2     ; @CONTENTS_Q2TRANSLUCENT
	.comm	_CONTENTS_DETAIL,4,2            ; @CONTENTS_DETAIL
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
.subsections_via_symbols
