	.file	"extr_dmlab_connect.c_create_update_pbo_or_die.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GL Error creating PBO buffers.\n"
	.align 8
.LC1:
	.string	"Failed to generate PBO data buffer.\n"
	.text
	.p2align 4
	.type	create_update_pbo_or_die, @function
create_update_pbo_or_die:
.LFB0:
	.cfi_startproc
	endbr64
	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	edx, DWORD PTR 20[rdi]
	mov	rbx, rdi
	test	edx, edx
	je	.L11
.L2:
	mov	eax, DWORD PTR 12[rbx]
	test	eax, eax
	je	.L12
.L3:
	xor	eax, eax
	call	qglGetError@PLT
	cmp	rax, QWORD PTR GL_NO_ERROR[rip]
	je	.L4
	mov	esi, DWORD PTR stderr[rip]
	lea	rdi, .LC0[rip]
	call	fputs@PLT
	xor	eax, eax
	call	abort@PLT
.L4:
	mov	ebp, DWORD PTR [rbx]
	imul	ebp, DWORD PTR 4[rbx]
	lea	r12d, 0[rbp+rbp*2]
	cmp	DWORD PTR 16[rbx], r12d
	jl	.L13
.L5:
	cmp	DWORD PTR 8[rbx], ebp
	jl	.L14
	pop	rbx
	.cfi_remember_state
	.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
.L12:
	.cfi_restore_state
	lea	rsi, 12[rbx]
	mov	edi, 1
	call	qglGenBuffers@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, 20[rdi]
	mov	edi, 1
	call	qglGenBuffers@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	call	qglBindBuffer@PLT
	mov	ecx, DWORD PTR GL_STREAM_READ[rip]
	xor	edx, edx
	mov	esi, ebp
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	call	qglBufferData@PLT
	xor	eax, eax
	call	qglGetError@PLT
	cmp	rax, QWORD PTR GL_NO_ERROR[rip]
	jne	.L15
.L8:
	mov	DWORD PTR 8[rbx], ebp
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	xor	esi, esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	qglBindBuffer@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	call	qglBindBuffer@PLT
	mov	ecx, DWORD PTR GL_STREAM_READ[rip]
	xor	edx, edx
	mov	esi, r12d
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	call	qglBufferData@PLT
	xor	eax, eax
	call	qglGetError@PLT
	cmp	rax, QWORD PTR GL_NO_ERROR[rip]
	jne	.L16
.L6:
	mov	DWORD PTR 16[rbx], r12d
	mov	edi, DWORD PTR GL_PIXEL_PACK_BUFFER[rip]
	xor	esi, esi
	call	qglBindBuffer@PLT
	mov	ebp, DWORD PTR [rbx]
	imul	ebp, DWORD PTR 4[rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR stderr[rip]
	lea	rdi, .LC1[rip]
	call	fputs@PLT
	xor	eax, eax
	call	abort@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR stderr[rip]
	lea	rdi, .LC1[rip]
	call	fputs@PLT
	xor	eax, eax
	call	abort@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	create_update_pbo_or_die, .-create_update_pbo_or_die
	.comm	stderr,4,4
	.comm	GL_STREAM_READ,4,4
	.comm	GL_PIXEL_PACK_BUFFER,4,4
	.comm	GL_NO_ERROR,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_dmlab_connect.c_create_update_pbo_or_die.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GL Error creating PBO buffers.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to generate PBO data buffer.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_update_pbo_or_die, %function
create_update_pbo_or_die:
	@ 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
	mov	r4, r0
	beq	.L11
.L2:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L12
.L3:
	bl	qglGetError
	ldr	r8, .L16
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L16+4
	ldr	r0, .L16+8
	ldr	r1, [r3]
	bl	fputs
	bl	abort
.L4:
	ldr	r5, [r4]
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #16]
	mul	r5, r2, r5
	add	r6, r5, r5, lsl #1
	cmp	r3, r6
	blt	.L13
.L5:
	ldr	r3, [r4, #8]
	cmp	r3, r5
	popge	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L16+12
	ldr	r1, [r4, #12]
	ldr	r0, [r7]
	bl	qglBindBuffer
	ldr	r3, .L16+16
	mov	r2, #0
	ldr	r3, [r3]
	mov	r1, r5
	ldr	r0, [r7]
	bl	qglBufferData
	bl	qglGetError
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L14
.L8:
	ldr	r0, [r7]
	str	r5, [r4, #8]
	mov	r1, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	qglBindBuffer
.L13:
	ldr	r7, .L16+12
	ldr	r1, [r4, #20]
	ldr	r0, [r7]
	bl	qglBindBuffer
	ldr	r3, .L16+16
	mov	r2, #0
	ldr	r3, [r3]
	mov	r1, r6
	ldr	r0, [r7]
	bl	qglBufferData
	bl	qglGetError
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L15
.L6:
	mov	r1, #0
	ldr	r0, [r7]
	str	r6, [r4, #16]
	bl	qglBindBuffer
	ldr	r5, [r4]
	ldr	r3, [r4, #4]
	mul	r5, r3, r5
	b	.L5
.L12:
	add	r1, r4, #12
	mov	r0, #1
	bl	qglGenBuffers
	b	.L3
.L11:
	add	r1, r0, #20
	mov	r0, #1
	bl	qglGenBuffers
	b	.L2
.L15:
	ldr	r3, .L16+4
	ldr	r0, .L16+20
	ldr	r1, [r3]
	bl	fputs
	bl	abort
	b	.L6
.L14:
	ldr	r3, .L16+4
	ldr	r0, .L16+20
	ldr	r1, [r3]
	bl	fputs
	bl	abort
	b	.L8
.L17:
	.align	2
.L16:
	.word	GL_NO_ERROR
	.word	stderr
	.word	.LC0
	.word	GL_PIXEL_PACK_BUFFER
	.word	GL_STREAM_READ
	.word	.LC1
	.size	create_update_pbo_or_die, .-create_update_pbo_or_die
	.comm	stderr,4,4
	.comm	GL_STREAM_READ,4,4
	.comm	GL_PIXEL_PACK_BUFFER,4,4
	.comm	GL_NO_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
