	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitFaceVertexes               ## -- Begin function EmitFaceVertexes
	.p2align	4, 0x90
_EmitFaceVertexes:                      ## @EmitFaceVertexes
	.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
	cmpq	$0, 16(%rsi)
	jne	LBB0_12
## %bb.1:
	movq	%rsi, %r12
	movq	8(%rsi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_3
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r14
	movq	(%r12), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	movq	_numvertexes@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_superverts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_dvertexes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorCopy
	incq	(%r15)
	movq	_c_uniqueverts@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_c_totalverts@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_noweld@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	_MAX_MAP_VERTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%r15), %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_GetVertexnum
	movq	_superverts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_10
LBB0_11:
	movq	_numsuperverts@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FaceFromSuperverts             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_noweld,8,3                     ## @noweld
	.comm	_numvertexes,8,3                ## @numvertexes
	.comm	_MAX_MAP_VERTS,8,3              ## @MAX_MAP_VERTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAP_VERTS"

	.comm	_superverts,8,3                 ## @superverts
	.comm	_dvertexes,8,3                  ## @dvertexes
	.comm	_c_uniqueverts,4,2              ## @c_uniqueverts
	.comm	_c_totalverts,4,2               ## @c_totalverts
	.comm	_numsuperverts,4,2              ## @numsuperverts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitFaceVertexes               ; -- Begin function EmitFaceVertexes
	.p2align	2
_EmitFaceVertexes:                      ; @EmitFaceVertexes
	.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
	ldr	x8, [x1, #16]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
LBB0_3:
	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_4:
	mov	x20, x0
	ldr	x22, [x19]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x23, #0
Lloh0:
	adrp	x24, _noweld@GOTPAGE
Lloh1:
	ldr	x24, [x24, _noweld@GOTPAGEOFF]
Lloh2:
	adrp	x25, _superverts@GOTPAGE
Lloh3:
	ldr	x25, [x25, _superverts@GOTPAGEOFF]
Lloh4:
	adrp	x26, _numvertexes@GOTPAGE
Lloh5:
	ldr	x26, [x26, _numvertexes@GOTPAGEOFF]
Lloh6:
	adrp	x28, _dvertexes@GOTPAGE
Lloh7:
	ldr	x28, [x28, _dvertexes@GOTPAGEOFF]
Lloh8:
	adrp	x21, _c_uniqueverts@GOTPAGE
Lloh9:
	ldr	x21, [x21, _c_uniqueverts@GOTPAGEOFF]
Lloh10:
	adrp	x27, _c_totalverts@GOTPAGE
Lloh11:
	ldr	x27, [x27, _c_totalverts@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x25]
	str	x8, [x9, x23, lsl #3]
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	x8, [x28]
	ldr	x9, [x26]
	ldr	w1, [x8, x9, lsl #2]
	bl	_VectorCopy
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x26]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
Lloh12:
	adrp	x9, _MAX_MAP_VERTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_MAP_VERTS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x26]
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_GetVertexnum
	ldr	x8, [x25]
	str	x0, [x8, x23, lsl #3]
	b	LBB0_7
LBB0_12:
Lloh17:
	adrp	x9, _numsuperverts@GOTPAGE
Lloh18:
	ldr	x9, [x9, _numsuperverts@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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
	b	_FaceFromSuperverts
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_noweld,8,3                     ; @noweld
	.comm	_numvertexes,8,3                ; @numvertexes
	.comm	_MAX_MAP_VERTS,8,3              ; @MAX_MAP_VERTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAP_VERTS"

	.comm	_superverts,8,3                 ; @superverts
	.comm	_dvertexes,8,3                  ; @dvertexes
	.comm	_c_uniqueverts,4,2              ; @c_uniqueverts
	.comm	_c_totalverts,4,2               ; @c_totalverts
	.comm	_numsuperverts,4,2              ; @numsuperverts
.subsections_via_symbols
