	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_enable    ## -- Begin function mmalomx_command_port_enable
	.p2align	4, 0x90
_mmalomx_command_port_enable:           ## @mmalomx_command_port_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rdi), %rax
	movl	%ecx, 4(%rax,%rsi,8)
	movq	(%rdi), %rcx
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_OMX_StateWaitForResources@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.3:
	leaq	(%rax,%r14,8), %rsi
	movq	%rbx, %rdi
	callq	_MMALOMX_LOCK_PORT
	movq	_MMALOMX_ACTION_CHECK_ALLOCATED@GOTPCREL(%rip), %rax
	movq	_MMALOMX_ACTION_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMALOMX_ACTION_NOTIFY_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	8(%rbx), %rax
	leaq	(%rax,%r14,8), %rsi
	movl	%ecx, (%rax,%r14,8)
	movq	%rbx, %rdi
	callq	_MMALOMX_UNLOCK_PORT
	movq	%rbx, %rdi
	callq	_mmalomx_commands_actions_check
	jmp	LBB0_4
LBB0_2:
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMX_CommandPortEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_mmalomx_callback_event_handler
LBB0_4:
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_TRUE,4,2                  ## @MMAL_TRUE
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_OMX_StateWaitForResources,8,3  ## @OMX_StateWaitForResources
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_OMX_CommandPortEnable,4,2      ## @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.comm	_MMALOMX_ACTION_CHECK_ALLOCATED,4,2 ## @MMALOMX_ACTION_CHECK_ALLOCATED
	.comm	_MMALOMX_ACTION_ENABLE,4,2      ## @MMALOMX_ACTION_ENABLE
	.comm	_MMALOMX_ACTION_NOTIFY_ENABLE,4,2 ## @MMALOMX_ACTION_NOTIFY_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_enable    ; -- Begin function mmalomx_command_port_enable
	.p2align	2
_mmalomx_command_port_enable:           ; @mmalomx_command_port_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldp	x10, x8, [x0]
	add	x11, x8, x1, lsl #3
	str	w9, [x11, #4]
Lloh3:
	adrp	x9, _OMX_StateLoaded@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OMX_StateLoaded@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _OMX_StateWaitForResources@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OMX_StateWaitForResources@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x9
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _OMX_EventCmdComplete@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_EventCmdComplete@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _OMX_CommandPortEnable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMX_CommandPortEnable@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x4, #0
	bl	_mmalomx_callback_event_handler
	b	LBB0_3
LBB0_2:
	lsl	x20, x3, #3
	add	x1, x8, x20
	mov	x0, x19
	bl	_MMALOMX_LOCK_PORT
Lloh15:
	adrp	x8, _MMALOMX_ACTION_CHECK_ALLOCATED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMALOMX_ACTION_CHECK_ALLOCATED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MMALOMX_ACTION_ENABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMALOMX_ACTION_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _MMALOMX_ACTION_NOTIFY_ENABLE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MMALOMX_ACTION_NOTIFY_ENABLE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
	add	x1, x9, x20
	str	w8, [x1]
	mov	x0, x19
	bl	_MMALOMX_UNLOCK_PORT
	mov	x0, x19
	bl	_mmalomx_commands_actions_check
LBB0_3:
Lloh24:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_TRUE,4,2                  ; @MMAL_TRUE
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_OMX_StateWaitForResources,8,3  ; @OMX_StateWaitForResources
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_OMX_CommandPortEnable,4,2      ; @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.comm	_MMALOMX_ACTION_CHECK_ALLOCATED,4,2 ; @MMALOMX_ACTION_CHECK_ALLOCATED
	.comm	_MMALOMX_ACTION_ENABLE,4,2      ; @MMALOMX_ACTION_ENABLE
	.comm	_MMALOMX_ACTION_NOTIFY_ENABLE,4,2 ; @MMALOMX_ACTION_NOTIFY_ENABLE
.subsections_via_symbols
