	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ConnectedAreas_r           ## -- Begin function AAS_ConnectedAreas_r
	.p2align	4, 0x90
_AAS_ConnectedAreas_r:                  ## @AAS_ConnectedAreas_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%ecx, %r9
	movl	%eax, (%rdx,%r9,4)
	movq	_aasworld@GOTPCREL(%rip), %r10
	movq	16(%r10), %r11
	movslq	(%rdi,%r9,4), %r12
	movl	(%r11,%r12,8), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movl	%esi, %r15d
	xorl	%r13d, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%r8d, %r13d
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r10), %rcx
	movq	8(%r10), %rax
	movslq	4(%r11,%r12,8), %rbx
	movslq	%r13d, %rdi
	addq	%rbx, %rdi
	movl	(%rax,%rdi,4), %eax
	movl	%eax, %edi
	negl	%edi
	cmovsl	%eax, %edi
	leaq	(%rdi,%rdi,2), %rbx
	movq	_FACE_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx,%rbx,4)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx,%rbx,4), %edi
	cmpl	(%r14,%r9,4), %edi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx,%rbx,4), %edi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	testl	%esi, %esi
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edi, (%r14,%rcx,4)
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rcx
	cmpq	%rcx, %r15
	jne	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, %ecx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %eax
	cmpl	$0, (%rdx,%rax,4)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%esi, %ebx
	callq	_AAS_ConnectedAreas_r
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movq	_aasworld@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	%ebx, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%r11,%r12,8), %r8d
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_aasworld,24,3                  ## @aasworld
	.comm	_FACE_SOLID,4,2                 ## @FACE_SOLID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ConnectedAreas_r           ; -- Begin function AAS_ConnectedAreas_r
	.p2align	2
_AAS_ConnectedAreas_r:                  ; @AAS_ConnectedAreas_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w3 killed $w3 def $x3
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sbfiz	x9, x3, #2, #32
	str	w8, [x2, x9]
Lloh3:
	adrp	x22, _aasworld@GOTPAGE
Lloh4:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	ldr	x8, [x22, #16]
	ldrsw	x9, [x0, x9]
	add	x13, x8, x9, lsl #3
	ldr	w8, [x13]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
	sxtw	x19, w3
	add	x26, x13, #4
	mov	w27, #12
Lloh5:
	adrp	x28, _FACE_SOLID@GOTPAGE
Lloh6:
	ldr	x28, [x28, _FACE_SOLID@GOTPAGEOFF]
	mov	w23, w1
	str	x13, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w9, [x26]
	add	w9, w9, w24
	ldp	x10, x11, [x22]
	ldr	w9, [x11, w9, sxtw #2]
	cmp	w9, #0
	cneg	w11, w9, mi
	umull	x9, w11, w27
	ldr	w9, [x10, x9]
	ldr	w12, [x28]
	tst	w12, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x11, x27, x10
	ldr	w9, [x9, #4]
	ldr	w12, [x21, x19, lsl #2]
	cmp	w9, w12
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x11, x27, x10
	ldr	w9, [x9, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x21, x3, lsl #2]
	cmp	w10, w9
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x3, x3, #1
	cmp	x23, x3
	b.ne	LBB0_8
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w3, w20
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25, w3, uxtw #2]
	cbnz	w9, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_AAS_ConnectedAreas_r
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x13]
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_aasworld,24,3                  ; @aasworld
	.comm	_FACE_SOLID,4,2                 ; @FACE_SOLID
.subsections_via_symbols
