	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_flush_tunnels         ## -- Begin function ilclient_flush_tunnels
	.p2align	4, 0x90
_ilclient_flush_tunnels:                ## @ilclient_flush_tunnels
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	movq	_OMX_CommandFlush@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r14
	movl	16(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	xorl	%edi, %edi
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %r15
	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	24(%rbx), %rdi
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %edx
	movl	16(%rbx), %r8d
	movq	_ILCLIENT_PORT_FLUSH@GOTPCREL(%rip), %r14
	movl	(%r14), %r10d
	movq	_VCOS_EVENT_FLAGS_SUSPEND@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	movq	_OMX_CommandFlush@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movl	(%r14), %r10d
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	incq	%r12
	movq	56(%rbx), %rax
	addq	$32, %rbx
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	jl	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_CommandFlush,4,2           ## @OMX_CommandFlush
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_ILCLIENT_PORT_FLUSH,4,2        ## @ILCLIENT_PORT_FLUSH
	.comm	_VCOS_EVENT_FLAGS_SUSPEND,4,2   ## @VCOS_EVENT_FLAGS_SUSPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_flush_tunnels         ; -- Begin function ilclient_flush_tunnels
	.p2align	2
_ilclient_flush_tunnels:                ; @ilclient_flush_tunnels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	sxtw	x22, w19
Lloh0:
	adrp	x23, _OMX_CommandFlush@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OMX_CommandFlush@GOTPAGEOFF]
Lloh2:
	adrp	x24, _OMX_ErrorNone@GOTPAGE
Lloh3:
	ldr	x24, [x24, _OMX_ErrorNone@GOTPAGEOFF]
Lloh4:
	adrp	x25, _OMX_EventCmdComplete@GOTPAGE
Lloh5:
	ldr	x25, [x25, _OMX_EventCmdComplete@GOTPAGEOFF]
Lloh6:
	adrp	x26, _ILCLIENT_PORT_FLUSH@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ILCLIENT_PORT_FLUSH@GOTPAGEOFF]
Lloh8:
	adrp	x27, _VCOS_EVENT_FLAGS_SUSPEND@GOTPAGE
Lloh9:
	ldr	x27, [x27, _VCOS_EVENT_FLAGS_SUSPEND@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x8]
	ldr	w1, [x23]
	ldr	w2, [x20, #16]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x0, [x20, #24]
	ldr	w1, [x25]
	ldr	w2, [x23]
	ldr	w4, [x20, #16]
	ldr	w6, [x26]
	ldr	w7, [x27]
	mov	w3, #0
	mov	w5, #0
	bl	_ilclient_wait_for_event
	ldr	x0, [x20, #8]
	ldr	w1, [x25]
	ldr	w2, [x23]
	ldr	w4, [x20]
	ldr	w6, [x26]
	ldr	w7, [x27]
	mov	w3, #0
	mov	w5, #0
	bl	_ilclient_wait_for_event
	add	x21, x21, #1
	ldr	x8, [x20, #56]
	add	x20, x20, #32
	cbz	x8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, x22
	b.lt	LBB0_2
LBB0_5:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_CommandFlush,4,2           ; @OMX_CommandFlush
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_ILCLIENT_PORT_FLUSH,4,2        ; @ILCLIENT_PORT_FLUSH
	.comm	_VCOS_EVENT_FLAGS_SUSPEND,4,2   ; @VCOS_EVENT_FLAGS_SUSPEND
.subsections_via_symbols
