	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_EnableRoutingArea          ## -- Begin function AAS_EnableRoutingArea
	.p2align	4, 0x90
_AAS_EnableRoutingArea:                 ## @AAS_EnableRoutingArea
	.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
	movl	%edi, %edx
	testl	%edi, %edi
	jle	LBB0_6
## %bb.1:
	movq	_aasworld@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jle	LBB0_6
## %bb.2:
	movq	8(%rax), %r9
	movl	%edx, %ecx
	movl	(%r9,%rcx,4), %edi
	movq	_AREA_DISABLED@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	movl	%ebx, %r14d
	andl	%edi, %r14d
	testl	%esi, %esi
	js	LBB0_5
## %bb.3:
	movl	%ebx, %eax
	orl	%edi, %eax
	notl	%ebx
	andl	%edi, %ebx
	testl	%esi, %esi
	cmovel	%eax, %ebx
	movl	%ebx, (%r9,%rcx,4)
	xorl	%r14d, %ebx
	testl	%ebx, (%r8)
	je	LBB0_5
## %bb.4:
	movl	%edx, %edi
	callq	_AAS_RemoveRoutingCacheUsingArea
LBB0_5:
	testl	%r14d, %r14d
	sete	%al
	jmp	LBB0_9
LBB0_6:
	movq	_bot_developer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,16,3                  ## @aasworld
	.comm	_bot_developer,8,3              ## @bot_developer
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_EnableRoutingArea: areanum %d out of range\n"

	.comm	_AREA_DISABLED,4,2              ## @AREA_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_EnableRoutingArea          ; -- Begin function AAS_EnableRoutingArea
	.p2align	2
_AAS_EnableRoutingArea:                 ; @AAS_EnableRoutingArea
	.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
	mov	x2, x0
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _aasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w2
	b.le	LBB0_6
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	w10, [x8, w2, uxtw #2]
Lloh2:
	adrp	x9, _AREA_DISABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AREA_DISABLED@GOTPAGEOFF]
	ldr	w11, [x9]
	and	w19, w11, w10
	tbnz	w1, #31, LBB0_5
; %bb.3:
	mov	w12, w2
	orr	w13, w11, w10
	bic	w10, w10, w11
	cmp	w1, #0
	csel	w10, w13, w10, eq
	str	w10, [x8, x12, lsl #2]
	ldr	w8, [x9]
	eor	w9, w10, w19
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x2
	bl	_AAS_RemoveRoutingCacheUsingArea
LBB0_5:
	cmp	w19, #0
	cset	w0, eq
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x8, _bot_developer@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bot_developer@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _botimport@GOTPAGE
Lloh8:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
	.comm	_bot_developer,8,3              ; @bot_developer
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_EnableRoutingArea: areanum %d out of range\n"

	.comm	_AREA_DISABLED,4,2              ; @AREA_DISABLED
.subsections_via_symbols
