	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetAreaPortalAreas_r           ## -- Begin function SetAreaPortalAreas_r
	.p2align	4, 0x90
_SetAreaPortalAreas_r:                  ## @SetAreaPortalAreas_r
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_SetAreaPortalAreas_r
	movq	32(%rbx), %rax
	movq	8(%rax), %rbx
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_1
LBB0_3:
	movq	8(%rbx), %rax
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movq	_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	(%rcx,%rsi,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	cmpl	$0, 4(%rax)
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Log_Print                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_CONTENTS_AREAPORTAL,8,3        ## @CONTENTS_AREAPORTAL
	.comm	_entities,8,3                   ## @entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: areaportal entity %i doesn't touch two areas\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetAreaPortalAreas_r           ; -- Begin function SetAreaPortalAreas_r
	.p2align	2
_SetAreaPortalAreas_r:                  ; @SetAreaPortalAreas_r
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PLANENUM_LEAF@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	bl	_SetAreaPortalAreas_r
	ldr	x8, [x19, #32]
	ldr	x19, [x8, #8]
	ldr	x8, [x19]
	b	LBB0_1
LBB0_3:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _entities@GOTPAGE
Lloh6:
	ldr	x9, [x9, _entities@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	x1, [x8]
	ldr	x8, [x9, x1, lsl #3]
	ldr	w9, [x8]
	str	w9, [x19, #16]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Log_Print
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_CONTENTS_AREAPORTAL,8,3        ; @CONTENTS_AREAPORTAL
	.comm	_entities,8,3                   ; @entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: areaportal entity %i doesn't touch two areas\n"

.subsections_via_symbols
