	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodPortals                   ## -- Begin function FloodPortals
	.p2align	4, 0x90
_FloodPortals:                          ## @FloodPortals
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, (%rdi)
	callq	_P_AddNodeToList
	xorl	%eax, %eax
	callq	_P_NextNodeFromList
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_P_NextNodeFromList
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	8(%r14), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	cmpq	%r14, %r15
	sete	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rax
	movq	8(%rax), %r15
	xorl	%r12d, %r12d
	cmpq	%r14, %r15
	setne	%r12b
	movq	(%rax,%r12,8), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%esi, %esi
	cmpq	%r14, %r15
	sete	%sil
	movq	%rbx, %rdi
	callq	_Portal_EntityFlood
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r14), %eax
	incl	%eax
	movq	(%rbx), %rcx
	movq	(%rcx,%r12,8), %rdi
	movl	%eax, (%rdi)
	callq	_P_AddNodeToList
	jmp	LBB0_7
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodPortals                   ; -- Begin function FloodPortals
	.p2align	2
_FloodPortals:                          ; @FloodPortals
	.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	w8, #1
	str	w8, [x0]
	bl	_P_AddNodeToList
	bl	_P_NextNodeFromList
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_P_NextNodeFromList
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_5
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	x21, x19
	cset	w8, eq
	ldr	x9, [x20, #8]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	cmp	x21, x19
	cset	w22, ne
	ldr	x8, [x8, w22, uxtw #3]
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x21, x19
	cset	w1, eq
	mov	x0, x20
	bl	_Portal_EntityFlood
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x19]
	add	w8, w8, #1
	ldr	x9, [x20]
	ldr	x0, [x9, x22, lsl #3]
	str	w8, [x0]
	bl	_P_AddNodeToList
	b	LBB0_4
LBB0_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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
