	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath6kl_cfg80211_sscan_stop
___ath6kl_cfg80211_sscan_stop:          ## @__ath6kl_cfg80211_sscan_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	16(%rdi), %r15
	movq	_SCHED_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%rbx), %rdi
	callq	_del_timer_sync
	movq	(%r15), %rax
	movq	_ATH6KL_STATE_RECOVERY@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_ath6kl_wmi_enable_sched_scan_cmd
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCHED_SCANNING,4,2             ## @SCHED_SCANNING
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ## @ATH6KL_STATE_RECOVERY
	.no_dead_strip	___ath6kl_cfg80211_sscan_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ath6kl_cfg80211_sscan_stop
___ath6kl_cfg80211_sscan_stop:          ; @__ath6kl_cfg80211_sscan_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	x20, [x0, #16]
Lloh0:
	adrp	x8, _SCHED_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCHED_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_and_clear_bit
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, x19, #4
	bl	_del_timer_sync
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ATH6KL_STATE_RECOVERY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH6KL_STATE_RECOVERY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_ath6kl_wmi_enable_sched_scan_cmd
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCHED_SCANNING,4,2             ; @SCHED_SCANNING
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ; @ATH6KL_STATE_RECOVERY
	.no_dead_strip	___ath6kl_cfg80211_sscan_stop
.subsections_via_symbols
