	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_PointReachabilityAreaIndex ## -- Begin function AAS_PointReachabilityAreaIndex
	.p2align	4, 0x90
_AAS_PointReachabilityAreaIndex:        ## @AAS_PointReachabilityAreaIndex
	.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	_aasworld@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpl	$0, 32(%r15)
	je	LBB0_31
## %bb.1:
	testl	%edi, %edi
	je	LBB0_2
## %bb.13:
	callq	_AAS_PointAreaNum
	testl	%eax, %eax
	je	LBB0_31
## %bb.14:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_AAS_AreaReachability
	testl	%eax, %eax
	je	LBB0_31
## %bb.15:
	movq	24(%r15), %rcx
	movslq	%r14d, %rdx
	movl	(%rcx,%rdx,8), %eax
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	leaq	(%rcx,%rdx,8), %rcx
	addq	$4, %rcx
	jmp	LBB0_18
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_31
## %bb.3:
	movq	8(%r15), %rcx
	cmpl	$4, %eax
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %bl
	je	LBB0_11
LBB0_10:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_31
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx,8), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_12
	jmp	LBB0_31
LBB0_17:
	movq	16(%r15), %rcx
	negl	%eax
	shlq	$4, %rax
	movslq	(%rcx,%rax), %rax
	movq	%rax, %rdx
	shlq	$4, %rdx
	negq	%rdx
	movq	8(%rcx,%rdx), %rcx
LBB0_18:
	movl	(%rcx), %r8d
	testl	%eax, %eax
	jle	LBB0_19
## %bb.20:
	movq	8(%r15), %rcx
	movl	%eax, %edx
	cmpl	$4, %eax
	jae	LBB0_22
## %bb.21:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_22:
	movl	%edx, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdi
	movq	%rdi, %rax
	shrq	$2, %rax
	incq	%rax
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.24:
	movq	%rax, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rbx,8), %xmm2
	movdqu	16(%rcx,%rbx,8), %xmm3
	movdqu	32(%rcx,%rbx,8), %xmm4
	movdqu	48(%rcx,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_25
## %bb.26:
	testb	$1, %al
	je	LBB0_28
LBB0_27:
	movdqu	(%rcx,%rbx,8), %xmm2
	movdqu	16(%rcx,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_28:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rdx, %rsi
	je	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rsi,8), %ebx
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_29
LBB0_30:
	addl	%r8d, %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %bl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_23:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %al
	jne	LBB0_27
	jmp	LBB0_28
	.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_PointReachabilityAreaIndex ; -- Begin function AAS_PointReachabilityAreaIndex
	.p2align	2
_AAS_PointReachabilityAreaIndex:        ; @AAS_PointReachabilityAreaIndex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _aasworld@GOTPAGE
Lloh1:
	ldr	x20, [x20, _aasworld@GOTPAGEOFF]
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_12
; %bb.1:
	cbz	w0, LBB0_9
; %bb.2:
	bl	_AAS_PointAreaNum
	cbz	w0, LBB0_25
; %bb.3:
	mov	x19, x0
	bl	_AAS_AreaReachability
	cbz	w0, LBB0_25
; %bb.4:
	ldr	x8, [x20, #24]
	add	x8, x8, w19, sxtw #3
	ldr	w11, [x8], #4
	tbz	w11, #31, LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	neg	w9, w11
	lsl	x9, x9, #4
	ldr	w11, [x8, x9]
	neg	w9, w11
	add	x8, x8, w9, sxtw #4
	ldr	x8, [x8, #8]
LBB0_6:
	ldr	w8, [x8]
	cmp	w11, #1
	b.lt	LBB0_18
; %bb.7:
	ldr	x10, [x20, #8]
	mov	w9, w11
	cmp	w11, #8
	b.hs	LBB0_19
; %bb.8:
	mov	x11, #0
	mov	w12, #0
	b	LBB0_22
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	ldr	x9, [x20, #8]
	cmp	w8, #8
	b.hs	LBB0_13
; %bb.11:
	mov	x10, #0
	mov	w0, #0
	b	LBB0_16
LBB0_12:
	mov	w0, #0
	b	LBB0_25
LBB0_13:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x10, x8
	b.eq	LBB0_25
LBB0_16:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w0, w0, w10
	subs	x8, x8, #1
	b.ne	LBB0_17
	b	LBB0_25
LBB0_18:
	mov	w12, #0
	b	LBB0_24
LBB0_19:
	and	x11, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x12, x10, #32
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_20
; %bb.21:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w12, s0
	cmp	x11, x9
	b.eq	LBB0_24
LBB0_22:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	add	w12, w12, w11
	subs	x9, x9, #1
	b.ne	LBB0_23
LBB0_24:
	add	w0, w12, w8
LBB0_25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,40,3                  ; @aasworld
.subsections_via_symbols
