	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_glsl_compile_program
_gl_glsl_compile_program:               ## @gl_glsl_compile_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, %r13
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_glCreateProgram
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_7
LBB0_1:
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %rbx
	shlq	$3, %rbx
	addq	(%r15), %rbx
	testq	%r14, %r14
	je	LBB0_7
LBB0_3:
	cmpl	$0, 4(%r13)
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movq	_GL_VERTEX_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movq	%rax, 16(%rbx)
	movl	4(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_gl_glsl_compile_shader
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_glAttachShader
LBB0_9:
	cmpl	$0, (%r13)
	je	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_RARCH_LOG
	movq	_GL_FRAGMENT_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movq	%rax, 8(%rbx)
	movl	(%r13), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_gl_glsl_compile_shader
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_glAttachShader
LBB0_13:
	cmpl	$0, 4(%r13)
	jne	LBB0_15
## %bb.14:
	cmpl	$0, (%r13)
	je	LBB0_21
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	callq	_RARCH_LOG
	movq	%r14, %rdi
	callq	_gl_glsl_link_program
	testl	%eax, %eax
	je	LBB0_7
## %bb.16:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_glDeleteShader
LBB0_18:
	leaq	8(%rbx), %r12
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_glDeleteShader
LBB0_20:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	%r14, %rdi
	callq	_glUseProgram
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gl_glsl_get_uniform
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_glUniform1i
	xorl	%edi, %edi
	callq	_glUseProgram
LBB0_21:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
LBB0_6:
	movl	%r12d, %esi
	callq	_RARCH_ERR
LBB0_7:
	leaq	L_.str.8(%rip), %rdi
	movl	%r12d, %esi
	callq	_RARCH_ERR
	xorl	%r14d, %r14d
	xorl	%eax, %eax
LBB0_22:
	movq	%r14, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GLSL]: Found GLSL vertex shader.\n"

	.comm	_GL_VERTEX_SHADER,4,2           ## @GL_VERTEX_SHADER
L_.str.1:                               ## @.str.1
	.asciz	"#define VERTEX\n#define PARAMETER_UNIFORM\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to compile vertex shader #%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"[GLSL]: Found GLSL fragment shader.\n"

	.comm	_GL_FRAGMENT_SHADER,4,2         ## @GL_FRAGMENT_SHADER
L_.str.4:                               ## @.str.4
	.asciz	"#define FRAGMENT\n#define PARAMETER_UNIFORM\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to compile fragment shader #%u\n"

L_.str.6:                               ## @.str.6
	.asciz	"[GLSL]: Linking GLSL program.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Texture"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to link program #%u.\n"

	.no_dead_strip	_gl_glsl_compile_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_glsl_compile_program
_gl_glsl_compile_program:               ; @gl_glsl_compile_program
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_glCreateProgram
	mov	x20, x0
	cbz	x19, LBB0_2
; %bb.1:
	cbnz	x20, LBB0_3
	b	LBB0_21
LBB0_2:
	ldr	x8, [x21]
	mov	w9, #24
	umaddl	x19, w22, w9, x8
	cbz	x20, LBB0_21
LBB0_3:
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
Lloh2:
	adrp	x8, _GL_VERTEX_SHADER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_VERTEX_SHADER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_glCreateShader
	mov	x1, x0
	str	x0, [x19, #16]
	ldr	w3, [x23, #4]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_gl_glsl_compile_shader
	cbz	w0, LBB0_18
; %bb.5:
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_glAttachShader
LBB0_6:
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.7:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_LOG
Lloh9:
	adrp	x8, _GL_FRAGMENT_SHADER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_glCreateShader
	mov	x1, x0
	str	x0, [x19, #8]
	ldr	w3, [x23]
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_gl_glsl_compile_shader
	cbz	w0, LBB0_19
; %bb.8:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_glAttachShader
LBB0_9:
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x23]
	cbz	w8, LBB0_17
LBB0_11:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_RARCH_LOG
	mov	x0, x20
	bl	_gl_glsl_link_program
	cbz	w0, LBB0_21
; %bb.12:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_glDeleteShader
LBB0_14:
	mov	x22, x19
	ldr	x0, [x22, #8]!
	cbz	x0, LBB0_16
; %bb.15:
	bl	_glDeleteShader
LBB0_16:
	stp	xzr, xzr, [x22]
	mov	x0, x20
	bl	_glUseProgram
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_gl_glsl_get_uniform
	mov	w1, #0
	bl	_glUniform1i
	mov	x0, #0
	bl	_glUseProgram
LBB0_17:
	mov	w0, #1
	b	LBB0_22
LBB0_18:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_20:
	mov	x1, x22
	bl	_RARCH_ERR
LBB0_21:
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x22
	bl	_RARCH_ERR
	mov	x20, #0
	mov	w0, #0
LBB0_22:
	str	x20, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GLSL]: Found GLSL vertex shader.\n"

	.comm	_GL_VERTEX_SHADER,4,2           ; @GL_VERTEX_SHADER
l_.str.1:                               ; @.str.1
	.asciz	"#define VERTEX\n#define PARAMETER_UNIFORM\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to compile vertex shader #%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"[GLSL]: Found GLSL fragment shader.\n"

	.comm	_GL_FRAGMENT_SHADER,4,2         ; @GL_FRAGMENT_SHADER
l_.str.4:                               ; @.str.4
	.asciz	"#define FRAGMENT\n#define PARAMETER_UNIFORM\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to compile fragment shader #%u\n"

l_.str.6:                               ; @.str.6
	.asciz	"[GLSL]: Linking GLSL program.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Texture"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to link program #%u.\n"

	.no_dead_strip	_gl_glsl_compile_program
.subsections_via_symbols
