	.file	"extr_graphics.c_gs_indexbuffer_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gs_indexbuffer_create"
	.text
	.p2align 4
	.globl	gs_indexbuffer_create
	.type	gs_indexbuffer_create, @function
gs_indexbuffer_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	lea	rdi, .LC0[rip]
	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	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, QWORD PTR thread_graphics[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	call	gs_valid@PLT
	test	eax, eax
	je	.L2
	test	r12, r12
	je	.L3
	test	r13, r13
	je	.L3
	test	DWORD PTR GS_DUP_BUFFER[rip], ebx
	je	.L3
	xor	esi, esi
	cmp	DWORD PTR GS_UNSIGNED_SHORT[rip], r14d
	mov	rdi, r12
	setne	sil
	lea	rsi, 2[rsi+rsi]
	imul	rsi, r13
	call	bmemdup@PLT
	mov	r12, rax
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	r8d, ebx
	mov	rcx, r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	esi, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	gs_indexbuffer_create, .-gs_indexbuffer_create
	.comm	thread_graphics,8,8
	.comm	GS_UNSIGNED_SHORT,4,4
	.comm	GS_DUP_BUFFER,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_graphics.c_gs_indexbuffer_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gs_indexbuffer_create\000"
	.text
	.align	2
	.global	gs_indexbuffer_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	gs_indexbuffer_create, %function
gs_indexbuffer_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L15
	mov	r7, r0
	sub	sp, sp, #8
	ldr	r0, .L15+4
	mov	r4, r1
	mov	r5, r2
	mov	r8, r3
	ldr	r6, [ip]
	bl	gs_valid
	cmp	r0, #0
	beq	.L1
	cmp	r4, #0
	cmpne	r5, #0
	beq	.L3
	ldr	r3, .L15+8
	ldr	r3, [r3]
	tst	r8, r3
	beq	.L3
	ldr	r3, .L15+12
	mov	r0, r4
	ldr	r1, [r3]
	cmp	r1, r7
	moveq	r1, #2
	movne	r1, #4
	mul	r1, r5, r1
	bl	bmemdup
	mov	r4, r0
.L3:
	ldr	r0, [r6]
	str	r8, [sp]
	mov	r2, r4
	mov	r3, r5
	mov	r1, r7
	ldr	r4, [r6, #4]
	blx	r4
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	thread_graphics
	.word	.LC0
	.word	GS_DUP_BUFFER
	.word	GS_UNSIGNED_SHORT
	.size	gs_indexbuffer_create, .-gs_indexbuffer_create
	.comm	thread_graphics,4,4
	.comm	GS_UNSIGNED_SHORT,4,4
	.comm	GS_DUP_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
