	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_texture_coords
_parse_texture_coords:                  ## @parse_texture_coords
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r15), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 8(%r15)
	movq	(%r14), %rax
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	-36(%rbp), %rsi
	cmpq	$3, %rsi
	ja	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_10
LBB0_3:
	movq	-32(%rbp), %rcx
	movslq	(%rcx), %rax
	movl	(%r15), %edx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.5:
	addq	$16, %rcx
	movq	%rcx, -32(%rbp)
	leaq	4(,%rax,4), %rax
	cmpq	%rsi, %rax
	ja	LBB0_2
## %bb.6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%r15), %edx
	shll	$2, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-32(%rbp), %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	_D3DFVF_TEX1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_10
LBB0_7:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
LBB0_10:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncated data (%ld bytes)\n"

L_.str.1:                               ## @.str.1
	.asciz	"number of texture coordinates (%u) doesn't match number of vertices (%u)\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_D3DFVF_TEX1,4,2                ## @D3DFVF_TEX1
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_parse_texture_coords
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_texture_coords
_parse_texture_coords:                  ; @parse_texture_coords
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	bl	_GetProcessHeap
	ldr	x2, [x20, #8]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x20, #8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, sp, #28
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldrsw	x1, [sp, #28]
	cmp	w1, #3
	b.hi	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WARN
	b	LBB0_10
LBB0_3:
	ldr	x10, [sp, #16]
	ldrsw	x8, [x10]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
	add	x9, x10, #16
	str	x9, [sp, #16]
	lsl	x8, x8, #2
	add	x8, x8, #4
	cmp	x8, x1
	b.hi	LBB0_2
; %bb.5:
	bl	_GetProcessHeap
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x1, [sp, #16]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
Lloh5:
	adrp	x8, _D3DFVF_TEX1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D3DFVF_TEX1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
Lloh8:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	str	x9, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_WARN
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
LBB0_10:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncated data (%ld bytes)\n"

l_.str.1:                               ; @.str.1
	.asciz	"number of texture coordinates (%u) doesn't match number of vertices (%u)\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_D3DFVF_TEX1,4,2                ; @D3DFVF_TEX1
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_parse_texture_coords
.subsections_via_symbols
