	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_stop
_ath10k_stop:                           ## @ath10k_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
	movq	%rbx, %rdi
	callq	_ath10k_drain_tx
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_ATH10K_STATE_OFF@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath10k_halt
	movq	(%r15), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	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	_ATH10K_STATE_OFF,8,3           ## @ATH10K_STATE_OFF
	.no_dead_strip	_ath10k_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_stop
_ath10k_stop:                           ; @ath10k_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]
	mov	x0, x19
	bl	_ath10k_drain_tx
	add	x20, x19, #20
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _ATH10K_STATE_OFF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATH10K_STATE_OFF@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath10k_halt
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_2:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #16
	bl	_cancel_work_sync
	add	x0, x19, #12
	bl	_cancel_delayed_work_sync
	add	x0, x19, #8
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_STATE_OFF,8,3           ; @ATH10K_STATE_OFF
	.no_dead_strip	_ath10k_stop
.subsections_via_symbols
