	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cw1200_cqm_bssloss_sm        ## -- Begin function __cw1200_cqm_bssloss_sm
	.p2align	4, 0x90
___cw1200_cqm_bssloss_sm:               ## @__cw1200_cqm_bssloss_sm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, 40(%rdi)
	leaq	20(%rdi), %r12
	movq	%r12, %rdi
	callq	_cancel_work_sync
	movl	(%rbx), %r15d
	leaq	28(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	movq	32(%rbx), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_pr_debug
	cmpq	$0, 32(%rbx)
	je	LBB0_1
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movl	24(%rbx), %edi
	leaq	16(%rbx), %rsi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_queue_delayed_work
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_7
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.13:
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	$0, (%rbx)
	movl	24(%rbx), %edi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.6:
	cmpl	$3, (%rbx)
	setl	%al
LBB0_7:
	movq	_cw1200_bssloss_mitigation@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_12
## %bb.8:
	testb	%al, %al
	je	LBB0_12
## %bb.9:
	incl	(%rbx)
	movl	4(%rbx), %edi
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	callq	_ieee80211_nullfunc_get
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cw1200_tx                      ## TAILCALL
LBB0_11:
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	$0, (%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[STA] CQM BSSLOSS_SM: state: %d init %d good %d bad: %d txlock: %d uj: %d\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_cw1200_bssloss_mitigation,4,2  ## @cw1200_bssloss_mitigation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cw1200_cqm_bssloss_sm        ; -- Begin function __cw1200_cqm_bssloss_sm
	.p2align	2
___cw1200_cqm_bssloss_sm:               ; @__cw1200_cqm_bssloss_sm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	str	xzr, [x0, #40]
	add	x21, x0, #20
	mov	x0, x21
	bl	_cancel_work_sync
	ldr	w25, [x19]
	add	x20, x19, #28
	mov	x0, x20
	bl	_atomic_read
	mov	x5, x0
	ldr	x6, [x19, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_pr_debug
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	cbz	w24, LBB0_5
; %bb.3:
	ldr	w0, [x19, #24]
	add	x1, x19, #16
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_queue_delayed_work
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.4:
	mov	x0, x20
	bl	_atomic_read
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_9
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
	str	wzr, [x19]
	ldr	w0, [x19, #24]
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_queue_work
LBB0_7:
	cbz	w22, LBB0_12
; %bb.8:
	ldr	w8, [x19]
	cmp	w8, #3
	cset	w8, lt
LBB0_9:
Lloh5:
	adrp	x9, _cw1200_bssloss_mitigation@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cw1200_bssloss_mitigation@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_1
; %bb.10:
	ldp	w8, w0, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x1, [x19, #8]
	mov	w2, #0
	bl	_ieee80211_nullfunc_get
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x20, LBB0_1
; %bb.11:
	ldr	w0, [x19, #4]
	mov	x1, #0
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_cw1200_tx
LBB0_12:
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
	str	wzr, [x19]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[STA] CQM BSSLOSS_SM: state: %d init %d good %d bad: %d txlock: %d uj: %d\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_cw1200_bssloss_mitigation,4,2  ; @cw1200_bssloss_mitigation
.subsections_via_symbols
