	.file	"extr_vo_rpi.c_flip_page.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"could not queue picture!\n"
	.text
	.p2align 4
	.type	flip_page, @function
flip_page:
.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	rbx, QWORD PTR [rdi]
	mov	edx, DWORD PTR 48[rbx]
	test	edx, edx
	je	.L1
	mov	eax, DWORD PTR [rbx]
	mov	r12, QWORD PTR 40[rbx]
	mov	rbp, rdi
	mov	QWORD PTR 40[rbx], 0
	test	eax, eax
	jne	.L4
	cmp	QWORD PTR 32[rbx], 0
	jne	.L14
.L4:
	mov	DWORD PTR [rbx], 0
	test	r12, r12
	je	.L6
.L17:
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR [r12]
	mov	rsi, QWORD PTR 24[rax]
	mov	QWORD PTR [rsi], r12
	call	mmal_port_send_buffer@PLT
	test	rax, rax
	jne	.L15
.L6:
	cmp	QWORD PTR 8[rbx], 0
	jne	.L16
.L1:
	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
.L16:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	wait_next_vsync@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	MP_ERR@PLT
	mov	rdi, r12
	call	talloc_free@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 28[rbx]
	call	eglSwapBuffers@PLT
	mov	DWORD PTR [rbx], 0
	test	r12, r12
	jne	.L17
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	flip_page, .-flip_page
	.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_vo_rpi.c_flip_page.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not queue picture!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flip_page, %function
flip_page:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	r3, [r4, #28]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r3, #0
	ldr	r2, [r4]
	ldr	r6, [r4, #24]
	cmp	r2, r3
	mov	r5, r0
	str	r3, [r4, #24]
	bne	.L4
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L20
.L4:
	mov	r3, #0
	cmp	r6, r3
	str	r3, [r4]
	beq	.L6
.L22:
	ldr	r3, [r4, #8]
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r1, [r2, #12]
	ldr	r0, [r3]
	str	r6, [r1]
	bl	mmal_port_send_buffer
	cmp	r0, #0
	bne	.L21
.L6:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	wait_next_vsync
.L21:
	mov	r0, r5
	ldr	r1, .L23
	bl	MP_ERR
	mov	r0, r6
	bl	talloc_free
	b	.L6
.L20:
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	eglSwapBuffers
	mov	r3, #0
	cmp	r6, r3
	str	r3, [r4]
	bne	.L22
	b	.L6
.L24:
	.align	2
.L23:
	.word	.LC0
	.size	flip_page, .-flip_page
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
