	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_frame
_parse_frame:                           ## @parse_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movq	(%rdi), %rax
	leaq	-88(%rbp), %rsi
	callq	*16(%rax)
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, -88(%rbp)
	jle	LBB0_14
## %bb.2:
	leaq	-96(%rbp), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	callq	*8(%rax)
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	_TID_D3DRMMesh@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$24, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	leaq	20(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_add_tail
	movl	-44(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	_PROVIDE_ADJACENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	andl	%esi, %eax
	leaq	12(%rbx), %rcx
	testl	%eax, %eax
	movl	$0, %edx
	cmoveq	%rdx, %rcx
	movq	-56(%rbp), %rdi
	movq	_PROVIDE_MATERIALS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	leaq	8(%rbx), %r8
	testl	%eax, %eax
	cmoveq	%rdx, %r8
	movq	%rbx, %rax
	addq	$4, %rax
	subq	$8, %rsp
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_D3DXLoadSkinMeshFromXof
	addq	$32, %rsp
	movl	%eax, %r12d
	movq	%r13, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	_TID_D3DRMFrameTransformMatrix@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	leaq	-92(%rbp), %r13
	movq	%r13, %rsi
	callq	_parse_transform_matrix
	movl	%eax, %r12d
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	movq	%r13, %rdx
	callq	_D3DXMatrixMultiply
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	_TID_D3DRMFrame@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	-44(%rbp), %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	callq	_parse_frame
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_IUnknown_Release
	incq	%r15
	cmpq	-88(%rbp), %r15
	jl	LBB0_3
LBB0_14:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_17
LBB0_15:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	_IUnknown_Release
LBB0_17:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TID_D3DRMMesh,4,2              ## @TID_D3DRMMesh
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_PROVIDE_ADJACENCY,4,2          ## @PROVIDE_ADJACENCY
	.comm	_PROVIDE_MATERIALS,4,2          ## @PROVIDE_MATERIALS
	.comm	_TID_D3DRMFrameTransformMatrix,4,2 ## @TID_D3DRMFrameTransformMatrix
	.comm	_TID_D3DRMFrame,4,2             ## @TID_D3DRMFrame
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_parse_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_frame
_parse_frame:                           ; @parse_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w8, [x3]
	str	w8, [sp, #44]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	add	x1, sp, #16
	blr	x8
	mov	x28, x0
	bl	_FAILED
	cbnz	x0, LBB0_18
; %bb.1:
	ldr	x8, [sp, #16]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _TID_D3DRMMesh@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TID_D3DRMMesh@GOTPAGEOFF]
Lloh2:
	adrp	x27, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x27, [x27, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PROVIDE_MATERIALS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PROVIDE_MATERIALS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x2, sp, #32
	mov	x0, x23
	mov	x1, x24
	blr	x8
	mov	x28, x0
	bl	_FAILED
	cbnz	x0, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #28
	blr	x8
	mov	x28, x0
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #28
	mov	x1, x25
	bl	_IsEqualGUID
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_GetProcessHeap
	ldr	w1, [x27]
	mov	w2, #24
	bl	_HeapAlloc
	cbz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	add	x1, x0, #20
	mov	x0, x20
	bl	_list_add_tail
	ldr	w8, [sp, #44]
	str	w8, [x28, #16]
	ldr	x0, [sp, #32]
Lloh6:
	adrp	x8, _PROVIDE_ADJACENCY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROVIDE_ADJACENCY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x9, x28, #12
	tst	w8, w19
	csel	x3, xzr, x9, eq
	ldr	w8, [x26]
	add	x9, x28, #8
	tst	w8, w19
	csel	x4, xzr, x9, eq
	add	x6, x28, #4
	str	x28, [sp]
	mov	x1, x22
	mov	x2, x21
	mov	x5, #0
	mov	x7, #0
	bl	_D3DXLoadSkinMeshFromXof
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #28
Lloh9:
	adrp	x1, _TID_D3DRMFrameTransformMatrix@GOTPAGE
Lloh10:
	ldr	x1, [x1, _TID_D3DRMFrameTransformMatrix@GOTPAGEOFF]
	bl	_IsEqualGUID
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	add	x1, sp, #12
	bl	_parse_transform_matrix
	mov	x28, x0
	add	x0, sp, #44
	add	x1, sp, #44
	add	x2, sp, #12
	bl	_D3DXMatrixMultiply
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	bl	_IUnknown_Release
	add	x24, x24, #1
	ldr	x8, [sp, #16]
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #28
Lloh11:
	adrp	x1, _TID_D3DRMFrame@GOTPAGE
Lloh12:
	ldr	x1, [x1, _TID_D3DRMFrame@GOTPAGEOFF]
	bl	_IsEqualGUID
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	add	x3, sp, #44
	mov	x1, x22
	mov	x2, x21
	mov	x4, x20
	mov	x5, x19
	bl	_parse_frame
	b	LBB0_8
LBB0_15:
Lloh13:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh15:
	ldr	w28, [x8]
	b	LBB0_18
LBB0_16:
Lloh16:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh18:
	ldr	w28, [x8]
LBB0_17:
	ldr	x0, [sp, #32]
	bl	_IUnknown_Release
LBB0_18:
	mov	x0, x28
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TID_D3DRMMesh,4,2              ; @TID_D3DRMMesh
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_PROVIDE_ADJACENCY,4,2          ; @PROVIDE_ADJACENCY
	.comm	_PROVIDE_MATERIALS,4,2          ; @PROVIDE_MATERIALS
	.comm	_TID_D3DRMFrameTransformMatrix,4,2 ; @TID_D3DRMFrameTransformMatrix
	.comm	_TID_D3DRMFrame,4,2             ; @TID_D3DRMFrame
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_parse_frame
.subsections_via_symbols
