	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseFaceL1                    ## -- Begin function ParseFaceL1
	.p2align	4, 0x90
_ParseFaceL1:                           ## @ParseFaceL1
	.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
	movq	%rdi, %rbx
	movq	_trisfound@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_2:
	movl	$1, (%r14)
	movq	_bytesread@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_4:
	leaq	-42(%rbp), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	addl	$2, (%r13)
	movzwl	-42(%rbp), %eax
	movq	_numtris@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MAXTRIANGLES@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_Error
	movq	_numtris@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.7:
	xorl	%r12d, %r12d
	leaq	-42(%rbp), %r14
	movq	_tris@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	addl	$2, (%r13)
	movzwl	-42(%rbp), %eax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, 12(%rcx)
	incq	%r12
	movq	_numtris@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	addl	$2, (%r13)
	movzwl	-42(%rbp), %eax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	addl	$2, (%r13)
	movzwl	-42(%rbp), %eax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	addl	$2, (%r13)
	movzwl	-42(%rbp), %eax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
	jmp	LBB0_16
LBB0_17:
	movq	_vertsfound@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.18:
	movq	_trisfound@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_StoreAliasTriangles
LBB0_20:
	movl	(%r13), %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trisfound,4,2                  ## @trisfound
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Multiple face chunks"

	.comm	_bytesread,4,2                  ## @bytesread
L_.str.1:                               ## @.str.1
	.asciz	"Error: unexpected end of file"

	.comm	_numtris,4,2                    ## @numtris
	.comm	_MAXTRIANGLES,4,2               ## @MAXTRIANGLES
L_.str.2:                               ## @.str.2
	.asciz	"Error: Too many triangles"

	.comm	_tris,8,3                       ## @tris
	.comm	_vertsfound,8,3                 ## @vertsfound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseFaceL1                    ; -- Begin function ParseFaceL1
	.p2align	2
_ParseFaceL1:                           ; @ParseFaceL1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _trisfound@GOTPAGE
Lloh1:
	ldr	x21, [x21, _trisfound@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
	mov	w8, #1
	str	w8, [x21]
Lloh4:
	adrp	x22, _bytesread@GOTPAGE
Lloh5:
	ldr	x22, [x22, _bytesread@GOTPAGEOFF]
	ldr	w23, [x22]
	mov	x0, x19
	bl	_feof
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_4:
	add	x0, sp, #14
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
Lloh8:
	adrp	x24, _numtris@GOTPAGE
Lloh9:
	ldr	x24, [x24, _numtris@GOTPAGEOFF]
	ldrh	w8, [sp, #14]
	str	w8, [x24]
Lloh10:
	adrp	x9, _MAXTRIANGLES@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAXTRIANGLES@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Error
	ldr	w8, [x24]
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.7:
	mov	x25, #0
Lloh15:
	adrp	x26, _tris@GOTPAGE
Lloh16:
	ldr	x26, [x26, _tris@GOTPAGEOFF]
Lloh17:
	adrp	x20, l_.str.1@PAGE
Lloh18:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #14
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
	ldrh	w8, [sp, #14]
	ldr	x9, [x26]
	ldr	x9, [x9, x25, lsl #3]
	str	w8, [x9, #12]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_feof
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_Error
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #14
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
	ldrh	w8, [sp, #14]
	ldr	x9, [x26]
	ldr	x9, [x9, x25, lsl #3]
	str	w8, [x9]
	mov	x0, x19
	bl	_feof
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_Error
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #14
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
	ldrh	w8, [sp, #14]
	ldr	x9, [x26]
	ldr	x9, [x9, x25, lsl #3]
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_feof
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_Error
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #14
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
	ldrh	w8, [sp, #14]
	ldr	x9, [x26]
	ldr	x9, [x9, x25, lsl #3]
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_feof
	cbz	x0, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_Error
	b	LBB0_8
LBB0_17:
Lloh19:
	adrp	x8, _vertsfound@GOTPAGE
Lloh20:
	ldr	x8, [x8, _vertsfound@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_19
; %bb.18:
	bl	_StoreAliasTriangles
LBB0_19:
	ldr	w8, [x22]
	sub	w0, w8, w23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_trisfound,4,2                  ; @trisfound
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Multiple face chunks"

	.comm	_bytesread,4,2                  ; @bytesread
l_.str.1:                               ; @.str.1
	.asciz	"Error: unexpected end of file"

	.comm	_numtris,4,2                    ; @numtris
	.comm	_MAXTRIANGLES,4,2               ; @MAXTRIANGLES
l_.str.2:                               ; @.str.2
	.asciz	"Error: Too many triangles"

	.comm	_tris,8,3                       ; @tris
	.comm	_vertsfound,8,3                 ; @vertsfound
.subsections_via_symbols
