	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_stop                    ## -- Begin function cw1200_stop
	.p2align	4, 0x90
_cw1200_stop:                           ## @cw1200_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%r15, %rdi
	callq	_wsm_lock_tx
	leaq	72(%r15), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_down_trylock
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 80(%r15)
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_up
	leaq	64(%r15), %rbx
	leaq	68(%r15), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
	leaq	60(%r15), %rdi
	callq	_cancel_delayed_work_sync
	leaq	56(%r15), %rdi
	callq	_cancel_delayed_work_sync
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_cw1200_cqm_bssloss_sm
	leaq	52(%r15), %rdi
	callq	_cancel_work_sync
	leaq	48(%r15), %rdi
	callq	_cancel_delayed_work_sync
	movl	44(%r15), %edi
	callq	_flush_workqueue
	leaq	40(%r15), %rdi
	callq	_del_timer_sync
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movl	$0, (%r15)
	leaq	28(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	32(%r15), %rdi
	movq	_list@GOTPCREL(%rip), %r12
	movq	%r12, %rsi
	callq	_list_splice_init
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	___cw1200_free_event_queue
	movq	_CW1200_JOIN_STATUS_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	$0, 4(%r15)
	movq	16(%r15), %rdi
	callq	_cw1200_queue_clear
	movq	16(%r15), %rdi
	addq	$4, %rdi
	callq	_cw1200_queue_clear
	movq	16(%r15), %rdi
	addq	$8, %rdi
	callq	_cw1200_queue_clear
	movq	16(%r15), %rdi
	addq	$12, %rdi
	callq	_cw1200_queue_clear
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_tx_policy_clean
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_xchg
	cmpl	$1, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_5:
	movq	%r15, %rdi
	callq	_wsm_unlock_tx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_xchg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_list,4,2                       ## @list
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_CW1200_JOIN_STATUS_PASSIVE,4,2 ## @CW1200_JOIN_STATUS_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[STA] TX is force-unlocked due to stop request.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_stop                    ; -- Begin function cw1200_stop
	.p2align	2
_cw1200_stop:                           ; @cw1200_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]
Lloh0:
	adrp	x8, _list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	bl	_wsm_lock_tx
	add	x20, x19, #72
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_down_trylock
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x19, #80]
	bl	_schedule
	b	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_up
	add	x20, x19, #64
	add	x0, x19, #68
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_cancel_delayed_work_sync
	add	x0, x19, #60
	bl	_cancel_delayed_work_sync
	add	x0, x19, #56
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_cw1200_cqm_bssloss_sm
	add	x0, x19, #52
	bl	_cancel_work_sync
	add	x0, x19, #48
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19, #44]
	bl	_flush_workqueue
	add	x0, x19, #40
	bl	_del_timer_sync
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	str	wzr, [x19]
	add	x21, x19, #28
	mov	x0, x21
	bl	_spin_lock
	add	x0, x19, #32
Lloh6:
	adrp	x22, _list@GOTPAGE
Lloh7:
	ldr	x22, [x22, _list@GOTPAGEOFF]
	mov	x1, x22
	bl	_list_splice_init
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x22
	bl	___cw1200_free_event_queue
Lloh8:
	adrp	x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	wzr, [x19, #4]
	ldr	x0, [x19, #16]
	bl	_cw1200_queue_clear
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_cw1200_queue_clear
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	bl	_cw1200_queue_clear
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	bl	_cw1200_queue_clear
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_tx_policy_clean
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #1
	bl	_atomic_xchg
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_5:
	mov	x0, x19
	bl	_wsm_unlock_tx
	mov	x0, x20
	mov	w1, #0
	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	_atomic_xchg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_list,4,2                       ; @list
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_CW1200_JOIN_STATUS_PASSIVE,4,2 ; @CW1200_JOIN_STATUS_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[STA] TX is force-unlocked due to stop request.\n"

.subsections_via_symbols
