	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_disable   ## -- Begin function mmalomx_command_port_disable
	.p2align	4, 0x90
_mmalomx_command_port_disable:          ## @mmalomx_command_port_disable
	.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_FALSE@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_DISABLE@GOTPCREL(%rip), %rcx
	movq	_MMALOMX_ACTION_CHECK_DEALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_MMALOMX_ACTION_NOTIFY_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r14,8)
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_MMALOMX_ACTION_FLUSH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_MMALOMX_ACTION_CHECK_FLUSHED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx,%r14,8)
LBB0_5:
	leaq	(%rcx,%r14,8), %rsi
	movq	%rbx, %rdi
	callq	_MMALOMX_UNLOCK_PORT
	movq	%rbx, %rdi
	callq	_mmalomx_commands_actions_check
	jmp	LBB0_6
LBB0_2:
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMX_CommandPortDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_mmalomx_callback_event_handler
LBB0_6:
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_OMX_StateWaitForResources,8,3  ## @OMX_StateWaitForResources
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_OMX_CommandPortDisable,4,2     ## @OMX_CommandPortDisable
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.comm	_MMALOMX_ACTION_DISABLE,4,2     ## @MMALOMX_ACTION_DISABLE
	.comm	_MMALOMX_ACTION_CHECK_DEALLOCATED,4,2 ## @MMALOMX_ACTION_CHECK_DEALLOCATED
	.comm	_MMALOMX_ACTION_NOTIFY_DISABLE,4,2 ## @MMALOMX_ACTION_NOTIFY_DISABLE
	.comm	_MMALOMX_ACTION_FLUSH,4,2       ## @MMALOMX_ACTION_FLUSH
	.comm	_MMALOMX_ACTION_CHECK_FLUSHED,4,2 ## @MMALOMX_ACTION_CHECK_FLUSHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_disable   ; -- Begin function mmalomx_command_port_disable
	.p2align	2
_mmalomx_command_port_disable:          ; @mmalomx_command_port_disable
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_FALSE@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_CommandPortDisable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMX_CommandPortDisable@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	mov	x4, #0
	bl	_mmalomx_callback_event_handler
	b	LBB0_5
LBB0_2:
	lsl	x21, x20, #3
	add	x1, x8, x21
	mov	x0, x19
	bl	_MMALOMX_LOCK_PORT
Lloh15:
	adrp	x8, _MMALOMX_ACTION_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMALOMX_ACTION_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MMALOMX_ACTION_CHECK_DEALLOCATED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMALOMX_ACTION_CHECK_DEALLOCATED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _MMALOMX_ACTION_NOTIFY_DISABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MMALOMX_ACTION_NOTIFY_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w9, w8, w9
	ldp	x8, x11, [x19, #8]
	add	x10, x8, x21
	str	w9, [x10]
	cbz	x11, LBB0_4
; %bb.3:
Lloh24:
	adrp	x11, _MMALOMX_ACTION_FLUSH@GOTPAGE
Lloh25:
	ldr	x11, [x11, _MMALOMX_ACTION_FLUSH@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
Lloh27:
	adrp	x12, _MMALOMX_ACTION_CHECK_FLUSHED@GOTPAGE
Lloh28:
	ldr	x12, [x12, _MMALOMX_ACTION_CHECK_FLUSHED@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	orr	w9, w11, w9
	orr	w9, w9, w12
	str	w9, [x10]
LBB0_4:
	add	x1, x8, x20, lsl #3
	mov	x0, x19
	bl	_MMALOMX_UNLOCK_PORT
	mov	x0, x19
	bl	_mmalomx_commands_actions_check
LBB0_5:
Lloh30:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	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
	.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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_OMX_StateWaitForResources,8,3  ; @OMX_StateWaitForResources
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_OMX_CommandPortDisable,4,2     ; @OMX_CommandPortDisable
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.comm	_MMALOMX_ACTION_DISABLE,4,2     ; @MMALOMX_ACTION_DISABLE
	.comm	_MMALOMX_ACTION_CHECK_DEALLOCATED,4,2 ; @MMALOMX_ACTION_CHECK_DEALLOCATED
	.comm	_MMALOMX_ACTION_NOTIFY_DISABLE,4,2 ; @MMALOMX_ACTION_NOTIFY_DISABLE
	.comm	_MMALOMX_ACTION_FLUSH,4,2       ; @MMALOMX_ACTION_FLUSH
	.comm	_MMALOMX_ACTION_CHECK_FLUSHED,4,2 ; @MMALOMX_ACTION_CHECK_FLUSHED
.subsections_via_symbols
