	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_disable
_shader_glsl_disable:                   ## @shader_glsl_disable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	8(%rsi), %r15
	movq	%rsi, %rdi
	callq	_shader_glsl_invalidate_current_program
	xorl	%edi, %edi
	callq	_glUseProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movq	8(%r14), %rax
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	(%r14), %rax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_needs_legacy_glsl_syntax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_ARB_COLOR_BUFFER_FLOAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.3:
	movq	_GL_FIXED_ONLY_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_GL_CLAMP_VERTEX_COLOR_ARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_glClampColorARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glUseProgram"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ## @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_FIXED_ONLY_ARB,4,2          ## @GL_FIXED_ONLY_ARB
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ## @GL_CLAMP_VERTEX_COLOR_ARB
L_.str.1:                               ## @.str.1
	.asciz	"glClampColorARB"

	.no_dead_strip	_shader_glsl_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_disable
_shader_glsl_disable:                   ; @shader_glsl_disable
	.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	x20, x0
	ldp	x19, x21, [x1]
	mov	x0, x1
	bl	_shader_glsl_invalidate_current_program
	mov	w0, #0
	bl	_glUseProgram
	bl	_GL_EXTCALL
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_needs_legacy_glsl_syntax
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _ARB_COLOR_BUFFER_FLOAT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARB_COLOR_BUFFER_FLOAT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _GL_FIXED_ONLY_ARB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_FIXED_ONLY_ARB@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21]
Lloh9:
	adrp	x9, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GL_CLAMP_VERTEX_COLOR_ARB@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_glClampColorARB
	bl	_GL_EXTCALL
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_checkGLcall
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glUseProgram"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ARB_COLOR_BUFFER_FLOAT,8,3     ; @ARB_COLOR_BUFFER_FLOAT
	.comm	_GL_FIXED_ONLY_ARB,4,2          ; @GL_FIXED_ONLY_ARB
	.comm	_GL_CLAMP_VERTEX_COLOR_ARB,4,2  ; @GL_CLAMP_VERTEX_COLOR_ARB
l_.str.1:                               ; @.str.1
	.asciz	"glClampColorARB"

	.no_dead_strip	_shader_glsl_disable
.subsections_via_symbols
