	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_enable_tunnel         ## -- Begin function ilclient_enable_tunnel
	.p2align	4, 0x90
_ilclient_enable_tunnel:                ## @ilclient_enable_tunnel
	.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	%rdi, %rbx
	movq	24(%rdi), %rsi
	movl	16(%rdi), %edx
	movq	8(%rdi), %rcx
	movl	(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ilclient_debug_output
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_OMX_CommandPortEnable@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	16(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_vc_assert
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_vc_assert
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_OMX_GetState
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_vc_assert
	movq	-48(%rbp), %r12
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	8(%rbx), %rdi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	callq	_ilclient_wait_for_command_complete
	cmpq	%r13, %r12
	jne	LBB0_7
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_OMX_StateIdle@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.3:
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rcx
	callq	_ilclient_wait_for_command_complete_dual
	testl	%eax, %eax
	jns	LBB0_9
## %bb.4:
	cmpl	$-2, %eax
	jne	LBB0_6
## %bb.5:
	movq	24(%rbx), %rdi
	movl	(%r14), %esi
	movl	16(%rbx), %edx
	callq	_ilclient_wait_for_command_complete
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_ilclient_disable_port
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ilclient_debug_output
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	jmp	LBB0_12
LBB0_7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ilclient_debug_output
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_ilclient_disable_port
	movq	24(%rbx), %rdi
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	16(%rbx), %r8d
	movq	_ILCLIENT_PORT_ENABLED@GOTPCREL(%rip), %rax
	movq	_ILCLIENT_EVENT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VCOS_EVENT_FLAGS_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_9:
	movq	24(%rbx), %rdi
	movl	(%r14), %esi
	movl	16(%rbx), %edx
	callq	_ilclient_wait_for_command_complete
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	16(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ilclient_debug_output
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
LBB0_12:
	callq	_ilclient_disable_port
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ilclient: enable tunnel from %x/%d to %x/%d"

	.comm	_OMX_CommandPortEnable,4,2      ## @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
	.comm	_OMX_StateIdle,4,2              ## @OMX_StateIdle
L_.str.1:                               ## @.str.1
	.asciz	"ilclient: could not change component state to IDLE"

L_.str.2:                               ## @.str.2
	.asciz	"ilclient: could not change sink port %d to enabled"

	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_ILCLIENT_PORT_ENABLED,4,2      ## @ILCLIENT_PORT_ENABLED
	.comm	_ILCLIENT_EVENT_ERROR,4,2       ## @ILCLIENT_EVENT_ERROR
	.comm	_VCOS_EVENT_FLAGS_SUSPEND,4,2   ## @VCOS_EVENT_FLAGS_SUSPEND
L_.str.3:                               ## @.str.3
	.asciz	"ilclient: could not change source port %d to enabled"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_enable_tunnel         ; -- Begin function ilclient_enable_tunnel
	.p2align	2
_ilclient_enable_tunnel:                ; @ilclient_enable_tunnel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x9, [x0, #8]
	ldr	w10, [x0, #16]
	ldr	w11, [x0]
	stp	x9, x11, [sp, #16]
	stp	x8, x10, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ilclient_debug_output
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh2:
	adrp	x20, _OMX_CommandPortEnable@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OMX_CommandPortEnable@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [x19, #16]
	mov	x3, #0
	bl	_OMX_SendCommand
Lloh4:
	adrp	x21, _OMX_ErrorNone@GOTPAGE
Lloh5:
	ldr	x21, [x21, _OMX_ErrorNone@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x19]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_OMX_GetState
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x22, [sp, #40]
Lloh6:
	adrp	x8, _OMX_StateLoaded@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMX_StateLoaded@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	ldr	x0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x19]
	bl	_ilclient_wait_for_command_complete
	cmp	x22, x23
	b.ne	LBB0_7
; %bb.1:
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x22, _OMX_CommandStateSet@GOTPAGE
Lloh10:
	ldr	x22, [x22, _OMX_CommandStateSet@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh11:
	adrp	x23, _OMX_StateIdle@GOTPAGE
Lloh12:
	ldr	x23, [x23, _OMX_StateIdle@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	x3, [x19, #24]
	bl	_ilclient_wait_for_command_complete_dual
	tbz	w0, #31, LBB0_9
; %bb.4:
	cmn	w0, #2
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19, #24]
	ldr	w1, [x20]
	ldr	w2, [x19, #16]
	bl	_ilclient_wait_for_command_complete
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_ilclient_disable_port
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ilclient_debug_output
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
	b	LBB0_11
LBB0_7:
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ilclient_debug_output
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
	bl	_ilclient_disable_port
	ldr	x0, [x19, #24]
Lloh17:
	adrp	x8, _OMX_EventCmdComplete@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMX_EventCmdComplete@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20]
	ldr	w4, [x19, #16]
Lloh20:
	adrp	x8, _ILCLIENT_PORT_ENABLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ILCLIENT_PORT_ENABLED@GOTPAGEOFF]
Lloh22:
	adrp	x9, _ILCLIENT_EVENT_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ILCLIENT_EVENT_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w6, w9, w8
Lloh26:
	adrp	x8, _VCOS_EVENT_FLAGS_SUSPEND@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VCOS_EVENT_FLAGS_SUSPEND@GOTPAGEOFF]
Lloh28:
	ldr	w7, [x8]
	mov	w3, #0
	mov	w5, #0
	bl	_ilclient_wait_for_event
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19, #24]
	ldr	w1, [x20]
	ldr	w2, [x19, #16]
	bl	_ilclient_wait_for_command_complete
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ilclient_debug_output
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
LBB0_11:
	bl	_ilclient_disable_port
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ilclient: enable tunnel from %x/%d to %x/%d"

	.comm	_OMX_CommandPortEnable,4,2      ; @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
	.comm	_OMX_StateIdle,4,2              ; @OMX_StateIdle
l_.str.1:                               ; @.str.1
	.asciz	"ilclient: could not change component state to IDLE"

l_.str.2:                               ; @.str.2
	.asciz	"ilclient: could not change sink port %d to enabled"

	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_ILCLIENT_PORT_ENABLED,4,2      ; @ILCLIENT_PORT_ENABLED
	.comm	_ILCLIENT_EVENT_ERROR,4,2       ; @ILCLIENT_EVENT_ERROR
	.comm	_VCOS_EVENT_FLAGS_SUSPEND,4,2   ; @VCOS_EVENT_FLAGS_SUSPEND
l_.str.3:                               ; @.str.3
	.asciz	"ilclient: could not change source port %d to enabled"

.subsections_via_symbols
