	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_command_port_mark      ## -- Begin function mmalomx_command_port_mark
	.p2align	4, 0x90
_mmalomx_command_port_mark:             ## @mmalomx_command_port_mark
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rsi, (%rdi)
	jbe	LBB0_1
## %bb.2:
	movq	8(%rdi), %rax
	leaq	(%rsi,%rsi,2), %rsi
	movq	(%rax,%rsi,8), %rcx
	movq	_MAX_MARKS_NUM@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_4
## %bb.3:
	movq	_OMX_ErrorInsufficientResources@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_OMX_ErrorBadPortIndex@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	leaq	(%rax,%rsi,8), %r8
	movl	(%rdx), %r9d
	movq	16(%rax,%rsi,8), %r10
	movq	8(%rax,%rsi,8), %rax
	addq	%rcx, %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	movl	%r9d, (%r10,%rdx,4)
	incq	%rcx
	movq	%rcx, (%r8)
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_ErrorBadPortIndex,4,2      ## @OMX_ErrorBadPortIndex
	.comm	_MAX_MARKS_NUM,8,3              ## @MAX_MARKS_NUM
	.comm	_OMX_ErrorInsufficientResources,4,2 ## @OMX_ErrorInsufficientResources
	.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_mark      ; -- Begin function mmalomx_command_port_mark
	.p2align	2
_mmalomx_command_port_mark:             ; @mmalomx_command_port_mark
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x1
	b.ls	LBB0_3
; %bb.1:
	ldr	x10, [x0, #8]
	mov	w8, #24
	madd	x8, x1, x8, x10
	ldr	x9, [x8]
Lloh0:
	adrp	x11, _MAX_MARKS_NUM@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MAX_MARKS_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _OMX_ErrorInsufficientResources@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMX_ErrorInsufficientResources@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh6:
	adrp	x8, _OMX_ErrorBadPortIndex@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMX_ErrorBadPortIndex@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w12, [x2]
	mov	w13, #24
	madd	x10, x1, x13, x10
	ldp	x10, x13, [x10, #8]
	add	x10, x10, x9
	udiv	x14, x10, x11
	msub	x10, x14, x11, x10
	str	w12, [x13, x10, lsl #2]
	add	x9, x9, #1
	str	x9, [x8]
Lloh9:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_ErrorBadPortIndex,4,2      ; @OMX_ErrorBadPortIndex
	.comm	_MAX_MARKS_NUM,8,3              ; @MAX_MARKS_NUM
	.comm	_OMX_ErrorInsufficientResources,4,2 ; @OMX_ErrorInsufficientResources
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
.subsections_via_symbols
