	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_unset_assoc
_wlcore_unset_assoc:                    ## @wlcore_unset_assoc
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_WLVIF_FLAG_STA_ASSOCIATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	$0, 32(%rbx)
	movq	24(%rbx), %rdi
	callq	_dev_kfree_skb
	movq	$0, 24(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_wl1271_acx_conn_monit_params
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_wl1271_acx_keep_alive_mode
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_wl1271_acx_beacon_filter_opt
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_10
LBB0_5:
	movq	_WLVIF_FLAG_IBSS_JOINED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_and_clear_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_6:
	movq	_WLVIF_FLAG_CS_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_wl12xx_wlvif_to_vif
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_cmd_stop_channel_switch
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_chswitch_done
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work
LBB0_8:
	movl	8(%rbx), %edx
	movq	_ACX_KEEP_ALIVE_TPL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl1271_acx_keep_alive_config
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ## @WLVIF_FLAG_STA_ASSOCIATED
	.comm	_WLVIF_FLAG_IBSS_JOINED,4,2     ## @WLVIF_FLAG_IBSS_JOINED
	.comm	_WLVIF_FLAG_CS_PROGRESS,4,2     ## @WLVIF_FLAG_CS_PROGRESS
	.comm	_ACX_KEEP_ALIVE_TPL_INVALID,4,2 ## @ACX_KEEP_ALIVE_TPL_INVALID
	.no_dead_strip	_wlcore_unset_assoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_unset_assoc
_wlcore_unset_assoc:                    ; @wlcore_unset_assoc
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_and_clear_bit
	cbz	x0, LBB0_10
; %bb.2:
	str	xzr, [x19, #32]
	ldr	x0, [x19, #24]
	bl	_dev_kfree_skb
	str	xzr, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_wl1271_acx_conn_monit_params
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_wl1271_acx_keep_alive_mode
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_wl1271_acx_beacon_filter_opt
	tbz	w0, #31, LBB0_6
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _WLVIF_FLAG_IBSS_JOINED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLVIF_FLAG_IBSS_JOINED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_and_clear_bit
	cbnz	x0, LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _WLVIF_FLAG_CS_PROGRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLVIF_FLAG_CS_PROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_and_clear_bit
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_wl12xx_wlvif_to_vif
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_stop_channel_switch
	mov	x0, x21
	mov	w1, #0
	bl	_ieee80211_chswitch_done
	add	x0, x19, #12
	bl	_cancel_delayed_work
LBB0_8:
	ldr	w2, [x19, #8]
Lloh12:
	adrp	x8, _ACX_KEEP_ALIVE_TPL_INVALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACX_KEEP_ALIVE_TPL_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_wl1271_acx_keep_alive_config
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ; @WLVIF_FLAG_STA_ASSOCIATED
	.comm	_WLVIF_FLAG_IBSS_JOINED,4,2     ; @WLVIF_FLAG_IBSS_JOINED
	.comm	_WLVIF_FLAG_CS_PROGRESS,4,2     ; @WLVIF_FLAG_CS_PROGRESS
	.comm	_ACX_KEEP_ALIVE_TPL_INVALID,4,2 ; @ACX_KEEP_ALIVE_TPL_INVALID
	.no_dead_strip	_wlcore_unset_assoc
.subsections_via_symbols
