	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_TestPortals                ## -- Begin function AAS_TestPortals
	.p2align	4, 0x90
_AAS_TestPortals:                       ## @AAS_TestPortals
	.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), %rax
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rcx
	cmpl	$2, %edi
	jl	LBB0_8
## %bb.1:
	movq	16(%rax), %rdx
	shlq	$4, %rdi
	movl	$16, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 12(%rdx,%rsi)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rdx,%rsi)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_2
	jmp	LBB0_8
LBB0_3:
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	8(%rax), %rax
	movq	(%rdx,%rsi), %rsi
	andl	%ecx, (%rax,%rsi,4)
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	movq	_AREACONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	8(%rax), %rax
	movq	(%rdx,%rsi), %rsi
	andl	%ecx, (%rax,%rsi,4)
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_Log_Write
	movq	_qfalse@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,24,3                  ## @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ## @AREACONTENTS_CLUSTERPORTAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"portal area %d has no front cluster\r\n"

	.comm	_qfalse,4,2                     ## @qfalse
L_.str.1:                               ## @.str.1
	.asciz	"portal area %d has no back cluster\r\n"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_TestPortals                ; -- Begin function AAS_TestPortals
	.p2align	2
_AAS_TestPortals:                       ; @AAS_TestPortals
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _aasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.1:
	ldr	x10, [x8, #16]
	add	x10, x10, #16
	sub	x11, x9, #1
Lloh2:
	adrp	x9, _qtrue@GOTPAGE
Lloh3:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, #12]
	cbz	w12, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x10, #8]
	cbz	w12, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x9, _qtrue@GOTPAGE
Lloh5:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x9, _AREACONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AREACONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
	str	w9, [x8, x10]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x9, _AREACONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AREACONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
	str	w9, [x8, x10]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_Log_Write
Lloh16:
	adrp	x9, _qfalse@GOTPAGE
Lloh17:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,24,3                  ; @aasworld
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ; @AREACONTENTS_CLUSTERPORTAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"portal area %d has no front cluster\r\n"

	.comm	_qfalse,4,2                     ; @qfalse
l_.str.1:                               ; @.str.1
	.asciz	"portal area %d has no back cluster\r\n"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
