	.file	"extr_shader_cache.c_gl_sc_uniform_texture.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"samplerExternalOES"
.LC1:
	.string	"highp usampler2D"
.LC2:
	.string	"sampler1D"
.LC3:
	.string	"sampler3D"
.LC4:
	.string	"sampler2DRect"
.LC5:
	.string	"sampler2D"
.LC6:
	.string	"usampler2D"
	.text
	.p2align 4
	.globl	gl_sc_uniform_texture
	.type	gl_sc_uniform_texture, @function
gl_sc_uniform_texture:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, .LC2[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 1
	je	.L2
	lea	r12, .LC3[rip]
	cmp	eax, 3
	je	.L2
	cmp	QWORD PTR 24[rdx], 0
	lea	r12, .LC4[rip]
	jne	.L2
	cmp	QWORD PTR 16[rdx], 0
	lea	r12, .LC0[rip]
	je	.L13
.L2:
	mov	rdi, r13
	call	find_uniform@PLT
	mov	esi, DWORD PTR RA_VARTYPE_TEX[rip]
	mov	rdi, r13
	mov	QWORD PTR [rax], r12
	mov	rbx, rax
	mov	DWORD PTR 16[rax], esi
	call	gl_sc_next_binding@PLT
	mov	QWORD PTR 8[rbx], rbp
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdx]
	mov	rcx, QWORD PTR RA_CTYPE_UINT[rip]
	lea	r12, .LC5[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L2
	mov	rax, QWORD PTR [rdi]
	lea	r12, .LC1[rip]
	cmp	QWORD PTR [rax], 0
	lea	rax, .LC6[rip]
	cmove	r12, rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gl_sc_uniform_texture, .-gl_sc_uniform_texture
	.comm	RA_VARTYPE_TEX,4,4
	.comm	RA_CTYPE_UINT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_shader_cache.c_gl_sc_uniform_texture.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"samplerExternalOES\000"
	.align	2
.LC1:
	.ascii	"highp usampler2D\000"
	.align	2
.LC2:
	.ascii	"sampler1D\000"
	.align	2
.LC3:
	.ascii	"sampler3D\000"
	.align	2
.LC4:
	.ascii	"sampler2DRect\000"
	.align	2
.LC5:
	.ascii	"sampler2D\000"
	.align	2
.LC6:
	.ascii	"usampler2D\000"
	.text
	.align	2
	.global	gl_sc_uniform_texture
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_sc_uniform_texture, %function
gl_sc_uniform_texture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #1
	mov	r5, r2
	mov	r6, r0
	beq	.L3
	cmp	r3, #3
	beq	.L4
	ldr	r3, [r2, #12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r2, #8]
	cmp	r3, #0
	beq	.L11
	ldr	r7, .L12
	b	.L2
.L4:
	ldr	r7, .L12+4
.L2:
	mov	r0, r6
	bl	find_uniform
	mov	r4, r0
	ldr	r3, .L12+8
	mov	r0, r6
	ldr	r1, [r3]
	str	r7, [r4]
	str	r1, [r4, #8]
	bl	gl_sc_next_binding
	str	r5, [r4, #4]
	str	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r7, .L12+12
	b	.L2
.L5:
	ldr	r7, .L12+16
	b	.L2
.L11:
	ldr	r2, [r2, #4]
	ldr	r3, .L12+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrne	r7, .L12+24
	bne	.L2
	ldr	r3, [r0]
	ldr	r7, .L12+28
	ldr	r2, [r3]
	ldr	r3, .L12+32
	cmp	r2, #0
	moveq	r7, r3
	b	.L2
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC3
	.word	RA_VARTYPE_TEX
	.word	.LC2
	.word	.LC4
	.word	RA_CTYPE_UINT
	.word	.LC5
	.word	.LC1
	.word	.LC6
	.size	gl_sc_uniform_texture, .-gl_sc_uniform_texture
	.comm	RA_VARTYPE_TEX,4,4
	.comm	RA_CTYPE_UINT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
