	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ## -- Begin function cleanup
	.p2align	4, 0x90
_cleanup:                               ## @cleanup
	.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, %r14
	movq	24(%rdi), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %edi
	movq	_OMX_CommandFlush@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	24(%r14), %rax
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	4(%rax), %r8d
	movq	_TIMEOUT_MS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	16(%r14), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	16(%r14), %rax
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	4(%rax), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	movl	$1, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	24(%r14), %rax
	movq	_OMX_CommandPortDisable@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	8(%rax), %edi
	movl	12(%rax), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	40(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	8(%rax), %edi
	movl	12(%rax), %esi
	callq	_OMX_FreeBuffer
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	24(%r14), %rax
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	12(%rax), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	16(%r14), %rax
	movl	(%r12), %esi
	movl	8(%rax), %edi
	movl	12(%rax), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	16(%r14), %rax
	movq	32(%r14), %rdx
	movl	8(%rax), %edi
	movl	12(%rax), %esi
	callq	_OMX_FreeBuffer
	movq	16(%r14), %rax
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	12(%rax), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	24(%r14), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	24(%r14), %rax
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	4(%rax), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	16(%r14), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movq	16(%r14), %rax
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%rax), %edi
	movl	4(%rax), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	24(%r14), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_OMX_SetupTunnel
	movq	16(%r14), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_OMX_SetupTunnel
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	%r13, %rbx
	movq	_OMX_StateIdle@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ilclient_change_component_state
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_ilclient_change_component_state
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ilclient_change_component_state
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_ilclient_change_component_state
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	xorl	%eax, %eax
	callq	_OMX_Deinit
	movq	8(%r14), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ilclient_destroy               ## TAILCALL
LBB0_4:
	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_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_TIMEOUT_MS,4,2                 ## @TIMEOUT_MS
	.comm	_OMX_CommandPortDisable,4,2     ## @OMX_CommandPortDisable
	.comm	_OMX_StateIdle,4,2              ## @OMX_StateIdle
	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
	.comm	_OMX_StateLoaded,4,2            ## @OMX_StateLoaded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ; -- Begin function cleanup
	.p2align	2
_cleanup:                               ; @cleanup
	.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, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x22, _OMX_CommandFlush@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OMX_CommandFlush@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w2, w0, [x8, #4]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x20, _OMX_EventCmdComplete@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OMX_EventCmdComplete@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldp	w0, w4, [x8]
Lloh4:
	adrp	x21, _TIMEOUT_MS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TIMEOUT_MS@GOTPAGEOFF]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #16]
	ldr	w1, [x22]
	ldp	w2, w0, [x8, #4]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldp	w0, w4, [x8]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #1
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x22, _OMX_CommandPortDisable@GOTPAGE
Lloh7:
	ldr	x22, [x22, _OMX_CommandPortDisable@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w0, w2, [x8, #8]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x2, [x8, x23, lsl #3]
	ldr	x8, [x19, #24]
	ldp	w0, w1, [x8, #8]
	bl	_OMX_FreeBuffer
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w4, [x8, #12]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #16]
	ldr	w1, [x22]
	ldp	w0, w2, [x8, #8]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x19, #16]
	ldp	w0, w1, [x8, #8]
	ldr	x2, [x19, #32]
	bl	_OMX_FreeBuffer
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w4, [x8, #12]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #24]
	ldr	w1, [x22]
	ldp	w2, w0, [x8, #4]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x19, #24]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldp	w0, w4, [x8]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #16]
	ldr	w1, [x22]
	ldp	w2, w0, [x8, #4]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldp	w0, w4, [x8]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #24]
	ldp	w1, w0, [x8, #4]
	mov	x2, #0
	mov	w3, #0
	bl	_OMX_SetupTunnel
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8, #4]
	mov	x2, #0
	mov	w3, #0
	bl	_OMX_SetupTunnel
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh8:
	adrp	x23, _OMX_StateIdle@GOTPAGE
Lloh9:
	ldr	x23, [x23, _OMX_StateIdle@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ilclient_change_component_state
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_ilclient_change_component_state
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh10:
	adrp	x22, _OMX_CommandStateSet@GOTPAGE
Lloh11:
	ldr	x22, [x22, _OMX_CommandStateSet@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w4, [x23]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w4, [x23]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh12:
	adrp	x23, _OMX_StateLoaded@GOTPAGE
Lloh13:
	ldr	x23, [x23, _OMX_StateLoaded@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ilclient_change_component_state
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_ilclient_change_component_state
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w4, [x23]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w4, [x23]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	bl	_OMX_Deinit
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	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
	b	_ilclient_destroy
LBB0_5:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_CommandFlush,4,2           ; @OMX_CommandFlush
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_TIMEOUT_MS,4,2                 ; @TIMEOUT_MS
	.comm	_OMX_CommandPortDisable,4,2     ; @OMX_CommandPortDisable
	.comm	_OMX_StateIdle,4,2              ; @OMX_StateIdle
	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
	.comm	_OMX_StateLoaded,4,2            ; @OMX_StateLoaded
.subsections_via_symbols
