	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_glsl_compile_shader
_gl_glsl_compile_shader:                ## @gl_glsl_compile_shader
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, -120(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_strstr
	movb	$0, -112(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rax
	leaq	-120(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %r13
	leaq	-112(%rbp), %rdi
	movl	$32, %esi
	movl	%eax, %ecx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	-120(%rbp), %rbx
	jmp	LBB0_10
LBB0_2:
	movq	_glsl_core@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.3:
	movq	_glsl_major@GOTPCREL(%rip), %rax
	imull	$100, (%rax), %eax
	movq	_glsl_minor@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %r13d
	cmpl	$300, %r13d                     ## imm = 0x12C
	je	LBB0_4
## %bb.5:
	cmpl	$320, %r13d                     ## imm = 0x140
	je	LBB0_8
## %bb.6:
	cmpl	$310, %r13d                     ## imm = 0x136
	jne	LBB0_9
## %bb.7:
	movl	$140, %r13d
	jmp	LBB0_9
LBB0_4:
	movl	$130, %r13d
	jmp	LBB0_9
LBB0_8:
	movl	$150, %r13d
LBB0_9:
	leaq	L_.str.4(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$32, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_10:
	leaq	-112(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%r14, -72(%rbp)
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -56(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movl	%r12d, %edi
	callq	_glCompileShader
	movq	_GL_COMPILE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r12d, %edi
	callq	_glGetShaderiv
	movl	%r12d, %edi
	callq	_gl_glsl_print_shader_log
	movq	-128(%rbp), %rcx
	movq	_GL_TRUE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_12
## %bb.11:
	movb	%cl, %al
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#version"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"#version %u%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"[GLSL]: Using GLSL version %u%s.\n"

	.comm	_glsl_core,8,3                  ## @glsl_core
	.comm	_glsl_major,4,2                 ## @glsl_major
	.comm	_glsl_minor,4,2                 ## @glsl_minor
L_.str.4:                               ## @.str.4
	.asciz	"#version %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"[GLSL]: Using GLSL version %u.\n"

	.comm	_GL_COMPILE_STATUS,4,2          ## @GL_COMPILE_STATUS
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.no_dead_strip	_gl_glsl_compile_shader
.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_shader
_gl_glsl_compile_shader:                ; @gl_glsl_compile_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	x3, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_strstr
	strb	wzr, [sp, #24]
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #8
	add	x1, sp, #16
	mov	w2, #10
	bl	_strtoul
	mov	x22, x0
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	str	x23, [sp]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	mov	x3, x22
	bl	_snprintf
	str	x23, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_RARCH_LOG
	ldr	x22, [sp, #16]
	b	LBB0_10
LBB0_2:
Lloh11:
	adrp	x8, _glsl_core@GOTPAGE
Lloh12:
	ldr	x8, [x8, _glsl_core@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
Lloh14:
	adrp	x8, _glsl_major@GOTPAGE
Lloh15:
	ldr	x8, [x8, _glsl_major@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #100
	mul	w8, w8, w9
Lloh17:
	adrp	x9, _glsl_minor@GOTPAGE
Lloh18:
	ldr	x9, [x9, _glsl_minor@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mov	w10, #10
	madd	w23, w9, w10, w8
	cmp	w23, #300
	b.eq	LBB0_7
; %bb.4:
	cmp	w23, #320
	b.eq	LBB0_8
; %bb.5:
	cmp	w23, #310
	b.ne	LBB0_9
; %bb.6:
	mov	w23, #140
	b	LBB0_9
LBB0_7:
	mov	w23, #130
	b	LBB0_9
LBB0_8:
	mov	w23, #150
LBB0_9:
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	mov	x3, x23
	bl	_snprintf
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
	bl	_RARCH_LOG
LBB0_10:
	add	x8, sp, #24
	stp	x8, x20, [sp, #56]
	ldr	x8, [x21]
	stp	x8, x22, [sp, #72]
	add	x0, sp, #56
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x2, sp, #56
	mov	x0, x19
	mov	x3, #0
	bl	_glShaderSource
	mov	x0, x19
	bl	_glCompileShader
Lloh24:
	adrp	x8, _GL_COMPILE_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_COMPILE_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_glGetShaderiv
	mov	x0, x19
	bl	_gl_glsl_print_shader_log
	ldr	x8, [sp, #8]
Lloh27:
	adrp	x9, _GL_TRUE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GL_TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#version"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"#version %u%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"[GLSL]: Using GLSL version %u%s.\n"

	.comm	_glsl_core,8,3                  ; @glsl_core
	.comm	_glsl_major,4,2                 ; @glsl_major
	.comm	_glsl_minor,4,2                 ; @glsl_minor
l_.str.4:                               ; @.str.4
	.asciz	"#version %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"[GLSL]: Using GLSL version %u.\n"

	.comm	_GL_COMPILE_STATUS,4,2          ; @GL_COMPILE_STATUS
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.no_dead_strip	_gl_glsl_compile_shader
.subsections_via_symbols
