	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodPortals_r                 ## -- Begin function FloodPortals_r
	.p2align	4, 0x90
_FloodPortals_r:                        ## @FloodPortals_r
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_numrec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_2:
	movl	%r14d, (%r15)
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	incl	%r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	cmpq	%r15, %r13
	sete	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %r13
	xorl	%r12d, %r12d
	cmpq	%r15, %r13
	setne	%r12b
	movq	(%rax,%r12,8), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	cmpq	%r15, %r13
	sete	%sil
	movq	%rbx, %rdi
	callq	_Portal_EntityFlood
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	movl	%r14d, %esi
	callq	_FloodPortals_r
	jmp	LBB0_7
LBB0_8:
	movq	_numrec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Print                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r%6d"

	.comm	_numrec,4,2                     ## @numrec
L_.str.1:                               ## @.str.1
	.asciz	"FloodPortals_r: node already occupied\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodPortals_r                 ; -- Begin function FloodPortals_r
	.p2align	2
_FloodPortals_r:                        ; @FloodPortals_r
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _numrec@GOTPAGE
Lloh1:
	ldr	x22, [x22, _numrec@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w1, w8, #1
	str	w1, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Print
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_2:
	str	w21, [x19]
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_8
; %bb.3:
	add	w21, w21, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, x19
	cset	w8, eq
	ldr	x9, [x20, #8]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x23, [x8, #8]
	cmp	x23, x19
	cset	w24, ne
	ldr	x8, [x8, w24, uxtw #3]
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, x19
	cset	w1, eq
	mov	x0, x20
	bl	_Portal_EntityFlood
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x24, lsl #3]
	mov	x1, x21
	bl	_FloodPortals_r
	b	LBB0_4
LBB0_8:
	ldr	w8, [x22]
	sub	w1, w8, #1
	str	w1, [x22]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_Log_Print
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r%6d"

	.comm	_numrec,4,2                     ; @numrec
l_.str.1:                               ; @.str.1
	.asciz	"FloodPortals_r: node already occupied\n"

.subsections_via_symbols
