	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_commands_actions_check ## -- Begin function mmalomx_commands_actions_check
	.p2align	4, 0x90
_mmalomx_commands_actions_check:        ## @mmalomx_commands_actions_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_mmalomx_commands_check_port_actions
	incq	%rbx
	movl	(%r14), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_MMALOMX_LOCK
	movl	(%r14), %eax
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movq	24(%r14), %rcx
	cmpl	$8, %eax
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rdi
	jae	LBB0_8
## %bb.7:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,4), %xmm2
	por	%xmm0, %xmm2
	movdqu	16(%rcx,%rdi,4), %xmm0
	por	%xmm1, %xmm0
	movdqu	32(%rcx,%rdi,4), %xmm1
	movdqu	48(%rcx,%rdi,4), %xmm3
	movdqu	64(%rcx,%rdi,4), %xmm4
	por	%xmm1, %xmm4
	por	%xmm2, %xmm4
	movdqu	80(%rcx,%rdi,4), %xmm2
	por	%xmm3, %xmm2
	por	%xmm0, %xmm2
	movdqu	96(%rcx,%rdi,4), %xmm0
	por	%xmm4, %xmm0
	movdqu	112(%rcx,%rdi,4), %xmm1
	por	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rcx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	por	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	por	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_12
LBB0_13:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rax, %rdx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	orl	(%rcx,%rdx,4), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_15:
	testl	%ebx, %ebx
	jne	LBB0_19
LBB0_16:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	_state_transition_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movq	_MMALOMX_ACTION_NOTIFY_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_17:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_MMALOMX_UNLOCK
	movq	_MMALOMX_ACTION_NOTIFY_STATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.20:
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r14), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_mmalomx_callback_event_handler
	jmp	LBB0_21
LBB0_22:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmalomx_commands_actions_next  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_state_transition_table,8,3     ## @state_transition_table
	.comm	_MMALOMX_ACTION_NOTIFY_STATE,4,2 ## @MMALOMX_ACTION_NOTIFY_STATE
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_commands_actions_check ; -- Begin function mmalomx_commands_actions_check
	.p2align	2
_mmalomx_commands_actions_check:        ; @mmalomx_commands_actions_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x20
	mov	x0, x19
	bl	_mmalomx_commands_check_port_actions
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_MMALOMX_LOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _MMALOMX_ACTION_NOTIFY_STATE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMALOMX_ACTION_NOTIFY_STATE@GOTPAGEOFF]
	cbz	w8, LBB0_12
; %bb.4:
	ldr	x9, [x19, #24]
	cmp	w8, #16
	b.hs	LBB0_6
; %bb.5:
	mov	x10, #0
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	and	x10, x8, #0xfffffff0
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_7
; %bb.8:
	orr.16b	v0, v1, v0
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w21, w11, w12
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	orr	w21, w10, w21
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	cbnz	w21, LBB0_15
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh2:
	adrp	x9, _state_transition_table@GOTPAGE
Lloh3:
	ldr	x9, [x9, _state_transition_table@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w21, [x20]
	b	LBB0_15
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x19
	bl	_MMALOMX_UNLOCK
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_17
; %bb.16:
Lloh5:
	adrp	x8, _OMX_EventCmdComplete@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMX_EventCmdComplete@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _OMX_CommandStateSet@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMX_CommandStateSet@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	x0, x19
	mov	x4, #0
	bl	_mmalomx_callback_event_handler
	b	LBB0_19
LBB0_17:
	cbz	w21, LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mmalomx_commands_actions_next
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_state_transition_table,8,3     ; @state_transition_table
	.comm	_MMALOMX_ACTION_NOTIFY_STATE,4,2 ; @MMALOMX_ACTION_NOTIFY_STATE
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
.subsections_via_symbols
