	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_local_constants           ## -- Begin function load_local_constants
	.p2align	4, 0x90
_load_local_constants:                  ## @load_local_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	xorl	%eax, %eax
	callq	_D3DVSD_END
	cmpl	%eax, %r14d
	jne	LBB0_1
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_D3DVSD_TOKENTYPEMASK@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_parse_token
	cltq
	leaq	(%rbx,%rax,4), %r14
	movl	(%rbx,%rax,4), %r15d
	xorl	%eax, %eax
	callq	_D3DVSD_END
	movq	%r14, %rbx
	cmpl	%eax, %r15d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%rbx), %r13d
	movl	(%r12), %eax
	andl	%r13d, %eax
	movq	_D3DVSD_TOKENTYPESHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_D3DVSD_TOKEN_CONSTMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_D3DVSD_CONSTCOUNTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r13d, %edx
	movq	_D3DVSD_CONSTCOUNTSHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_D3DVSD_CONSTADDRESSMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_D3DVSD_CONSTADDRESSSHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movq	_d3d8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	leaq	L_.str(%rip), %r12
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	shlq	$4, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	4(%rbx,%r15), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movss	8(%rbx,%r15), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	movss	12(%rbx,%r15), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	16(%rbx,%r15), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_TRACE
	addq	$16, %r15
	cmpq	%r15, %r14
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rbx), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_wined3d_shader_set_local_constants_float
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	movq	_D3DVSD_TOKENTYPEMASK@GOTPCREL(%rip), %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DVSD_TOKENTYPEMASK,4,2       ## @D3DVSD_TOKENTYPEMASK
	.comm	_D3DVSD_TOKENTYPESHIFT,4,2      ## @D3DVSD_TOKENTYPESHIFT
	.comm	_D3DVSD_TOKEN_CONSTMEM,4,2      ## @D3DVSD_TOKEN_CONSTMEM
	.comm	_D3DVSD_CONSTCOUNTMASK,4,2      ## @D3DVSD_CONSTCOUNTMASK
	.comm	_D3DVSD_CONSTCOUNTSHIFT,4,2     ## @D3DVSD_CONSTCOUNTSHIFT
	.comm	_D3DVSD_CONSTADDRESSMASK,4,2    ## @D3DVSD_CONSTADDRESSMASK
	.comm	_D3DVSD_CONSTADDRESSSHIFT,4,2   ## @D3DVSD_CONSTADDRESSSHIFT
	.comm	_d3d8,4,2                       ## @d3d8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"c[%u] = (%8f, %8f, %8f, %8f)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed setting shader constants\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_local_constants           ; -- Begin function load_local_constants
	.p2align	2
_load_local_constants:                  ; @load_local_constants
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	bl	_D3DVSD_END
	cmp	w21, w0
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x25, _D3DVSD_TOKENTYPEMASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _D3DVSD_TOKENTYPEMASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _D3DVSD_TOKENTYPESHIFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _D3DVSD_TOKENTYPESHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _D3DVSD_TOKEN_CONSTMEM@GOTPAGE
Lloh5:
	ldr	x27, [x27, _D3DVSD_TOKEN_CONSTMEM@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_parse_token
	add	x20, x20, w0, sxtw #2
	ldr	w21, [x20]
	bl	_D3DVSD_END
	cmp	w21, w0
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x25]
	and	w9, w9, w8
	ldr	w10, [x26]
	asr	w9, w9, w10
	ldr	w10, [x27]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x9, _D3DVSD_CONSTCOUNTMASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _D3DVSD_CONSTCOUNTMASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh11:
	adrp	x10, _D3DVSD_CONSTCOUNTSHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _D3DVSD_CONSTCOUNTSHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	asr	w28, w9, w10
Lloh14:
	adrp	x9, _D3DVSD_CONSTADDRESSMASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D3DVSD_CONSTADDRESSMASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh17:
	adrp	x9, _D3DVSD_CONSTADDRESSSHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _D3DVSD_CONSTADDRESSSHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	asr	w24, w8, w9
Lloh20:
	adrp	x8, _d3d8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _d3d8@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_TRACE_ON
	cmp	x0, #0
	ccmp	w28, #1, #8, ne
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x20, #16
	mov	x23, x28
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	s0, s1, [x21, #-12]
	ldp	s2, s3, [x21, #-4]
	mov	x0, x22
	mov	x1, x24
	bl	_TRACE
	add	x21, x21, #16
	subs	x23, x23, #1
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x20, #4
	mov	x0, x19
	mov	x1, x24
	mov	x3, x28
	bl	_wined3d_shader_set_local_constants_float
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DVSD_TOKENTYPEMASK,4,2       ; @D3DVSD_TOKENTYPEMASK
	.comm	_D3DVSD_TOKENTYPESHIFT,4,2      ; @D3DVSD_TOKENTYPESHIFT
	.comm	_D3DVSD_TOKEN_CONSTMEM,4,2      ; @D3DVSD_TOKEN_CONSTMEM
	.comm	_D3DVSD_CONSTCOUNTMASK,4,2      ; @D3DVSD_CONSTCOUNTMASK
	.comm	_D3DVSD_CONSTCOUNTSHIFT,4,2     ; @D3DVSD_CONSTCOUNTSHIFT
	.comm	_D3DVSD_CONSTADDRESSMASK,4,2    ; @D3DVSD_CONSTADDRESSMASK
	.comm	_D3DVSD_CONSTADDRESSSHIFT,4,2   ; @D3DVSD_CONSTADDRESSSHIFT
	.comm	_d3d8,4,2                       ; @d3d8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"c[%u] = (%8f, %8f, %8f, %8f)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed setting shader constants\n"

.subsections_via_symbols
