	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_bss_info_changed_ap
_mwl8k_bss_info_changed_ap:             ## @mwl8k_bss_info_changed_ap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mwl8k_fw_lock
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_mwl8k_set_radio_preamble
	testl	%eax, %eax
	jne	LBB0_13
LBB0_3:
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.4:
	movl	(%r14), %ecx
	bsfl	%ecx, %eax
	cmovel	%ecx, %eax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	_mwl8k_rates_24@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_mwl8k_rates_50@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_mwl8k_cmd_use_fixed_rate_ap
LBB0_8:
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ieee80211_beacon_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %r13
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwl8k_cmd_set_beacon
	movq	%r13, %rdi
	callq	_kfree_skb
LBB0_11:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwl8k_cmd_bss_start
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwl8k_fw_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_mwl8k_rates_24,8,3             ## @mwl8k_rates_24
	.comm	_mwl8k_rates_50,8,3             ## @mwl8k_rates_50
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.no_dead_strip	_mwl8k_bss_info_changed_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_bss_info_changed_ap
_mwl8k_bss_info_changed_ap:             ; @mwl8k_bss_info_changed_ap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mwl8k_fw_lock
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_mwl8k_set_radio_preamble
	cbnz	w0, LBB0_11
LBB0_4:
Lloh3:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	rbit	w9, w8
	clz	w9, w9
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	ldr	x9, [x19]
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _mwl8k_rates_24@GOTPAGE
Lloh10:
	ldr	x11, [x11, _mwl8k_rates_24@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	lsl	x8, x8, #2
Lloh12:
	adrp	x12, _mwl8k_rates_50@GOTPAGE
Lloh13:
	ldr	x12, [x12, _mwl8k_rates_50@GOTPAGEOFF]
	add	x11, x11, x8
Lloh14:
	ldr	x12, [x12]
	add	x8, x12, x8
	cmp	x9, x10
	csel	x8, x11, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	bl	_mwl8k_cmd_use_fixed_rate_ap
LBB0_6:
Lloh15:
	adrp	x8, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BSS_CHANGED_BEACON@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BSS_CHANGED_BEACON@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_beacon_get
	cbz	x0, LBB0_9
; %bb.8:
	mov	x23, x0
	ldp	w3, w2, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_cmd_set_beacon
	mov	x0, x23
	bl	_kfree_skb
LBB0_9:
Lloh21:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_cmd_bss_start
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mwl8k_fw_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_mwl8k_rates_24,8,3             ; @mwl8k_rates_24
	.comm	_mwl8k_rates_50,8,3             ; @mwl8k_rates_50
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.no_dead_strip	_mwl8k_bss_info_changed_ap
.subsections_via_symbols
