	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function parse_material
LCPI0_0:
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_parse_material:                        ## @parse_material
	.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	$40, %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, %r15
	movq	$0, (%rsi)
	movq	(%rdi), %rax
	leaq	-68(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	*32(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	-68(%rbp), %esi
	cmpl	$44, %esi
	jne	LBB0_11
## %bb.2:
	leaq	36(%r14), %rdi
	movq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rsi
	movl	16(%rsi), %eax
	movl	%eax, 32(%r14)
	addq	$32, %rsi
	movq	%rsi, -48(%rbp)
	leaq	28(%r14), %rdi
	movl	$12, %edx
	callq	_memcpy
	movl	$1065353216, 28(%r14)           ## imm = 0x3F800000
	movq	-48(%rbp), %rsi
	addq	$48, %rsi
	movq	%rsi, -48(%rbp)
	leaq	24(%r14), %rdi
	movl	$12, %edx
	callq	_memcpy
	movl	$1065353216, 24(%r14)           ## imm = 0x3F800000
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0.0E+0,0.0E+0,0.0E+0,1.0E+0]
	movups	%xmm0, 8(%r14)
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*24(%rax)
	movq	(%r15), %rax
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	*16(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	cmpl	$0, -52(%rbp)
	jle	LBB0_14
## %bb.4:
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi
	callq	_IUnknown_Release
	incl	%r13d
	cmpl	-52(%rbp), %r13d
	jge	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-64(%rbp), %rdx
	callq	*8(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	_TID_D3DRMTextureFilename@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_parse_texture_filename
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_5
LBB0_10:
	movq	-64(%rbp), %rdi
	callq	_IUnknown_Release
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*24(%rax)
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect data size (%ld bytes)\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_TID_D3DRMTextureFilename,4,2   ## @TID_D3DRMTextureFilename
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_parse_material
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function parse_material
lCPI0_0:
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_parse_material:                        ; @parse_material
	.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	x20, x1
	mov	x19, x0
	str	xzr, [x1]
	ldr	x8, [x0]
	ldr	x8, [x8, #32]
	add	x1, sp, #44
	add	x2, sp, #32
	blr	x8
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_13
; %bb.1:
	ldr	w1, [sp, #44]
	cmp	w1, #44
	b.ne	LBB0_11
; %bb.2:
	add	x0, x20, #36
	ldr	x1, [sp, #32]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #32]
	ldr	w9, [x8, #16]
	str	w9, [x20, #32]
	add	x1, x8, #32
	str	x1, [sp, #32]
	add	x0, x20, #28
	mov	w2, #12
	bl	_memcpy
	mov	w21, #1065353216
	str	w21, [x20, #28]
	ldr	x8, [sp, #32]
	add	x1, x8, #48
	str	x1, [sp, #32]
	add	x0, x20, #24
	mov	w2, #12
	bl	_memcpy
	str	w21, [x20, #24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #8]
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_13
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	w21, #0
Lloh2:
	adrp	x22, _TID_D3DRMTextureFilename@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TID_D3DRMTextureFilename@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]
	bl	_IUnknown_Release
	add	w21, w21, #1
	ldr	w8, [sp, #12]
	cmp	w21, w8
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #28
	blr	x8
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #28
	mov	x1, x22
	bl	_IsEqualGUID
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x20
	bl	_parse_texture_filename
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_5
LBB0_10:
	ldr	x0, [sp, #16]
	bl	_IUnknown_Release
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
Lloh6:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_12:
	ldr	w23, [x8]
LBB0_13:
	mov	x0, x23
	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_14:
Lloh8:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect data size (%ld bytes)\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_TID_D3DRMTextureFilename,4,2   ; @TID_D3DRMTextureFilename
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_parse_material
.subsections_via_symbols
