	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_ffp_vertex_texmatrix_uniform
_shader_glsl_ffp_vertex_texmatrix_uniform: ## @shader_glsl_ffp_vertex_texmatrix_uniform
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jbe	LBB0_3
## %bb.1:
	movq	%rcx, %rbx
	movq	(%rcx), %rax
	movl	%edx, %r15d
	cmpl	$-1, (%rax,%r15,4)
	je	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %r14
	movq	%r14, %rcx
	callq	_get_texture_matrix
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_glUniformMatrix4fv
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TEXTURES,4,2               ## @MAX_TEXTURES
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glUniformMatrix4fv"

	.no_dead_strip	_shader_glsl_ffp_vertex_texmatrix_uniform
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_ffp_vertex_texmatrix_uniform
_shader_glsl_ffp_vertex_texmatrix_uniform: ; @shader_glsl_ffp_vertex_texmatrix_uniform
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MAX_TEXTURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TEXTURES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x3
	ldr	x8, [x3]
	ldr	w8, [x8, w2, uxtw #2]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	mov	w20, w2
	add	x3, sp, #8
	bl	_get_texture_matrix
	ldr	x8, [x19]
	ldr	w0, [x8, x20, lsl #2]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w1, #1
	bl	_glUniformMatrix4fv
	bl	_GL_EXTCALL
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TEXTURES,4,2               ; @MAX_TEXTURES
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glUniformMatrix4fv"

	.no_dead_strip	_shader_glsl_ffp_vertex_texmatrix_uniform
.subsections_via_symbols
