	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_skin_mesh_info
_parse_skin_mesh_info:                  ## @parse_skin_mesh_info
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_TRACE
	movq	(%r12), %rax
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	*8(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.5:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdx
	movslq	32(%rax), %r13
	addq	$48, %rax
	movq	%rax, -48(%rbp)
	movslq	-52(%rbp), %rsi
	leaq	76(,%r13,8), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WARN
	jmp	LBB0_12
LBB0_2:
	movl	-52(%rbp), %esi
	cmpl	$11, %esi
	ja	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	jmp	LBB0_12
LBB0_7:
	movq	(%rdi), %rax
	movl	%r15d, %esi
	callq	*16(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	-48(%rbp), %rcx
	movq	%r13, %r8
	shlq	$4, %r8
	addq	%rcx, %r8
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	*8(%rax)
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	shlq	$3, %r13
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	shlq	$2, %r13
	addq	-48(%rbp), %r13
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	*(%rax)
	jmp	LBB0_11
LBB0_4:
	movq	-48(%rbp), %rax
	leaq	32(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movl	32(%rax), %edx
	movl	%edx, 8(%r14)
	movl	12(%r14), %esi
	movl	16(%r14), %edi
	movq	%r14, %rcx
	callq	_D3DXCreateSkinInfoFVF
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p, %p, %u)\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"truncated data (%ld bytes)\n"

	.no_dead_strip	_parse_skin_mesh_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_skin_mesh_info
_parse_skin_mesh_info:                  ; @parse_skin_mesh_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_TRACE
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, sp, #12
	mov	x2, sp
	mov	x0, x19
	blr	x8
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_13
; %bb.1:
Lloh2:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [sp]
	ldr	x2, [x8]
	ldrsw	x23, [x8, #32]
	add	x8, x8, #48
	str	x8, [sp]
	ldrsw	x1, [sp, #12]
	lsl	x24, x23, #3
	add	x8, x24, #76
	cmp	x8, x1
	b.ls	LBB0_6
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WARN
	b	LBB0_12
LBB0_4:
	ldr	w1, [sp, #12]
	cmp	w1, #11
	b.hi	LBB0_10
; %bb.5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	b	LBB0_12
LBB0_6:
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	mov	x1, x21
	blr	x8
	mov	x22, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x3, [sp]
	add	x4, x3, x23, lsl #4
	mov	x1, x21
	mov	x2, x23
	blr	x8
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [sp]
	add	x2, x9, x24, lsl #2
	mov	x1, x21
	blr	x8
	b	LBB0_11
LBB0_10:
	ldr	x8, [sp]
	ldr	w2, [x8, #32]!
	str	x8, [sp]
	str	w2, [x20, #8]
	ldp	w1, w0, [x20, #12]
	mov	x3, x20
	bl	_D3DXCreateSkinInfoFVF
LBB0_11:
	mov	x22, x0
LBB0_12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p, %p, %u)\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"truncated data (%ld bytes)\n"

	.no_dead_strip	_parse_skin_mesh_info
.subsections_via_symbols
