	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddFaceSideToArea          ## -- Begin function AAS_AddFaceSideToArea
	.p2align	4, 0x90
_AAS_AddFaceSideToArea:                 ## @AAS_AddFaceSideToArea
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	leaq	24(%rbx), %r12
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	16(%rbx), %r12
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_Error
LBB0_6:
	movq	%r14, (%r12)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	xorl	%ecx, %ecx
	cmpq	%r14, 16(%rax)
	movq	(%rax), %rax
	setne	%cl
	movq	%rbx, (%rax,%rcx,8)
	movq	(%r14), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	8(%rbx), %rcx
	movslq	%r15d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movq	$0, (%rax,%rdx,8)
	movq	%rbx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_AddFaceSideToArea: already a back area\n"

L_.str.1:                               ## @.str.1
	.asciz	"AAS_AddFaceSideToArea: already a front area\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddFaceSideToArea          ; -- Begin function AAS_AddFaceSideToArea
	.p2align	2
_AAS_AddFaceSideToArea:                 ; @AAS_AddFaceSideToArea
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x22, x0
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x22, #24]!
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	x8, [x22, #16]!
	cbz	x8, LBB0_6
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_Error
LBB0_6:
	str	x19, [x22]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x8, #16]
	cmp	x9, x19
	cset	w9, ne
	ldr	x8, [x8]
	str	x20, [x8, w9, uxtw #3]
	ldr	x8, [x19]
LBB0_8:
	ldr	x9, [x20, #8]
	sbfiz	x10, x21, #3, #32
	str	x8, [x9, x10]
	ldr	x8, [x20]
	str	xzr, [x8, x10]
	str	x20, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_AddFaceSideToArea: already a back area\n"

l_.str.1:                               ; @.str.1
	.asciz	"AAS_AddFaceSideToArea: already a front area\n"

.subsections_via_symbols
