	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_normals
_parse_normals:                         ## @parse_normals
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	(%rsi), %r12
	movslq	4(%rsi), %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	32(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movl	$0, 8(%r14)
	movq	$0, 32(%r14)
	movq	$0, 16(%r14)
	movq	_D3DFVF_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	(%rbx), %rax
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_27
## %bb.1:
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movslq	-52(%rbp), %rsi
	cmpq	$7, %rsi
	jbe	LBB0_2
## %bb.3:
	leaq	(,%r12,2), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rax
	movslq	(%rax), %rcx
	movl	%ecx, 8(%r14)
	addq	$16, %rax
	movq	%rax, -48(%rbp)
	shlq	$2, %rcx
	leaq	(%rcx,%r12,4), %rax
	addq	$8, %rax
	cmpq	%rsi, %rax
	jbe	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WARN
LBB0_26:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_27:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	shlq	$2, %r12
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	8(%r14), %edx
	shll	$2, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 32(%r14)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_HeapAlloc
	movq	%rax, 16(%r14)
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rsi
	movl	8(%r14), %edx
	shll	$2, %edx
	callq	_memcpy
	movslq	8(%r14), %rax
	movq	%rax, %rdi
	shlq	$4, %rdi
	addq	-48(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	testq	%rax, %rax
	jle	LBB0_11
## %bb.8:
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%r12, %rdi
	movq	%rdi, %rsi
	callq	_D3DXVec3Normalize
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rdi
	movq	%r13, %rbx
LBB0_11:
	movl	(%rdi), %eax
	movl	(%r14), %edx
	cmpl	%edx, %eax
	jne	LBB0_12
## %bb.13:
	addq	$16, %rdi
	movq	%rdi, -48(%rbp)
	testl	%eax, %eax
	jle	LBB0_24
## %bb.14:
	movq	16(%r14), %r9
	movq	24(%r14), %r10
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_6:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %r15d
	jmp	LBB0_26
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_24
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	(%rdi), %edx
	movl	(%r10,%rsi,4), %ecx
	addl	$2, %ecx
	cmpl	%ecx, %edx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$16, %rdi
	movq	%rdi, -48(%rbp)
	testl	%edx, %edx
	jle	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %ecx
	movl	8(%r14), %r8d
	cmpl	%r8d, %ecx
	jge	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%ecx, (%r9)
	addq	$4, %r9
	addq	$16, %rdi
	movq	%rdi, -48(%rbp)
	incl	%eax
	cmpl	%eax, %edx
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_23
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_26
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_26
LBB0_24:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DFVF_NORMAL,4,2              ## @D3DFVF_NORMAL
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncated data (%ld bytes)\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
L_.str.1:                               ## @.str.1
	.asciz	"number of face normals (%u) doesn't match number of faces (%u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"face %u: number of normals (%u) doesn't match number of vertices (%u)\n"

L_.str.3:                               ## @.str.3
	.asciz	"face %u, normal index %u: reference to undefined normal %u (only %u normals)\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_parse_normals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_normals
_parse_normals:                         ; @parse_normals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	ldp	w22, w23, [x1]
	bl	_GetProcessHeap
	ldr	x2, [x21, #32]
	mov	w1, #0
	bl	_HeapFree
	str	wzr, [x21, #8]
	str	xzr, [x21, #32]
	str	xzr, [x21, #16]
Lloh0:
	adrp	x8, _D3DFVF_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DFVF_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21, #40]
	orr	w8, w9, w8
	str	w8, [x21, #40]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, sp, #44
	add	x2, sp, #32
	mov	x0, x19
	blr	x8
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldrsw	x1, [sp, #44]
	cmp	w1, #7
	b.ls	LBB0_3
; %bb.2:
	add	w8, w23, w22, lsl #1
	ldr	x9, [sp, #32]
	ldrsw	x10, [x9], #16
	str	w10, [x21, #8]
	str	x9, [sp, #32]
	sbfiz	x22, x8, #2, #32
	add	x8, x22, x10, lsl #2
	add	x8, x8, #8
	cmp	x8, x1
	b.ls	LBB0_8
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_5:
	bl	_WARN
LBB0_6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	_GetProcessHeap
	ldr	w8, [x21, #8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x21, #32]
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapAlloc
	mov	x8, x0
	str	x0, [x21, #16]
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_17
; %bb.9:
	cbz	x8, LBB0_17
; %bb.10:
	ldr	x1, [sp, #32]
	ldr	w8, [x21, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldrsw	x8, [x21, #8]
	ldr	x9, [sp, #32]
	add	x9, x9, x8, lsl #4
	str	x9, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x22, #0
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	add	x0, x8, x22
	mov	x1, x0
	bl	_D3DXVec3Normalize
	add	x23, x23, #1
	ldrsw	x8, [x21, #8]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_12
; %bb.13:
	ldr	x9, [sp, #32]
LBB0_14:
	ldr	w8, [x9]
	ldr	w10, [x21]
	cmp	w8, w10
	b.ne	LBB0_26
; %bb.15:
	add	x9, x9, #16
	str	x9, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.16:
	mov	x1, #0
	ldp	x10, x11, [x21, #16]
	b	LBB0_20
LBB0_17:
Lloh8:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_18:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x1, x1, #1
	cmp	x1, w8, sxtw
	b.ge	LBB0_28
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	ldr	w12, [x9]
	ldr	w13, [x11, x1, lsl #2]
	add	w13, w13, #2
	cmp	w12, w13
	b.ne	LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, #16
	str	x9, [sp, #32]
	cmp	w12, #1
	b.lt	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, #0
LBB0_23:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x9]
	ldr	w14, [x21, #8]
	cmp	w13, w14
	b.ge	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	str	w13, [x10], #4
	add	x9, x9, #16
	str	x9, [sp, #32]
	add	w8, w8, #1
	cmp	w12, w8
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x21]
	b	LBB0_19
LBB0_26:
	str	x10, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	b	LBB0_5
LBB0_27:
	stp	x13, x14, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_28:
Lloh14:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_18
LBB0_29:
	stp	x12, x13, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DFVF_NORMAL,4,2              ; @D3DFVF_NORMAL
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncated data (%ld bytes)\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
l_.str.1:                               ; @.str.1
	.asciz	"number of face normals (%u) doesn't match number of faces (%u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"face %u: number of normals (%u) doesn't match number of vertices (%u)\n"

l_.str.3:                               ; @.str.3
	.asciz	"face %u, normal index %u: reference to undefined normal %u (only %u normals)\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_parse_normals
.subsections_via_symbols
