	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function AAS_FindClusters
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_FindClusters
	.p2align	4, 0x90
_AAS_FindClusters:                      ## @AAS_FindClusters
	.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
	xorl	%eax, %eax
	callq	_AAS_RemoveClusterAreas
	movq	_aasworld@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_qtrue@GOTPCREL(%rip), %r14
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.1:
	movl	$1, %r13d
	movl	$24, %ebx
	movq	_nofaceflood@GOTPCREL(%rip), %r15
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rcx
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -4(%rcx,%rbx)
	je	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edx
	testl	%edx, -8(%rcx,%rbx)
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	_AAS_MAX_CLUSTERS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jae	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rax
	movq	%rsi, %rcx
	shlq	$5, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%rcx)
	movl	16(%r12), %edx
	movl	%edx, 8(%rax,%rcx)
	movq	$0, (%rax,%rcx)
	movl	%r13d, %edi
	callq	_AAS_FloodClusterAreas_r
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_AAS_FloodClusterAreasUsingReachabilities
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_AAS_NumberClusterAreas
	incq	8(%r12)
	movl	(%r12), %eax
	jmp	LBB0_2
LBB0_11:
	movq	_qtrue@GOTPCREL(%rip), %r14
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_AAS_Error
LBB0_14:
	movq	_qfalse@GOTPCREL(%rip), %r14
LBB0_12:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,40,3                  ## @aasworld
	.comm	_nofaceflood,8,3                ## @nofaceflood
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ## @AREACONTENTS_CLUSTERPORTAL
	.comm	_AAS_MAX_CLUSTERS,8,3           ## @AAS_MAX_CLUSTERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_MAX_CLUSTERS"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindClusters               ; -- Begin function AAS_FindClusters
	.p2align	2
_AAS_FindClusters:                      ; @AAS_FindClusters
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_AAS_RemoveClusterAreas
Lloh0:
	adrp	x21, _aasworld@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.1:
	mov	x22, #0
	mov	w19, #1
Lloh2:
	adrp	x23, _nofaceflood@GOTPAGE
Lloh3:
	ldr	x23, [x23, _nofaceflood@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AREACONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AREACONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _AAS_MAX_CLUSTERS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AAS_MAX_CLUSTERS@GOTPAGEOFF]
Lloh8:
	adrp	x20, _qfalse@GOTPAGE
Lloh9:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
Lloh10:
	adrp	x25, _qtrue@GOTPAGE
Lloh11:
	ldr	x25, [x25, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	add	x22, x22, #16
	cmp	x19, w8, sxtw
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #32]
	add	x10, x9, x22
	ldr	x10, [x10, #24]
	cbnz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x23]
	cbz	x10, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x9, x22
	ldr	w10, [x10, #20]
	cbz	w10, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x22
	ldr	w9, [x9, #16]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21, #8]
	ldr	x8, [x26]
	cmp	x1, x8
	b.hs	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	add	x8, x8, x1, lsl #5
	stp	xzr, xzr, [x8, #16]
	ldr	w9, [x21, #16]
	str	w9, [x8, #8]
	str	xzr, [x8]
	mov	x0, x19
	bl	_AAS_FloodClusterAreas_r
	cbz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #8]
	bl	_AAS_FloodClusterAreasUsingReachabilities
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #8]
	bl	_AAS_NumberClusterAreas
	ldr	x8, [x21, #8]
	add	x8, x8, #1
	str	x8, [x21, #8]
	ldr	w8, [x21]
	b	LBB0_2
LBB0_11:
Lloh12:
	adrp	x20, _qtrue@GOTPAGE
Lloh13:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	x20, x25
LBB0_13:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AAS_Error
Lloh16:
	adrp	x20, _qfalse@GOTPAGE
Lloh17:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_nofaceflood,8,3                ; @nofaceflood
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ; @AREACONTENTS_CLUSTERPORTAL
	.comm	_AAS_MAX_CLUSTERS,8,3           ; @AAS_MAX_CLUSTERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_MAX_CLUSTERS"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
