	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_disable              ## -- Begin function mei_cldev_disable
	.p2align	4, 0x90
_mei_cldev_disable:                     ## @mei_cldev_disable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	callq	_mei_cldev_unregister_callbacks
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_mei_cl_disconnect
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mei_cl_flush_queues
	movq	%r15, %rdi
	callq	_mei_cl_unlink
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Already disconnected\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not disconnect from the ME client\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_disable              ; -- Begin function mei_cldev_disable
	.p2align	2
_mei_cldev_disable:                     ; @mei_cldev_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	ldp	x19, x20, [x0]
	bl	_mei_cldev_unregister_callbacks
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_mei_cl_disconnect
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
LBB0_6:
	mov	x0, x20
	mov	x1, #0
	bl	_mei_cl_flush_queues
	mov	x0, x20
	bl	_mei_cl_unlink
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Already disconnected\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not disconnect from the ME client\n"

.subsections_via_symbols
