	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_glsl_compile_programs
_gl_glsl_compile_programs:              ## @gl_glsl_compile_programs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdx
	movl	$1, %eax
	cmpl	$0, (%rdx)
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movups	8(%r13,%rbx,4), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	leaq	(%r15,%r14), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	-64(%rbp), %rcx
	callq	_gl_glsl_compile_program
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%rdx), %ecx
	addq	$4, %r14
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rdi
	movl	(%r13,%rbx,4), %esi
	callq	_gl_glsl_load_source_path
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r13,%rbx,4), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
LBB0_11:
	callq	_RARCH_ERR
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %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	"Failed to load GLSL shader: %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create GL program #%u.\n"

	.no_dead_strip	_gl_glsl_compile_programs
.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_programs
_gl_glsl_compile_programs:              ; @gl_glsl_compile_programs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbz	w9, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	x21, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x23, x22
	ldp	x9, x8, [x8, #8]
	stp	x9, x8, [sp, #8]
	str	wzr, [sp, #24]
	add	x2, x19, x22
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_gl_glsl_compile_program
	cbz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	w9, [x8]
	add	x22, x22, #4
	cmp	x21, x9
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x8, #8]
	cbz	x23, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23, x21, lsl #2]
	bl	_string_is_empty
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x23, x22
	ldr	w1, [x23, x21, lsl #2]
	bl	_gl_glsl_load_source_path
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	w1, [x23, x21, lsl #2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w0, #1
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
LBB0_11:
	bl	_RARCH_ERR
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load GLSL shader: %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create GL program #%u.\n"

	.no_dead_strip	_gl_glsl_compile_programs
.subsections_via_symbols
