	.file	"extr_mmalomx_commands.c_mmalomx_commands_actions_check.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mmalomx_commands_actions_check
	.type	mmalomx_commands_actions_check, @function
mmalomx_commands_actions_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, ebx
	mov	rdi, rbp
	add	ebx, 1
	lea	rsi, [rax+rdx*4]
	call	mmalomx_commands_check_port_actions@PLT
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L3
.L2:
	mov	rdi, rbp
	call	MMALOMX_LOCK@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L4
	mov	rdx, QWORD PTR 24[rbp]
	lea	ecx, -1[rax]
	xor	ebx, ebx
	lea	rax, 4[rdx]
	lea	rcx, [rax+rcx*4]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	add	rax, 4
.L5:
	or	ebx, DWORD PTR [rdx]
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L24
	test	ebx, ebx
	je	.L4
	mov	rdi, rbp
	call	MMALOMX_UNLOCK@PLT
	cmp	ebx, DWORD PTR MMALOMX_ACTION_NOTIFY_STATE[rip]
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L25
	mov	rdx, QWORD PTR state_transition_table[rip]
	mov	rdi, rbp
	mov	ebx, DWORD PTR MMALOMX_ACTION_NOTIFY_STATE[rip]
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 16[rbp], eax
	call	MMALOMX_UNLOCK@PLT
	cmp	DWORD PTR MMALOMX_ACTION_NOTIFY_STATE[rip], ebx
	je	.L8
	test	ebx, ebx
	jne	.L1
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mmalomx_commands_actions_next@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, rbp
	call	MMALOMX_UNLOCK@PLT
	mov	eax, DWORD PTR MMALOMX_ACTION_NOTIFY_STATE[rip]
	test	eax, eax
	jne	.L9
.L8:
	mov	ecx, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR OMX_CommandStateSet[rip]
	mov	rdi, rbp
	xor	r8d, r8d
	mov	esi, DWORD PTR OMX_EventCmdComplete[rip]
	call	mmalomx_callback_event_handler@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mmalomx_commands_actions_next@PLT
	.cfi_endproc
.LFE0:
	.size	mmalomx_commands_actions_check, .-mmalomx_commands_actions_check
	.comm	state_transition_table,8,8
	.comm	OMX_EventCmdComplete,4,4
	.comm	OMX_CommandStateSet,4,4
	.comm	MMALOMX_ACTION_NOTIFY_STATE,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_mmalomx_commands.c_mmalomx_commands_actions_check.c"
	.text
	.align	2
	.global	mmalomx_commands_actions_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmalomx_commands_actions_check, %function
mmalomx_commands_actions_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	sub	sp, sp, #8
	beq	.L2
	mov	r5, #0
.L3:
	ldr	r1, [r4, #12]
	mov	r0, r4
	add	r1, r1, r5, lsl #2
	bl	mmalomx_commands_check_port_actions
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L3
.L2:
	mov	r0, r4
	bl	MMALOMX_LOCK
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L4
	mov	r5, #0
	ldr	r3, [r4, #12]
	add	r1, r3, r1, lsl #2
	sub	r1, r1, #4
	sub	r3, r3, #4
.L5:
	ldr	r2, [r3, #4]!
	cmp	r3, r1
	orr	r5, r5, r2
	bne	.L5
	cmp	r5, #0
	beq	.L4
	mov	r0, r4
	bl	MMALOMX_UNLOCK
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r5, r3
	beq	.L8
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L29
	mov	r2, #0
	ldr	r1, .L30+4
	ldr	r5, .L30
	ldr	r1, [r1]
	mov	r0, r4
	ldr	r3, [r1, r3, lsl #2]
	ldr	r6, [r5]
	stmib	r4, {r2, r3}
	bl	MMALOMX_UNLOCK
	ldr	r3, [r5]
	cmp	r3, r6
	beq	.L8
	cmp	r6, #0
	bne	.L1
.L9:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	mmalomx_commands_actions_next
.L29:
	mov	r0, r4
	bl	MMALOMX_UNLOCK
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
.L8:
	mov	r1, #0
	ldr	r3, .L30+8
	ldr	r2, .L30+12
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, [r4, #8]
	bl	mmalomx_callback_event_handler
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	mmalomx_commands_actions_next
.L31:
	.align	2
.L30:
	.word	MMALOMX_ACTION_NOTIFY_STATE
	.word	state_transition_table
	.word	OMX_EventCmdComplete
	.word	OMX_CommandStateSet
	.size	mmalomx_commands_actions_check, .-mmalomx_commands_actions_check
	.comm	state_transition_table,4,4
	.comm	OMX_EventCmdComplete,4,4
	.comm	OMX_CommandStateSet,4,4
	.comm	MMALOMX_ACTION_NOTIFY_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
