	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_ComponentTunnelRequest
_mmalomx_ComponentTunnelRequest:        ## @mmalomx_ComponentTunnelRequest
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_MMAL_PARAM_UNUSED
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	movq	%r15, %r9
	callq	_LOG_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_OMX_StateInvalid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_OMX_ErrorInvalidState@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	movq	_OMX_ErrorInvalidComponent@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	cmpq	%r12, 8(%rbx)
	jbe	LBB0_5
## %bb.6:
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_9
## %bb.8:
	movq	_OMX_ErrorIncorrectStateOperation@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	movq	_OMX_ErrorBadPortIndex@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	testq	%r14, %r14
	jne	LBB0_10
## %bb.11:
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_OMX_ErrorNotImplemented@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	%rcx, %rax
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
LBB0_14:
	testq	%r14, %r14
	cmoveq	%rcx, %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hComponent %p, nPort %i, hTunneledComp %p, nTunneledPort %i, pTunnelSetup %p"

	.comm	_OMX_ErrorInvalidComponent,4,2  ## @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ## @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ## @OMX_ErrorInvalidState
	.comm	_OMX_ErrorBadPortIndex,4,2      ## @OMX_ErrorBadPortIndex
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_OMX_ErrorIncorrectStateOperation,4,2 ## @OMX_ErrorIncorrectStateOperation
	.comm	_OMX_ErrorBadParameter,4,2      ## @OMX_ErrorBadParameter
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.comm	_OMX_ErrorNotImplemented,4,2    ## @OMX_ErrorNotImplemented
	.no_dead_strip	_mmalomx_ComponentTunnelRequest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_ComponentTunnelRequest
_mmalomx_ComponentTunnelRequest:        ; @mmalomx_ComponentTunnelRequest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_MMAL_PARAM_UNUSED
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	x5, x19
	bl	_LOG_TRACE
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _OMX_StateInvalid@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OMX_StateInvalid@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _OMX_ErrorInvalidState@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMX_ErrorInvalidState@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x8, _OMX_ErrorInvalidComponent@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMX_ErrorInvalidComponent@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x9, [x22, #8]
	cmp	x9, x21
	b.ls	LBB0_8
; %bb.5:
Lloh9:
	adrp	x9, _OMX_StateLoaded@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OMX_StateLoaded@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _OMX_ErrorIncorrectStateOperation@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMX_ErrorIncorrectStateOperation@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _OMX_ErrorBadPortIndex@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMX_ErrorBadPortIndex@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _OMX_ErrorNotImplemented@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMX_ErrorNotImplemented@GOTPAGEOFF]
Lloh18:
	adrp	x9, _OMX_ErrorNone@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OMX_ErrorNone@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	cmp	x19, #0
	ccmp	x20, #0, #4, eq
Lloh20:
	adrp	x9, _OMX_ErrorBadParameter@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OMX_ErrorBadParameter@GOTPAGEOFF]
	csel	x8, x8, x9, eq
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hComponent %p, nPort %i, hTunneledComp %p, nTunneledPort %i, pTunnelSetup %p"

	.comm	_OMX_ErrorInvalidComponent,4,2  ; @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ; @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ; @OMX_ErrorInvalidState
	.comm	_OMX_ErrorBadPortIndex,4,2      ; @OMX_ErrorBadPortIndex
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_OMX_ErrorIncorrectStateOperation,4,2 ; @OMX_ErrorIncorrectStateOperation
	.comm	_OMX_ErrorBadParameter,4,2      ; @OMX_ErrorBadParameter
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.comm	_OMX_ErrorNotImplemented,4,2    ; @OMX_ErrorNotImplemented
	.no_dead_strip	_mmalomx_ComponentTunnelRequest
.subsections_via_symbols
