	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dcompiler_parse_variables
_d3dcompiler_parse_variables:           ## @d3dcompiler_parse_variables
	.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, %r13
	movq	%rcx, -64(%rbp)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r13), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,4), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	je	LBB0_18
## %bb.2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$20, %rbx
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r12
	leaq	-44(%rbp), %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movl	(%r13), %eax
	addq	$40, %rbx
	cmpq	%rax, %r15
	leaq	-44(%rbp), %rcx
	jae	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_d3dcompiler_shader_reflection_variable_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 12(%rbx)
	movq	%r13, 4(%rbx)
	movq	%r12, %rdi
	movq	%rcx, %rsi
	callq	_read_dword
	movslq	-44(%rbp), %rdi
	addq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_copy_name
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	leaq	-20(%rbx), %rsi
	movq	%r12, %rdi
	callq	_read_dword
	movl	-20(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	leaq	-16(%rbx), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_read_dword
	movl	-16(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_TRACE
	leaq	-12(%rbx), %rsi
	movq	%r12, %rdi
	callq	_read_dword
	movl	-12(%rbx), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_TRACE
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_TRACE
	movq	16(%r13), %rdi
	movl	-44(%rbp), %edx
	movq	%r14, %rsi
	callq	_get_reflection_type
	movl	%eax, -4(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_TRACE
	movslq	-44(%rbp), %rax
	movq	%r14, %rcx
	leaq	(%r14,%rax), %rdi
	leaq	-8(%rbx), %rsi
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %r14
	leaq	-64(%rbp), %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_copy_value
	testl	%eax, %eax
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rax
	movq	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$1280, %ecx                     ## imm = 0x500
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_skip_dword_unknown
	jmp	LBB0_17
LBB0_21:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_4:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_10:
	leaq	L_.str.7(%rip), %rdi
	movq	_E_FAIL@GOTPCREL(%rip), %rbx
LBB0_5:
	callq	_ERR
	movl	(%rbx), %r14d
	cmpl	$0, (%r13)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_free_variable
	incq	%r15
	movl	(%r13), %eax
	addq	$40, %rbx
	cmpq	%rax, %r15
	jb	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate variables memory.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_d3dcompiler_shader_reflection_variable_vtbl,4,2 ## @d3dcompiler_shader_reflection_variable_vtbl
L_.str.1:                               ## @.str.1
	.asciz	"Failed to copy name.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Variable name: %s.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Variable offset: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Variable size: %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"Variable flags: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"Variable type offset: %x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to get type.\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
L_.str.8:                               ## @.str.8
	.asciz	"Variable default value offset: %x\n"

	.comm	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,2 ## @D3DCOMPILER_SHADER_TARGET_VERSION_MASK
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_d3dcompiler_parse_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dcompiler_parse_variables
_d3dcompiler_parse_variables:           ; @d3dcompiler_parse_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	str	x3, [sp, #8]
	bl	_GetProcessHeap
Lloh0:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #3
	bl	_HeapAlloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_13
; %bb.2:
	mov	x24, #0
	mov	x25, #0
Lloh3:
	adrp	x26, l_.str.5@PAGE
Lloh4:
	add	x26, x26, l_.str.5@PAGEOFF
Lloh5:
	adrp	x27, l_.str.6@PAGE
Lloh6:
	add	x27, x27, l_.str.6@PAGEOFF
Lloh7:
	adrp	x28, l_.str.8@PAGE
Lloh8:
	add	x28, x28, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	add	x24, x24, #40
	cmp	x25, x8
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x20, x24
Lloh9:
	adrp	x8, _d3dcompiler_shader_reflection_variable_vtbl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _d3dcompiler_shader_reflection_variable_vtbl@GOTPAGEOFF]
	stp	x19, x8, [x22, #24]
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_read_dword
	ldrsw	x8, [sp, #4]
	add	x0, x21, x8
	add	x23, x22, #20
	mov	x1, x23
	bl	_copy_name
	cbz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	bl	_debugstr_a
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	add	x0, sp, #8
	mov	x1, x22
	bl	_read_dword
	ldr	w1, [x22]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	add	x23, x22, #4
	add	x0, sp, #8
	mov	x1, x23
	bl	_read_dword
	ldr	w1, [x22, #4]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	add	x1, x22, #8
	add	x0, sp, #8
	bl	_read_dword
	ldr	w1, [x22, #8]
	mov	x0, x26
	bl	_TRACE
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_read_dword
	ldr	w1, [sp, #4]
	mov	x0, x27
	bl	_TRACE
	ldr	x0, [x19, #16]
	ldr	w2, [sp, #4]
	mov	x1, x21
	bl	_get_reflection_type
	str	w0, [x22, #16]
	cbz	w0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_read_dword
	ldr	w1, [sp, #4]
	mov	x0, x28
	bl	_TRACE
	ldrsw	x8, [sp, #4]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w2, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x21, x8
	add	x8, x20, x24
	add	x1, x8, #12
	bl	_copy_value
	cbz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _D3DCOMPILER_SHADER_TARGET_VERSION_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #1280
	b.lt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	w1, #4
	bl	_skip_dword_unknown
	b	LBB0_3
LBB0_12:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh22:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	str	x20, [x19, #8]
Lloh24:
	adrp	x8, _S_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_15:
Lloh26:
	adrp	x21, _E_OUTOFMEMORY@GOTPAGE
Lloh27:
	ldr	x21, [x21, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh32:
	adrp	x21, _E_FAIL@GOTPAGE
Lloh33:
	ldr	x21, [x21, _E_FAIL@GOTPAGEOFF]
LBB0_17:
	bl	_ERR
	ldr	w21, [x21]
	ldr	w8, [x19]
	cbz	w8, LBB0_20
; %bb.18:
	mov	x23, #0
	mov	x22, x20
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_free_variable
	add	x23, x23, #1
	ldr	w8, [x19]
	add	x22, x22, #40
	cmp	x23, x8
	b.lo	LBB0_19
LBB0_20:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_21:
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate variables memory.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_d3dcompiler_shader_reflection_variable_vtbl,4,2 ; @d3dcompiler_shader_reflection_variable_vtbl
l_.str.1:                               ; @.str.1
	.asciz	"Failed to copy name.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Variable name: %s.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Variable offset: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Variable size: %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"Variable flags: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"Variable type offset: %x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to get type.\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
l_.str.8:                               ; @.str.8
	.asciz	"Variable default value offset: %x\n"

	.comm	_D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,2 ; @D3DCOMPILER_SHADER_TARGET_VERSION_MASK
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_d3dcompiler_parse_variables
.subsections_via_symbols
