	.file	"extr_varray.c_gl_DrawElements.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"glDrawElements"
.LC1:
	.string	"glDrawElements(count)"
.LC2:
	.string	"glDrawArrays(mode)"
.LC3:
	.string	"glDrawElements(type)"
	.text
	.p2align 4
	.globl	gl_DrawElements
	.type	gl_DrawElements, @function
gl_DrawElements:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	call	INSIDE_BEGIN_END@PLT
	mov	esi, DWORD PTR GL_INVALID_OPERATION[rip]
	lea	rdx, .LC0[rip]
	test	rax, rax
	jne	.L27
	mov	esi, DWORD PTR GL_INVALID_VALUE[rip]
	lea	rdx, .LC1[rip]
	test	r13, r13
	js	.L27
	lea	eax, -131[r12]
	lea	rdx, .LC2[rip]
	cmp	eax, 9
	ja	.L28
	cmp	ebp, 129
	je	.L5
	cmp	ebp, 130
	je	.L6
	lea	rdx, .LC3[rip]
	cmp	ebp, 128
	je	.L30
.L28:
	mov	esi, DWORD PTR GL_INVALID_ENUM[rip]
.L27:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gl_error@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, r14
	call	gl_Begin@PLT
	test	r13, r13
	je	.L9
	lea	rbp, [rbx+r13*4]
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rsi, DWORD PTR [rbx]
	mov	rdi, r14
	add	rbx, 4
	call	gl_ArrayElement@PLT
	cmp	rbx, rbp
	jne	.L12
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gl_End@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, r14
	call	gl_Begin@PLT
	test	r13, r13
	je	.L9
	lea	rbp, [rbx+r13*4]
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	rsi, DWORD PTR [rbx]
	mov	rdi, r14
	add	rbx, 4
	call	gl_ArrayElement@PLT
	cmp	rbp, rbx
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gl_End@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, r14
	call	gl_Begin@PLT
	test	r13, r13
	je	.L9
	lea	rbp, [rbx+r13*4]
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	rsi, DWORD PTR [rbx]
	mov	rdi, r14
	add	rbx, 4
	call	gl_ArrayElement@PLT
	cmp	rbx, rbp
	jne	.L10
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gl_End@PLT
	.cfi_endproc
.LFE0:
	.size	gl_DrawElements, .-gl_DrawElements
	.comm	GL_INVALID_VALUE,4,4
	.comm	GL_INVALID_OPERATION,4,4
	.comm	GL_INVALID_ENUM,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_varray.c_gl_DrawElements.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"glDrawElements\000"
	.align	2
.LC1:
	.ascii	"glDrawElements(count)\000"
	.align	2
.LC2:
	.ascii	"glDrawArrays(mode)\000"
	.align	2
.LC3:
	.ascii	"glDrawElements(type)\000"
	.text
	.align	2
	.global	gl_DrawElements
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_DrawElements, %function
gl_DrawElements:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [sp, #24]
	mov	r8, r1
	mov	r5, r2
	mov	r7, r3
	mov	r6, r0
	bl	INSIDE_BEGIN_END
	cmp	r0, #0
	bne	.L28
	cmp	r5, #0
	blt	.L29
	sub	r3, r8, #131
	cmp	r3, #9
	bhi	.L30
	cmp	r7, #129
	beq	.L5
	cmp	r7, #130
	beq	.L6
	cmp	r7, #128
	beq	.L31
	ldr	r3, .L32
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	ldr	r2, .L32+4
	b	gl_error
.L30:
	ldr	r3, .L32
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	ldr	r2, .L32+8
	b	gl_error
.L28:
	ldr	r3, .L32+12
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	ldr	r2, .L32+16
	b	gl_error
.L29:
	ldr	r3, .L32+20
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	ldr	r2, .L32+24
	b	gl_error
.L31:
	mov	r1, r8
	mov	r0, r6
	bl	gl_Begin
	cmp	r5, #0
	beq	.L9
	sub	r4, r4, #4
	add	r5, r4, r5, lsl #2
.L11:
	ldr	r1, [r4, #4]!
	mov	r0, r6
	bl	gl_ArrayElement
	cmp	r5, r4
	bne	.L11
.L9:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	gl_End
.L6:
	mov	r1, r8
	mov	r0, r6
	bl	gl_Begin
	cmp	r5, #0
	beq	.L9
	sub	r4, r4, #4
	add	r5, r4, r5, lsl #2
.L10:
	ldr	r1, [r4, #4]!
	mov	r0, r6
	bl	gl_ArrayElement
	cmp	r4, r5
	bne	.L10
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	gl_End
.L5:
	mov	r1, r8
	mov	r0, r6
	bl	gl_Begin
	cmp	r5, #0
	beq	.L9
	sub	r4, r4, #4
	add	r5, r4, r5, lsl #2
.L12:
	ldr	r1, [r4, #4]!
	mov	r0, r6
	bl	gl_ArrayElement
	cmp	r4, r5
	bne	.L12
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	gl_End
.L33:
	.align	2
.L32:
	.word	GL_INVALID_ENUM
	.word	.LC3
	.word	.LC2
	.word	GL_INVALID_OPERATION
	.word	.LC0
	.word	GL_INVALID_VALUE
	.word	.LC1
	.size	gl_DrawElements, .-gl_DrawElements
	.comm	GL_INVALID_VALUE,4,4
	.comm	GL_INVALID_OPERATION,4,4
	.comm	GL_INVALID_ENUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
