	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_flush     ## -- Begin function mmalomx_command_port_flush
	.p2align	4, 0x90
_mmalomx_command_port_flush:            ## @mmalomx_command_port_flush
	.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
	leaq	(,%rsi,4), %rsi
	addq	(%rdi), %rsi
	callq	_MMALOMX_LOCK_PORT
	movq	_MMALOMX_ACTION_FLUSH@GOTPCREL(%rip), %rax
	movq	_MMALOMX_ACTION_CHECK_FLUSHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMALOMX_ACTION_NOTIFY_FLUSH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%rbx), %rax
	leaq	(%rax,%r14,4), %rsi
	movl	%ecx, (%rax,%r14,4)
	movq	%rbx, %rdi
	callq	_MMALOMX_UNLOCK_PORT
	movq	%rbx, %rdi
	callq	_mmalomx_commands_actions_check
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMALOMX_ACTION_FLUSH,4,2       ## @MMALOMX_ACTION_FLUSH
	.comm	_MMALOMX_ACTION_CHECK_FLUSHED,4,2 ## @MMALOMX_ACTION_CHECK_FLUSHED
	.comm	_MMALOMX_ACTION_NOTIFY_FLUSH,4,2 ## @MMALOMX_ACTION_NOTIFY_FLUSH
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_flush     ; -- Begin function mmalomx_command_port_flush
	.p2align	2
_mmalomx_command_port_flush:            ; @mmalomx_command_port_flush
	.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	x19, x0
	ldr	x8, [x0]
	lsl	x20, x1, #2
	add	x1, x8, x20
	bl	_MMALOMX_LOCK_PORT
Lloh0:
	adrp	x8, _MMALOMX_ACTION_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMALOMX_ACTION_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MMALOMX_ACTION_CHECK_FLUSHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMALOMX_ACTION_CHECK_FLUSHED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMALOMX_ACTION_NOTIFY_FLUSH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMALOMX_ACTION_NOTIFY_FLUSH@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	x9, [x19]
	add	x1, x9, x20
	str	w8, [x1]
	mov	x0, x19
	bl	_MMALOMX_UNLOCK_PORT
	mov	x0, x19
	bl	_mmalomx_commands_actions_check
Lloh9:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMALOMX_ACTION_FLUSH,4,2       ; @MMALOMX_ACTION_FLUSH
	.comm	_MMALOMX_ACTION_CHECK_FLUSHED,4,2 ; @MMALOMX_ACTION_CHECK_FLUSHED
	.comm	_MMALOMX_ACTION_NOTIFY_FLUSH,4,2 ; @MMALOMX_ACTION_NOTIFY_FLUSH
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
.subsections_via_symbols
