	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckAreas_r                   ## -- Begin function CheckAreas_r
	.p2align	4, 0x90
_CheckAreas_r:                          ## @CheckAreas_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	40(%rbx), %rax
	movq	(%rax), %rdi
	callq	_CheckAreas_r
	movq	40(%rbx), %rax
	movq	8(%rax), %rbx
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_1
LBB0_3:
	cmpq	$0, 32(%rbx)
	je	LBB0_4
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	8(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$-1, 12(%rbx)
	je	LBB0_6
LBB0_7:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
LBB0_8:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	cmpl	$-1, (%rcx)
	je	LBB0_11
## %bb.9:
	cmpl	$-1, 4(%rcx)
	jne	LBB0_10
LBB0_11:
	movl	8(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__printf                        ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	__printf
	cmpq	$0, 24(%rbx)
	jne	LBB0_8
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: cluster %d has area set to -1\n"

L_.str.1:                               ## @.str.1
	.asciz	"WARNING: areaportal brush %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	_CheckAreas_r                   ; -- Begin function CheckAreas_r
	.p2align	2
_CheckAreas_r:                          ; @CheckAreas_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, #40]
	ldr	x0, [x8]
	bl	_CheckAreas_r
	ldr	x8, [x19, #40]
	ldr	x19, [x8, #8]
	ldr	x8, [x19]
	b	LBB0_1
LBB0_3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x19, #8]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #12]
	cmn	w8, #1
	b.eq	LBB0_11
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	w10, [x9]
	cmn	w10, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	w9, [x9, #4]
	cmn	w9, #1
	b.ne	LBB0_4
LBB0_10:
	ldr	w1, [x8, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__printf
LBB0_11:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__printf
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: cluster %d has area set to -1\n"

l_.str.1:                               ; @.str.1
	.asciz	"WARNING: areaportal brush %i doesn't touch two areas\n"

.subsections_via_symbols
