	.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_CalculateAreaTravelTimes
LCPI0_0:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_CalculateAreaTravelTimes
	.p2align	4, 0x90
_AAS_CalculateAreaTravelTimes:          ## @AAS_CalculateAreaTravelTimes
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_Sys_MilliSeconds
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	callq	_FreeMemory
	movq	%rbx, %rax
LBB0_2:
	movl	8(%rax), %r8d
	leal	(,%r8,8), %edi
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.4:
	movq	24(%rax), %rcx
	movq	%rax, %r13
	movq	32(%rax), %rdx
	cmpl	$9, %r8d
	jae	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	%rax, %r13
	jmp	LBB0_11
LBB0_6:
	movl	%r8d, %esi
	andl	$7, %esi
	testq	%rsi, %rsi
	movl	$8, %ebx
	cmovneq	%rsi, %rbx
	movq	%r8, %rax
	subq	%rbx, %rax
	movd	%edi, %xmm1
	leaq	112(%rdx), %rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rbx,8), %xmm3
	movups	16(%rcx,%rbx,8), %xmm4
	shufps	$136, %xmm4, %xmm3              ## xmm3 = xmm3[0,2],xmm4[0,2]
	movups	32(%rcx,%rbx,8), %xmm4
	movd	-112(%rdi), %xmm5               ## xmm5 = mem[0],zero,zero,zero
	pinsrd	$1, -96(%rdi), %xmm5
	pinsrd	$2, -80(%rdi), %xmm5
	pinsrd	$3, -64(%rdi), %xmm5
	movups	48(%rcx,%rbx,8), %xmm6
	movd	-48(%rdi), %xmm7                ## xmm7 = mem[0],zero,zero,zero
	pinsrd	$1, -32(%rdi), %xmm7
	pinsrd	$2, -16(%rdi), %xmm7
	pinsrd	$3, (%rdi), %xmm7
	shufps	$136, %xmm6, %xmm4              ## xmm4 = xmm4[0,2],xmm6[0,2]
	paddd	%xmm5, %xmm5
	paddd	%xmm7, %xmm7
	paddd	%xmm2, %xmm5
	pmulld	%xmm3, %xmm5
	paddd	%xmm5, %xmm1
	paddd	%xmm2, %xmm7
	pmulld	%xmm4, %xmm7
	paddd	%xmm7, %xmm0
	addq	$8, %rbx
	subq	$-128, %rdi
	cmpq	%rbx, %rax
	jne	LBB0_7
## %bb.8:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edi
LBB0_9:
	movq	%rax, %rsi
	shlq	$4, %rsi
	addq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	addl	%esi, %esi
	addl	$8, %esi
	imull	(%rcx,%rax,8), %esi
	addl	%esi, %edi
	incq	%rax
	addq	$16, %rdx
	cmpq	%rax, %r8
	jne	LBB0_10
LBB0_11:
	callq	_GetClearedMemory
	movq	%rax, (%r13)
	movl	8(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.12:
	leaq	(%rax,%rcx,8), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	movq	24(%r13), %r10
	movq	32(%r13), %r8
	movq	%rdi, (%rax,%rbx,8)
	movslq	(%r10,%rbx,8), %r11
	leaq	(%rdi,%r11,8), %rdi
	testq	%r11, %r11
	jle	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %r9
	shlq	$4, %r9
	leaq	(%r8,%r9), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r8,%r9), %rcx
	addq	$8, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movl	(%r10,%rbx,8), %r11d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	leaq	(%rdi,%rax,2), %rdi
	incq	%rdx
	movslq	%r11d, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_21
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rdi, (%rcx,%rdx,8)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movslq	4(%r10,%rbx,8), %rax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movslq	%edx, %rcx
	addq	%rax, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12), %rcx
	movl	4(%rax,%rcx,8), %edi
	callq	_VectorCopy
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%r14,%rax,8), %edx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edi
	callq	_AAS_AreaTravelTime
	movq	(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movw	%ax, (%rcx,%rbx)
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=3
	movq	16(%r13), %rax
	addq	$2, %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%r13), %ecx
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %rax
	jmp	LBB0_13
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,40,3                  ## @aasworld
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.comm	_botimport,8,3                  ## @botimport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_CalculateAreaTravelTimes   ; -- Begin function AAS_CalculateAreaTravelTimes
	.p2align	2
_AAS_CalculateAreaTravelTimes:          ; @AAS_CalculateAreaTravelTimes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	bl	_Sys_MilliSeconds
Lloh0:
	adrp	x20, _aasworld@GOTPAGE
Lloh1:
	ldr	x20, [x20, _aasworld@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_FreeMemory
LBB0_2:
	ldr	w8, [x20, #8]
	lsl	w0, w8, #3
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	ldp	x10, x9, [x20, #24]
	cmp	w8, #17
	b.hs	LBB0_5
; %bb.4:
	mov	x11, #0
	b	LBB0_8
LBB0_5:
	ands	x11, x8, #0xf
	mov	w12, #16
	csel	x11, x12, x11, eq
	sub	x11, x8, x11
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w0
	add	x12, x9, #128
	add	x13, x10, #64
	movi.4s	v2, #8
	mov	x14, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #64
	ld2.4s	{ v5, v6 }, [x15]
	sub	x15, x13, #32
	ld2.4s	{ v16, v17 }, [x15]
	mov	x15, x13
	ld2.4s	{ v18, v19 }, [x15], #32
	sub	x16, x12, #128
	sub	x17, x12, #64
	ld4.4s	{ v20, v21, v22, v23 }, [x16]
	ld4.4s	{ v24, v25, v26, v27 }, [x17]
	ld2.4s	{ v28, v29 }, [x15]
	mov	x15, x12
	ld4.4s	{ v7, v8, v9, v10 }, [x15], #64
	ld4.4s	{ v11, v12, v13, v14 }, [x15]
	shl.4s	v20, v20, #1
	shl.4s	v7, v7, #1
	shl.4s	v21, v24, #1
	shl.4s	v22, v11, #1
	add.4s	v20, v20, v2
	add.4s	v21, v21, v2
	add.4s	v7, v7, v2
	add.4s	v22, v22, v2
	mla.4s	v1, v20, v5
	mla.4s	v0, v21, v16
	mla.4s	v3, v7, v18
	mla.4s	v4, v22, v28
	add	x12, x12, #256
	add	x13, x13, #128
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	add.4s	v0, v0, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w0, s0
LBB0_8:
	add	x10, x10, x11, lsl #3
	sub	x8, x8, x11
	add	x9, x9, x11, lsl #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	ldr	w12, [x9], #16
	lsl	w12, w12, #1
	add	w12, w12, #8
	madd	w0, w12, w11, w0
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	bl	_GetClearedMemory
	str	x0, [x20]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.11:
	mov	x19, #0
	add	x21, x0, x8, lsl #3
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	ldp	x10, x11, [x20, #24]
	lsl	x9, x19, #3
	str	x21, [x0, x9]
	add	x9, x10, x9
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldrsw	x9, [x9]
	add	x21, x21, x9, lsl #3
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, #0
	add	x24, x11, x19, lsl #4
	add	x8, x10, x19, lsl #3
	add	x8, x8, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x26, x24, #8
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x21, x21, x27, lsl #1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_20
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	str	x21, [x8, x23, lsl #3]
	ldrsw	x27, [x24]
	ldr	x28, [x26]
	cbz	x28, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x22, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	w9, w8, w23
	ldr	x8, [x20, #16]
	add	x25, x8, w9, sxtw #3
LBB0_18:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x28]
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	bl	_VectorCopy
	ldr	w2, [x25]
	mov	x0, x19
	bl	_AAS_AreaTravelTime
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	strh	w0, [x8, x22]
	ldr	x28, [x28, #8]
	cbz	x28, LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	x8, [x20, #16]
	add	x22, x22, #2
	b	LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x20, #8]
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x20]
	b	LBB0_12
LBB0_23:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.comm	_botimport,8,3                  ; @botimport
.subsections_via_symbols
