	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_calc_nrssi_slope     ## -- Begin function b43legacy_calc_nrssi_slope
	.p2align	4, 0x90
_b43legacy_calc_nrssi_slope:            ## @b43legacy_calc_nrssi_slope
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_14
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_43
## %bb.2:
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_b43legacy_phy_read
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$38, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$90, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$89, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43legacy_read16
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	callq	_b43legacy_read16
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	cmpl	$5, 4(%rbx)
	movl	$127, %ecx
	movl	$15, %edx
	cmovgel	%ecx, %edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	$255, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1004, %esi                     ## imm = 0x3EC
	movl	$32639, %edx                    ## imm = 0x7F7F
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$38, %esi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	orl	$32, %eax
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$2211, %edx                     ## imm = 0x8A3
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$128, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$39, %esi
	callq	_b43legacy_phy_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	andl	$127, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	movl	$64, %edx
	jmp	LBB0_7
LBB0_14:
	cmpl	$8, 24(%rbx)
	jg	LBB0_13
## %bb.15:
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_b43legacy_calc_nrssi_offset
LBB0_17:
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
	andl	$32767, %eax                    ## imm = 0x7FFF
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_read
	andl	$65532, %eax                    ## imm = 0xFFFC
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43legacy_read16
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43legacy_read16
	orl	$32768, %eax                    ## imm = 0x8000
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	%eax, %edx
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$90, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$89, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	callq	_b43legacy_read16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_B43legacy_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read16
	xorl	%r14d, %r14d
	cmpl	$3, 4(%rbx)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -96(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -92(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -108(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -104(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	jl	LBB0_24
## %bb.18:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_b43legacy_phy_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	callq	_b43legacy_phy_read
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_B43legacy_PHY_G_LO_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_phy_read
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	callq	_b43legacy_phy_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$96, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_b43legacy_phy_read
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	callq	_b43legacy_phy_read
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$46, %esi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movl	4(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_23
## %bb.19:
	movl	$208, %ecx
	btl	%eax, %ecx
	jae	LBB0_20
## %bb.44:
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	callq	_b43legacy_phy_read
	orl	$256, %eax                      ## imm = 0x100
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	callq	_b43legacy_phy_read
	orl	$64, %eax
	jmp	LBB0_22
LBB0_43:
	movl	$1, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_B43legacy_BUG_ON               ## TAILCALL
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_b43legacy_read16
	andl	$8192, %eax                     ## imm = 0x2000
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	movl	$290, %edx                      ## imm = 0x122
LBB0_7:
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$16191, %edx                    ## imm = 0x3F3F
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$62256, %edx                    ## imm = 0xF330
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	$96, %edx
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	andl	$240, %eax
	movq	%rbx, %rdi
	movl	$67, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	$1152, %edx                     ## imm = 0x480
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	$2064, %edx                     ## imm = 0x810
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	$13, %edx
	callq	_b43legacy_phy_write
	movl	$20, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$39, %esi
	callq	_b43legacy_phy_read
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	%r13d, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	%r15d, %edx
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$38, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_synth_pu_workaround
	cmpl	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$1012, %esi                     ## imm = 0x3F4
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_write16
LBB0_9:
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$82, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movl	$65536, %eax                    ## imm = 0x10000
	movl	%r14d, %ecx
	subl	%r12d, %ecx
	je	LBB0_11
## %bb.10:
	movl	$4194304, %eax                  ## imm = 0x400000
	xorl	%edx, %edx
	idivl	%ecx
LBB0_11:
	movl	%eax, 12(%rbx)
	cmpl	$-4, %r14d
	jg	LBB0_13
## %bb.12:
	movq	16(%rbx), %rax
	movl	%r14d, (%rax)
	movl	%r12d, 4(%rax)
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$40, %ecx
	btl	%eax, %ecx
	jae	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	callq	_b43legacy_phy_read
	andl	$65471, %eax                    ## imm = 0xFFBF
LBB0_22:
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_23:
	movq	%rbx, %rdi
	movl	$96, %esi
	callq	_b43legacy_phy_read
	orl	$64, %eax
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_b43legacy_phy_read
	orl	$512, %eax                      ## imm = 0x200
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_24:
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$112, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_b43legacy_set_all_gains
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	andl	$247, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	cmpl	$2, 4(%rbx)
	jl	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	orl	$48, %eax
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	16(%rax), %edx
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_write
LBB0_26:
	movl	%r14d, -112(%rbp)               ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$128, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movl	$20, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	callq	_b43legacy_phy_read
	movl	%eax, %r15d
	shrl	$8, %r15d
	andl	$63, %r15d
	xorl	%r12d, %r12d
	cmpl	$32, %r15d
	setb	%r12b
	shll	$6, %r12d
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	andl	$127, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	cmpl	$2, 8(%rbx)
	jl	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65439, %eax                    ## imm = 0xFF9F
	leal	64(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_b43legacy_phy_write
LBB0_28:
	movq	%r13, %r14
	movl	(%r13), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_b43legacy_read16
	orl	$8192, %eax                     ## imm = 0x2000
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$15, %eax
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$62256, %edx                    ## imm = 0xF330
	callq	_b43legacy_phy_write
	cmpl	$2, 4(%rbx)
	jl	LBB0_30
## %bb.29:
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	32(%rax), %edx
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	32(%rax), %edx
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_write
LBB0_30:
	addl	%r12d, %r15d
	addl	$-64, %r15d
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_b43legacy_set_all_gains
	movl	$31, %edx
	cmpl	$8, 24(%rbx)
	je	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_read16
                                        ## kill: def $eax killed $eax def $rax
	andl	$65295, %eax                    ## imm = 0xFF0F
	leal	96(%rax), %edx
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_read16
	movl	%eax, %edx
	andl	$65520, %edx                    ## imm = 0xFFF0
	orl	$9, %edx
LBB0_32:
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	$1152, %edx                     ## imm = 0x480
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	$2064, %edx                     ## imm = 0x810
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	$13, %edx
	callq	_b43legacy_phy_write
	movl	$20, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	shrl	$8, %eax
	andl	$63, %eax
	xorl	%ecx, %ecx
	cmpl	$32, %eax
	setb	%cl
	shll	$6, %ecx
	addl	%eax, %ecx
	addl	$-64, %ecx
	movl	$65536, %eax                    ## imm = 0x10000
	movl	%r15d, %esi
	subl	%ecx, %esi
	je	LBB0_34
## %bb.33:
	movl	$4194304, %eax                  ## imm = 0x400000
	xorl	%edx, %edx
	idivl	%esi
LBB0_34:
	movl	%eax, 12(%rbx)
	cmpl	$-4, %r15d
	jl	LBB0_36
## %bb.35:
	movq	16(%rbx), %rax
	movl	%ecx, (%rax)
	movl	%r15d, 4(%rax)
LBB0_36:
	movl	4(%rbx), %eax
	cmpl	$3, %eax
	jl	LBB0_38
## %bb.37:
	movq	%rbx, %rdi
	movl	$46, %esi
	movl	-112(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$47, %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_G_LO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movl	4(%rbx), %eax
LBB0_38:
	cmpl	$2, %eax
	jl	LBB0_40
## %bb.39:
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	callq	_b43legacy_phy_read
	andl	$65487, %eax                    ## imm = 0xFFCF
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	callq	_b43legacy_phy_read
	andl	$65487, %eax                    ## imm = 0xFFCF
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_40:
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$82, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_write16
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_synth_pu_workaround
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_read
	orl	$3, %eax
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	callq	_b43legacy_set_original_gains
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
	orl	$32768, %eax                    ## imm = 0x8000
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	cmpl	$3, 4(%rbx)
	jl	LBB0_42
## %bb.41:
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	-108(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_b43legacy_phy_write
LBB0_42:
	movq	%rbx, %rdi
	callq	_b43legacy_nrssi_mem_update
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_calc_nrssi_threshold ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ## @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_PHY_G_CRS,4,2        ## @B43legacy_PHY_G_CRS
	.comm	_B43legacy_PHY_G_LO_CONTROL,4,2 ## @B43legacy_PHY_G_LO_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_calc_nrssi_slope     ; -- Begin function b43legacy_calc_nrssi_slope
	.p2align	2
_b43legacy_calc_nrssi_slope:            ; @b43legacy_calc_nrssi_slope
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #48
	bl	_b43legacy_phy_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #38
	bl	_b43legacy_phy_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	x28, x0
	mov	x0, x19
	mov	w1, #42
	bl	_b43legacy_phy_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #32
	bl	_b43legacy_phy_read
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #90
	bl	_b43legacy_phy_read
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #89
	bl	_b43legacy_phy_read
	mov	x25, x0
	mov	x0, x19
	mov	w1, #88
	bl	_b43legacy_phy_read
	mov	x26, x0
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_read16
	mov	x23, x0
	mov	x0, x19
	mov	w1, #998
	bl	_b43legacy_read16
Lloh0:
	adrp	x24, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_b43legacy_read16
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	ldr	w8, [x19, #4]
	mov	w9, #15
	mov	w10, #127
	cmp	w8, #4
	csel	w8, w10, w9, gt
	and	w2, w8, w0
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #48
	mov	w2, #255
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1004
	mov	w2, #32639
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #38
	mov	w2, #0
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x20
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #42
	mov	w2, #2211
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #39
	bl	_b43legacy_phy_read
	mov	x22, x0
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	and	w2, w0, #0x7f
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.3:
	mov	x0, x19
	mov	w1, #998
	mov	w2, #64
	b	LBB0_16
LBB0_4:
	ldr	w8, [x19, #24]
	cmp	w8, #8
	b.gt	LBB0_23
; %bb.5:
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_b43legacy_calc_nrssi_offset
LBB0_7:
Lloh2:
	adrp	x22, _B43legacy_PHY_G_CRS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _B43legacy_PHY_G_CRS@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	and	w2, w0, #0x7fff
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_read
	and	w2, w0, #0xfffc
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_read16
	mov	x24, x0
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_read16
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #994
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	mov	x25, x0
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	mov	x26, x0
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #21
	bl	_b43legacy_phy_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #90
	bl	_b43legacy_phy_read
	mov	x23, x0
	mov	x0, x19
	mov	w1, #89
	bl	_b43legacy_phy_read
	mov	x28, x0
	mov	x0, x19
	mov	w1, #88
	bl	_b43legacy_phy_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #998
	bl	_b43legacy_read16
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
Lloh4:
	adrp	x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_read16
	ldr	w8, [x19, #4]
	cmp	w8, #2
	stp	w20, w25, [sp, #56]             ; 8-byte Folded Spill
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	b.le	LBB0_14
; %bb.8:
	mov	x0, x19
	mov	w1, #46
	bl	_b43legacy_phy_read
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #47
	bl	_b43legacy_phy_read
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2063
	bl	_b43legacy_phy_read
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
Lloh7:
	adrp	x21, _B43legacy_PHY_G_LO_CONTROL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _B43legacy_PHY_G_LO_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_phy_read
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2049
	bl	_b43legacy_phy_read
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #96
	bl	_b43legacy_phy_read
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #20
	bl	_b43legacy_phy_read
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1144
	bl	_b43legacy_phy_read
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #46
	mov	w2, #0
	bl	_b43legacy_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #4]
	cmp	w8, #7
	b.hi	LBB0_27
; %bb.9:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #208
	tst	w8, w9
	b.eq	LBB0_24
; %bb.10:
	mov	x0, x19
	mov	w1, #1144
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x100
	mov	x0, x19
	mov	w1, #1144
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2049
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x40
	b	LBB0_26
LBB0_11:
	mov	w0, #1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_B43legacy_BUG_ON
LBB0_12:
	cbz	w8, LBB0_15
; %bb.13:
	ldr	w24, [x24]
	mov	x0, x19
	mov	x1, x24
	bl	_b43legacy_read16
	and	w2, w0, #0x2000
	mov	x0, x19
	mov	x1, x24
	b	LBB0_16
LBB0_14:
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	str	wzr, [sp, #40]                  ; 4-byte Folded Spill
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_28
LBB0_15:
	mov	x0, x19
	mov	w1, #998
	mov	w2, #290
LBB0_16:
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #32
	mov	w2, #16191
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #62256
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #90
	mov	w2, #96
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	and	w2, w0, #0xf0
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #1152
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	w2, #2064
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #13
	bl	_b43legacy_phy_write
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #39
	bl	_b43legacy_phy_read
	mov	x24, x0
	mov	x0, x19
	mov	w1, #48
	mov	x2, x21
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #122
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #994
	mov	x2, x23
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #38
	mov	x2, x27
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	x2, x28
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #42
	mov	x2, x20
	bl	_b43legacy_phy_write
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_b43legacy_synth_pu_workaround
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1012
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	bl	_b43legacy_write16
LBB0_18:
	mov	x0, x19
	mov	w1, #32
	ldr	w2, [sp, #48]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #90
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	x2, x25
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	x2, x26
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #82
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	subs	w8, w22, w24
	b.ne	LBB0_20
; %bb.19:
	mov	w8, #65536
	b	LBB0_21
LBB0_20:
	mov	w9, #4194304
	sdiv	w8, w9, w8
LBB0_21:
	str	w8, [x19, #12]
	cmn	w22, #4
	b.gt	LBB0_23
; %bb.22:
	ldr	x8, [x19, #16]
	stp	w22, w24, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
	mov	w9, #40
	tst	w8, w9
	b.eq	LBB0_27
; %bb.25:
	mov	x0, x19
	mov	w1, #2049
	bl	_b43legacy_phy_read
	mov	w8, #65471
	and	w2, w0, w8
LBB0_26:
	mov	x0, x19
	mov	w1, #2049
	bl	_b43legacy_phy_write
LBB0_27:
	mov	x0, x19
	mov	w1, #96
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x40
	mov	x0, x19
	mov	w1, #96
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #20
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x200
	mov	x0, x19
	mov	w1, #20
	bl	_b43legacy_phy_write
LBB0_28:
	mov	x25, x24
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x70
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	mov	w3, #0
	bl	_b43legacy_set_all_gains
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	mov	w8, #247
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_30
; %bb.29:
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffff
	orr	w2, w8, #0x30
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w8, #65487
	and	w8, w0, w8
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
LBB0_30:
	mov	x20, x22
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #1151
	bl	_b43legacy_phy_read
	mov	x21, x0
	ubfx	w8, w0, #8, #6
	mov	w9, #-64
	cmp	w8, #31
	csel	w24, w9, wzr, hi
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	and	w2, w0, #0x7f
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w1, #3
	bl	_b43legacy_phy_read
	mov	w8, #65439
	and	w8, w0, w8
	orr	w2, w8, #0x40
	mov	x0, x19
	mov	w1, #3
	bl	_b43legacy_phy_write
LBB0_32:
Lloh9:
	adrp	x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_b43legacy_read16
	orr	w2, w0, #0x2000
	mov	x0, x19
	mov	x1, x22
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0xf
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #21
	mov	w2, #62256
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_34
; %bb.33:
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w22, #65487
	and	w8, w0, w22
	orr	w2, w8, #0x20
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	and	w8, w0, w22
	orr	w2, w8, #0x20
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
LBB0_34:
	bfxil	w24, w21, #8, #6
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	mov	w3, #1
	bl	_b43legacy_set_all_gains
	ldr	w8, [x19, #24]
	cmp	w8, #8
	b.ne	LBB0_36
; %bb.35:
	mov	w2, #31
	b	LBB0_37
LBB0_36:
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_read16
	mov	w8, #65295
	and	w8, w0, w8
	orr	w2, w8, #0x60
	mov	x0, x19
	mov	w1, #82
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_read16
	and	w8, w0, #0xfff0
	mov	w9, #9
	orr	w2, w8, w9
LBB0_37:
	mov	x22, x20
	ldr	w20, [sp, #44]                  ; 4-byte Folded Reload
	mov	x0, x19
	mov	w1, #67
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #1152
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	w2, #2064
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #13
	bl	_b43legacy_phy_write
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #1151
	bl	_b43legacy_phy_read
	ubfx	w8, w0, #8, #6
	mov	w9, #-64
	cmp	w8, #31
	csel	w8, w9, wzr, hi
	bfxil	w8, w0, #8, #6
	subs	w9, w24, w8
	b.ne	LBB0_39
; %bb.38:
	mov	w9, #65536
	b	LBB0_40
LBB0_39:
	mov	w10, #4194304
	sdiv	w9, w10, w9
LBB0_40:
	str	w9, [x19, #12]
	cmn	w24, #4
	b.lt	LBB0_42
; %bb.41:
	ldr	x9, [x19, #16]
	stp	w8, w24, [x9]
LBB0_42:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.le	LBB0_44
; %bb.43:
	mov	x0, x19
	mov	w1, #46
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #47
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2063
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
Lloh12:
	adrp	x8, _B43legacy_PHY_G_LO_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43legacy_PHY_G_LO_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #4]
LBB0_44:
	cmp	w8, #2
	b.lt	LBB0_46
; %bb.45:
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_read
	mov	w21, #65487
	and	w2, w0, w21
	mov	x0, x19
	mov	w1, #2066
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_read
	and	w2, w0, w21
	mov	x0, x19
	mov	w1, #2065
	bl	_b43legacy_phy_write
LBB0_46:
	mov	x0, x19
	mov	w1, #122
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #82
	mov	x2, x26
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #67
	mov	x2, x20
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #994
	mov	x2, x25
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #998
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_b43legacy_write16
Lloh15:
	adrp	x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B43legacy_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #48]                   ; 4-byte Folded Reload
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #21
	mov	x2, x27
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #90
	mov	x2, x23
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	x2, x28
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #88
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_b43legacy_synth_pu_workaround
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x3
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_write
	mov	x0, x19
	bl	_b43legacy_set_original_gains
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.le	LBB0_48
; %bb.47:
	mov	x0, x19
	mov	w1, #2049
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #96
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #20
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1144
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_b43legacy_phy_write
LBB0_48:
	mov	x0, x19
	bl	_b43legacy_nrssi_mem_update
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_b43legacy_calc_nrssi_threshold
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_CHANNEL_EXT,4,2 ; @B43legacy_MMIO_CHANNEL_EXT
	.comm	_B43legacy_PHY_G_CRS,4,2        ; @B43legacy_PHY_G_CRS
	.comm	_B43legacy_PHY_G_LO_CONTROL,4,2 ; @B43legacy_PHY_G_LO_CONTROL
.subsections_via_symbols
