	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_clear_bssid
_wlcore_clear_bssid:                    ## @wlcore_clear_bssid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_wl1271_set_band_rate
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_wl1271_tx_min_rate_get
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl1271_acx_sta_rate_policies
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_WLVIF_FLAG_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_cmd_role_stop_sta
	testl	%eax, %eax
	js	LBB0_5
LBB0_4:
	movq	_WLVIF_FLAG_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_IN_USE,4,2          ## @WLVIF_FLAG_IN_USE
	.no_dead_strip	_wlcore_clear_bssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_clear_bssid
_wlcore_clear_bssid:                    ; @wlcore_clear_bssid
	.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
	bl	_wl1271_set_band_rate
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_wl1271_tx_min_rate_get
	str	w0, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_wl1271_acx_sta_rate_policies
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x21, _WLVIF_FLAG_IN_USE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WLVIF_FLAG_IN_USE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_role_stop_sta
	tbnz	w0, #31, LBB0_5
LBB0_4:
	ldr	w0, [x21]
	add	x1, x19, #8
	bl	_clear_bit
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_IN_USE,4,2          ; @WLVIF_FLAG_IN_USE
	.no_dead_strip	_wlcore_clear_bssid
.subsections_via_symbols
