	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_select
_shader_glsl_select:                    ## @shader_glsl_select
	.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	%rdx, %r12
	movq	%rdi, %rbx
	movq	8(%rsi), %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	%rdx, %rdi
	callq	_use_vs
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r15, %rdi
	callq	*%r14
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_use_ps
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	*%r14
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	24(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_set_glsl_shader_program
	movq	8(%r13), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movl	24(%r14), %r12d
	movq	16(%r14), %rbx
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.5:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_context_enable_clip_distances
LBB0_7:
	cmpq	%rbx, (%r13)
	jne	LBB0_8
	jmp	LBB0_11
LBB0_6:
	movq	_GL_FIXED_ONLY_ARB@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r12d, %r12d
	cmpq	%rbx, (%r13)
	je	LBB0_11
LBB0_8:
	movq	%rbx, (%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ARB_COLOR_BUFFER_FLOAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_10
## %bb.9:
	movq	_GL_CLAMP_VERTEX_COLOR_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_glClampColorARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	callq	_TRACE
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:
	movl	%r12d, %edi
	callq	_glUseProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.3(%rip), %rdi
	callq	_checkGLcall
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movl	(%r14), %eax
	orl	%eax, 4(%r15)
LBB0_14:
	movq	_WINED3D_SHADER_TYPE_COMPUTE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FIXED_ONLY_ARB,8,3          ## @GL_FIXED_ONLY_ARB
	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ## @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ## @GL_CLAMP_VERTEX_COLOR_ARB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glClampColorARB"

L_.str.1:                               ## @.str.1
	.asciz	"Vertex color clamp needs to be changed, but extension not supported.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Using GLSL program %u.\n"

L_.str.3:                               ## @.str.3
	.asciz	"glUseProgram"

	.comm	_WINED3D_SHADER_TYPE_COMPUTE,4,2 ## @WINED3D_SHADER_TYPE_COMPUTE
	.no_dead_strip	_shader_glsl_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_select
_shader_glsl_select:                    ; @shader_glsl_select
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldp	x21, x20, [x1, #8]
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	mov	x0, x2
	bl	_use_vs
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	blr	x24
	ldr	x8, [x23]
	ldr	x24, [x8]
	mov	x0, x22
	bl	_use_ps
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	blr	x24
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w25, [x8, #24]
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_set_glsl_shader_program
	ldr	x24, [x20, #8]
	cbz	x24, LBB0_6
; %bb.4:
	ldr	w22, [x24, #24]
	ldp	x8, x23, [x24, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_context_enable_clip_distances
	b	LBB0_7
LBB0_6:
	mov	w22, #0
Lloh0:
	adrp	x8, _GL_FIXED_ONLY_ARB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_FIXED_ONLY_ARB@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
LBB0_7:
	ldr	x8, [x20]
	cmp	x8, x23
	b.eq	LBB0_11
; %bb.8:
	str	x23, [x20]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ARB_COLOR_BUFFER_FLOAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARB_COLOR_BUFFER_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_glClampColorARB
	bl	_GL_EXTCALL
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_11:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_TRACE
	cmp	w25, w22
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_glUseProgram
	bl	_GL_EXTCALL
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_checkGLcall
	cbz	x24, LBB0_14
; %bb.13:
	ldr	w8, [x24]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_14:
Lloh17:
	adrp	x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_COMPUTE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FIXED_ONLY_ARB,8,3          ; @GL_FIXED_ONLY_ARB
	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ; @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ; @GL_CLAMP_VERTEX_COLOR_ARB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glClampColorARB"

l_.str.1:                               ; @.str.1
	.asciz	"Vertex color clamp needs to be changed, but extension not supported.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Using GLSL program %u.\n"

l_.str.3:                               ; @.str.3
	.asciz	"glUseProgram"

	.comm	_WINED3D_SHADER_TYPE_COMPUTE,4,2 ; @WINED3D_SHADER_TYPE_COMPUTE
	.no_dead_strip	_shader_glsl_select
.subsections_via_symbols
