	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_stop                       ## -- Begin function mei_stop
	.p2align	4, 0x90
_mei_stop:                              ## @mei_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MEI_DEV_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_set_devstate
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_mei_cl_bus_remove_devices
	movq	%rbx, %rdi
	callq	_mei_cancel_work
	movq	%rbx, %rdi
	callq	_mei_clear_interrupts
	movq	%rbx, %rdi
	callq	_mei_synchronize_irq
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_mei_reset
	movq	_MEI_DEV_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_set_devstate
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stopping the device.\n"

	.comm	_MEI_DEV_POWER_DOWN,4,2         ## @MEI_DEV_POWER_DOWN
	.comm	_MEI_DEV_DISABLED,4,2           ## @MEI_DEV_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_stop                       ; -- Begin function mei_stop
	.p2align	2
_mei_stop:                              ; @mei_stop
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _MEI_DEV_POWER_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEI_DEV_POWER_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mei_set_devstate
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mei_cl_bus_remove_devices
	mov	x0, x19
	bl	_mei_cancel_work
	mov	x0, x19
	bl	_mei_clear_interrupts
	mov	x0, x19
	bl	_mei_synchronize_irq
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_mei_reset
Lloh5:
	adrp	x8, _MEI_DEV_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEI_DEV_DISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mei_set_devstate
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stopping the device.\n"

	.comm	_MEI_DEV_POWER_DOWN,4,2         ; @MEI_DEV_POWER_DOWN
	.comm	_MEI_DEV_DISABLED,4,2           ; @MEI_DEV_DISABLED
.subsections_via_symbols
