	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindPossiblePortals        ## -- Begin function AAS_FindPossiblePortals
	.p2align	4, 0x90
_AAS_FindPossiblePortals:               ## @AAS_FindPossiblePortals
	.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	%r14d, %r14d
	cmpl	$2, (%r15)
	jl	LBB0_3
## %bb.1:
	movl	$1, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AAS_CheckAreaForPossiblePortals
	addl	%eax, %r14d
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,4,2                   ## @aasworld
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r%6d possible portal areas\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindPossiblePortals        ; -- Begin function AAS_FindPossiblePortals
	.p2align	2
_AAS_FindPossiblePortals:               ; @AAS_FindPossiblePortals
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _aasworld@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	mov	w19, #0
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AAS_CheckAreaForPossiblePortals
	add	w19, w19, w0
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
Lloh2:
	adrp	x8, _botimport@GOTPAGE
Lloh3:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
Lloh5:
	adrp	x8, _PRT_MESSAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRT_MESSAGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,4,2                   ; @aasworld
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r%6d possible portal areas\n"

.subsections_via_symbols
