	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_bss_info_changed_sta
_mwl8k_bss_info_changed_sta:            ## @mwl8k_bss_info_changed_sta
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	callq	_mwl8k_fw_lock
	testq	%rax, %rax
	jne	LBB0_32
## %bb.1:
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rax
	testl	%r15d, (%rcx)
	je	LBB0_4
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	$0, (%r13)
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_4:
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_ieee80211_find_sta
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rsi
	movq	(%rax), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.9:
	movl	(%rcx,%rdx,4), %r12d
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_31
LBB0_10:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %r12d
	shll	$5, %r12d
LBB0_11:
	movl	8(%rax), %esi
	leaq	-112(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_19
## %bb.12:
	cmpl	$0, 16(%r13)
	je	LBB0_13
## %bb.15:
	movl	24(%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_16
## %bb.17:
	movq	_mwl8k_rates_24@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_13:
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_mwl8k_cmd_set_rate
	testl	%eax, %eax
	jne	LBB0_31
## %bb.14:
	movq	%rbx, %rdi
	callq	_mwl8k_cmd_use_fixed_rate_sta
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_19
LBB0_16:
	movq	_mwl8k_rates_50@GOTPCREL(%rip), %rcx
LBB0_18:
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_mwl8k_cmd_use_fixed_rate_ap
LBB0_19:
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_21
## %bb.20:
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_mwl8k_set_radio_preamble
	testl	%eax, %eax
	jne	LBB0_31
LBB0_21:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.22:
	cmpl	$0, 16(%r13)
	je	LBB0_23
LBB0_24:
	cmpq	$0, 8(%r14)
	je	LBB0_31
## %bb.25:
	cmpl	$0, 16(%r13)
	je	LBB0_26
LBB0_29:
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_31
## %bb.30:
	movq	8(%r13), %rdi
	movl	(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	$1, (%r13)
	jmp	LBB0_31
LBB0_23:
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_mwl8k_cmd_set_slot
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_24
LBB0_26:
	movq	_BSS_CHANGED_ERP_CTS_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_29
## %bb.27:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_mwl8k_cmd_set_aid
	testl	%eax, %eax
	je	LBB0_28
LBB0_31:
	movq	%rbx, %rdi
	callq	_mwl8k_fw_unlock
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.33:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	cmpq	$0, 8(%r14)
	jne	LBB0_29
	jmp	LBB0_31
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_mwl8k_rates_24,8,3             ## @mwl8k_rates_24
	.comm	_mwl8k_rates_50,8,3             ## @mwl8k_rates_50
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ## @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_mwl8k_bss_info_changed_sta
.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_sta
_mwl8k_bss_info_changed_sta:            ; @mwl8k_bss_info_changed_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x23, [x0, #8]
	bl	_mwl8k_fw_lock
	cbnz	x0, LBB0_28
; %bb.1:
Lloh3:
	adrp	x24, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
	ldr	w9, [x24]
	ldr	x8, [x20, #8]
	tst	w9, w21
	b.eq	LBB0_4
; %bb.2:
	cbnz	x8, LBB0_5
; %bb.3:
	mov	w22, #0
	str	wzr, [x23]
	b	LBB0_14
LBB0_4:
	cbz	x8, LBB0_13
LBB0_5:
	bl	_rcu_read_lock
	ldr	w1, [x20]
	mov	x0, x20
	bl	_ieee80211_find_sta
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh5:
	adrp	x25, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x25, [x25, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	x8, [x0]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	w22, [x8, x9, lsl #2]
	b	LBB0_10
LBB0_8:
	bl	_rcu_read_unlock
	b	LBB0_27
LBB0_9:
Lloh7:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w22, w8, #5
LBB0_10:
	ldr	w1, [x0, #8]
	add	x0, sp, #8
	mov	w2, #16
	bl	_memcpy
	bl	_rcu_read_unlock
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.11:
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_23
; %bb.12:
	ldr	w8, [x20, #24]
	rbit	w9, w8
	clz	w9, w9
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	x10, [x25]
Lloh10:
	adrp	x11, _mwl8k_rates_24@GOTPAGE
Lloh11:
	ldr	x11, [x11, _mwl8k_rates_24@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	lsl	x8, x8, #2
Lloh13:
	adrp	x12, _mwl8k_rates_50@GOTPAGE
Lloh14:
	ldr	x12, [x12, _mwl8k_rates_50@GOTPAGEOFF]
	add	x11, x11, x8
Lloh15:
	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
	b	LBB0_14
LBB0_13:
	mov	w22, #0
LBB0_14:
Lloh16:
	adrp	x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_mwl8k_set_radio_preamble
	cbnz	w0, LBB0_27
LBB0_16:
Lloh19:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_22
LBB0_18:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_27
; %bb.19:
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_25
LBB0_20:
	ldr	w8, [x24]
Lloh22:
	adrp	x9, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_27
; %bb.21:
	ldr	x0, [x23, #8]
	ldr	w1, [x20]
Lloh25:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_27
LBB0_22:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_mwl8k_cmd_set_slot
	cbnz	w0, LBB0_27
	b	LBB0_18
LBB0_23:
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mwl8k_cmd_set_rate
	cbnz	w0, LBB0_27
; %bb.24:
	mov	x0, x19
	bl	_mwl8k_cmd_use_fixed_rate_sta
	cbnz	w0, LBB0_27
	b	LBB0_14
LBB0_25:
	ldr	w8, [x24]
Lloh28:
	adrp	x9, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _BSS_CHANGED_HT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_20
; %bb.26:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mwl8k_cmd_set_aid
	cbz	w0, LBB0_30
LBB0_27:
	mov	x0, x19
	bl	_mwl8k_fw_unlock
LBB0_28:
	ldr	x8, [sp, #72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_20
	b	LBB0_27
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_mwl8k_rates_24,8,3             ; @mwl8k_rates_24
	.comm	_mwl8k_rates_50,8,3             ; @mwl8k_rates_50
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ; @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_mwl8k_bss_info_changed_sta
.subsections_via_symbols
