	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_ht_spur_avoid
_b43_phy_ht_spur_avoid:                 ## @b43_phy_ht_spur_avoid
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rsi), %r12d
	addl	$-13, %r12d
	xorl	%ebx, %ebx
	cmpl	$2, %r12d
	setb	%bl
	movq	_B43_BCMA_CLKCTLST_PHY_PLL_REQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_bcma_core_pll_ctl
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_bcma_pmu_spuravoid_pllupdate
	movq	_B43_BCMA_CLKCTLST_80211_PLL_REQ@GOTPCREL(%rip), %rax
	movl	(%r13), %esi
	orl	(%rax), %esi
	movq	_B43_BCMA_CLKCTLST_80211_PLL_ST@GOTPCREL(%rip), %rax
	movq	_B43_BCMA_CLKCTLST_PHY_PLL_ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_bcma_core_pll_ctl
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_b43_mac_switch_freq
	movq	%r14, %rdi
	callq	_b43_wireless_core_phy_pll_reset
	movq	_B43_PHY_HT_BBCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_PHY_HT_BBCFG_RSTRX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$1, %r12d
	ja	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_b43_phy_set
	jmp	LBB0_3
LBB0_2:
	notl	%edx
	movzwl	%dx, %edx
	movq	%r14, %rdi
	callq	_b43_phy_mask
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_ht_reset_cca           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_BCMA_CLKCTLST_PHY_PLL_REQ,4,2 ## @B43_BCMA_CLKCTLST_PHY_PLL_REQ
	.comm	_B43_BCMA_CLKCTLST_80211_PLL_REQ,4,2 ## @B43_BCMA_CLKCTLST_80211_PLL_REQ
	.comm	_B43_BCMA_CLKCTLST_80211_PLL_ST,4,2 ## @B43_BCMA_CLKCTLST_80211_PLL_ST
	.comm	_B43_BCMA_CLKCTLST_PHY_PLL_ST,4,2 ## @B43_BCMA_CLKCTLST_PHY_PLL_ST
	.comm	_B43_PHY_HT_BBCFG,4,2           ## @B43_PHY_HT_BBCFG
	.comm	_B43_PHY_HT_BBCFG_RSTRX,4,2     ## @B43_PHY_HT_BBCFG_RSTRX
	.no_dead_strip	_b43_phy_ht_spur_avoid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_ht_spur_avoid
_b43_phy_ht_spur_avoid:                 ; @b43_phy_ht_spur_avoid
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	w8, [x1]
	sub	w22, w8, #13
	cmp	w22, #2
	cset	w21, lo
Lloh0:
	adrp	x23, _B43_BCMA_CLKCTLST_PHY_PLL_REQ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _B43_BCMA_CLKCTLST_PHY_PLL_REQ@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_bcma_core_pll_ctl
	ldr	x0, [x20]
	mov	x1, x21
	bl	_bcma_pmu_spuravoid_pllupdate
Lloh2:
	adrp	x8, _B43_BCMA_CLKCTLST_80211_PLL_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_BCMA_CLKCTLST_80211_PLL_REQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x23]
Lloh5:
	adrp	x10, _B43_BCMA_CLKCTLST_80211_PLL_ST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _B43_BCMA_CLKCTLST_80211_PLL_ST@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh7:
	ldr	w8, [x10]
Lloh8:
	adrp	x9, _B43_BCMA_CLKCTLST_PHY_PLL_ST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _B43_BCMA_CLKCTLST_PHY_PLL_ST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	w3, #0
	bl	_bcma_core_pll_ctl
	mov	x0, x19
	mov	x1, x21
	bl	_b43_mac_switch_freq
	mov	x0, x19
	bl	_b43_wireless_core_phy_pll_reset
Lloh11:
	adrp	x8, _B43_PHY_HT_BBCFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_PHY_HT_BBCFG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _B43_PHY_HT_BBCFG_RSTRX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_PHY_HT_BBCFG_RSTRX@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	cmp	w22, #1
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_b43_phy_set
	b	LBB0_3
LBB0_2:
	mvn	w8, w2
	and	w2, w8, #0xffff
	mov	x0, x19
	bl	_b43_phy_mask
LBB0_3:
	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	_b43_phy_ht_reset_cca
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_BCMA_CLKCTLST_PHY_PLL_REQ,4,2 ; @B43_BCMA_CLKCTLST_PHY_PLL_REQ
	.comm	_B43_BCMA_CLKCTLST_80211_PLL_REQ,4,2 ; @B43_BCMA_CLKCTLST_80211_PLL_REQ
	.comm	_B43_BCMA_CLKCTLST_80211_PLL_ST,4,2 ; @B43_BCMA_CLKCTLST_80211_PLL_ST
	.comm	_B43_BCMA_CLKCTLST_PHY_PLL_ST,4,2 ; @B43_BCMA_CLKCTLST_PHY_PLL_ST
	.comm	_B43_PHY_HT_BBCFG,4,2           ; @B43_PHY_HT_BBCFG
	.comm	_B43_PHY_HT_BBCFG_RSTRX,4,2     ; @B43_PHY_HT_BBCFG_RSTRX
	.no_dead_strip	_b43_phy_ht_spur_avoid
.subsections_via_symbols
