	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_TryMergeFaceAreas          ## -- Begin function AAS_TryMergeFaceAreas
	.p2align	4, 0x90
_AAS_TryMergeFaceAreas:                 ## @AAS_TryMergeFaceAreas
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rdx
	movq	(%rdx), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rdx), %rax
	cmpq	8(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	16(%rdx), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	16(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	40(%rdx), %rbx
	testq	%rbx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_35
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	cmpq	%rdx, %r13
	setne	%al
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_36
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	16(%rbx), %r13
	movq	%rdx, %rax
	cmpq	%rdx, %r13
	setne	%dil
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rax
	cmpq	%rdx, 8(%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	%dil, -44(%rbp)                 ## 1-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %r12
	movl	%esi, %ebx
	callq	_Error
	movb	-44(%rbp), %dil                 ## 1-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rbx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%r12), %rax
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rdx, %rax
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r15, 8(%rbx)
	je	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rdx, 8(%rbx)
	je	LBB0_10
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	xorl	%esi, %esi
	movb	%dil, %sil
	orl	(%rbx), %r14d
	movq	%rbx, %rdi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	callq	_AAS_GapFace
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_FACE_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	orl	%ecx, %r14d
	movq	40(%r15), %r13
	testq	%r13, %r13
	movl	%r12d, %esi
	je	LBB0_8
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=2
	xorl	%eax, %eax
	cmpq	%r15, %rbx
	setne	%al
	movq	24(%r13), %rcx
	movq	(%rcx,%rax,8), %r13
	testq	%r13, %r13
	je	LBB0_34
LBB0_23:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rax
	cmpq	%r15, %rbx
	setne	%r14b
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%rbx, %rax
	cmpq	%r15, 8(%r13)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_Error
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%r13), %rax
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=2
	cmpq	%rdx, %rax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpq	%r15, 8(%r13)
	je	LBB0_22
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=2
	cmpq	%r15, %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpq	%rdx, 8(%r13)
	je	LBB0_22
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=2
	movb	%r14b, %r12b
	orl	(%r13), %esi
	movl	%esi, %r14d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_AAS_GapFace
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	_FACE_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_NonConvex
	testq	%rax, %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=2
	movl	%r14d, %esi
	orl	%r15d, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_35:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
LBB0_36:
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %edx
	testl	%r14d, %eax
	je	LBB0_38
## %bb.37:
	movq	_FACE_GAP@GOTPCREL(%rip), %rcx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%esi, (%rcx)
	jne	LBB0_7
LBB0_38:
	testl	%esi, %eax
	je	LBB0_40
## %bb.39:
	movq	_FACE_GAP@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%edx, (%rax)
	jne	LBB0_7
LBB0_40:
	xorl	%eax, %eax
	callq	_AAS_AllocTmpArea
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %r12
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rax)
	movq	16(%rdx), %rax
	movq	%rax, 16(%r12)
	movq	$0, 40(%r12)
	movq	40(%rdx), %r13
	testq	%r13, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_50
LBB0_41:
	movq	40(%r15), %r13
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_AAS_RemoveFaceFromArea
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_AAS_AddFaceSideToArea
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_54
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	%r13, %r14
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	xorl	%ebx, %ebx
	cmpq	%r15, %rax
	setne	%bl
	movq	(%rcx,%rbx,8), %r13
	cmpq	%rdx, %rax
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_43 Depth=1
	cmpq	%r15, 8(%r14)
	je	LBB0_43
LBB0_46:                                ##   in Loop: Header=BB0_43 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_42
## %bb.47:                              ##   in Loop: Header=BB0_43 Depth=1
	cmpq	%rdx, 8(%r14)
	jne	LBB0_42
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_50 Depth=1
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_AAS_RemoveFaceFromArea
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_AAS_AddFaceSideToArea
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_49:                                ##   in Loop: Header=BB0_50 Depth=1
	testq	%r13, %r13
	je	LBB0_41
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	xorl	%r14d, %r14d
	cmpq	%rdx, %rax
	setne	%r14b
	movq	(%rcx,%r14,8), %r13
	jne	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=1
	cmpq	%r15, 8(%rbx)
	je	LBB0_49
LBB0_52:                                ##   in Loop: Header=BB0_50 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_48
## %bb.53:                              ##   in Loop: Header=BB0_50 Depth=1
	cmpq	%rdx, 8(%rbx)
	jne	LBB0_48
	jmp	LBB0_49
LBB0_54:
	movq	40(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	%rdx, %rsi
	setne	%cl
	movq	(%rax,%rcx,8), %r14
	movq	%rbx, %rdi
	callq	_AAS_RemoveFaceFromArea
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_AAS_RemoveFaceFromArea
	movq	%rbx, %rdi
	callq	_AAS_FreeTmpFace
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rbx
	testq	%r14, %r14
	jne	LBB0_55
LBB0_56:
	movq	%r12, 32(%rdx)
	movl	$1, 24(%rdx)
	movq	%r12, 32(%r15)
	movl	$1, 24(%r15)
	movq	%r12, %rdi
	callq	_AAS_CheckArea
	movq	%r12, %rdi
	callq	_AAS_FlipAreaFaces
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"face does not belong to area1"

	.comm	_FACE_GAP,4,2                   ## @FACE_GAP
L_.str.1:                               ## @.str.1
	.asciz	"face does not belong to area2"

	.comm	_FACE_GROUND,4,2                ## @FACE_GROUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_TryMergeFaceAreas          ; -- Begin function AAS_TryMergeFaceAreas
	.p2align	2
_AAS_TryMergeFaceAreas:                 ; @AAS_TryMergeFaceAreas
	.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
	ldp	x19, x20, [x0, #8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.3:
	ldr	x21, [x20, #40]
	cbz	x21, LBB0_27
; %bb.4:
	mov	w22, #0
	mov	w27, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x23, [sp]                       ; 8-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, x20
	cset	w8, ne
	ldr	x9, [x21, #24]
	ldr	x21, [x9, w8, uxtw #3]
	cbz	x21, LBB0_28
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x23, [x21, #16]
	mov	x8, x20
	cmp	x23, x20
	cset	w24, ne
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x21, #16]
	cmp	x8, x20
	b.ne	LBB0_12
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x23
	cmp	x8, x20
	b.ne	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21, #8]
	cmp	x9, x19
	b.eq	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x19
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.eq	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21]
	orr	w22, w8, w22
	mov	x0, x21
	mov	x1, x24
	bl	_AAS_GapFace
Lloh2:
	adrp	x8, _FACE_GAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FACE_GAP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w22, w8
	ldr	x25, [x19, #40]
	cbz	x25, LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x23, [sp]                       ; 8-byte Folded Spill
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	cmp	x28, x19
	cset	w8, ne
	ldr	x9, [x25, #24]
	ldr	x25, [x9, w8, uxtw #3]
	cbz	x25, LBB0_5
LBB0_17:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x28, [x25, #16]
	mov	x8, x19
	cmp	x28, x19
	cset	w26, ne
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x25, #8]
	cmp	x8, x19
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
	ldr	x8, [x25, #16]
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=2
	cmp	x8, x20
	b.ne	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x9, [x25, #8]
	cmp	x9, x19
	b.ne	LBB0_23
	b	LBB0_16
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	x8, x28
	cmp	x8, x20
	b.eq	LBB0_21
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=2
	cmp	x8, x19
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x25, #8]
	cmp	x8, x20
	b.eq	LBB0_16
LBB0_25:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w22, [x25]
	mov	x0, x25
	mov	x1, x26
	bl	_AAS_GapFace
Lloh7:
	adrp	x8, _FACE_GAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FACE_GAP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w23, wzr, w8, eq
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	bl	_NonConvex
	cbnz	x0, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_17 Depth=2
	orr	w8, w22, w27
	orr	w27, w8, w23
	b	LBB0_16
LBB0_27:
	mov	w27, #0
	mov	w22, #0
LBB0_28:
Lloh10:
	adrp	x8, _FACE_GROUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FACE_GROUND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_30
; %bb.29:
Lloh13:
	adrp	x9, _FACE_GAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FACE_GAP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w27
	b.ne	LBB0_32
LBB0_30:
	tst	w8, w27
	b.eq	LBB0_34
; %bb.31:
Lloh16:
	adrp	x8, _FACE_GAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FACE_GAP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_34
LBB0_32:
	mov	w22, #0
LBB0_33:
	mov	x0, x22
	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
LBB0_34:
	bl	_AAS_AllocTmpArea
	mov	x21, x0
	ldr	q0, [x20]
	str	q0, [x0]
	ldr	x8, [x20, #16]
	str	x8, [x0, #16]
	str	xzr, [x0, #40]
	ldr	x24, [x20, #40]
	cbnz	x24, LBB0_41
LBB0_35:
	ldr	x24, [x19, #40]
	cbnz	x24, LBB0_47
LBB0_36:
	ldr	x22, [x20, #40]
	cbz	x22, LBB0_38
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldp	x1, x8, [x22, #16]
	cmp	x1, x20
	cset	w9, ne
	ldr	x23, [x8, w9, uxtw #3]
	mov	x0, x22
	bl	_AAS_RemoveFaceFromArea
	ldr	x1, [x22, #8]
	mov	x0, x22
	bl	_AAS_RemoveFaceFromArea
	mov	x0, x22
	bl	_AAS_FreeTmpFace
	mov	x22, x23
	cbnz	x23, LBB0_37
LBB0_38:
	str	x21, [x20, #32]
	mov	w22, #1
	str	w22, [x20, #24]
	str	x21, [x19, #32]
	str	w22, [x19, #24]
	mov	x0, x21
	bl	_AAS_CheckArea
	mov	x0, x21
	bl	_AAS_FlipAreaFaces
	b	LBB0_33
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_AAS_RemoveFaceFromArea
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_AAS_AddFaceSideToArea
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	cbz	x24, LBB0_35
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x24
	ldp	x8, x9, [x24, #16]
	cmp	x8, x20
	cset	w23, ne
	ldr	x24, [x9, w23, uxtw #3]
	b.ne	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x9, [x22, #8]
	cmp	x9, x19
	b.eq	LBB0_40
LBB0_43:                                ;   in Loop: Header=BB0_41 Depth=1
	cmp	x8, x19
	b.ne	LBB0_39
; %bb.44:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x8, [x22, #8]
	cmp	x8, x20
	b.ne	LBB0_39
	b	LBB0_40
LBB0_45:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_AAS_RemoveFaceFromArea
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_AAS_AddFaceSideToArea
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	cbz	x24, LBB0_36
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x24
	ldp	x8, x9, [x24, #16]
	cmp	x8, x19
	cset	w23, ne
	ldr	x24, [x9, w23, uxtw #3]
	cmp	x8, x20
	b.ne	LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x9, [x22, #8]
	cmp	x9, x19
	b.eq	LBB0_46
LBB0_49:                                ;   in Loop: Header=BB0_47 Depth=1
	cmp	x8, x19
	b.ne	LBB0_45
; %bb.50:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x22, #8]
	cmp	x8, x20
	b.ne	LBB0_45
	b	LBB0_46
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"face does not belong to area1"

	.comm	_FACE_GAP,4,2                   ; @FACE_GAP
l_.str.1:                               ; @.str.1
	.asciz	"face does not belong to area2"

	.comm	_FACE_GROUND,4,2                ; @FACE_GROUND
.subsections_via_symbols
