	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_vif_stop       ## -- Begin function ath6kl_cfg80211_vif_stop
	.p2align	4, 0x90
_ath6kl_cfg80211_vif_stop:              ## @ath6kl_cfg80211_vif_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_netif_stop_queue
	movq	_WLAN_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %r14
	movq	%r14, %rsi
	callq	_clear_bit
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_ath6kl_disconnect
	leaq	24(%rbx), %rdi
	callq	_del_timer
	jmp	LBB0_4
LBB0_2:
	movq	_CONNECT_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ath6kl_disconnect
	leaq	24(%rbx), %rdi
	callq	_del_timer
	testq	%r14, %r14
	je	LBB0_8
LBB0_4:
	movq	_DISCONNECT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AP_NETWORK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	_ath6kl_cfg80211_vif_stop.bcast_mac(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	8(%rbx), %rdx
LBB0_7:
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ath6kl_disconnect_event
LBB0_8:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movl	$1, -32(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_cfg80211_scan_done
	movq	$0, 16(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath6kl_cfg80211_sta_bmiss_enhance
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @ath6kl_cfg80211_vif_stop.bcast_mac
_ath6kl_cfg80211_vif_stop.bcast_mac:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.comm	_WLAN_ENABLED,4,2               ## @WLAN_ENABLED
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_CONNECT_PEND,4,2               ## @CONNECT_PEND
	.comm	_DISCONNECT_CMD,4,2             ## @DISCONNECT_CMD
	.comm	_AP_NETWORK,4,2                 ## @AP_NETWORK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_vif_stop       ; -- Begin function ath6kl_cfg80211_vif_stop
	.p2align	2
_ath6kl_cfg80211_vif_stop:              ; @ath6kl_cfg80211_vif_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _WLAN_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #28
	mov	x1, x20
	bl	_clear_bit
	cbz	w21, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ath6kl_disconnect
	add	x0, x19, #24
	bl	_del_timer
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _CONNECT_PEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONNECT_PEND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	mov	x20, x0
	mov	x0, x19
	bl	_ath6kl_disconnect
	add	x0, x19, #24
	bl	_del_timer
	cbz	x20, LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _DISCONNECT_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISCONNECT_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _AP_NETWORK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AP_NETWORK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x2, _ath6kl_cfg80211_vif_stop.bcast_mac@PAGE
Lloh16:
	add	x2, x2, _ath6kl_cfg80211_vif_stop.bcast_mac@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	x2, [x19, #8]
LBB0_7:
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_ath6kl_disconnect_event
LBB0_8:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [sp, #8]
	add	x1, sp, #8
	bl	_cfg80211_scan_done
	str	xzr, [x19, #16]
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_ath6kl_cfg80211_sta_bmiss_enhance
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @ath6kl_cfg80211_vif_stop.bcast_mac
_ath6kl_cfg80211_vif_stop.bcast_mac:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.comm	_WLAN_ENABLED,4,2               ; @WLAN_ENABLED
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_CONNECT_PEND,4,2               ; @CONNECT_PEND
	.comm	_DISCONNECT_CMD,4,2             ; @DISCONNECT_CMD
	.comm	_AP_NETWORK,4,2                 ; @AP_NETWORK
.subsections_via_symbols
