	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_mark_process_incoming  ## -- Begin function mmalomx_mark_process_incoming
	.p2align	4, 0x90
_mmalomx_mark_process_incoming:         ## @mmalomx_mark_process_incoming
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpq	$0, 8(%rdx)
	je	LBB0_1
LBB0_4:
	movq	8(%r15), %rax
	movq	_OMX_DirInput@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	%eax, -72(%rbp)
	movslq	(%r14), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	movq	_OMX_DirOutput@GOTPCREL(%rip), %r15
	movq	_MAX_MARKS_NUM@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	(%rdi,%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rdi,%rbx), %rcx
	cmpq	(%r13), %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	callq	_MMALOMX_PUT_MARK
	movl	(%r12), %eax
	jmp	LBB0_11
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	movq	_OMX_DirInput@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_MMALOMX_GET_MARK
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMX_CommandMarkBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %ecx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_mmalomx_callback_event_handler
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_DirInput,8,3               ## @OMX_DirInput
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_OMX_CommandMarkBuffer,4,2      ## @OMX_CommandMarkBuffer
	.comm	_OMX_DirOutput,8,3              ## @OMX_DirOutput
	.comm	_MAX_MARKS_NUM,8,3              ## @MAX_MARKS_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_mark_process_incoming  ; -- Begin function mmalomx_mark_process_incoming
	.p2align	2
_mmalomx_mark_process_incoming:         ; @mmalomx_mark_process_incoming
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x2, #8]
Lloh0:
	adrp	x22, _OMX_DirInput@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OMX_DirInput@GOTPAGEOFF]
	cbz	x8, LBB0_10
LBB0_1:
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.3:
	str	w8, [sp]
	ldrsw	x8, [x20]
	str	x8, [sp, #8]
	str	wzr, [sp, #16]
	str	xzr, [sp, #24]
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x20, #0
	mov	x21, #0
Lloh2:
	adrp	x22, _OMX_DirOutput@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OMX_DirOutput@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MAX_MARKS_NUM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MAX_MARKS_NUM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, w8, uxtw
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x20
	ldr	x9, [x0]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x0, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, sp
	bl	_MMALOMX_PUT_MARK
	ldr	w8, [x19]
	b	LBB0_5
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.11:
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.12:
	mov	x0, x21
	bl	_MMALOMX_GET_MARK
Lloh6:
	adrp	x8, _OMX_EventCmdComplete@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMX_EventCmdComplete@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _OMX_CommandMarkBuffer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_CommandMarkBuffer@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x21, #16]
	mov	x0, x19
	mov	x4, #0
	bl	_mmalomx_callback_event_handler
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_DirInput,8,3               ; @OMX_DirInput
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_OMX_CommandMarkBuffer,4,2      ; @OMX_CommandMarkBuffer
	.comm	_OMX_DirOutput,8,3              ; @OMX_DirOutput
	.comm	_MAX_MARKS_NUM,8,3              ; @MAX_MARKS_NUM
.subsections_via_symbols
