	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_InitRoutingUpdate          ## -- Begin function AAS_InitRoutingUpdate
	.p2align	4, 0x90
_AAS_InitRoutingUpdate:                 ## @AAS_InitRoutingUpdate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_aasworld@GOTPCREL(%rip), %r14
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_FreeMemory
LBB0_2:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	24(%r14), %rcx
	cmpl	$8, %eax
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %ebx
	andl	$3, %ebx
	cmpq	$24, %rdi
	jae	LBB0_8
## %bb.7:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,4), %xmm2
	pmaxsd	%xmm0, %xmm2
	movdqu	16(%rcx,%rdi,4), %xmm0
	pmaxsd	%xmm1, %xmm0
	movdqu	32(%rcx,%rdi,4), %xmm1
	movdqu	48(%rcx,%rdi,4), %xmm3
	movdqu	64(%rcx,%rdi,4), %xmm4
	pmaxsd	%xmm1, %xmm4
	pmaxsd	%xmm2, %xmm4
	movdqu	80(%rcx,%rdi,4), %xmm2
	pmaxsd	%xmm3, %xmm2
	pmaxsd	%xmm0, %xmm2
	movdqu	96(%rcx,%rdi,4), %xmm0
	pmaxsd	%xmm4, %xmm0
	movdqu	112(%rcx,%rdi,4), %xmm1
	pmaxsd	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_9
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	leaq	(%rcx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	pmaxsd	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	pmaxsd	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_12
LBB0_13:
	pmaxsd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpq	%rax, %rdx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	cmpl	%edi, %esi
	cmovgl	%esi, %edi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_15:
	shll	$2, %edi
LBB0_16:
	callq	_GetClearedMemory
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_FreeMemory
LBB0_18:
	movl	4(%r14), %eax
	leal	4(,%rax,4), %edi
	callq	_GetClearedMemory
	movq	%rax, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,32,3                  ## @aasworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_InitRoutingUpdate          ; -- Begin function AAS_InitRoutingUpdate
	.p2align	2
_AAS_InitRoutingUpdate:                 ; @AAS_InitRoutingUpdate
	.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	x19, _aasworld@GOTPAGE
Lloh1:
	ldr	x19, [x19, _aasworld@GOTPAGEOFF]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_FreeMemory
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x19, #24]
	cmp	w8, #16
	b.hs	LBB0_6
; %bb.4:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	and	x10, x8, #0xfffffff0
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	smax.4s	v0, v4, v0
	smax.4s	v1, v5, v1
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_7
; %bb.8:
	smax.4s	v0, v0, v1
	smax.4s	v0, v0, v2
	smax.4s	v0, v0, v3
	smaxv.4s	s0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, w11
	csel	w11, w10, w11, gt
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	lsl	w0, w11, #2
LBB0_12:
	bl	_GetClearedMemory
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_FreeMemory
LBB0_14:
	ldr	w8, [x19, #4]
	lsl	w8, w8, #2
	add	w0, w8, #4
	bl	_GetClearedMemory
	str	x0, [x19, #8]
	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,32,3                  ; @aasworld
.subsections_via_symbols
