	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_constants_desc
_get_constants_desc:                    ## @get_constants_desc
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r12d
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	leaq	-64(%rbp), %rsi
	callq	_D3DXGetShaderConstantTable
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	callq	_ID3DXConstantTable_GetDesc
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_33
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_34
LBB0_5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	shll	$5, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %rbx
	movq	%rax, 32(%r13)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	shll	$3, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 24(%r13)
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.6:
	testq	%rax, %rax
	je	LBB0_31
## %bb.7:
	cmpl	$0, -48(%rbp)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_35
## %bb.8:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	(%r13), %r13d
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ID3DXConstantTable_GetConstant
	testl	%eax, %eax
	je	LBB0_30
## %bb.9:
	movl	%eax, %ebx
	movl	%r12d, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	-64(%rbp), %rdi
	movl	%r13d, %r13d
	movq	%r13, %r12
	shlq	$5, %r12
	movq	-112(%rbp), %r15                ## 8-byte Reload
	leaq	(%r15,%r12), %r14
	movl	%ebx, %esi
	movq	%r14, %rdx
	leaq	-104(%rbp), %rcx
	callq	_get_ctab_constant_desc
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_49
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	leaq	(%r15,%r12), %rbx
	addq	$24, %rbx
	movl	24(%r15,%r12), %edx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_get_parameter_by_name
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rcx
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15,%r12), %rax
	movq	_D3DXRS_SAMPLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rcx
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_50
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	12(%rax), %edi
	callq	_is_param_type_sampler
	testl	%eax, %eax
	je	LBB0_50
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r13,8), %rax
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_max
	cmpq	16(%r15,%r12), %rax
	jl	LBB0_52
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14,%r13,8), %rax
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	movq	%rax, %rdi
	callq	_is_top_level_parameter
	testl	%eax, %eax
	je	LBB0_51
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %r15
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	incq	%rbx
	cmpq	%rbx, -128(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	incl	(%r13)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rcx
	movq	(%rcx), %rax
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_init_set_constants_param
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_28
	jmp	LBB0_33
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -104(%rbp)
	movl	(%r13), %esi
	je	LBB0_55
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	cmpl	-48(%rbp), %edx
	jae	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %r13d
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	callq	_ID3DXConstantTable_GetConstant
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_30:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_33
LBB0_31:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %r15d
LBB0_33:
	movq	-64(%rbp), %rdi
	callq	_ID3DXConstantTable_Release
LBB0_34:
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	testq	%r14, %r14
	je	LBB0_37
## %bb.36:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_append_pres_const_sets_for_shader_input
LBB0_37:
	movl	4(%r13), %esi
	testl	%esi, %esi
	je	LBB0_33
## %bb.38:
	movq	16(%r13), %rdi
	movq	_compare_const_set@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$32, %edx
	callq	_qsort
	movl	4(%r13), %eax
	cmpl	$1, %eax
	jne	LBB0_41
LBB0_39:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r13), %rdx
	movl	4(%r13), %ecx
	shll	$5, %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_48
## %bb.40:
	movq	%rax, 16(%r13)
	movl	4(%r13), %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_33
LBB0_41:
	xorl	%r12d, %r12d
	movq	_D3DXPC_FORCE_DWORD@GOTPCREL(%rip), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_43 Depth=1
	leal	-1(%rax), %edx
	movl	%ecx, %r12d
	cmpl	%edx, %ecx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jae	LBB0_39
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdx
	movl	%r12d, %ebx
	shlq	$5, %rbx
	movq	(%rdx,%rbx), %rsi
	leal	1(%r12), %ecx
	cmpq	(%rdi), %rsi
	jne	LBB0_42
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	%ecx, %r13d
	shlq	$5, %r13
	cmpq	%rsi, (%rdx,%r13)
	jne	LBB0_42
## %bb.45:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	8(%rdx,%rbx), %rsi
	cmpq	8(%rdx,%r13), %rsi
	jne	LBB0_42
## %bb.46:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	24(%rdx,%rbx), %rsi
	addq	16(%rdx,%rbx), %rsi
	movq	16(%rdx,%r13), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_42
## %bb.47:                              ##   in Loop: Header=BB0_43 Depth=1
	incq	%rdx
	xorl	%edi, %edi
	cmpq	%rdx, %rsi
	setle	%dil
	callq	_assert
	movq	16(%r14), %rax
	leaq	(%rax,%r13), %rdi
	movq	16(%rax,%r13), %rcx
	subq	16(%rax,%rbx), %rcx
	incq	%rcx
	movq	%rcx, 24(%rax,%rbx)
	leal	2(%r12), %esi
	shlq	$5, %rsi
	addq	%rax, %rsi
	movl	4(%r14), %edx
	subl	%r12d, %edx
	shll	$5, %edx
	addl	$-64, %edx
	callq	_memmove
	movq	_D3DXPC_FORCE_DWORD@GOTPCREL(%rip), %rdi
	movl	4(%r14), %eax
	decl	%eax
	movl	%eax, 4(%r14)
	movl	%r12d, %ecx
	jmp	LBB0_42
LBB0_48:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_33
LBB0_49:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_33
LBB0_50:
	movl	(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_53
LBB0_51:
	movl	(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_52:
	movl	(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str.6(%rip), %rdi
LBB0_53:
	movl	%eax, %esi
LBB0_54:
	xorl	%eax, %eax
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_55:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get CTAB data, hr %#x.\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
L_.str.1:                               ## @.str.1
	.asciz	"Could not get CTAB desc, hr %#x.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
L_.str.2:                               ## @.str.2
	.asciz	"Null constant handle.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not find parameter %s in effect.\n"

	.comm	_D3DXPC_OBJECT,8,3              ## @D3DXPC_OBJECT
L_.str.4:                               ## @.str.4
	.asciz	"Object %s, parameter %p.\n"

	.comm	_D3DXRS_SAMPLER,8,3             ## @D3DXRS_SAMPLER
L_.str.5:                               ## @.str.5
	.asciz	"Unexpected object type, constant %s.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
L_.str.6:                               ## @.str.6
	.asciz	"Register count exceeds parameter size, constant %s.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Expected top level parameter '%s'.\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
L_.str.8:                               ## @.str.8
	.asciz	"skip_constants parameter %s is not register bound.\n"

L_.str.9:                               ## @.str.9
	.asciz	"Skipping constant %s.\n"

	.comm	_compare_const_set,4,2          ## @compare_const_set
	.comm	_D3DXPC_FORCE_DWORD,8,3         ## @D3DXPC_FORCE_DWORD
L_.str.10:                              ## @.str.10
	.asciz	"Out of memory.\n"

	.no_dead_strip	_get_constants_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_constants_desc
_get_constants_desc:                    ; @get_constants_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	add	x1, sp, #72
	bl	_D3DXGetShaderConstantTable
	mov	x19, x0
	bl	_FAILED
	mov	x8, x0
	ldr	x0, [sp, #72]
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
Lloh2:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_32
LBB0_2:
	add	x1, sp, #64
	bl	_ID3DXConstantTable_GetDesc
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	b	LBB0_31
LBB0_4:
	bl	_GetProcessHeap
	ldr	w8, [sp, #64]
	lsl	w2, w8, #5
	mov	w1, #0
	bl	_HeapAlloc
	mov	x25, x0
	str	x0, [x20, #32]
	bl	_GetProcessHeap
	ldr	w8, [sp, #64]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x20, #24]
	str	x25, [sp, #48]                  ; 8-byte Folded Spill
	cbz	x25, LBB0_29
; %bb.5:
	mov	x26, x0
	cbz	x0, LBB0_29
; %bb.6:
	ldr	w8, [sp, #64]
	cbz	w8, LBB0_34
; %bb.7:
	str	x23, [sp, #32]                  ; 8-byte Folded Spill
	str	w22, [sp, #44]                  ; 4-byte Folded Spill
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w21, [x20]
	ldr	x0, [sp, #72]
	mov	x1, #0
	mov	w2, #0
	bl	_ID3DXConstantTable_GetConstant
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_28
; %bb.8:
	mov	x28, x0
	mov	w27, #0
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	mov	w8, w8
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x0, [sp, #72]
	mov	w25, w21
	add	x21, x22, x25, lsl #5
	add	x3, sp, #60
	mov	x1, x28
	mov	x2, x21
	bl	_get_ctab_constant_desc
	mov	x19, x0
	bl	_FAILED
	cbnz	x0, LBB0_31
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x21
	ldr	w2, [x23, #24]!
	mov	x0, x24
	mov	x1, #0
	bl	_get_parameter_by_name
	str	x0, [x26, x25, lsl #3]
	cbz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _D3DXPC_OBJECT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x23]
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	add	x8, x22, x25, lsl #5
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _D3DXRS_SAMPLER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _D3DXRS_SAMPLER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_48
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, x25, lsl #3]
	ldr	x9, [x8]
Lloh15:
	adrp	x10, _D3DXPC_OBJECT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_48
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x8, #12]
	bl	_is_param_type_sampler
	cbz	w0, LBB0_48
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, x25, lsl #3]
	ldr	w0, [x8, #8]
	mov	w1, #1
	bl	_max
	add	x8, x22, x25, lsl #5
	ldr	x8, [x8, #16]
	cmp	x0, x8
	b.lt	LBB0_50
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x26, x25, lsl #3]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_is_top_level_parameter
	cbz	w0, LBB0_49
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	x21, x22, [sp, #24]             ; 16-byte Folded Reload
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_21
LBB0_19:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23]
	ldr	x1, [x22]
	bl	_strcmp
	cbz	w0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x22, x22, #8
	subs	x21, x21, #1
	b.ne	LBB0_19
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x3, [x26, x25, lsl #3]
	ldr	x8, [x3]
Lloh18:
	adrp	x9, _D3DXPC_OBJECT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #72]
	mov	x0, x20
	mov	x2, x28
	bl	_init_set_constants_param
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_26
	b	LBB0_31
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #60]
	ldr	w1, [x23]
	cbz	w8, LBB0_51
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh23:
	adrp	x0, l_.str.9@PAGE
Lloh24:
	add	x0, x0, l_.str.9@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_TRACE
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
LBB0_26:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w27, w27, #1
	ldr	w8, [sp, #64]
	cmp	w27, w8
	b.hs	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w21, [x20]
	ldr	x0, [sp, #72]
	mov	x1, #0
	mov	x2, x27
	bl	_ID3DXConstantTable_GetConstant
	mov	x28, x0
	cbnz	w0, LBB0_9
LBB0_28:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	b	LBB0_31
LBB0_29:
Lloh27:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_30:
	ldr	w19, [x8]
LBB0_31:
	ldr	x0, [sp, #72]
	bl	_ID3DXConstantTable_Release
LBB0_32:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_33:
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
LBB0_34:
	cbz	x21, LBB0_36
; %bb.35:
	mov	x0, x20
	mov	x1, x21
	bl	_append_pres_const_sets_for_shader_input
LBB0_36:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_31
; %bb.37:
	ldr	x0, [x20, #16]
Lloh29:
	adrp	x8, _compare_const_set@GOTPAGE
Lloh30:
	ldr	x8, [x8, _compare_const_set@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	w2, #32
	bl	_qsort
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_40
LBB0_38:
	bl	_GetProcessHeap
	ldr	x2, [x20, #16]
	ldr	w8, [x20, #4]
	lsl	w3, w8, #5
	mov	w1, #0
	bl	_HeapReAlloc
	cbz	x0, LBB0_47
; %bb.39:
	str	x0, [x20, #16]
	ldr	w8, [x20, #4]
	str	w8, [x20, #8]
	b	LBB0_31
LBB0_40:
	mov	w22, #0
Lloh32:
	adrp	x21, _D3DXPC_FORCE_DWORD@GOTPAGE
Lloh33:
	ldr	x21, [x21, _D3DXPC_FORCE_DWORD@GOTPAGEOFF]
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	sub	w9, w8, #1
	mov	x22, x23
	cmp	w23, w9
	b.hs	LBB0_38
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	mov	w24, w22
	lsl	x10, x24, #5
	ldr	x10, [x9, x10]
	ldr	x11, [x21]
	add	w23, w22, #1
	cmp	x10, x11
	b.ne	LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	lsl	x11, x23, #5
	ldr	x11, [x9, x11]
	cmp	x11, x10
	b.ne	LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=1
	add	x10, x9, x24, lsl #5
	ldr	x11, [x10, #8]
	add	x9, x9, x23, lsl #5
	ldr	x12, [x9, #8]
	cmp	x11, x12
	b.ne	LBB0_41
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=1
	ldp	x11, x12, [x10, #16]
	ldr	x10, [x9, #16]
	add	x9, x12, x11
	cmp	x9, x10
	b.lt	LBB0_41
; %bb.46:                               ;   in Loop: Header=BB0_42 Depth=1
	add	x8, x10, #1
	cmp	x9, x8
	cset	w0, le
	bl	_assert
	ldr	x8, [x20, #16]
	add	x0, x8, x23, lsl #5
	ldr	x9, [x0, #16]
	add	x10, x8, x24, lsl #5
	ldr	x11, [x10, #16]
	sub	x9, x9, x11
	add	x9, x9, #1
	str	x9, [x10, #24]
	add	w9, w22, #2
	add	x1, x8, x9, lsl #5
	ldr	w8, [x20, #4]
	sub	w8, w8, w22
	lsl	w8, w8, #5
	sub	w2, w8, #64
	bl	_memmove
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	str	w8, [x20, #4]
	mov	x23, x22
	b	LBB0_41
LBB0_47:
Lloh34:
	adrp	x0, l_.str.10@PAGE
Lloh35:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_WARN
	b	LBB0_31
LBB0_48:
	ldr	w0, [x23]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_52
LBB0_49:
	ldr	w0, [x23]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_WARN
Lloh40:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	b	LBB0_30
LBB0_50:
	ldr	w0, [x23]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_52
LBB0_51:
	str	x1, [sp]
Lloh44:
	adrp	x0, l_.str.8@PAGE
Lloh45:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_52:
	bl	_WARN
Lloh46:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get CTAB data, hr %#x.\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
l_.str.1:                               ; @.str.1
	.asciz	"Could not get CTAB desc, hr %#x.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
l_.str.2:                               ; @.str.2
	.asciz	"Null constant handle.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not find parameter %s in effect.\n"

	.comm	_D3DXPC_OBJECT,8,3              ; @D3DXPC_OBJECT
l_.str.4:                               ; @.str.4
	.asciz	"Object %s, parameter %p.\n"

	.comm	_D3DXRS_SAMPLER,8,3             ; @D3DXRS_SAMPLER
l_.str.5:                               ; @.str.5
	.asciz	"Unexpected object type, constant %s.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
l_.str.6:                               ; @.str.6
	.asciz	"Register count exceeds parameter size, constant %s.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Expected top level parameter '%s'.\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
l_.str.8:                               ; @.str.8
	.asciz	"skip_constants parameter %s is not register bound.\n"

l_.str.9:                               ; @.str.9
	.asciz	"Skipping constant %s.\n"

	.comm	_compare_const_set,4,2          ; @compare_const_set
	.comm	_D3DXPC_FORCE_DWORD,8,3         ; @D3DXPC_FORCE_DWORD
l_.str.10:                              ; @.str.10
	.asciz	"Out of memory.\n"

	.no_dead_strip	_get_constants_desc
.subsections_via_symbols
