	.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_NumberClusterAreas
LCPI0_0:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_NumberClusterAreas
	.p2align	4, 0x90
_AAS_NumberClusterAreas:                ## @AAS_NumberClusterAreas
	.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
	movl	%edi, %r14d
	movq	_aasworld@GOTPCREL(%rip), %r15
	movq	24(%r15), %rcx
	movslq	%edi, %rax
	leaq	(%rax,%rax,2), %r12
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 8(%rcx,%r12,8)
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.1:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	cmpl	%r14d, 16(%rax,%r13)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_AAS_AreaReachability
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movdqu	8(%rax,%r12,8), %xmm0
	movq	%xmm0, 24(%rcx,%r13)
	psubq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 8(%rax,%r12,8)
	jmp	LBB0_5
LBB0_6:
	movq	24(%r15), %rcx
LBB0_7:
	cmpl	$0, (%rcx,%r12,8)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_13
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12,8), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpl	(%r13), %ebx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r13), %rax
	addq	%rbx, %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %r12
	movslq	(%rcx,%rax,4), %r14
	shlq	$4, %r14
	movl	(%r12,%r14), %edi
	callq	_AAS_AreaReachability
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 4(%r12,%r14)
	setne	%al
	movq	8(%r13), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r13)
	movq	8(%r12,%r14), %rdx
	movq	%rcx, (%rdx,%rax,8)
	movq	24(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	16(%rax,%rcx,8)
	jmp	LBB0_11
LBB0_12:
	movl	(%r15), %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	cmpl	$2, %eax
	jl	LBB0_19
## %bb.14:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	cmpl	%r14d, 16(%rax,%r13)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_AAS_AreaReachability
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movq	8(%rax,%r12,8), %rdx
	movq	%rdx, 24(%rcx,%r13)
	incq	%rdx
	movq	%rdx, 8(%rax,%r12,8)
	jmp	LBB0_18
LBB0_19:
	movq	24(%r15), %rax
	cmpl	$0, (%rax,%r12,8)
	jle	LBB0_24
## %bb.20:
	leaq	(%rax,%r12,8), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	cmpl	(%r12), %ebx
	jge	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%r12), %rax
	addq	%rbx, %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %r13
	movslq	(%rcx,%rax,4), %r14
	shlq	$4, %r14
	movl	(%r13,%r14), %edi
	callq	_AAS_AreaReachability
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 4(%r13,%r14)
	setne	%al
	movq	8(%r12), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r12)
	movq	8(%r13,%r14), %rdx
	movq	%rcx, (%rdx,%rax,8)
	jmp	LBB0_23
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,40,3                  ## @aasworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_NumberClusterAreas         ; -- Begin function AAS_NumberClusterAreas
	.p2align	2
_AAS_NumberClusterAreas:                ; @AAS_NumberClusterAreas
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x21, _aasworld@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	x9, [x21, #24]
	sxtw	x22, w19
	mov	w8, #24
	smaddl	x8, w0, w8, x9
	stp	xzr, xzr, [x8, #8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.1:
	mov	x23, #0
	mov	w24, #1
	mov	w25, #24
	mov	w20, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x23, x23, #16
	cmp	x20, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	add	x8, x8, x23
	ldr	w8, [x8, #16]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_AAS_AreaReachability
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x9, [x21, #24]
	madd	x8, x22, x25, x8
	add	x9, x9, x23
	ldur	q0, [x8, #8]
	str	d0, [x9, #24]
	dup.2d	v1, x24
	add.2d	v0, v0, v1
	stur	q0, [x8, #8]
	b	LBB0_2
LBB0_6:
	ldr	x9, [x21, #24]
LBB0_7:
	mov	w10, #24
	madd	x20, x22, x10, x9
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x23, #0
	mov	w24, #24
	madd	x8, x22, x24, x9
	add	x25, x8, #4
	add	x26, x8, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20]
	add	x23, x23, #1
	cmp	w23, w8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25]
	add	x8, x23, x8
	ldp	x9, x27, [x21, #8]
	ldrsw	x28, [x9, x8, lsl #2]
	lsl	x8, x28, #4
	ldr	w0, [x27, x8]
	bl	_AAS_AreaReachability
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x27, x28, lsl #4
	ldr	w9, [x8, #4]
	cmp	w9, w19
	cset	w9, ne
	ldr	x10, [x26]
	add	x11, x10, #1
	str	x11, [x26]
	ldr	x8, [x8, #8]
	str	x10, [x8, w9, uxtw #3]
	ldr	x8, [x21, #24]
	madd	x8, x22, x24, x8
	ldr	x9, [x8, #16]
	add	x9, x9, #1
	str	x9, [x8, #16]
	b	LBB0_9
LBB0_12:
	ldr	w8, [x21]
LBB0_13:
	cmp	w8, #1
	b.le	LBB0_19
; %bb.14:
	mov	x23, #0
	mov	w20, #1
	mov	w24, #24
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x23, x23, #16
	cmp	x20, x8
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	add	x8, x8, x23
	ldr	w8, [x8, #16]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_AAS_AreaReachability
	cbnz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldp	x8, x9, [x21, #24]
	madd	x8, x22, x24, x8
	ldr	x10, [x8, #8]
	add	x9, x9, x23
	str	x10, [x9, #24]
	add	x9, x10, #1
	str	x9, [x8, #8]
	b	LBB0_15
LBB0_19:
	ldr	x8, [x21, #24]
	mov	w9, #24
	madd	x20, x22, x9, x8
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x23, #0
	mov	w9, #24
	madd	x8, x22, x9, x8
	add	x22, x8, #4
	add	x24, x8, #8
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x20]
	add	x23, x23, #1
	cmp	w23, w8
	b.ge	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x22]
	add	x8, x23, x8
	ldp	x9, x25, [x21, #8]
	ldrsw	x26, [x9, x8, lsl #2]
	lsl	x8, x26, #4
	ldr	w0, [x25, x8]
	bl	_AAS_AreaReachability
	cbnz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x25, x26, lsl #4
	ldr	w9, [x8, #4]
	cmp	w9, w19
	cset	w9, ne
	ldr	x10, [x24]
	add	x11, x10, #1
	str	x11, [x24]
	ldr	x8, [x8, #8]
	str	x10, [x8, w9, uxtw #3]
	b	LBB0_21
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,40,3                  ; @aasworld
.subsections_via_symbols
