	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FloodAreas_r               ## -- Begin function AAS_FloodAreas_r
	.p2align	4, 0x90
_AAS_FloodAreas_r:                      ## @AAS_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	callq	_AAS_ShowAreaPolygons
	movq	%r14, %rdx
	movq	_aasworld@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %r14
	movslq	%ebx, %r12
	cmpl	$0, (%r14,%r12,8)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.1:
	xorl	%r15d, %r15d
	movq	_AREACONTENTS_VIEWPORTAL@GOTPCREL(%rip), %rdi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpl	(%r14,%r12,8), %r15d
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movslq	4(%r14,%r12,8), %rsi
	addq	%r15, %rsi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovsl	%esi, %ecx
	movl	(%rax,%rcx,8), %ebx
	cmpl	%r12d, %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax,%rcx,8), %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	cmpl	$0, (%rdx,%rax,4)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx,%rax,4)
	movq	(%r13), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	(%rdi), %esi
	testl	%esi, (%rcx,%rax,4)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_AAS_AreaCluster
	movq	_AREACONTENTS_VIEWPORTAL@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_AAS_FloodAreas_r
	movq	_AREACONTENTS_VIEWPORTAL@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	leaq	(%r12,%r12,2), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 4(%rcx,%rax,4)
	jle	LBB0_18
## %bb.11:
	leaq	(%rcx,%rax,4), %r14
	addq	$4, %r14
	xorl	%ebx, %ebx
	movq	_AREACONTENTS_VIEWPORTAL@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpl	(%r14), %ebx
	jge	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movslq	4(%r14), %rcx
	addq	%rbx, %rcx
	movslq	(%rax,%rcx,4), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, (%rdx,%r15,4)
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx,%r15,4)
	movq	(%r13), %rax
	leaq	(%r15,%r15,2), %rcx
	movl	(%r12), %esi
	testl	%esi, (%rax,%rcx,4)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, %edi
	callq	_AAS_AreaCluster
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_AAS_FloodAreas_r
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_aasworld,40,3                  ## @aasworld
	.comm	_AREACONTENTS_VIEWPORTAL,4,2    ## @AREACONTENTS_VIEWPORTAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FloodAreas_r               ; -- Begin function AAS_FloodAreas_r
	.p2align	2
_AAS_FloodAreas_r:                      ; @AAS_FloodAreas_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _qtrue@GOTPAGE
Lloh1:
	ldr	x23, [x23, _qtrue@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #1
	bl	_AAS_ShowAreaPolygons
Lloh2:
	adrp	x24, _aasworld@GOTPAGE
Lloh3:
	ldr	x24, [x24, _aasworld@GOTPAGEOFF]
	ldr	x8, [x24, #32]
	sxtw	x10, w21
	ldr	x9, [x24]
	stp	x9, x10, [sp]                   ; 16-byte Folded Spill
	add	x28, x8, w21, sxtw #3
	ldr	w9, [x28]
Lloh4:
	adrp	x25, _AREACONTENTS_VIEWPORTAL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AREACONTENTS_VIEWPORTAL@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x27, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
	add	x26, x8, #4
	mov	w11, #12
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	add	x27, x27, #1
	cmp	w27, w8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x26]
	add	x9, x27, x8
	ldp	x8, x10, [x24, #16]
	ldr	w9, [x10, x9, lsl #2]
	cmp	w9, #0
	cneg	w9, w9, mi
	lsl	x10, x9, #3
	ldr	w22, [x8, x10]
	cmp	w22, w21
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x9, lsl #3
	ldr	w22, [x8, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, w22, sxtw #2]
	cbnz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w22
	ldr	w9, [x23]
	str	w9, [x19, x8, lsl #2]
	ldr	x9, [x24]
	mul	x8, x8, x11
	ldr	w8, [x9, x8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_AAS_AreaCluster
	mov	w11, #12
	cmp	w0, w20
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_AAS_FloodAreas_r
	mov	w11, #12
	b	LBB0_2
LBB0_10:
	mov	w8, #12
	ldp	x10, x9, [sp]                   ; 16-byte Folded Reload
	madd	x22, x9, x8, x10
	ldr	w8, [x22, #4]!
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:
	mov	x26, #0
	mov	w27, #12
	madd	x8, x9, x27, x10
	add	x28, x8, #8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x22]
	add	x26, x26, #1
	cmp	w26, w8
	b.ge	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldrsw	x9, [x28]
	add	x9, x26, x9
	ldrsw	x21, [x8, x9, lsl #2]
	cbz	w21, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19, x21, lsl #2]
	cbnz	w8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x23]
	str	w8, [x19, x21, lsl #2]
	ldr	x8, [x24]
	mul	x9, x21, x27
	ldr	w8, [x8, x9]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_AAS_AreaCluster
	cmp	w0, w20
	b.ne	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_AAS_FloodAreas_r
	b	LBB0_12
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_AREACONTENTS_VIEWPORTAL,4,2    ; @AREACONTENTS_VIEWPORTAL
.subsections_via_symbols
