	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_switch_freq            ## -- Begin function b43_mac_switch_freq
	.p2align	4, 0x90
_b43_mac_switch_freq:                   ## @b43_mac_switch_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_BCMA_CHIP_ID_BCM4331@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_B43_MMIO_TSF_CLK_FRAC_LOW@GOTPCREL(%rip), %rax
	cmpl	$1, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$2, %esi
	jne	LBB0_6
## %bb.3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$6242, %edx                     ## imm = 0x1862
	jmp	LBB0_4
LBB0_7:
	movq	_BCMA_CHIP_ID_BCM43131@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.8:
	movq	_BCMA_CHIP_ID_BCM43217@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.9:
	movq	_BCMA_CHIP_ID_BCM43222@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.10:
	movq	_BCMA_CHIP_ID_BCM43224@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.11:
	movq	_BCMA_CHIP_ID_BCM43225@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	_BCMA_CHIP_ID_BCM43227@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_BCMA_CHIP_ID_BCM43228@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.20:
	movq	(%rbx), %rax
	movq	_B43_PHYTYPE_LCN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.21:
	movq	_B43_MMIO_TSF_CLK_FRAC_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	cmpl	$1, %esi
	jne	LBB0_23
## %bb.22:
	movl	%eax, %esi
	movl	$31968, %edx                    ## imm = 0x7CE0
	jmp	LBB0_24
LBB0_14:
	movq	_B43_MMIO_TSF_CLK_FRAC_LOW@GOTPCREL(%rip), %rax
	cmpl	$1, %esi
	je	LBB0_18
## %bb.15:
	cmpl	$2, %esi
	jne	LBB0_19
## %bb.16:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8322, %edx                     ## imm = 0x2082
	jmp	LBB0_17
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15984, %edx                    ## imm = 0x3E70
	jmp	LBB0_4
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$26214, %edx                    ## imm = 0x6666
LBB0_4:
	callq	_b43_write16
	movl	$6, %edx
	jmp	LBB0_25
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_18:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$21313, %edx                    ## imm = 0x5341
	jmp	LBB0_17
LBB0_19:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$34953, %edx                    ## imm = 0x8889
LBB0_17:
	callq	_b43_write16
	movl	$8, %edx
	jmp	LBB0_25
LBB0_23:
	movl	%eax, %esi
	movl	$52429, %edx                    ## imm = 0xCCCD
LBB0_24:
	callq	_b43_write16
	movl	$12, %edx
LBB0_25:
	movq	_B43_MMIO_TSF_CLK_FRAC_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_b43_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CHIP_ID_BCM4331,8,3       ## @BCMA_CHIP_ID_BCM4331
	.comm	_B43_MMIO_TSF_CLK_FRAC_LOW,4,2  ## @B43_MMIO_TSF_CLK_FRAC_LOW
	.comm	_B43_MMIO_TSF_CLK_FRAC_HIGH,4,2 ## @B43_MMIO_TSF_CLK_FRAC_HIGH
	.comm	_BCMA_CHIP_ID_BCM43131,8,3      ## @BCMA_CHIP_ID_BCM43131
	.comm	_BCMA_CHIP_ID_BCM43217,8,3      ## @BCMA_CHIP_ID_BCM43217
	.comm	_BCMA_CHIP_ID_BCM43222,8,3      ## @BCMA_CHIP_ID_BCM43222
	.comm	_BCMA_CHIP_ID_BCM43224,8,3      ## @BCMA_CHIP_ID_BCM43224
	.comm	_BCMA_CHIP_ID_BCM43225,8,3      ## @BCMA_CHIP_ID_BCM43225
	.comm	_BCMA_CHIP_ID_BCM43227,8,3      ## @BCMA_CHIP_ID_BCM43227
	.comm	_BCMA_CHIP_ID_BCM43228,8,3      ## @BCMA_CHIP_ID_BCM43228
	.comm	_B43_PHYTYPE_LCN,8,3            ## @B43_PHYTYPE_LCN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_switch_freq            ; -- Begin function b43_mac_switch_freq
	.p2align	2
_b43_mac_switch_freq:                   ; @b43_mac_switch_freq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BCMA_CHIP_ID_BCM4331@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM4331@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGEOFF]
	cmp	w1, #1
	b.eq	LBB0_11
; %bb.2:
	cmp	w1, #2
	b.ne	LBB0_12
; %bb.3:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6242
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x9, _BCMA_CHIP_ID_BCM43131@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM43131@GOTPAGEOFF]
Lloh7:
	adrp	x10, _BCMA_CHIP_ID_BCM43217@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BCMA_CHIP_ID_BCM43217@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _BCMA_CHIP_ID_BCM43222@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BCMA_CHIP_ID_BCM43222@GOTPAGEOFF]
Lloh13:
	adrp	x12, _BCMA_CHIP_ID_BCM43224@GOTPAGE
Lloh14:
	ldr	x12, [x12, _BCMA_CHIP_ID_BCM43224@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
Lloh16:
	ldr	x12, [x12]
Lloh17:
	adrp	x13, _BCMA_CHIP_ID_BCM43225@GOTPAGE
Lloh18:
	ldr	x13, [x13, _BCMA_CHIP_ID_BCM43225@GOTPAGEOFF]
Lloh19:
	adrp	x14, _BCMA_CHIP_ID_BCM43227@GOTPAGE
Lloh20:
	ldr	x14, [x14, _BCMA_CHIP_ID_BCM43227@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
Lloh22:
	ldr	x14, [x14]
Lloh23:
	adrp	x15, _BCMA_CHIP_ID_BCM43228@GOTPAGE
Lloh24:
	ldr	x15, [x15, _BCMA_CHIP_ID_BCM43228@GOTPAGEOFF]
Lloh25:
	ldr	x15, [x15]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	ccmp	x8, x14, #4, ne
	ccmp	x8, x15, #4, ne
	b.ne	LBB0_8
; %bb.5:
Lloh26:
	adrp	x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGEOFF]
	cmp	w1, #1
	b.eq	LBB0_15
; %bb.6:
	cmp	w1, #2
	b.ne	LBB0_16
; %bb.7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8322
	b	LBB0_17
LBB0_8:
	ldr	x8, [x19]
Lloh28:
	adrp	x9, _B43_PHYTYPE_LCN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _B43_PHYTYPE_LCN@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
Lloh31:
	adrp	x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B43_MMIO_TSF_CLK_FRAC_LOW@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	mov	x0, x19
	cmp	w1, #1
	b.ne	LBB0_18
; %bb.10:
	mov	x1, x8
	mov	w2, #31968
	b	LBB0_19
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15984
	b	LBB0_13
LBB0_12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #26214
LBB0_13:
	bl	_b43_write16
	mov	w2, #6
	b	LBB0_20
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #21313
	b	LBB0_17
LBB0_16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #34953
LBB0_17:
	bl	_b43_write16
	mov	w2, #8
	b	LBB0_20
LBB0_18:
	mov	x1, x8
	mov	w2, #52429
LBB0_19:
	bl	_b43_write16
	mov	w2, #12
LBB0_20:
Lloh34:
	adrp	x8, _B43_MMIO_TSF_CLK_FRAC_HIGH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B43_MMIO_TSF_CLK_FRAC_HIGH@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CHIP_ID_BCM4331,8,3       ; @BCMA_CHIP_ID_BCM4331
	.comm	_B43_MMIO_TSF_CLK_FRAC_LOW,4,2  ; @B43_MMIO_TSF_CLK_FRAC_LOW
	.comm	_B43_MMIO_TSF_CLK_FRAC_HIGH,4,2 ; @B43_MMIO_TSF_CLK_FRAC_HIGH
	.comm	_BCMA_CHIP_ID_BCM43131,8,3      ; @BCMA_CHIP_ID_BCM43131
	.comm	_BCMA_CHIP_ID_BCM43217,8,3      ; @BCMA_CHIP_ID_BCM43217
	.comm	_BCMA_CHIP_ID_BCM43222,8,3      ; @BCMA_CHIP_ID_BCM43222
	.comm	_BCMA_CHIP_ID_BCM43224,8,3      ; @BCMA_CHIP_ID_BCM43224
	.comm	_BCMA_CHIP_ID_BCM43225,8,3      ; @BCMA_CHIP_ID_BCM43225
	.comm	_BCMA_CHIP_ID_BCM43227,8,3      ; @BCMA_CHIP_ID_BCM43227
	.comm	_BCMA_CHIP_ID_BCM43228,8,3      ; @BCMA_CHIP_ID_BCM43228
	.comm	_B43_PHYTYPE_LCN,8,3            ; @B43_PHYTYPE_LCN
.subsections_via_symbols
