	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_arb_select
_shader_arb_select:                     ## @shader_arb_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rsi), %r14
	movq	%rdx, %rdi
	callq	_use_ps
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_TRACE
	leaq	-80(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_find_arb_ps_compile_args
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_find_arb_pshader
	movq	%rax, %r14
	movq	8(%rax), %rsi
	movq	%rsi, 56(%r15)
	movq	%rax, 72(%r15)
	movq	_GL_FRAGMENT_PROGRAM_ARB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_glBindProgramARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	cmpl	$0, 64(%r15)
	jne	LBB0_3
## %bb.2:
	movq	48(%r15), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rax)
LBB0_3:
	movl	(%rbx), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movq	56(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	movq	16(%r13), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_shader_arb_ps_local_constants
	jmp	LBB0_6
LBB0_10:
	movq	16(%r14), %rax
	movq	_ARB_FRAGMENT_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_13
## %bb.11:
	cmpl	$0, 64(%r15)
	jne	LBB0_13
## %bb.12:
	movq	_GL_FRAGMENT_PROGRAM_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*(%r14)
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	$0, 56(%r15)
LBB0_13:
	movq	48(%r15), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_14
LBB0_4:
	movq	%rax, (%r15)
	movl	68(%r15), %edi
	movl	$8, %esi
	callq	_max
	movl	%eax, 68(%r15)
	movq	8(%r15), %rdi
	leaq	L_.memset_pattern(%rip), %rsi
	movl	$32, %edx
	callq	_memset_pattern16
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%ecx, %r9d
	callq	_shader_arb_load_constants_internal
LBB0_6:
	cmpq	$0, (%r14)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	_WINED3D_SHADER_CONST_PS_NP2_FIXUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_8:
	cmpq	$0, (%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.9:
	movq	_WINED3D_SHADER_CONST_PS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_14:
	movq	%rbx, %rdi
	callq	_use_vs
	testq	%rax, %rax
	je	LBB0_25
## %bb.15:
	movq	(%rbx), %rax
	movq	_WINED3D_SHADER_TYPE_VERTEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, %r13
	movq	(%rax,%rcx,8), %rbx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_find_arb_vs_compile_args
	cmpl	$-1, -56(%rbp)
	je	LBB0_16
## %bb.17:
	movq	%r14, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r8
	addq	$8, %r8
	jmp	LBB0_18
LBB0_25:
	movq	16(%r14), %rax
	movq	_ARB_VERTEX_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_27
## %bb.26:
	movq	$0, 32(%r15)
	movq	_GL_VERTEX_PROGRAM_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*(%r14)
	leaq	L_.str.11(%rip), %rdi
	callq	_checkGLcall
LBB0_27:
	movq	24(%r15), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_28
LBB0_16:
	movq	%r14, %r13
	xorl	%r8d, %r8d
LBB0_18:
	movq	8(%r12), %rsi
	movl	4(%r12), %edx
	leaq	-56(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_find_arb_vshader
	movq	%rax, %r14
	movq	8(%rax), %rsi
	movq	%rsi, 32(%r15)
	movq	%rax, 40(%r15)
	movq	%r12, %rbx
	movq	_GL_VERTEX_PROGRAM_ARB@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_glBindProgramARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.6(%rip), %rdi
	callq	_checkGLcall
	movq	24(%r15), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	*(%rax)
	movl	(%r12), %edi
	callq	*8(%r13)
	leaq	L_.str.7(%rip), %rdi
	callq	_checkGLcall
	movq	32(%r15), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_TRACE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_arb_vs_local_constants
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%r14), %rax
	cmpq	%rax, 16(%r15)
	je	LBB0_23
## %bb.19:
	movq	%rax, 16(%r15)
	movq	16(%r13), %rcx
	movq	_ARB_COLOR_BUFFER_FLOAT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_21
## %bb.20:
	movq	_GL_CLAMP_VERTEX_COLOR_ARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	callq	_glClampColorARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.9(%rip), %rdi
	callq	_checkGLcall
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.10(%rip), %rdi
	callq	_FIXME
LBB0_22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_23:
	cmpq	$0, (%rcx)
	je	LBB0_28
## %bb.24:
	movq	_WINED3D_SHADER_CONST_VS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,8,3  ## @WINED3D_SHADER_TYPE_PIXEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using pixel shader %p.\n"

	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ## @GL_FRAGMENT_PROGRAM_ARB
L_.str.1:                               ## @.str.1
	.asciz	"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, priv->current_fprogram_id);"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"glEnable(GL_FRAGMENT_PROGRAM_ARB);"

L_.str.3:                               ## @.str.3
	.asciz	"Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_WINED3D_SHADER_CONST_PS_NP2_FIXUP,4,2 ## @WINED3D_SHADER_CONST_PS_NP2_FIXUP
	.comm	_WINED3D_SHADER_CONST_PS_F,4,2  ## @WINED3D_SHADER_CONST_PS_F
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ## @ARB_FRAGMENT_PROGRAM
L_.str.4:                               ## @.str.4
	.asciz	"glDisable(GL_FRAGMENT_PROGRAM_ARB)"

	.comm	_WINED3D_SHADER_TYPE_VERTEX,8,3 ## @WINED3D_SHADER_TYPE_VERTEX
L_.str.5:                               ## @.str.5
	.asciz	"Using vertex shader %p\n"

	.comm	_GL_VERTEX_PROGRAM_ARB,4,2      ## @GL_VERTEX_PROGRAM_ARB
L_.str.6:                               ## @.str.6
	.asciz	"glBindProgramARB(GL_VERTEX_PROGRAM_ARB, priv->current_vprogram_id);"

L_.str.7:                               ## @.str.7
	.asciz	"glEnable(GL_VERTEX_PROGRAM_ARB);"

L_.str.8:                               ## @.str.8
	.asciz	"Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB\n"

	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ## @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ## @GL_CLAMP_VERTEX_COLOR_ARB
L_.str.9:                               ## @.str.9
	.asciz	"glClampColorARB"

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

	.comm	_WINED3D_SHADER_CONST_VS_F,4,2  ## @WINED3D_SHADER_CONST_VS_F
	.comm	_ARB_VERTEX_PROGRAM,8,3         ## @ARB_VERTEX_PROGRAM
L_.str.11:                              ## @.str.11
	.asciz	"glDisable(GL_VERTEX_PROGRAM_ARB)"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_shader_arb_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_arb_select
_shader_arb_select:                     ; @shader_arb_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #8]
	mov	x0, x2
	bl	_use_ps
Lloh0:
	adrp	x25, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x25]
	ldr	x23, [x8, x9, lsl #3]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_find_arb_ps_compile_args
	add	x1, sp, #8
	mov	x0, x23
	bl	_find_arb_pshader
	mov	x24, x0
	ldr	x1, [x0, #8]
	str	x1, [x21, #56]
	str	x0, [x21, #72]
Lloh4:
	adrp	x26, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_glBindProgramARB
	bl	_GL_EXTCALL
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
	ldr	w8, [x21, #64]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #48]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _FALSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w0, [x26]
	blr	x8
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	ldr	x1, [x21, #56]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x9, [x21]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	bl	_shader_arb_ps_local_constants
	ldr	x8, [x24]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_5:
	ldr	x8, [x20, #16]
Lloh15:
	adrp	x9, _ARB_FRAGMENT_PROGRAM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ARB_FRAGMENT_PROGRAM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x21, #64]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	blr	x8
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
	str	xzr, [x21, #56]
LBB0_8:
	ldr	x8, [x21, #48]
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _TRUE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	b	LBB0_13
LBB0_9:
	str	x8, [x21]
	ldr	w0, [x21, #68]
	mov	w1, #8
	bl	_max
	str	w0, [x21, #68]
	ldr	x0, [x21, #8]
Lloh26:
	adrp	x1, l_.memset_pattern@PAGE
Lloh27:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	w2, #32
	bl	_memset_pattern16
Lloh28:
	adrp	x8, _TRUE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _FALSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x5, x3
	bl	_shader_arb_load_constants_internal
	ldr	x8, [x24]
	cbz	x8, LBB0_11
LBB0_10:
Lloh34:
	adrp	x8, _WINED3D_SHADER_CONST_PS_NP2_FIXUP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WINED3D_SHADER_CONST_PS_NP2_FIXUP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.12:
Lloh37:
	adrp	x8, _WINED3D_SHADER_CONST_PS_F@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WINED3D_SHADER_CONST_PS_F@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	mov	x0, x22
	bl	_use_vs
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x22]
Lloh40:
	adrp	x9, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	mov	x3, sp
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_find_arb_vs_compile_args
	ldr	w8, [sp]
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.15:
	ldr	x8, [x22]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	add	x4, x8, #8
	b	LBB0_20
LBB0_16:
	ldr	x8, [x20, #16]
Lloh45:
	adrp	x9, _ARB_VERTEX_PROGRAM@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ARB_VERTEX_PROGRAM@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_18
; %bb.17:
	str	xzr, [x21, #32]
	ldr	x8, [x20]
Lloh48:
	adrp	x9, _GL_VERTEX_PROGRAM_ARB@GOTPAGE
Lloh49:
	ldr	x9, [x9, _GL_VERTEX_PROGRAM_ARB@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x9]
	blr	x8
Lloh51:
	adrp	x0, l_.str.11@PAGE
Lloh52:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_checkGLcall
LBB0_18:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _TRUE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	b	LBB0_25
LBB0_19:
	mov	x4, #0
LBB0_20:
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #4]
	mov	x3, sp
	mov	x0, x23
	bl	_find_arb_vshader
	mov	x24, x0
	ldr	x1, [x0, #8]
	stp	x1, x0, [x21, #32]
Lloh56:
	adrp	x25, _GL_VERTEX_PROGRAM_ARB@GOTPAGE
Lloh57:
	ldr	x25, [x25, _GL_VERTEX_PROGRAM_ARB@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_glBindProgramARB
	bl	_GL_EXTCALL
Lloh58:
	adrp	x0, l_.str.6@PAGE
Lloh59:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
Lloh60:
	adrp	x9, _FALSE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #8]
	ldr	w0, [x25]
	blr	x8
Lloh63:
	adrp	x0, l_.str.7@PAGE
Lloh64:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_checkGLcall
	ldr	x1, [x21, #32]
Lloh65:
	adrp	x0, l_.str.8@PAGE
Lloh66:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TRACE
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	bl	_shader_arb_vs_local_constants
	ldr	x9, [x21, #16]
	ldr	x8, [x24]
	cmp	x9, x8
	b.eq	LBB0_23
; %bb.21:
	str	x8, [x21, #16]
	ldr	x9, [x20, #16]
Lloh67:
	adrp	x10, _ARB_COLOR_BUFFER_FLOAT@GOTPAGE
Lloh68:
	ldr	x10, [x10, _ARB_COLOR_BUFFER_FLOAT@GOTPAGEOFF]
Lloh69:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_26
; %bb.22:
Lloh70:
	adrp	x9, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGE
Lloh71:
	ldr	x9, [x9, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x9]
	cmp	x8, #0
	cset	w1, eq
	bl	_glClampColorARB
	bl	_GL_EXTCALL
Lloh73:
	adrp	x0, l_.str.9@PAGE
Lloh74:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_checkGLcall
LBB0_23:
	ldr	x8, [x23]
	cbz	x8, LBB0_25
LBB0_24:
Lloh75:
	adrp	x8, _WINED3D_SHADER_CONST_VS_F@GOTPAGE
Lloh76:
	ldr	x8, [x8, _WINED3D_SHADER_CONST_VS_F@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_25:
	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
	add	sp, sp, #96
	ret
LBB0_26:
Lloh78:
	adrp	x0, l_.str.10@PAGE
Lloh79:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_FIXME
	ldr	x8, [x23]
	cbnz	x8, LBB0_24
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,8,3  ; @WINED3D_SHADER_TYPE_PIXEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using pixel shader %p.\n"

	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ; @GL_FRAGMENT_PROGRAM_ARB
l_.str.1:                               ; @.str.1
	.asciz	"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, priv->current_fprogram_id);"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"glEnable(GL_FRAGMENT_PROGRAM_ARB);"

l_.str.3:                               ; @.str.3
	.asciz	"Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_WINED3D_SHADER_CONST_PS_NP2_FIXUP,4,2 ; @WINED3D_SHADER_CONST_PS_NP2_FIXUP
	.comm	_WINED3D_SHADER_CONST_PS_F,4,2  ; @WINED3D_SHADER_CONST_PS_F
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ; @ARB_FRAGMENT_PROGRAM
l_.str.4:                               ; @.str.4
	.asciz	"glDisable(GL_FRAGMENT_PROGRAM_ARB)"

	.comm	_WINED3D_SHADER_TYPE_VERTEX,8,3 ; @WINED3D_SHADER_TYPE_VERTEX
l_.str.5:                               ; @.str.5
	.asciz	"Using vertex shader %p\n"

	.comm	_GL_VERTEX_PROGRAM_ARB,4,2      ; @GL_VERTEX_PROGRAM_ARB
l_.str.6:                               ; @.str.6
	.asciz	"glBindProgramARB(GL_VERTEX_PROGRAM_ARB, priv->current_vprogram_id);"

l_.str.7:                               ; @.str.7
	.asciz	"glEnable(GL_VERTEX_PROGRAM_ARB);"

l_.str.8:                               ; @.str.8
	.asciz	"Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB\n"

	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ; @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ; @GL_CLAMP_VERTEX_COLOR_ARB
l_.str.9:                               ; @.str.9
	.asciz	"glClampColorARB"

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

	.comm	_WINED3D_SHADER_CONST_VS_F,4,2  ; @WINED3D_SHADER_CONST_VS_F
	.comm	_ARB_VERTEX_PROGRAM,8,3         ; @ARB_VERTEX_PROGRAM
l_.str.11:                              ; @.str.11
	.asciz	"glDisable(GL_VERTEX_PROGRAM_ARB)"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_shader_arb_select
.subsections_via_symbols
