	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx_set_shader_constants
_d3dx_set_shader_constants:             ## @d3dx_set_shader_constants
	.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	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	48(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %esi
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movl	4(%rdi), %edi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_d3dx_param_eval_set_shader_constants
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_19
## %bb.3:
	movq	48(%rbx), %rax
	movl	(%rax), %edx
	movq	_D3D_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.4:
	movq	16(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	xorl	%ebx, %ebx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rcx
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	40(%rax), %edi
	callq	_is_param_type_sampler
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	shlq	$4, %rax
	cmpl	$0, (%r13,%rax)
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%r13), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	addq	%r13, %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %rsi
	movl	%ebx, %r12d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jae	LBB0_18
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	cmpq	$0, 32(%rax)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	(,%rsi,8), %rcx
	addq	24(%rax), %rcx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	16(%rax), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%rcx), %rbx
	movl	8(%rax), %edi
	callq	_debugstr_a
	movq	(%r12), %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r12d, %r12d
	movq	_D3DVERTEXTEXTURESAMPLER0@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	addq	%r13, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	%rsi, %rax
	testq	%r15, %r15
	movslq	(%rcx), %rcx
	cmoveq	%r15, %rcx
	addq	%rax, %rcx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_apply_state
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	_D3DVERTEXTEXTURESAMPLER0@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	cmovnel	%r14d, %ebx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	incq	%r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addq	$4, %r13
	cmpq	%rax, %r12
	jb	LBB0_16
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$104, %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	"param_eval structure is null.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_D3DXPC_OBJECT,8,3              ## @D3DXPC_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"sampler %s, register index %u, state count %u.\n"

	.comm	_D3DVERTEXTEXTURESAMPLER0,4,2   ## @D3DVERTEXTEXTURESAMPLER0
	.no_dead_strip	_d3dx_set_shader_constants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx_set_shader_constants
_d3dx_set_shader_constants:             ; @d3dx_set_shader_constants
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x24, x2
	ldr	x2, [x2, #48]
	cbz	x2, LBB0_17
; %bb.1:
	mov	x25, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x22]
	mov	x3, x4
	bl	_d3dx_param_eval_set_shader_constants
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_18
; %bb.2:
	ldr	x8, [x24, #48]
	ldr	w10, [x8]
Lloh0:
	adrp	x9, _D3D_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3D_OK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x9]
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w10, LBB0_18
; %bb.3:
	mov	x19, #0
	ldp	x8, x9, [x8, #8]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x24, _D3DVERTEXTEXTURESAMPLER0@GOTPAGE
Lloh4:
	ldr	x24, [x24, _D3DVERTEXTEXTURESAMPLER0@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x19, x8
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _D3DXPC_OBJECT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8, #40]
	bl	_is_param_type_sampler
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x8, x19, lsl #4
	ldr	w8, [x9]
	cbz	w8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	add	x27, x9, #8
	stp	x9, x19, [sp, #24]              ; 16-byte Folded Spill
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
	ldp	x8, x19, [sp, #24]              ; 16-byte Folded Reload
	ldr	w8, [x8]
	cmp	x28, x8
	b.hs	LBB0_4
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x19, lsl #3]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x8, #24]
	add	x9, x9, x28, lsl #3
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x9, x8, #16
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x19, [x9]
	ldr	w0, [x8, #8]
	bl	_debugstr_a
	mov	x1, x0
	ldr	x2, [x27]
	ldr	w3, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x26, #0
	str	x19, [sp, #56]                  ; 8-byte Folded Spill
	mov	x19, #0
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x2, x8, x26
	ldr	x8, [x27]
	ldrsw	x9, [x24]
	cmp	x20, #0
	csel	x9, xzr, x9, eq
	add	x8, x8, x28
	add	x3, x8, x9
	mov	x0, x22
	mov	x1, x21
	mov	x4, x25
	bl	_d3dx9_apply_state
	mov	x27, x28
	mov	x28, x24
	mov	x24, x22
	mov	x22, x21
	mov	x21, x20
	mov	x20, x25
	mov	x25, x0
	bl	_FAILED
	cmp	x0, #0
	csel	w23, w23, w25, eq
	mov	x25, x20
	mov	x20, x21
	mov	x21, x22
	mov	x22, x24
	mov	x24, x28
	mov	x28, x27
	ldp	x27, x8, [sp, #48]              ; 16-byte Folded Reload
	add	x19, x19, #1
	ldr	w8, [x8]
	add	x26, x26, #4
	cmp	x19, x8
	b.lo	LBB0_16
	b	LBB0_10
LBB0_17:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh12:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"param_eval structure is null.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_D3DXPC_OBJECT,8,3              ; @D3DXPC_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"sampler %s, register index %u, state count %u.\n"

	.comm	_D3DVERTEXTEXTURESAMPLER0,4,2   ; @D3DVERTEXTEXTURESAMPLER0
	.no_dead_strip	_d3dx_set_shader_constants
.subsections_via_symbols
