	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_switch_macfreq         ## -- Begin function brcms_b_switch_macfreq
	.p2align	4, 0x90
_brcms_b_switch_macfreq:                ## @brcms_b_switch_macfreq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	4(%rdi), %edi
	callq	_ai_get_chip_id
	movq	_BCMA_CHIP_ID_BCM43224@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	callq	_ai_get_chip_id
	movq	_BCMA_CHIP_ID_BCM43225@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_2:
	movq	_WL_SPURAVOID_ON2@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_tsf_clk_frac_l@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8322, %edx                     ## imm = 0x2082
	jmp	LBB0_6
LBB0_4:
	movq	_WL_SPURAVOID_ON1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_tsf_clk_frac_l@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	cmpq	%r15, %rbx
	jne	LBB0_7
## %bb.5:
	movl	$21313, %edx                    ## imm = 0x5341
	jmp	LBB0_6
LBB0_8:
	movl	(%rbx), %edi
	callq	_BRCMS_ISLCNPHY
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_WL_SPURAVOID_ON1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_tsf_clk_frac_l@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	cmpq	%r15, %rbx
	jne	LBB0_11
## %bb.10:
	movl	$31968, %edx                    ## imm = 0x7CE0
	jmp	LBB0_12
LBB0_7:
	movl	$34953, %edx                    ## imm = 0x8889
LBB0_6:
	callq	_bcma_write16
	movl	$8, %ebx
LBB0_13:
	movq	_tsf_clk_frac_h@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcma_write16                   ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$52429, %edx                    ## imm = 0xCCCD
LBB0_12:
	callq	_bcma_write16
	movl	$12, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CHIP_ID_BCM43224,8,3      ## @BCMA_CHIP_ID_BCM43224
	.comm	_BCMA_CHIP_ID_BCM43225,8,3      ## @BCMA_CHIP_ID_BCM43225
	.comm	_WL_SPURAVOID_ON2,8,3           ## @WL_SPURAVOID_ON2
	.comm	_tsf_clk_frac_l,4,2             ## @tsf_clk_frac_l
	.comm	_tsf_clk_frac_h,4,2             ## @tsf_clk_frac_h
	.comm	_WL_SPURAVOID_ON1,8,3           ## @WL_SPURAVOID_ON1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_switch_macfreq         ; -- Begin function brcms_b_switch_macfreq
	.p2align	2
_brcms_b_switch_macfreq:                ; @brcms_b_switch_macfreq
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_ai_get_chip_id
Lloh0:
	adrp	x8, _BCMA_CHIP_ID_BCM43224@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CHIP_ID_BCM43224@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_ai_get_chip_id
Lloh3:
	adrp	x8, _BCMA_CHIP_ID_BCM43225@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CHIP_ID_BCM43225@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _WL_SPURAVOID_ON2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL_SPURAVOID_ON2@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _tsf_clk_frac_l@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tsf_clk_frac_l@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8322
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x8, _WL_SPURAVOID_ON1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WL_SPURAVOID_ON1@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
Lloh15:
	adrp	x8, _tsf_clk_frac_l@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tsf_clk_frac_l@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	cmp	x21, x20
	b.ne	LBB0_9
; %bb.5:
	mov	w2, #21313
	b	LBB0_10
LBB0_6:
	ldr	w0, [x21]
	bl	_BRCMS_ISLCNPHY
	cbz	x0, LBB0_12
; %bb.7:
Lloh18:
	adrp	x8, _WL_SPURAVOID_ON1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WL_SPURAVOID_ON1@GOTPAGEOFF]
Lloh20:
	ldr	x21, [x8]
Lloh21:
	adrp	x8, _tsf_clk_frac_l@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tsf_clk_frac_l@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	cmp	x21, x20
	b.ne	LBB0_13
; %bb.8:
	mov	w2, #31968
	b	LBB0_14
LBB0_9:
	mov	w2, #34953
LBB0_10:
	bl	_bcma_write16
	mov	w20, #8
LBB0_11:
Lloh24:
	adrp	x8, _tsf_clk_frac_h@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tsf_clk_frac_h@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	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
	b	_bcma_write16
LBB0_12:
	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
LBB0_13:
	mov	w2, #52429
LBB0_14:
	bl	_bcma_write16
	mov	w20, #12
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CHIP_ID_BCM43224,8,3      ; @BCMA_CHIP_ID_BCM43224
	.comm	_BCMA_CHIP_ID_BCM43225,8,3      ; @BCMA_CHIP_ID_BCM43225
	.comm	_WL_SPURAVOID_ON2,8,3           ; @WL_SPURAVOID_ON2
	.comm	_tsf_clk_frac_l,4,2             ; @tsf_clk_frac_l
	.comm	_tsf_clk_frac_h,4,2             ; @tsf_clk_frac_h
	.comm	_WL_SPURAVOID_ON1,8,3           ; @WL_SPURAVOID_ON1
.subsections_via_symbols
