	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_glsl_get_attrib
_gl_glsl_get_attrib:                    ## @gl_glsl_get_attrib
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$0, -128(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$80, %edx
	callq	_strlcat
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_glGetUniformLocation
	movq	%rax, %rcx
	testq	%rax, %rax
	js	LBB0_1
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rcx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_glsl_prefixes@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movq	$-1, %rcx
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-128(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$80, %edx
	callq	_strlcat
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_glGetAttribLocation
	testq	%rax, %rax
	jns	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r15
	jb	LBB0_3
## %bb.5:
	movq	$-1, %rcx
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_glsl_prefixes,8,3              ## @glsl_prefixes
	.no_dead_strip	_gl_glsl_get_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_glsl_get_attrib
_gl_glsl_get_attrib:                    ; @gl_glsl_get_attrib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	strb	wzr, [sp, #8]
	ldr	x8, [x0]
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #80
	bl	_strlcpy
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #80
	bl	_strlcat
	add	x1, sp, #8
	mov	x0, x20
	bl	_glGetUniformLocation
	tbz	x0, #63, LBB0_6
; %bb.1:
Lloh3:
	adrp	x21, _glsl_prefixes@GOTPAGE
Lloh4:
	ldr	x21, [x21, _glsl_prefixes@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x22, lsl #2]
	add	x0, sp, #8
	mov	w2, #80
	bl	_strlcpy
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #80
	bl	_strlcat
	add	x1, sp, #8
	mov	x0, x20
	bl	_glGetAttribLocation
	tbz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_3
LBB0_5:
	mov	x0, #-1
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_glsl_prefixes,8,3              ; @glsl_prefixes
	.no_dead_strip	_gl_glsl_get_attrib
.subsections_via_symbols
