	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dcompiler_parse_type
_d3dcompiler_parse_type:                ## @d3dcompiler_parse_type
	.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
	movq	%rdi, %r12
	movl	%edx, -52(%rbp)
	movslq	%edx, %rax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	addq	%rsi, %rax
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %r15
	leaq	-44(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_dword
	movl	-44(%rbp), %eax
	movzwl	%ax, %edi
	movl	%edi, 24(%r12)
	sarl	$16, %eax
	movl	%eax, 28(%r12)
	callq	_debug_d3dcompiler_shader_variable_class
	movl	%eax, %ebx
	movl	28(%r12), %edi
	callq	_debug_d3dcompiler_shader_variable_type
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_dword
	movl	-44(%rbp), %edx
	movzwl	%dx, %esi
	movl	%esi, 32(%r12)
	sarl	$16, %edx
	movl	%edx, 36(%r12)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_dword
	movl	-44(%rbp), %edx
	movzwl	%dx, %esi
	movl	%esi, 40(%r12)
	sarl	$16, %edx
	movl	%edx, 44(%r12)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_read_dword
	movl	-48(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r12), %rax
	movq	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	andl	(%rax), %ecx
	cmpl	$1280, %ecx                     ## imm = 0x500
	jl	LBB0_2
## %bb.1:
	leaq	-80(%rbp), %rdi
	movl	$4, %esi
	callq	_skip_dword_unknown
LBB0_2:
	cmpl	$0, 44(%r12)
	je	LBB0_9
## %bb.3:
	movslq	-48(%rbp), %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -88(%rbp)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	44(%r12), %edx
	shll	$2, %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 44(%r12)
	je	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	movq	_S_OK@GOTPCREL(%rip), %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	-88(%rbp), %rcx
	callq	_d3dcompiler_parse_type_members
	cmpl	(%r13), %eax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	44(%r12), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_8:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	16(%r12), %rax
	movl	(%rbx), %ecx
	andl	(%rax), %ecx
	cmpl	$1280, %ecx                     ## imm = 0x500
	jl	LBB0_13
## %bb.11:
	leaq	-80(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_read_dword
	movslq	-52(%rbp), %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	leaq	8(%r12), %rsi
	callq	_copy_name
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movl	8(%r12), %edi
	movl	%edi, 48(%r12)
	callq	_debugstr_a
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_13:
	movq	%r14, (%r12)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	callq	_ERR
	jmp	LBB0_20
LBB0_15:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	_FIXME
	cmpl	$0, 44(%r12)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_18
## %bb.16:
	xorl	%r15d, %r15d
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_free_type_member
	incq	%r15
	movl	44(%r12), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_17
LBB0_18:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	jmp	LBB0_22
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
	callq	_ERR
	movq	%r14, %rdi
	callq	_heap_free
LBB0_20:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$56, %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	"Class %s, Type %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rows %u, Columns %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Elements %u, Members %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Member Offset %u\n"

	.comm	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,2 ## @D3DCOMPILER_SHADER_TARGET_VERSION_MASK
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate type memory.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
L_.str.5:                               ## @.str.5
	.asciz	"Failed to parse type members.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to copy name.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Type name: %s.\n"

	.no_dead_strip	_d3dcompiler_parse_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dcompiler_parse_type
_d3dcompiler_parse_type:                ; @d3dcompiler_parse_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x19, x0
	str	w2, [sp, #44]
	add	x8, x1, w2, sxtw
	str	x8, [sp, #32]
	add	x0, sp, #32
	add	x1, sp, #28
	bl	_read_dword
	ldr	w8, [sp, #28]
	and	w0, w8, #0xffff
	asr	w8, w8, #16
	stp	w0, w8, [x19, #24]
	bl	_debug_d3dcompiler_shader_variable_class
	mov	x21, x0
	ldr	w0, [x19, #28]
	bl	_debug_d3dcompiler_shader_variable_type
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	add	x0, sp, #32
	add	x1, sp, #28
	bl	_read_dword
	ldr	w8, [sp, #28]
	and	w1, w8, #0xffff
	asr	w8, w8, #16
	stp	w1, w8, [x19, #32]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	x0, sp, #32
	add	x1, sp, #28
	bl	_read_dword
	ldr	w8, [sp, #28]
	and	w1, w8, #0xffff
	asr	w8, w8, #16
	stp	w1, w8, [x19, #40]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_read_dword
	ldr	w1, [sp, #24]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh8:
	adrp	x24, _D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w8, w9, w8
	cmp	w8, #1280
	b.lt	LBB0_2
; %bb.1:
	add	x0, sp, #32
	mov	w1, #4
	bl	_skip_dword_unknown
LBB0_2:
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_8
; %bb.3:
	ldrsw	x8, [sp, #24]
	add	x8, x20, x8
	str	x8, [sp, #16]
	bl	_GetProcessHeap
Lloh10:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x19, #44]
	lsl	w2, w8, #2
	bl	_HeapAlloc
	cbz	x0, LBB0_13
; %bb.4:
	mov	x21, x0
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x25, #0
Lloh13:
	adrp	x26, _S_OK@GOTPAGE
Lloh14:
	ldr	x26, [x26, _S_OK@GOTPAGEOFF]
	mov	x23, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	add	x3, sp, #16
	mov	x1, x23
	mov	x2, x20
	bl	_d3dcompiler_parse_type_members
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19, #44]
	add	x23, x23, #4
	cmp	x25, x8
	b.lo	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x24]
	and	w8, w9, w8
	cmp	w8, #1280
	b.lt	LBB0_12
; %bb.10:
	add	x0, sp, #32
	add	x1, sp, #44
	bl	_read_dword
	ldrsw	x8, [sp, #44]
	add	x0, x20, x8
	add	x1, x19, #8
	bl	_copy_name
	cbz	w0, LBB0_18
; %bb.11:
	ldr	w0, [x19, #8]
	str	w0, [x19, #48]
	bl	_debugstr_a
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.7@PAGE
Lloh16:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
LBB0_12:
	str	x21, [x19]
Lloh17:
	adrp	x8, _S_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_13:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERR
	b	LBB0_19
LBB0_14:
	mov	x22, x0
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_FIXME
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_17
; %bb.15:
	mov	x23, #0
	mov	x20, x21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_free_type_member
	add	x23, x23, #1
	ldr	w8, [x19, #44]
	add	x20, x20, #4
	cmp	x23, x8
	b.lo	LBB0_16
LBB0_17:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
	b	LBB0_21
LBB0_18:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERR
	mov	x0, x21
	bl	_heap_free
LBB0_19:
Lloh25:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_20:
	ldr	w22, [x8]
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s, Type %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rows %u, Columns %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Elements %u, Members %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Member Offset %u\n"

	.comm	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,2 ; @D3DCOMPILER_SHADER_TARGET_VERSION_MASK
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate type memory.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
l_.str.5:                               ; @.str.5
	.asciz	"Failed to parse type members.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to copy name.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Type name: %s.\n"

	.no_dead_strip	_d3dcompiler_parse_type
.subsections_via_symbols
