	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_shader_init
_gl2_shader_init:                       ## @gl2_shader_init
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_retroarch_get_shader_preset
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_video_shader_parse_type
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gl2_get_fallback_shader_type
	movl	%eax, %r12d
	movq	_RARCH_SHADER_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	cmpl	%ebx, %r12d
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_video_shader_to_str
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_video_shader_to_str
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_RARCH_WARN
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movl	16(%r14), %eax
	movl	%eax, -40(%rbp)
	movl	%r12d, -80(%rbp)
	movq	$0, -56(%rbp)
	movq	%r14, -48(%rbp)
	movq	%r15, -72(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_gl_shader_driver_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r14)
	movl	-64(%rbp), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_RARCH_ERR
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_gl_shader_driver_init
	movq	-56(%rbp), %rcx
	movq	%rcx, 8(%r14)
	movl	-64(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_SHADER_NONE,4,2          ## @RARCH_SHADER_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GL]: Couldn't find any supported shader backend! Continuing without shaders.\n"

L_.str.1:                               ## @.str.1
	.asciz	"[GL] Shader preset %s is using unsupported shader type %s, falling back to stock %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"[GL]: Failed to initialize shader, falling back to stock.\n"

	.comm	_RARCH_SHADER_GLSL,4,2          ## @RARCH_SHADER_GLSL
	.no_dead_strip	_gl2_shader_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_shader_init
_gl2_shader_init:                       ; @gl2_shader_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	bl	_retroarch_get_shader_preset
	mov	x20, x0
	bl	_video_shader_parse_type
	mov	x22, x0
	bl	_gl2_get_fallback_shader_type
Lloh0:
	adrp	x8, _RARCH_SHADER_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_SHADER_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
	mov	w0, #1
	b	LBB0_9
LBB0_2:
	mov	x21, x0
	cmp	w0, w22
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_string_is_empty
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_video_shader_to_str
	mov	x22, x0
	mov	x0, x21
	bl	_video_shader_to_str
	mov	x3, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_RARCH_WARN
LBB0_5:
	mov	x20, #0
LBB0_6:
	ldr	w8, [x19, #16]
	str	w8, [sp, #40]
	str	w21, [sp]
	stp	xzr, x19, [sp, #24]
	str	x20, [sp, #8]
	mov	x0, sp
	bl	_gl_shader_driver_init
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #24]
	str	x8, [x19, #8]
	ldr	w8, [sp, #16]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_ERR
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
	mov	x0, sp
	bl	_gl_shader_driver_init
	ldr	x8, [sp, #24]
	str	x8, [x19, #8]
	ldr	w8, [sp, #16]
	str	w8, [x19]
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_SHADER_NONE,4,2          ; @RARCH_SHADER_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GL]: Couldn't find any supported shader backend! Continuing without shaders.\n"

l_.str.1:                               ; @.str.1
	.asciz	"[GL] Shader preset %s is using unsupported shader type %s, falling back to stock %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"[GL]: Failed to initialize shader, falling back to stock.\n"

	.comm	_RARCH_SHADER_GLSL,4,2          ; @RARCH_SHADER_GLSL
	.no_dead_strip	_gl2_shader_init
.subsections_via_symbols
