	.file	"extr_mmal_vc_shm.c_mmal_vc_payload_list_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmal_vc_payload_list_get, @function
mmal_vc_payload_list_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, mmal_vc_payload_list[rip]
	call	vcos_mutex_lock@PLT
	mov	eax, DWORD PTR MMAL_VC_PAYLOAD_ELEM_MAX[rip]
	test	eax, eax
	je	.L5
	mov	r12, QWORD PTR mmal_vc_payload_list[rip+8]
	sub	eax, 1
	lea	rax, 4[r12+rax*4]
.L4:
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L9
	mov	DWORD PTR [r12], 1
.L2:
	lea	rdi, mmal_vc_payload_list[rip]
	call	vcos_mutex_unlock@PLT
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	r12, 4
	cmp	r12, rax
	jne	.L4
.L5:
	xor	r12d, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mmal_vc_payload_list_get, .-mmal_vc_payload_list_get
	.comm	mmal_vc_payload_list,16,16
	.comm	MMAL_VC_PAYLOAD_ELEM_MAX,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_mmal_vc_shm.c_mmal_vc_payload_list_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmal_vc_payload_list_get, %function
mmal_vc_payload_list_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L10
	mov	r0, r4
	bl	vcos_mutex_lock
	ldr	r3, .L10+4
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L5
	mov	r0, #0
	ldr	r3, [r4, #4]
.L4:
	mov	r4, r3
	ldr	r2, [r3], #4
	cmp	r2, #0
	bne	.L9
	mov	r3, #1
	str	r3, [r4]
.L2:
	ldr	r0, .L10
	bl	vcos_mutex_unlock
	mov	r0, r4
	pop	{r4, pc}
.L9:
	add	r0, r0, #1
	cmp	r0, r1
	bne	.L4
	mov	r4, #0
	b	.L2
.L5:
	mov	r4, r1
	b	.L2
.L11:
	.align	2
.L10:
	.word	mmal_vc_payload_list
	.word	MMAL_VC_PAYLOAD_ELEM_MAX
	.size	mmal_vc_payload_list_get, .-mmal_vc_payload_list_get
	.comm	mmal_vc_payload_list,8,4
	.comm	MMAL_VC_PAYLOAD_ELEM_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
