	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54spi_op_stop
_p54spi_op_stop:                        ## @p54spi_op_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_FW_STATE_READY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_p54spi_power_off
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_FW_STATE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cancel_work_sync               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_STATE_READY,8,3             ## @FW_STATE_READY
	.comm	_FW_STATE_OFF,8,3               ## @FW_STATE_OFF
	.no_dead_strip	_p54spi_op_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54spi_op_stop
_p54spi_op_stop:                        ; @p54spi_op_stop
	.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
	ldr	x19, [x0]
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
	mov	x21, x19
	ldr	x8, [x21], #20
Lloh0:
	adrp	x9, _FW_STATE_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FW_STATE_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x19
	bl	_p54spi_power_off
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _FW_STATE_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_STATE_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19], #8
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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
	b	_cancel_work_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_STATE_READY,8,3             ; @FW_STATE_READY
	.comm	_FW_STATE_OFF,8,3               ; @FW_STATE_OFF
	.no_dead_strip	_p54spi_op_stop
.subsections_via_symbols
