	.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
	cmpq	$0, 24(%rdi)
	movl	(%rdi), %ecx
	je	LBB0_8
## %bb.1:
	movq	_c_areas@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$-1, %ecx
	jne	LBB0_3
## %bb.2:
	movl	%eax, (%r14)
LBB0_3:
	movq	16(%r14), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rcx
	movq	(%rcx), %rsi
	cmpq	%rax, %rsi
	je	LBB0_16
## %bb.4:
	movq	8(%rcx), %rdi
	cmpq	%rax, %rdi
	je	LBB0_16
## %bb.5:
	cmpq	$-1, %rdi
	je	LBB0_6
## %bb.17:
	movl	8(%rdx), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__printf                        ## TAILCALL
LBB0_8:
	cmpl	$-1, %ecx
	jne	LBB0_16
## %bb.9:
	cmpl	$-1, 4(%r14)
	je	LBB0_16
## %bb.10:
	movq	_c_areas@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	8(%r14), %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r15
	sete	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %r15
	movq	%rbx, %rdi
	callq	_Portal_Passable
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r15
	setne	%al
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_FloodAreas_r
	jmp	LBB0_14
LBB0_6:
	cmpq	$-1, %rsi
	je	LBB0_15
## %bb.7:
	movq	%rax, 8(%rcx)
	jmp	LBB0_16
LBB0_15:
	movq	%rax, (%rcx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c_areas,8,3                    ## @c_areas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: areaportal brush %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, #24]
	ldr	w9, [x0]
	cbz	x8, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _c_areas@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c_areas@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmn	w9, #1
	b.ne	LBB0_3
; %bb.2:
	str	w8, [x19]
LBB0_3:
	ldr	x9, [x19, #16]
	ldr	x10, [x9]
	ldr	x9, [x10]
	ldr	x11, [x9]
	cmp	x11, x8
	b.eq	LBB0_16
; %bb.4:
	ldr	x12, [x9, #8]
	cmp	x12, x8
	b.eq	LBB0_16
; %bb.5:
	cmn	x12, #1
	b.eq	LBB0_13
; %bb.6:
	ldr	w1, [x10, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	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	__printf
LBB0_7:
	cmn	w9, #1
	b.ne	LBB0_16
; %bb.8:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_16
; %bb.9:
Lloh5:
	adrp	x8, _c_areas@GOTPAGE
Lloh6:
	ldr	x8, [x8, _c_areas@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w8, [x19]
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_11
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x21, x19
	cset	w8, eq
	ldr	x9, [x20, #8]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	mov	x0, x20
	bl	_Portal_Passable
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x21, x19
	cset	w8, ne
	ldr	x9, [x20]
	ldr	x0, [x9, w8, uxtw #3]
	bl	_FloodAreas_r
	b	LBB0_10
LBB0_13:
	cmn	x11, #1
	b.eq	LBB0_15
; %bb.14:
	str	x8, [x9, #8]
	b	LBB0_16
LBB0_15:
	str	x8, [x9]
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_c_areas,8,3                    ; @c_areas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: areaportal brush %i touches > 2 areas\n"

.subsections_via_symbols
