	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_CreatePortals              ## -- Begin function AAS_CreatePortals
	.p2align	4, 0x90
_AAS_CreatePortals:                     ## @AAS_CreatePortals
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_aasworld@GOTPCREL(%rip), %r8
	movl	(%r8), %r11d
	cmpl	$2, %r11d
	jl	LBB0_6
## %bb.1:
	movq	8(%r8), %rdx
	movq	16(%r8), %rsi
	movq	24(%r8), %rdi
	movl	$1, %eax
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %r9
	movq	_AAS_MAX_PORTALS@GOTPCREL(%rip), %r10
	xorps	%xmm0, %xmm0
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %r11
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %ecx
	testl	%ecx, (%rdi,%rax,4)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r10), %rdx
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rdx,2), %rcx
	movl	%eax, (%rsi,%rcx,8)
	incq	%rdx
	movups	%xmm0, 8(%rsi,%rcx,8)
	movq	%rdx, 8(%r8)
	jmp	LBB0_5
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_AAS_Error                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,32,3                  ## @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ## @AREACONTENTS_CLUSTERPORTAL
	.comm	_AAS_MAX_PORTALS,8,3            ## @AAS_MAX_PORTALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_MAX_PORTALS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_CreatePortals              ; -- Begin function AAS_CreatePortals
	.p2align	2
_AAS_CreatePortals:                     ; @AAS_CreatePortals
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _aasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_6
; %bb.1:
	ldp	x12, x10, [x8, #16]
	ldr	x11, [x8, #8]
	mov	w13, #1
Lloh2:
	adrp	x14, _AREACONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh3:
	ldr	x14, [x14, _AREACONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
	mov	w15, #24
Lloh4:
	adrp	x16, _AAS_MAX_PORTALS@GOTPAGE
Lloh5:
	ldr	x16, [x16, _AAS_MAX_PORTALS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	cmp	x9, x13
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w17, [x10, x13, lsl #2]
	ldr	w0, [x14]
	tst	w0, w17
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x17, [x16]
	cmp	x11, x17
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x17, x11, x15, x12
	str	w13, [x17]
	add	x11, x11, #1
	stp	xzr, xzr, [x17, #8]
	str	x11, [x8, #8]
	b	LBB0_2
LBB0_6:
	ret
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	_AAS_Error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,32,3                  ; @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ; @AREACONTENTS_CLUSTERPORTAL
	.comm	_AAS_MAX_PORTALS,8,3            ; @AAS_MAX_PORTALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_MAX_PORTALS"

.subsections_via_symbols
