	.file	"extr_gl-vertexbuffer.c_gs_vertexbuffer_flush_internal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vertex buffer is not dynamic"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"gs_vertexbuffer_flush (GL) failed"
	.text
	.p2align 4
	.type	gs_vertexbuffer_flush_internal, @function
gs_vertexbuffer_flush_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 40[rdi]
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR 48[rdi]
	mov	rdx, QWORD PTR 48[rsi]
	mov	r13, rdi
	mov	r12, rsi
	mov	rbp, QWORD PTR [rsi]
	mov	rbx, QWORD PTR [rax]
	test	rdx, rdx
	jne	.L4
.L8:
	mov	rsi, QWORD PTR 24[r13]
	test	rsi, rsi
	je	.L6
	mov	rdx, QWORD PTR 40[r12]
	test	rdx, rdx
	jne	.L46
.L6:
	mov	rsi, QWORD PTR 16[r13]
	test	rsi, rsi
	je	.L10
	mov	rdx, QWORD PTR 32[r12]
	test	rdx, rdx
	jne	.L47
.L10:
	mov	rsi, QWORD PTR 8[r13]
	test	rsi, rsi
	jne	.L11
.L12:
	cmp	rbx, rbp
	cmova	rbx, rbp
	xor	ebp, ebp
	test	rbx, rbx
	jne	.L13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	add	rbp, 1
	cmp	rbx, rbp
	je	.L1
.L13:
	mov	rax, rbp
	mov	ecx, DWORD PTR 8[r12]
	mov	edi, DWORD PTR GL_ARRAY_BUFFER[rip]
	sal	rax, 4
	add	rax, QWORD PTR 16[r12]
	imul	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 0[r13]
	movsx	rcx, ecx
	mov	rsi, QWORD PTR [rax+rbp*8]
	sal	rcx, 2
	call	update_buffer@PLT
	test	eax, eax
	jne	.L48
.L3:
	mov	edi, DWORD PTR LOG_ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, .LC1[rip]
	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
	jmp	blog@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[r12]
	test	rdx, rdx
	je	.L12
	movsx	rcx, DWORD PTR 8[r12]
	mov	edi, DWORD PTR GL_ARRAY_BUFFER[rip]
	sal	rcx, 2
	call	update_buffer@PLT
	test	eax, eax
	jne	.L12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	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
.L4:
	.cfi_restore_state
	movsx	rcx, DWORD PTR 8[rsi]
	mov	rsi, QWORD PTR 32[rdi]
	mov	edi, DWORD PTR GL_ARRAY_BUFFER[rip]
	sal	rcx, 2
	call	update_buffer@PLT
	test	eax, eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR LOG_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	blog@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L46:
	movsx	rcx, DWORD PTR 8[r12]
	mov	edi, DWORD PTR GL_ARRAY_BUFFER[rip]
	sal	rcx, 2
	call	update_buffer@PLT
	test	eax, eax
	jne	.L6
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	movsx	rcx, DWORD PTR 8[r12]
	mov	edi, DWORD PTR GL_ARRAY_BUFFER[rip]
	sal	rcx, 2
	call	update_buffer@PLT
	test	eax, eax
	jne	.L10
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	gs_vertexbuffer_flush_internal, .-gs_vertexbuffer_flush_internal
	.comm	LOG_ERROR,4,4
	.comm	GL_ARRAY_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_gl-vertexbuffer.c_gs_vertexbuffer_flush_internal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vertex buffer is not dynamic\000"
	.align	2
.LC1:
	.ascii	"gs_vertexbuffer_flush (GL) failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gs_vertexbuffer_flush_internal, %function
gs_vertexbuffer_flush_internal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #20]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	beq	.L44
	ldr	r2, [r1, #24]
	ldr	r3, [r0, #24]
	cmp	r2, #0
	mov	r6, r0
	mov	r5, r1
	ldr	r7, [r3]
	ldr	r4, [r1]
	bne	.L4
.L8:
	ldr	r1, [r6, #12]
	cmp	r1, #0
	beq	.L6
	ldr	r2, [r5, #20]
	cmp	r2, #0
	bne	.L45
.L6:
	ldr	r1, [r6, #8]
	cmp	r1, #0
	beq	.L10
	ldr	r2, [r5, #16]
	cmp	r2, #0
	bne	.L46
.L10:
	ldr	r1, [r6, #4]
	cmp	r1, #0
	bne	.L11
.L12:
	cmp	r7, r4
	movcs	r7, r4
	cmp	r7, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	ldr	r8, .L47
	b	.L13
.L37:
	cmp	r7, r4
	popeq	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #4]
	ldr	r0, [r2, r4, lsl #3]
	ldr	r1, [r6]
	mul	r3, r0, r3
	add	r2, r2, r4, lsl #3
	ldr	r1, [r1, r4, lsl #2]
	ldr	r2, [r2, #4]
	ldr	r0, [r8]
	lsl	r3, r3, #2
	bl	update_buffer
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L37
.L42:
.L3:
	ldr	r4, .L47+4
	ldr	r1, .L47+8
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	blog
.L11:
	ldr	r2, [r5, #12]
	cmp	r2, #0
	beq	.L12
	ldr	r3, [r5, #4]
	ldr	r8, .L47
	lsl	r3, r3, #2
	ldr	r0, [r8]
	bl	update_buffer
	cmp	r0, #0
	bne	.L12
	b	.L42
.L4:
	ldr	r3, [r1, #4]
	ldr	r8, .L47
	ldr	r1, [r6, #16]
	ldr	r0, [r8]
	lsl	r3, r3, #2
	bl	update_buffer
	cmp	r0, #0
	bne	.L8
	b	.L42
.L44:
	ldr	r4, .L47+4
	ldr	r1, .L47+12
	ldr	r0, [r4]
	bl	blog
	ldr	r0, [r4]
	ldr	r1, .L47+8
	pop	{r4, r5, r6, r7, r8, lr}
	b	blog
.L45:
	ldr	r3, [r5, #4]
	ldr	r8, .L47
	lsl	r3, r3, #2
	ldr	r0, [r8]
	bl	update_buffer
	cmp	r0, #0
	bne	.L6
	b	.L42
.L46:
	ldr	r3, [r5, #4]
	ldr	r8, .L47
	lsl	r3, r3, #2
	ldr	r0, [r8]
	bl	update_buffer
	cmp	r0, #0
	bne	.L10
	b	.L42
.L48:
	.align	2
.L47:
	.word	GL_ARRAY_BUFFER
	.word	LOG_ERROR
	.word	.LC1
	.word	.LC0
	.size	gs_vertexbuffer_flush_internal, .-gs_vertexbuffer_flush_internal
	.comm	LOG_ERROR,4,4
	.comm	GL_ARRAY_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
