	.file	"extr_renderer_rgb.c_rgb888_uploadTexture.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[rgb888] unexpected format %x\n"
	.text
	.p2align 4
	.type	rgb888_uploadTexture, @function
rgb888_uploadTexture:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L6
	test	rsi, rsi
	je	.L6
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r8d, DWORD PTR 12[rsi]
	cmp	r8d, 128
	je	.L5
	mov	esi, r8d
	lea	rdi, .LC0[rip]
	call	ALOGE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR GL_FALSE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsi]
	mov	ebp, DWORD PTR 8[rsi]
	mov	ebx, DWORD PTR [rax]
	mov	rax, QWORD PTR 16[rsi]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR GL_TEXTURE_2D[rip]
	mov	esi, DWORD PTR [rax]
	call	glBindTexture@PLT
	movsx	rcx, ebx
	mov	edx, DWORD PTR GL_RGB[rip]
	xor	esi, esi
	mov	eax, DWORD PTR GL_UNSIGNED_BYTE[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	sar	ebx, 31
	mov	r8d, ebp
	imul	rcx, rcx, 1431655766
	push	r12
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR GL_TEXTURE_2D[rip]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 56
	push	rdx
	.cfi_def_cfa_offset 64
	shr	rcx, 32
	sub	ecx, ebx
	call	glTexImage2D@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR GL_TRUE[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR GL_FALSE[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	rgb888_uploadTexture, .-rgb888_uploadTexture
	.comm	GL_UNSIGNED_BYTE,4,4
	.comm	GL_TRUE,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GL_RGB,4,4
	.comm	GL_FALSE,4,4
	.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_renderer_rgb.c_rgb888_uploadTexture.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[rgb888] unexpected format %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rgb888_uploadTexture, %function
rgb888_uploadTexture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	sub	sp, sp, #24
	bne	.L6
	mov	r2, r1
	ldr	r1, [r1, #8]
	cmp	r1, #128
	beq	.L4
	ldr	r0, .L8
	bl	ALOGE
.L6:
	ldr	r3, .L8+4
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r1, [r0]
	ldr	r6, .L8+8
	ldr	ip, [r2]
	ldr	r3, [r2, #12]
	ldr	r1, [r1]
	ldr	r0, [r6]
	ldr	r5, [ip]
	ldr	r8, [r3]
	ldr	r7, [r2, #4]
	bl	glBindTexture
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	smull	r1, r3, r5, r3
	ldr	r1, .L8+20
	ldr	r2, [r2]
	ldr	ip, [r1]
	sub	r3, r3, r5, asr #31
	mov	r1, r4
	ldr	r0, [r6]
	str	r8, [sp, #16]
	str	r7, [sp]
	str	r4, [sp, #4]
	str	r2, [sp, #8]
	str	ip, [sp, #12]
	bl	glTexImage2D
	ldr	r3, .L8+24
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	GL_FALSE
	.word	GL_TEXTURE_2D
	.word	1431655766
	.word	GL_RGB
	.word	GL_UNSIGNED_BYTE
	.word	GL_TRUE
	.size	rgb888_uploadTexture, .-rgb888_uploadTexture
	.comm	GL_UNSIGNED_BYTE,4,4
	.comm	GL_TRUE,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GL_RGB,4,4
	.comm	GL_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
