	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StoreAliasTriangles            ## -- Begin function StoreAliasTriangles
	.p2align	4, 0x90
_StoreAliasTriangles:                   ## @StoreAliasTriangles
	.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	_totaltris@GOTPCREL(%rip), %r15
	movq	_numtris@GOTPCREL(%rip), %r14
	movq	(%r14), %r9
	movq	(%r15), %rcx
	addq	%r9, %rcx
	movq	_MAXTRIANGLES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%r14), %r9
LBB0_2:
	testq	%r9, %r9
	jle	LBB0_3
## %bb.4:
	movq	_fverts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	_tris@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_ptri@GOTPCREL(%rip), %rbx
	movq	(%r15), %r8
	leaq	(,%r8,8), %r11
	addq	(%rbx), %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rbx,8), %rcx
	movq	(%rcx), %rax
	movq	(%r11,%rbx,8), %rsi
	movq	(%r12,%rax,8), %rax
	movq	(%rsi), %rdi
	movl	(%rax), %edx
	movl	%edx, (%rdi)
	movl	4(%rax), %edx
	movl	%edx, 4(%rdi)
	movl	8(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	8(%rcx), %rax
	movq	(%r12,%rax,8), %rax
	movq	8(%rsi), %rdx
	movl	(%rax), %edi
	movl	%edi, (%rdx)
	movl	4(%rax), %edi
	movl	%edi, 4(%rdx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rdx)
	movq	16(%rcx), %rax
	movq	(%r12,%rax,8), %rax
	movq	16(%rsi), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rcx)
	incq	%rbx
	cmpq	%rbx, %r9
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %r8
LBB0_6:
	addq	%r9, %r8
	movq	%r8, (%r15)
	movq	$0, (%r14)
	movq	_vertsfound@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_trisfound@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_totaltris,8,3                  ## @totaltris
	.comm	_numtris,8,3                    ## @numtris
	.comm	_MAXTRIANGLES,8,3               ## @MAXTRIANGLES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Too many triangles"

	.comm	_fverts,8,3                     ## @fverts
	.comm	_tris,8,3                       ## @tris
	.comm	_ptri,8,3                       ## @ptri
	.comm	_vertsfound,8,3                 ## @vertsfound
	.comm	_trisfound,8,3                  ## @trisfound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StoreAliasTriangles            ; -- Begin function StoreAliasTriangles
	.p2align	2
_StoreAliasTriangles:                   ; @StoreAliasTriangles
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _totaltris@GOTPAGE
Lloh1:
	ldr	x19, [x19, _totaltris@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	adrp	x20, _numtris@GOTPAGE
Lloh3:
	ldr	x20, [x20, _numtris@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x10, _MAXTRIANGLES@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MAXTRIANGLES@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	add	x9, x8, x9
	cmp	x9, x10
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x20]
LBB0_2:
	cmp	x8, #0
	b.le	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _fverts@GOTPAGE
Lloh10:
	ldr	x9, [x9, _fverts@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x9]
Lloh12:
	adrp	x9, _tris@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tris@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x9]
Lloh15:
	adrp	x9, _ptri@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ptri@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x9]
	ldr	x9, [x19]
	add	x12, x12, x9, lsl #3
	mov	x13, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11], #8
	ldp	x15, x17, [x14]
	ldr	x16, [x12], #8
	ldr	x15, [x10, x15, lsl #3]
	ldr	w0, [x15]
	ldp	x1, x2, [x16]
	str	w0, [x1]
	ldr	w0, [x15, #4]
	str	w0, [x1, #4]
	ldr	x17, [x10, x17, lsl #3]
	ldr	w15, [x15, #8]
	str	w15, [x1, #8]
	ldr	w15, [x17]
	str	w15, [x2]
	ldr	w15, [x17, #4]
	str	w15, [x2, #4]
	ldr	w15, [x17, #8]
	str	w15, [x2, #8]
	ldr	x14, [x14, #16]
	ldr	x14, [x10, x14, lsl #3]
	ldr	x15, [x16, #16]
	ldr	w16, [x14]
	str	w16, [x15]
	ldr	w16, [x14, #4]
	str	w16, [x15, #4]
	ldr	w14, [x14, #8]
	str	w14, [x15, #8]
	subs	x13, x13, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	ldr	x9, [x19]
LBB0_6:
	add	x8, x9, x8
	str	x8, [x19]
	str	xzr, [x20]
Lloh18:
	adrp	x8, _vertsfound@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vertsfound@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _trisfound@GOTPAGE
Lloh22:
	ldr	x8, [x8, _trisfound@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_totaltris,8,3                  ; @totaltris
	.comm	_numtris,8,3                    ; @numtris
	.comm	_MAXTRIANGLES,8,3               ; @MAXTRIANGLES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Too many triangles"

	.comm	_fverts,8,3                     ; @fverts
	.comm	_tris,8,3                       ; @tris
	.comm	_ptri,8,3                       ; @ptri
	.comm	_vertsfound,8,3                 ; @vertsfound
	.comm	_trisfound,8,3                  ; @trisfound
.subsections_via_symbols
