	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_stop           ## -- Begin function ath6kl_cfg80211_stop
	.p2align	4, 0x90
_ath6kl_cfg80211_stop:                  ## @ath6kl_cfg80211_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
	callq	_ath6kl_cfg80211_sscan_disable
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movl	16(%r15), %edi
	movl	24(%r15), %esi
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_cfg80211_connect_result
	addq	$16, %rsp
	jmp	LBB0_4
LBB0_3:
	movl	16(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_cfg80211_disconnected
LBB0_4:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_ATH6KL_STATE_RECOVERY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.5:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_CONNECT_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	8(%r15), %rax
	movl	8(%rax), %edi
	movl	4(%r15), %esi
	callq	_ath6kl_wmi_disconnect_cmd
LBB0_8:
	movl	$128, (%r15)
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_CONNECT_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	16(%r15), %edi
	callq	_netif_stop_queue
	movl	16(%r15), %edi
	callq	_netif_carrier_off
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	je	LBB0_11
## %bb.9:
	movl	8(%rax), %edi
	movl	4(%r15), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_ath6kl_wmi_scanparams_cmd
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_warn
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_cfg80211_scan_complete_event ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ## @ATH6KL_STATE_RECOVERY
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_CONNECT_PEND,4,2               ## @CONNECT_PEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable scan during stop\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_stop           ; -- Begin function ath6kl_cfg80211_stop
	.p2align	2
_ath6kl_cfg80211_stop:                  ; @ath6kl_cfg80211_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_ath6kl_cfg80211_sscan_disable
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #24]
Lloh0:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w7, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cfg80211_connect_result
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_cfg80211_disconnected
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x21, _ATH6KL_STATE_RECOVERY@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ATH6KL_STATE_RECOVERY@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh11:
	adrp	x23, _CONNECTED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CONNECTED@GOTPAGEOFF]
Lloh13:
	adrp	x22, _CONNECT_PEND@GOTPAGE
Lloh14:
	ldr	x22, [x22, _CONNECT_PEND@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.5:
	ldr	w0, [x23]
	add	x20, x19, #20
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #4]
	bl	_ath6kl_wmi_disconnect_cmd
LBB0_8:
	mov	w8, #128
	str	w8, [x19]
	ldr	w0, [x23]
	add	x20, x19, #20
	mov	x1, x20
	bl	_clear_bit
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	ldr	w0, [x19, #16]
	bl	_netif_stop_queue
	ldr	w0, [x19, #16]
	bl	_netif_carrier_off
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_11
; %bb.9:
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #4]
	stp	xzr, xzr, [sp]
	mov	w2, #65535
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ath6kl_wmi_scanparams_cmd
	cbz	x0, LBB0_11
; %bb.10:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_warn
LBB0_11:
	mov	x0, x19
	mov	w1, #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
	add	sp, sp, #80
	b	_ath6kl_cfg80211_scan_complete_event
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ; @ATH6KL_STATE_RECOVERY
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_CONNECT_PEND,4,2               ; @CONNECT_PEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable scan during stop\n"

.subsections_via_symbols
