	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_cs_exec_set_shader
_wined3d_cs_exec_set_shader:            ## @wined3d_cs_exec_set_shader
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	movq	8(%rdi), %rcx
	movq	(%rsi), %rdi
	movl	%eax, (%rcx,%rdi,4)
	movl	(%r14), %r15d
	callq	_STATE_SHADER
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_device_invalidate_state
	movq	(%rbx), %rax
	movq	_WINED3D_SHADER_TYPE_COMPUTE@GOTPCREL(%rip), %rcx
	movl	(%r14), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_invalidate_state        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_COMPUTE,8,3 ## @WINED3D_SHADER_TYPE_COMPUTE
	.comm	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,2 ## @STATE_GRAPHICS_SHADER_RESOURCE_BINDING
	.comm	_STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,2 ## @STATE_COMPUTE_SHADER_RESOURCE_BINDING
	.no_dead_strip	_wined3d_cs_exec_set_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_cs_exec_set_shader
_wined3d_cs_exec_set_shader:            ; @wined3d_cs_exec_set_shader
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	ldr	x9, [x0, #8]
	ldr	x0, [x1]
	str	w8, [x9, x0, lsl #2]
	ldr	w21, [x20]
	bl	_STATE_SHADER
	mov	x1, x0
	mov	x0, x21
	bl	_device_invalidate_state
Lloh0:
	adrp	x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STATE_COMPUTE_SHADER_RESOURCE_BINDING@GOTPAGEOFF]
Lloh5:
	adrp	x11, _STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPAGE
Lloh6:
	ldr	x11, [x11, _STATE_GRAPHICS_SHADER_RESOURCE_BINDING@GOTPAGEOFF]
	ldr	w0, [x20]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_device_invalidate_state
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_COMPUTE,8,3 ; @WINED3D_SHADER_TYPE_COMPUTE
	.comm	_STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,2 ; @STATE_GRAPHICS_SHADER_RESOURCE_BINDING
	.comm	_STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,2 ; @STATE_COMPUTE_SHADER_RESOURCE_BINDING
	.no_dead_strip	_wined3d_cs_exec_set_shader
.subsections_via_symbols
