	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_disconnect              ## -- Begin function mei_cl_disconnect
	.p2align	4, 0x90
_mei_cl_disconnect:                     ## @mei_cl_disconnect
	.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
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_5:
	movq	(%rbx), %r14
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cl_dbg
	movq	%rbx, %rdi
	callq	_mei_cl_is_connected
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	callq	_mei_cl_is_fixed_address
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	(%r14), %rax
	movq	_MEI_DEV_POWER_DOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cl_dbg
LBB0_7:
	movq	%rbx, %rdi
	callq	_mei_cl_set_disconnected
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%r14), %edi
	callq	_pm_runtime_get
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	movl	%eax, %r15d
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	___mei_cl_disconnect
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cl_dbg
	movl	8(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	8(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_14
LBB0_12:
	movl	8(%r14), %edi
	callq	_pm_runtime_put_noidle
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_cl_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnecting"

	.comm	_MEI_DEV_POWER_DOWN,8,3         ## @MEI_DEV_POWER_DOWN
L_.str.1:                               ## @.str.1
	.asciz	"Device is powering down, don't bother with disconnection\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.2:                               ## @.str.2
	.asciz	"rpm: get failed %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"rpm: autosuspend\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_disconnect              ; -- Begin function mei_cl_disconnect
	.p2align	2
_mei_cl_disconnect:                     ; @mei_cl_disconnect
	.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
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x20, [x19]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_dbg
	mov	x0, x19
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_mei_cl_is_fixed_address
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _MEI_DEV_POWER_DOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEI_DEV_POWER_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_dbg
LBB0_8:
	mov	x0, x19
	bl	_mei_cl_set_disconnected
LBB0_9:
	mov	w21, #0
LBB0_10:
	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
LBB0_11:
	ldr	w0, [x20, #8]
	bl	_pm_runtime_get
	tbz	w0, #31, LBB0_13
; %bb.12:
	mov	x21, x0
Lloh10:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	___mei_cl_disconnect
	mov	x21, x0
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_dbg
	ldr	w0, [x20, #8]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #8]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_10
LBB0_14:
	ldr	w0, [x20, #8]
	bl	_pm_runtime_put_noidle
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_cl_err
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnecting"

	.comm	_MEI_DEV_POWER_DOWN,8,3         ; @MEI_DEV_POWER_DOWN
l_.str.1:                               ; @.str.1
	.asciz	"Device is powering down, don't bother with disconnection\n"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.2:                               ; @.str.2
	.asciz	"rpm: get failed %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"rpm: autosuspend\n"

.subsections_via_symbols
