	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodAreas_r                   ## -- Begin function FloodAreas_r
	.p2align	4, 0x90
_FloodAreas_r:                          ## @FloodAreas_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	32(%r14), %rax
	movq	_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	(%rcx,%rsi,8), %rax
	movq	(%rax), %rdx
	movq	_c_areas@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_13
## %bb.2:
	movq	8(%rax), %rdi
	cmpq	%rcx, %rdi
	je	LBB0_13
## %bb.3:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.14:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Print                      ## TAILCALL
LBB0_6:
	cmpq	$0, 24(%r14)
	je	LBB0_7
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_c_areas@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	16(%r14), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r15
	sete	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %r15
	xorl	%esi, %esi
	cmpq	%r14, %r15
	sete	%sil
	movq	%rbx, %rdi
	callq	_Portal_EntityFlood
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r15
	setne	%al
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_FloodAreas_r
	jmp	LBB0_11
LBB0_4:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.5:
	movq	%rcx, 8(%rax)
	jmp	LBB0_13
LBB0_12:
	movq	%rcx, (%rax)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTENTS_AREAPORTAL,8,3        ## @CONTENTS_AREAPORTAL
	.comm	_entities,8,3                   ## @entities
	.comm	_c_areas,8,3                    ## @c_areas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: areaportal entity %i touches > 2 areas\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FloodAreas_r                   ; -- Begin function FloodAreas_r
	.p2align	2
_FloodAreas_r:                          ; @FloodAreas_r
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _entities@GOTPAGE
Lloh4:
	ldr	x8, [x8, _entities@GOTPAGEOFF]
	ldr	x9, [x19, #32]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x9]
	ldr	x1, [x9]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x10, [x8]
Lloh6:
	adrp	x9, _c_areas@GOTPAGE
Lloh7:
	ldr	x9, [x9, _c_areas@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_6
; %bb.2:
	ldr	x11, [x8, #8]
	cmp	x11, x9
	b.eq	LBB0_6
; %bb.3:
	cbz	x11, LBB0_11
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_Log_Print
LBB0_5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
LBB0_6:
	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
LBB0_7:
Lloh11:
	adrp	x8, _c_areas@GOTPAGE
Lloh12:
	ldr	x8, [x8, _c_areas@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x20, [x19, #16]
	cbnz	x20, LBB0_9
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x21, x19
	cset	w8, eq
	ldr	x9, [x20, #8]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_6
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	cmp	x21, x19
	cset	w1, eq
	mov	x0, x20
	bl	_Portal_EntityFlood
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x21, x19
	cset	w8, ne
	ldr	x9, [x20]
	ldr	x0, [x9, w8, uxtw #3]
	bl	_FloodAreas_r
	b	LBB0_8
LBB0_11:
	cbz	x10, LBB0_13
; %bb.12:
	str	x9, [x8, #8]
	b	LBB0_6
LBB0_13:
	str	x9, [x8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTENTS_AREAPORTAL,8,3        ; @CONTENTS_AREAPORTAL
	.comm	_entities,8,3                   ; @entities
	.comm	_c_areas,8,3                    ; @c_areas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: areaportal entity %i touches > 2 areas\n"

.subsections_via_symbols
