	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_commands_actions_next  ## -- Begin function mmalomx_commands_actions_next
	.p2align	4, 0x90
_mmalomx_commands_actions_next:         ## @mmalomx_commands_actions_next
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_mmalomx_command_dequeue
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.1:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %r12d
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_3
## %bb.2:
	addl	$4, %r14d
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_mmalomx_command_state_set
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_OMX_CommandFlush@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.4:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_24
## %bb.5:
	leal	4(%r14), %r15d
	xorl	%ebx, %ebx
	movq	_OMX_ALL@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mmalomx_command_port_flush
	movl	(%r14), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_24
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r12d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r13), %r12d
	jne	LBB0_9
	jmp	LBB0_8
LBB0_10:
	movq	_OMX_CommandPortEnable@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_17
## %bb.11:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:
	leal	4(%r14), %r15d
	xorl	%ebx, %ebx
	movq	_OMX_ALL@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mmalomx_command_port_enable
	movl	(%r14), %eax
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r12d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	(%r13), %r12d
	jne	LBB0_16
	jmp	LBB0_15
LBB0_17:
	movq	_OMX_CommandPortDisable@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_24
## %bb.18:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	leal	4(%r14), %r15d
	xorl	%ebx, %ebx
	movq	_OMX_ALL@GOTPCREL(%rip), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mmalomx_command_port_disable
	movl	(%r14), %eax
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r12d
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	(%r13), %r12d
	jne	LBB0_23
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.comm	_OMX_CommandStateSet,8,3        ## @OMX_CommandStateSet
	.comm	_OMX_CommandFlush,8,3           ## @OMX_CommandFlush
	.comm	_OMX_ALL,4,2                    ## @OMX_ALL
	.comm	_OMX_CommandPortEnable,8,3      ## @OMX_CommandPortEnable
	.comm	_OMX_CommandPortDisable,8,3     ## @OMX_CommandPortDisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_commands_actions_next  ; -- Begin function mmalomx_commands_actions_next
	.p2align	2
_mmalomx_commands_actions_next:         ; @mmalomx_commands_actions_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_mmalomx_command_dequeue
Lloh0:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldp	w20, w8, [sp, #8]
Lloh3:
	adrp	x9, _OMX_CommandStateSet@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OMX_CommandStateSet@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	add	w0, w19, #4
	mov	x1, x20
	bl	_mmalomx_command_state_set
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
Lloh6:
	adrp	x9, _OMX_CommandFlush@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMX_CommandFlush@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.6:
	mov	w21, #0
	add	w22, w19, #4
Lloh9:
	adrp	x23, _OMX_ALL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _OMX_ALL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_mmalomx_command_port_flush
	ldr	w8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.hs	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w21
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x23]
	cmp	w20, w9
	b.ne	LBB0_8
	b	LBB0_7
LBB0_11:
Lloh11:
	adrp	x9, _OMX_CommandPortEnable@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OMX_CommandPortEnable@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.12:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.13:
	mov	w21, #0
	add	w22, w19, #4
Lloh14:
	adrp	x23, _OMX_ALL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _OMX_ALL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_mmalomx_command_port_enable
	ldr	w8, [x19]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.hs	LBB0_3
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, w21
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x23]
	cmp	w20, w9
	b.ne	LBB0_15
	b	LBB0_14
LBB0_18:
Lloh16:
	adrp	x9, _OMX_CommandPortDisable@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OMX_CommandPortDisable@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.19:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.20:
	mov	w21, #0
	add	w22, w19, #4
Lloh19:
	adrp	x23, _OMX_ALL@GOTPAGE
Lloh20:
	ldr	x23, [x23, _OMX_ALL@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_mmalomx_command_port_disable
	ldr	w8, [x19]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.hs	LBB0_3
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, w21
	b.eq	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w9, [x23]
	cmp	w20, w9
	b.ne	LBB0_22
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.comm	_OMX_CommandStateSet,8,3        ; @OMX_CommandStateSet
	.comm	_OMX_CommandFlush,8,3           ; @OMX_CommandFlush
	.comm	_OMX_ALL,4,2                    ; @OMX_ALL
	.comm	_OMX_CommandPortEnable,8,3      ; @OMX_CommandPortEnable
	.comm	_OMX_CommandPortDisable,8,3     ; @OMX_CommandPortDisable
.subsections_via_symbols
