	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_bss_info_changed
_mt7601u_bss_info_changed:              ## @mt7601u_bss_info_changed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt7601u_phy_con_cal_onoff
LBB0_2:
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_MT_MAC_BSSID_DW0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %edx
	movq	%rbx, %rdi
	callq	_mt7601u_addr_wr
	movl	32(%r15), %edi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mt7601u_mac_config_tsf
LBB0_5:
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MT_LEGACY_BASIC_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mt7601u_wr
	movq	_MT_HT_FBK_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1698898176, %edx               ## imm = 0x65432100
	callq	_mt7601u_wr
	movq	_MT_HT_FBK_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-305419904, %edx               ## imm = 0xEDCBA980
	callq	_mt7601u_wr
	movq	_MT_LG_FBK_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-305419896, %edx               ## imm = 0xEDCBA988
	callq	_mt7601u_wr
	movq	_MT_LG_FBK_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8448, %edx                     ## imm = 0x2100
	callq	_mt7601u_wr
LBB0_7:
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	28(%r15), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mt7601u_mac_config_tsf
LBB0_9:
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_BSS_CHANGED_ERP_CTS_PROT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
LBB0_11:
	movl	20(%r15), %edx
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_mac_set_protection
LBB0_12:
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.13:
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_mac_set_short_preamble
LBB0_14:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.15:
	cmpq	$0, 8(%r15)
	movl	$20, %eax
	movl	$9, %ecx
	cmovel	%eax, %ecx
	movq	_MT_BKOFF_SLOT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_BKOFF_SLOT_CFG_SLOTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_rmw_field
LBB0_16:
	testl	%r14d, (%r12)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_mt7601u_phy_recalibrate_after_assoc
LBB0_18:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_MT_MAC_BSSID_DW0,4,2           ## @MT_MAC_BSSID_DW0
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_MT_LEGACY_BASIC_RATE,4,2       ## @MT_LEGACY_BASIC_RATE
	.comm	_MT_HT_FBK_CFG0,4,2             ## @MT_HT_FBK_CFG0
	.comm	_MT_HT_FBK_CFG1,4,2             ## @MT_HT_FBK_CFG1
	.comm	_MT_LG_FBK_CFG0,4,2             ## @MT_LG_FBK_CFG0
	.comm	_MT_LG_FBK_CFG1,4,2             ## @MT_LG_FBK_CFG1
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ## @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_MT_BKOFF_SLOT_CFG,4,2          ## @MT_BKOFF_SLOT_CFG
	.comm	_MT_BKOFF_SLOT_CFG_SLOTTIME,4,2 ## @MT_BKOFF_SLOT_CFG_SLOTTIME
	.no_dead_strip	_mt7601u_bss_info_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_bss_info_changed
_mt7601u_bss_info_changed:              ; @mt7601u_bss_info_changed
	.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	x20, x3
	mov	x21, x2
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_mt7601u_phy_con_cal_onoff
LBB0_2:
Lloh2:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _MT_MAC_BSSID_DW0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_MAC_BSSID_DW0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21, #32]
	mov	x0, x19
	bl	_mt7601u_addr_wr
	ldr	w0, [x21, #32]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_mt7601u_mac_config_tsf
LBB0_5:
Lloh8:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _MT_LEGACY_BASIC_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_LEGACY_BASIC_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mt7601u_wr
Lloh14:
	adrp	x8, _MT_HT_FBK_CFG0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_HT_FBK_CFG0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8448
	movk	w2, #25923, lsl #16
	bl	_mt7601u_wr
Lloh17:
	adrp	x8, _MT_HT_FBK_CFG1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_HT_FBK_CFG1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w23, #43392
	movk	w23, #60875, lsl #16
	mov	x0, x19
	mov	w2, #43392
	movk	w2, #60875, lsl #16
	bl	_mt7601u_wr
Lloh20:
	adrp	x8, _MT_LG_FBK_CFG0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_LG_FBK_CFG0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	orr	w2, w23, #0x8
	mov	x0, x19
	bl	_mt7601u_wr
Lloh23:
	adrp	x8, _MT_LG_FBK_CFG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_LG_FBK_CFG1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8448
	bl	_mt7601u_wr
LBB0_7:
Lloh26:
	adrp	x8, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w2, [x21, #28]
	mov	x0, x19
	mov	w1, #1
	bl	_mt7601u_mac_config_tsf
LBB0_9:
Lloh29:
	adrp	x8, _BSS_CHANGED_HT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_11
; %bb.10:
Lloh32:
	adrp	x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
LBB0_11:
	ldp	w2, w1, [x21, #20]
	mov	x0, x19
	bl	_mt7601u_mac_set_protection
LBB0_12:
Lloh35:
	adrp	x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_mt7601u_mac_set_short_preamble
LBB0_14:
Lloh38:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	mov	w8, #9
	mov	w9, #20
	csel	w3, w9, w8, eq
Lloh41:
	adrp	x8, _MT_BKOFF_SLOT_CFG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MT_BKOFF_SLOT_CFG@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _MT_BKOFF_SLOT_CFG_SLOTTIME@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MT_BKOFF_SLOT_CFG_SLOTTIME@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_rmw_field
LBB0_16:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_mt7601u_phy_recalibrate_after_assoc
LBB0_18:
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_MT_MAC_BSSID_DW0,4,2           ; @MT_MAC_BSSID_DW0
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_MT_LEGACY_BASIC_RATE,4,2       ; @MT_LEGACY_BASIC_RATE
	.comm	_MT_HT_FBK_CFG0,4,2             ; @MT_HT_FBK_CFG0
	.comm	_MT_HT_FBK_CFG1,4,2             ; @MT_HT_FBK_CFG1
	.comm	_MT_LG_FBK_CFG0,4,2             ; @MT_LG_FBK_CFG0
	.comm	_MT_LG_FBK_CFG1,4,2             ; @MT_LG_FBK_CFG1
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ; @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_MT_BKOFF_SLOT_CFG,4,2          ; @MT_BKOFF_SLOT_CFG
	.comm	_MT_BKOFF_SLOT_CFG_SLOTTIME,4,2 ; @MT_BKOFF_SLOT_CFG_SLOTTIME
	.no_dead_strip	_mt7601u_bss_info_changed
.subsections_via_symbols
