	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_cl_set_disconnected
_mei_cl_set_disconnected:               ## @mei_cl_set_disconnected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	movq	_MEI_FILE_DISCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_8
## %bb.1:
	movq	_MEI_FILE_INITIALIZING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_8
## %bb.2:
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	%rax, (%rdi)
	leaq	12(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mei_io_tx_list_free_cl
	leaq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mei_io_tx_list_free_cl
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mei_io_list_flush_cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mei_io_list_flush_cl
	movq	%rbx, %rdi
	callq	_mei_cl_wake_all
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	8(%rbx), %rdi
	movq	(%rdi), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	testq	%rcx, %rcx
	je	LBB0_6
LBB0_7:
	callq	_mei_me_cl_put
	movq	$0, 8(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	decq	%rcx
	movq	%rcx, (%rdi)
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_6:
	movq	$0, 8(%rdi)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_FILE_DISCONNECTED,8,3      ## @MEI_FILE_DISCONNECTED
	.comm	_MEI_FILE_INITIALIZING,8,3      ## @MEI_FILE_INITIALIZING
	.no_dead_strip	_mei_cl_set_disconnected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_cl_set_disconnected
_mei_cl_set_disconnected:               ; @mei_cl_set_disconnected
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _MEI_FILE_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEI_FILE_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _MEI_FILE_INITIALIZING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEI_FILE_INITIALIZING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	b.le	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #40]
	str	x8, [x0]
	add	x0, x20, #12
	mov	x1, x19
	bl	_mei_io_tx_list_free_cl
	add	x0, x20, #8
	mov	x1, x19
	bl	_mei_io_tx_list_free_cl
	add	x0, x20, #4
	mov	x1, x19
	bl	_mei_io_list_flush_cl
	mov	x0, x20
	mov	x1, x19
	bl	_mei_io_list_flush_cl
	mov	x0, x19
	bl	_mei_cl_wake_all
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x8, x0
	ldr	x0, [x19, #8]
	ldr	x9, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	cbz	x9, LBB0_7
LBB0_4:
	bl	_mei_me_cl_put
	str	xzr, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	sub	x9, x9, #1
	str	x9, [x0]
	cbnz	x9, LBB0_4
LBB0_7:
	str	xzr, [x0, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_FILE_DISCONNECTED,8,3      ; @MEI_FILE_DISCONNECTED
	.comm	_MEI_FILE_INITIALIZING,8,3      ; @MEI_FILE_INITIALIZING
	.no_dead_strip	_mei_cl_set_disconnected
.subsections_via_symbols
