	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FlipSharedFaces            ## -- Begin function AAS_FlipSharedFaces
	.p2align	4, 0x90
_AAS_FlipSharedFaces:                   ## @AAS_FlipSharedFaces
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_tmpaasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_19
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_qprintf
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	cmpq	$0, 8(%r12)
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	cmpq	%r12, %r14
	setne	%al
	movq	16(%r13), %rcx
	movq	(%rcx,%rax,8), %r13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	testq	%r13, %r13
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r13), %r14
	testq	%r14, %r14
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, 8(%r13)
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	cmpq	%r12, %r14
	setne	%al
	movq	16(%r13), %rcx
	movq	(%rcx,%rax,8), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=3
	xorl	%ecx, %ecx
	cmpq	%r12, %rax
	setne	%cl
	movq	16(%rbx), %rax
	movq	(%rax,%rcx,8), %rbx
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpq	%rcx, (%r13)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpq	%rax, 8(%r13)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	%rbx, %rdi
	callq	_AAS_FlipFace
	movq	(%rbx), %rax
	jmp	LBB0_15
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%6d areas checked for shared face flipping"

	.comm	_tmpaasworld,8,3                ## @tmpaasworld
L_.str.1:                               ## @.str.1
	.asciz	"\r%6d"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	"%6d areas checked for shared face flipping\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FlipSharedFaces            ; -- Begin function AAS_FlipSharedFaces
	.p2align	2
_AAS_FlipSharedFaces:                   ; @AAS_FlipSharedFaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	xzr, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
Lloh2:
	adrp	x8, _tmpaasworld@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tmpaasworld@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	cbz	x22, LBB0_17
; %bb.1:
	mov	w19, #0
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	str	x19, [sp]
	mov	x0, x20
	bl	_qprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x22]
	cbnz	x23, LBB0_7
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	x24, x22
	cset	w8, ne
	ldr	x9, [x23, #16]
	ldr	x23, [x9, w8, uxtw #3]
	cbz	x23, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x24, [x23]
	cbz	x24, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x24, x22
	cset	w8, ne
	ldr	x9, [x23, #16]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	cmp	x8, x22
	cset	w8, ne
	ldr	x9, [x21, #16]
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x21, [x9, w8, uxtw #3]
	cbz	x21, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x10, [x23]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x9, [x23, #8]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x0, x21
	bl	_AAS_FlipFace
	ldr	x8, [x21]
	b	LBB0_10
LBB0_17:
	mov	w19, #0
LBB0_18:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_qprintf
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_Log_Write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%6d areas checked for shared face flipping"

	.comm	_tmpaasworld,8,3                ; @tmpaasworld
l_.str.1:                               ; @.str.1
	.asciz	"\r%6d"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	"%6d areas checked for shared face flipping\r\n"

.subsections_via_symbols
