	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GLSL_LoadGPUShaderText
_GLSL_LoadGPUShaderText:                ## @GLSL_LoadGPUShaderText
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	$0, -56(%rbp)
	movq	_GL_VERTEX_SHADER@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	callq	_Com_sprintf
	movq	_r_externalGLSL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_ri@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	*(%r14)
	cmpq	$0, -56(%rbp)
	je	LBB0_3
## %bb.6:
	movl	%eax, %ebx
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	callq	*16(%r14)
	movq	-56(%rbp), %r12
	jmp	LBB0_7
LBB0_1:
	movq	$0, -56(%rbp)
LBB0_3:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	16(%rax), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	*%rax
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_7:
	xorl	%r13d, %r13d
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_9
## %bb.8:
	incl	%ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_Q_strncpyz
	movl	$1, %r13d
LBB0_9:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*8(%rax)
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	*%rax
	xorl	%r13d, %r13d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_GL_VERTEX_SHADER,8,3           ## @GL_VERTEX_SHADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glsl/%s_vp.glsl"

L_.str.1:                               ## @.str.1
	.asciz	"glsl/%s_fp.glsl"

	.comm	_r_externalGLSL,8,3             ## @r_externalGLSL
	.comm	_ri,24,3                        ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
L_.str.2:                               ## @.str.2
	.asciz	"...loading built-in '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"couldn't load '%s'\n"

L_.str.4:                               ## @.str.4
	.asciz	"...loading '%s'\n"

	.no_dead_strip	_GLSL_LoadGPUShaderText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GLSL_LoadGPUShaderText
_GLSL_LoadGPUShaderText:                ; @GLSL_LoadGPUShaderText
	.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
	sub	sp, sp, #16
	mov	x20, x4
	mov	x19, x3
	mov	x21, x1
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	stur	xzr, [x29, #-64]
Lloh8:
	adrp	x8, _GL_VERTEX_SHADER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_VERTEX_SHADER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh13:
	adrp	x10, l_.str@PAGE
Lloh14:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x2
	csel	x2, x10, x9, eq
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_Com_sprintf
Lloh15:
	adrp	x8, _r_externalGLSL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _r_externalGLSL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh18:
	adrp	x24, _ri@GOTPAGE
Lloh19:
	ldr	x24, [x24, _ri@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x24]
	sub	x1, x29, #64
	mov	x0, x22
	blr	x8
	ldur	x8, [x29, #-64]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	x8, [x24, #16]
Lloh20:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	blr	x8
	ldur	x21, [x29, #-64]
	cmp	w23, w20
	b.le	LBB0_7
LBB0_3:
	mov	w19, #0
	ldur	x0, [x29, #-64]
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_4:
	stur	xzr, [x29, #-64]
LBB0_5:
	ldr	x8, [x24, #16]
Lloh25:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	cbz	x21, LBB0_9
; %bb.6:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	blr	x8
	mov	x0, x21
	bl	_strlen
	mov	x23, x0
	cmp	w23, w20
	b.gt	LBB0_3
LBB0_7:
	add	w2, w23, #1
	mov	x0, x19
	mov	x1, x21
	bl	_Q_strncpyz
	mov	w19, #1
	ldur	x0, [x29, #-64]
	cbz	x0, LBB0_10
LBB0_8:
	ldr	x8, [x24, #8]
	blr	x8
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	blr	x8
	mov	w19, #0
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #48
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_GL_VERTEX_SHADER,8,3           ; @GL_VERTEX_SHADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glsl/%s_vp.glsl"

l_.str.1:                               ; @.str.1
	.asciz	"glsl/%s_fp.glsl"

	.comm	_r_externalGLSL,8,3             ; @r_externalGLSL
	.comm	_ri,24,3                        ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
l_.str.2:                               ; @.str.2
	.asciz	"...loading built-in '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"couldn't load '%s'\n"

l_.str.4:                               ; @.str.4
	.asciz	"...loading '%s'\n"

	.no_dead_strip	_GLSL_LoadGPUShaderText
.subsections_via_symbols
