	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_ComponentSendCommand
_mmalomx_ComponentSendCommand:          ## @mmalomx_ComponentSendCommand
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_mmalomx_cmd_to_string
	movl	%eax, %r13d
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_mmalomx_state_to_string
	movq	%rax, %r9
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %r9
LBB0_3:
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	callq	_LOG_TRACE
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movq	(%r12), %rax
	movq	_OMX_StateInvalid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_OMX_ErrorInvalidState@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	_OMX_ErrorInvalidComponent@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_OMX_CommandFlush@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	cmpl	%ebx, %r9d
	sete	%dl
	movq	_OMX_CommandMarkBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpl	%ebx, %r8d
	sete	%al
	orb	%dl, %al
	movq	_OMX_CommandPortEnable@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	%ebx, %edi
	sete	%cl
	movq	_OMX_CommandPortDisable@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%ebx, %esi
	sete	%dl
	orb	%cl, %dl
	orb	%al, %dl
	cmpb	$1, %dl
	jne	LBB0_11
## %bb.8:
	movq	_OMX_ALL@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_11
## %bb.9:
	cmpq	%r15, 8(%r12)
	jle	LBB0_10
LBB0_11:
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_18
## %bb.12:
	cmpl	%ebx, %r9d
	je	LBB0_18
## %bb.13:
	cmpl	%ebx, %edi
	je	LBB0_18
## %bb.14:
	cmpl	%ebx, %esi
	je	LBB0_18
## %bb.15:
	cmpl	%ebx, %r8d
	jne	LBB0_16
## %bb.19:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmalomx_command_port_mark      ## TAILCALL
LBB0_18:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmalomx_command_queue          ## TAILCALL
LBB0_10:
	movq	_OMX_ErrorBadPortIndex@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_OMX_ErrorNotImplemented@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hComponent %p, Cmd %i (%s), nParam1 %i (%s), pCmdData %p"

	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_OMX_ErrorInvalidComponent,4,2  ## @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ## @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ## @OMX_ErrorInvalidState
	.comm	_OMX_CommandFlush,4,2           ## @OMX_CommandFlush
	.comm	_OMX_CommandMarkBuffer,4,2      ## @OMX_CommandMarkBuffer
	.comm	_OMX_CommandPortEnable,4,2      ## @OMX_CommandPortEnable
	.comm	_OMX_CommandPortDisable,4,2     ## @OMX_CommandPortDisable
	.comm	_OMX_ALL,8,3                    ## @OMX_ALL
	.comm	_OMX_ErrorBadPortIndex,4,2      ## @OMX_ErrorBadPortIndex
	.comm	_OMX_ErrorNotImplemented,4,2    ## @OMX_ErrorNotImplemented
	.no_dead_strip	_mmalomx_ComponentSendCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_ComponentSendCommand
_mmalomx_ComponentSendCommand:          ; @mmalomx_ComponentSendCommand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_mmalomx_cmd_to_string
	mov	x23, x0
Lloh0:
	adrp	x24, _OMX_CommandStateSet@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OMX_CommandStateSet@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mmalomx_state_to_string
	mov	x5, x0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	mov	x6, x20
	bl	_LOG_TRACE
	cbz	x21, LBB0_6
; %bb.4:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _OMX_StateInvalid@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMX_StateInvalid@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _OMX_ErrorInvalidState@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_ErrorInvalidState@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _OMX_ErrorInvalidComponent@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMX_ErrorInvalidComponent@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh13:
	adrp	x8, _OMX_CommandFlush@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMX_CommandFlush@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
Lloh16:
	adrp	x8, _OMX_CommandMarkBuffer@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMX_CommandMarkBuffer@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, _OMX_CommandPortEnable@GOTPAGE
Lloh20:
	ldr	x10, [x10, _OMX_CommandPortEnable@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _OMX_CommandPortDisable@GOTPAGE
Lloh23:
	ldr	x11, [x11, _OMX_CommandPortDisable@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	cmp	w11, w22
	ccmp	w10, w22, #4, ne
	ccmp	w8, w22, #4, ne
	ccmp	w9, w22, #4, ne
Lloh25:
	adrp	x12, _OMX_ALL@GOTPAGE
Lloh26:
	ldr	x12, [x12, _OMX_ALL@GOTPAGEOFF]
Lloh27:
	ldr	x12, [x12]
	ccmp	x12, x19, #4, eq
	b.eq	LBB0_10
; %bb.9:
	ldr	x12, [x21, #8]
	cmp	x12, x19
	b.le	LBB0_14
LBB0_10:
	ldr	w12, [x24]
	cmp	w12, w22
	ccmp	w9, w22, #4, ne
	ccmp	w10, w22, #4, ne
	ccmp	w11, w22, #4, ne
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mmalomx_command_queue
LBB0_12:
	cmp	w8, w22
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mmalomx_command_port_mark
LBB0_14:
Lloh28:
	adrp	x8, _OMX_ErrorBadPortIndex@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OMX_ErrorBadPortIndex@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
Lloh30:
	adrp	x8, _OMX_ErrorNotImplemented@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OMX_ErrorNotImplemented@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hComponent %p, Cmd %i (%s), nParam1 %i (%s), pCmdData %p"

	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_OMX_ErrorInvalidComponent,4,2  ; @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ; @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ; @OMX_ErrorInvalidState
	.comm	_OMX_CommandFlush,4,2           ; @OMX_CommandFlush
	.comm	_OMX_CommandMarkBuffer,4,2      ; @OMX_CommandMarkBuffer
	.comm	_OMX_CommandPortEnable,4,2      ; @OMX_CommandPortEnable
	.comm	_OMX_CommandPortDisable,4,2     ; @OMX_CommandPortDisable
	.comm	_OMX_ALL,8,3                    ; @OMX_ALL
	.comm	_OMX_ErrorBadPortIndex,4,2      ; @OMX_ErrorBadPortIndex
	.comm	_OMX_ErrorNotImplemented,4,2    ; @OMX_ErrorNotImplemented
	.no_dead_strip	_mmalomx_ComponentSendCommand
.subsections_via_symbols
