	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RemoveAllPortals           ## -- Begin function AAS_RemoveAllPortals
	.p2align	4, 0x90
_AAS_RemoveAllPortals:                  ## @AAS_RemoveAllPortals
	.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), %rcx
	movl	(%rcx), %eax
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.1:
	movq	8(%rcx), %rcx
	leaq	-1(%rax), %r8
	movl	$1, %edx
	cmpq	$8, %r8
	jb	LBB0_7
## %bb.2:
	leaq	4(%rcx), %rdi
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %r9
	leaq	4(%r9), %rsi
	cmpq	%rsi, %rdi
	jae	LBB0_4
## %bb.3:
	leaq	(%rcx,%rax,4), %rsi
	cmpq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rsi
	ja	LBB0_7
LBB0_4:
	movq	%r8, %rdi
	andq	$-8, %rdi
	leaq	1(%rdi), %rdx
	movd	(%r9), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pcmpeqd	%xmm0, %xmm0
	pxor	%xmm1, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	4(%rcx,%rsi,4), %xmm1
	movdqu	20(%rcx,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 4(%rcx,%rsi,4)
	movdqu	%xmm2, 20(%rcx,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_5
## %bb.6:
	cmpq	%rdi, %r8
	je	LBB0_12
LBB0_7:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %al
	jne	LBB0_9
## %bb.8:
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edi, (%rcx,%rdx,4)
	incq	%rdx
LBB0_9:
	addq	%rax, %rsi
	je	LBB0_12
## %bb.10:
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	notl	%edi
	andl	%edi, (%rcx,%rdx,4)
	movl	(%rsi), %edi
	notl	%edi
	andl	%edi, 4(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,16,3                  ## @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ## @AREACONTENTS_CLUSTERPORTAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RemoveAllPortals           ; -- Begin function AAS_RemoveAllPortals
	.p2align	2
_AAS_RemoveAllPortals:                  ; @AAS_RemoveAllPortals
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _aasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_9
; %bb.1:
	ldr	x10, [x8, #8]
	sub	x12, x9, #1
Lloh2:
	adrp	x8, _AREACONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AREACONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
	cmp	x12, #16
	b.lo	LBB0_6
; %bb.2:
	add	x11, x10, #4
	add	x13, x10, x9, lsl #2
	add	x14, x8, #4
	cmp	x11, x14
	ccmp	x13, x8, #0, lo
	b.hi	LBB0_6
; %bb.3:
	and	x13, x12, #0xfffffffffffffff0
	orr	x11, x13, #0x1
	ldr	s0, [x8]
	mvn.16b	v0, v0
	dup.4s	v0, v0[0]
	add	x14, x10, #36
	mov	x15, x13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x14, #-32]
	ldp	q3, q4, [x14]
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x14, #-32]
	stp	q3, q4, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x13
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w11, #1
LBB0_7:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	ldr	w12, [x10]
	bic	w11, w12, w11
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ; @AREACONTENTS_CLUSTERPORTAL
.subsections_via_symbols
