	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ShowFacePolygon            ## -- Begin function AAS_ShowFacePolygon
	.p2align	4, 0x90
_AAS_ShowFacePolygon:                   ## @AAS_ShowFacePolygon
	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_aasworld@GOTPCREL(%rip), %r13
	cmpl	%edi, (%r13)
	jg	LBB0_2
## %bb.1:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	*(%rax)
LBB0_2:
	movq	32(%r13), %rax
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,8), %r12d
	testl	%r14d, %r14d
	movq	%rcx, -584(%rbp)                ## 8-byte Spill
	je	LBB0_7
## %bb.3:
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.4:
	movl	%r15d, -572(%rbp)               ## 4-byte Spill
	movslq	%r12d, %r13
	decq	%r13
	xorl	%r14d, %r14d
	movq	%r12, -592(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movslq	4(%rax,%rcx,8), %rax
	addq	%r13, %rax
	movq	_aasworld@GOTPCREL(%rip), %r12
	movq	8(%r12), %rcx
	movq	24(%r12), %r15
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_abs
	movq	16(%r12), %rcx
	movq	-592(%rbp), %r12                ## 8-byte Reload
	movq	(%r15,%rax,8), %rax
	shrq	$28, %rbx
	andl	$8, %ebx
	movq	(%rax,%rbx), %rax
	movl	(%rcx,%rax,4), %edi
	movl	-560(%rbp,%r14,4), %esi
	callq	_VectorCopy
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	incq	%r14
	decq	%r13
	cmpq	%r14, %r12
	jne	LBB0_5
## %bb.6:
	movl	-572(%rbp), %r15d               ## 4-byte Reload
	jmp	LBB0_12
LBB0_7:
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax,%rcx,8), %eax
	addl	%r12d, %eax
	cltq
	movq	8(%r13), %rcx
	movq	24(%r13), %r14
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_abs
	movq	16(%r13), %rcx
	movq	(%r14,%rax,8), %rax
	shrq	$28, %rbx
	andl	$8, %ebx
	movq	(%rax,%rbx), %rax
	movl	(%rcx,%rax,4), %edi
	movl	-560(%rbp,%r12,4), %esi
	callq	_VectorCopy
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	incq	%r12
	movq	-568(%rbp), %rax                ## 8-byte Reload
	cmpl	%r12d, (%rax,%rcx,8)
	jg	LBB0_9
	jmp	LBB0_12
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	leaq	-560(%rbp), %rdx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_AAS_ShowPolygon
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,40,3                  ## @aasworld
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"facenum %d out of range\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ShowFacePolygon            ; -- Begin function AAS_ShowFacePolygon
	.p2align	2
_AAS_ShowFacePolygon:                   ; @AAS_ShowFacePolygon
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #528
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _aasworld@GOTPAGE
Lloh4:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w0
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _botimport@GOTPAGE
Lloh6:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	blr	x8
LBB0_2:
	ldr	x8, [x22, #32]
	sxtw	x9, w20
	add	x23, x8, w20, sxtw #3
	ldr	w20, [x23]
	cbz	w21, LBB0_6
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x10, x20
	add	x8, x8, x9, lsl #3
	sxtw	x9, w10
	add	x23, x8, #4
	sub	x24, x9, #1
	add	x25, sp, #8
	mov	x26, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x9, [x23]
	add	x9, x24, x9
	ldr	w21, [x8, x9, lsl #2]
	ldr	x27, [x22, #24]
	mov	x0, x21
	bl	_abs
	ldr	x8, [x22, #16]
	ldr	x9, [x27, x0, lsl #3]
	lsr	x10, x21, #28
	and	x10, x10, #0x8
	ldr	x9, [x9, x10]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x25], #4
	bl	_VectorCopy
	sub	x24, x24, #1
	sub	x26, x26, #1
	cbnz	x26, LBB0_5
	b	LBB0_11
LBB0_6:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x21, #0
	add	x8, x8, x9, lsl #3
	add	x24, x8, #4
	add	x25, sp, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w9, [x24]
	add	w9, w21, w9
	ldr	w20, [x8, w9, sxtw #2]
	ldr	x26, [x22, #24]
	mov	x0, x20
	bl	_abs
	ldr	x8, [x22, #16]
	ldr	x9, [x26, x0, lsl #3]
	lsr	x10, x20, #28
	and	x10, x10, #0x8
	ldr	x9, [x9, x10]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x25, x21, lsl #2]
	bl	_VectorCopy
	add	x21, x21, #1
	ldr	w8, [x23]
	cmp	w8, w21
	b.gt	LBB0_8
; %bb.9:
	mov	x20, x21
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_AAS_ShowPolygon
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"facenum %d out of range\n"

.subsections_via_symbols
