	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_glsl_compute_shader_program
_set_glsl_compute_shader_program:       ## @set_glsl_compute_shader_program
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	(%rdi), %ecx
	movq	_WINED3D_SHADER_TYPE_COMPUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.1:
	movq	(%rsi), %rcx
	movq	(%rcx,%rax,8), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%rdx, %r15
	movq	%rdx, %rsi
	movq	%r12, %rdx
	callq	_find_glsl_compute_shader
	movl	%eax, %ebx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%ebx, -48(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_get_glsl_program_entry
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_ERR
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_COMPUTE,4,2 ## @WINED3D_SHADER_TYPE_COMPUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Compute shader is NULL.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to find GLSL program for compute shader %p.\n"

	.no_dead_strip	_set_glsl_compute_shader_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_glsl_compute_shader_program
_set_glsl_compute_shader_program:       ; @set_glsl_compute_shader_program
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_6
; %bb.1:
	mov	x19, x3
	ldr	x9, [x1]
	ldr	x21, [x9, x8, lsl #3]
	cbz	x21, LBB0_4
; %bb.2:
	mov	x20, x2
	mov	x1, x2
	mov	x2, x21
	bl	_find_glsl_compute_shader
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w22, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_get_glsl_program_entry
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_ERR
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	mov	x20, #0
LBB0_5:
	str	x20, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_COMPUTE,4,2 ; @WINED3D_SHADER_TYPE_COMPUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Compute shader is NULL.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to find GLSL program for compute shader %p.\n"

	.no_dead_strip	_set_glsl_compute_shader_program
.subsections_via_symbols
