	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_lcn_set_channel_tweaks
_b43_phy_lcn_set_channel_tweaks:        ## @b43_phy_lcn_set_channel_tweaks
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %r15
	xorl	%ecx, %ecx
	cmpl	$14, %esi
	sete	%cl
	shll	$8, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	movl	$1096, %esi                     ## imm = 0x448
	movl	$-769, %edx                     ## imm = 0xFCFF
	callq	_b43_phy_maskset
	andl	$-9, %ebx
	decl	%ebx
	xorl	%eax, %eax
	cmpl	$4, %ebx
	movl	$50334724, %ecx                 ## imm = 0x3000C04
	movl	$51645444, %edx                 ## imm = 0x3140C04
	cmovbl	%ecx, %edx
	movl	$3355443, %r14d                 ## imm = 0x333333
	cmovbl	%eax, %r14d
	movl	$536872384, %eax                ## imm = 0x200005C0
	movl	$539764768, %r12d               ## imm = 0x202C2820
	cmovbl	%eax, %r12d
	movl	$0, %eax
	setae	%al
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	shll	$10, %r13d
	orl	$6912, %r13d                    ## imm = 0x1B00
	leal	(%rax,%rax,2), %ecx
	addl	$22791, %ecx                    ## imm = 0x5907
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_bcma_chipco_pll_write
	movq	%r15, %rdi
	movl	$3, %esi
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	movl	%r14d, %ecx
	callq	_bcma_chipco_pll_maskset
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%r12d, %edx
	callq	_bcma_chipco_pll_write
	movq	_BCMA_CC_PMU_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_bcma_cc_set32
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$2370, %esi                     ## imm = 0x942
	xorl	%edx, %edx
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_b43_phy_lcn_txrx_spur_avoidance_mode
	movq	%rbx, %rdi
	movl	$1060, %esi                     ## imm = 0x424
	movl	$-65281, %edx                   ## imm = 0xFFFF00FF
	movl	%r13d, %ecx
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	movl	$1061, %esi                     ## imm = 0x425
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$68, %edx
	callq	_b43_phy_set
	movq	%rbx, %rdi
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$128, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CC_PMU_CTL,4,2            ## @BCMA_CC_PMU_CTL
	.no_dead_strip	_b43_phy_lcn_set_channel_tweaks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_lcn_set_channel_tweaks
_b43_phy_lcn_set_channel_tweaks:        ; @b43_phy_lcn_set_channel_tweaks
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	w8, #256
	mov	w9, #512
	cmp	w1, #14
	csel	w3, w9, w8, eq
	mov	w1, #1096
	mov	w2, #-769
	bl	_b43_phy_maskset
	and	w8, w21, #0xfffffff7
	sub	w8, w8, #1
	cmp	w8, #3
	cset	w21, hi
	mov	w9, #1310720
	mov	w10, #3076
	movk	w10, #768, lsl #16
	orr	w9, w10, w9
	cmp	w8, #4
	csel	w2, w10, w9, lo
	mov	w8, #13107
	movk	w8, #51, lsl #16
	csel	w22, wzr, w8, lo
	mov	w8, #10272
	movk	w8, #8236, lsl #16
	mov	w9, #1472
	movk	w9, #8192, lsl #16
	csel	w23, w9, w8, lo
	mov	w8, #7936
	mov	w9, #6912
	csel	w24, w9, w8, lo
	mov	w8, #22794
	mov	w9, #22791
	csel	w25, w9, w8, lo
	mov	x0, x20
	mov	w1, #2
	bl	_bcma_chipco_pll_write
	mov	x0, x20
	mov	w1, #3
	mov	w2, #16777215
	mov	x3, x22
	bl	_bcma_chipco_pll_maskset
	mov	x0, x20
	mov	w1, #4
	mov	x2, x23
	bl	_bcma_chipco_pll_write
Lloh0:
	adrp	x8, _BCMA_CC_PMU_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CC_PMU_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1024
	bl	_bcma_cc_set32
	mov	x0, x19
	mov	w1, #2370
	mov	w2, #0
	bl	_b43_phy_write
	mov	x0, x19
	mov	x1, x21
	bl	_b43_phy_lcn_txrx_spur_avoidance_mode
	mov	x0, x19
	mov	w1, #1060
	mov	w2, #-65281
	mov	x3, x24
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #1061
	mov	x2, x25
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #1098
	mov	w2, #68
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #1098
	mov	w2, #128
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_b43_phy_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CC_PMU_CTL,4,2            ; @BCMA_CC_PMU_CTL
	.no_dead_strip	_b43_phy_lcn_set_channel_tweaks
.subsections_via_symbols
