	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_calc_nrssi_slope
_b43_calc_nrssi_slope:                  ## @b43_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
	movq	(%rdi), %rax
	movq	24(%rdi), %r13
	movq	_B43_PHYTYPE_G@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_B43_WARN_ON
	cmpl	$8, 8(%rbx)
	jle	LBB0_1
## %bb.28:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_b43_calc_nrssi_offset
LBB0_3:
	movq	_B43_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32767, %edx                    ## imm = 0x7FFF
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	$65532, %edx                    ## imm = 0xFFFC
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43_read16
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	callq	_b43_read16
	orl	$32768, %eax                    ## imm = 0x8000
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	%eax, %edx
	callq	_b43_write16
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_b43_radio_read16
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43_radio_read16
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43_radio_read16
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_b43_phy_read
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$90, %esi
	callq	_b43_phy_read
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$89, %esi
	callq	_b43_phy_read
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_b43_phy_read
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	callq	_b43_read16
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_B43_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_b43_read16
	xorl	%r15d, %r15d
	cmpl	$3, 12(%rbx)
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jl	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_b43_phy_read
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_b43_phy_read
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	callq	_b43_phy_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_B43_PHY_G_LO_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_b43_phy_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	callq	_b43_phy_read
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$96, %esi
	callq	_b43_phy_read
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_b43_phy_read
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	callq	_b43_phy_read
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$46, %esi
	xorl	%edx, %edx
	callq	_b43_phy_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_phy_write
	movl	12(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_8
## %bb.5:
	movl	$208, %ecx
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.29:
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$256, %edx                      ## imm = 0x100
	callq	_b43_phy_set
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	$64, %edx
	callq	_b43_phy_set
	jmp	LBB0_8
LBB0_6:
	movl	$40, %ecx
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	$65471, %edx                    ## imm = 0xFFBF
	callq	_b43_phy_mask
LBB0_8:
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	$64, %edx
	callq	_b43_phy_set
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_b43_phy_set
LBB0_9:
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$112, %edx
	callq	_b43_radio_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_b43_set_all_gains
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$247, %edx
	callq	_b43_radio_mask
	cmpl	$2, 12(%rbx)
	jl	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	$65487, %edx                    ## imm = 0xFFCF
	movl	$48, %ecx
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	$65487, %edx                    ## imm = 0xFFCF
	movl	$16, %ecx
	callq	_b43_phy_maskset
LBB0_11:
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$128, %edx
	callq	_b43_radio_set
	movl	$20, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	callq	_b43_phy_read
	movl	%eax, %r15d
	shrl	$8, %r15d
	andl	$63, %r15d
	xorl	%r14d, %r14d
	cmpl	$32, %r15d
	setb	%r14b
	shll	$6, %r14d
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$127, %edx
	callq	_b43_radio_mask
	cmpl	$2, 12(%rbx)
	jl	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$65439, %edx                    ## imm = 0xFF9F
	movl	$64, %ecx
	callq	_b43_phy_maskset
LBB0_13:
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_b43_read16
	orl	$8192, %eax                     ## imm = 0x2000
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_b43_write16
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$15, %edx
	callq	_b43_radio_set
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$62256, %edx                    ## imm = 0xF330
	callq	_b43_phy_write
	cmpl	$2, 12(%rbx)
	jl	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	$65487, %edx                    ## imm = 0xFFCF
	movl	$32, %ecx
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	$65487, %edx                    ## imm = 0xFFCF
	movl	$32, %ecx
	callq	_b43_phy_maskset
LBB0_15:
	addl	%r14d, %r15d
	addl	$-64, %r15d
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_b43_set_all_gains
	movl	$31, %edx
	cmpl	$8, 8(%rbx)
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_b43_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	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43_radio_read16
	movl	%eax, %edx
	andl	$65520, %edx                    ## imm = 0xFFF0
	orl	$9, %edx
LBB0_17:
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	$1152, %edx                     ## imm = 0x480
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	$2064, %edx                     ## imm = 0x810
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	$13, %edx
	callq	_b43_phy_write
	movl	$20, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	callq	_b43_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
	movq	_B43_MMIO_CHANNEL_EXT@GOTPCREL(%rip), %r14
	je	LBB0_19
## %bb.18:
	movl	$4194304, %eax                  ## imm = 0x400000
	xorl	%edx, %edx
	idivl	%esi
LBB0_19:
	movl	%eax, (%r13)
	cmpl	$-4, %r15d
	jl	LBB0_21
## %bb.20:
	movq	8(%r13), %rax
	movl	%ecx, (%rax)
	movl	%r15d, 4(%rax)
LBB0_21:
	movl	12(%rbx), %eax
	cmpl	$3, %eax
	jl	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	movl	$46, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$47, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$2063, %esi                     ## imm = 0x80F
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	_B43_PHY_G_LO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movl	12(%rbx), %eax
LBB0_23:
	cmpl	$2, %eax
	jl	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	movl	$2066, %esi                     ## imm = 0x812
	movl	$65487, %edx                    ## imm = 0xFFCF
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$2065, %esi                     ## imm = 0x811
	movl	$65487, %edx                    ## imm = 0xFFCF
	callq	_b43_phy_mask
LBB0_25:
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$82, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$67, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$994, %esi                      ## imm = 0x3E2
	movl	-112(%rbp), %edx                ## 4-byte Reload
	callq	_b43_write16
	movq	%rbx, %rdi
	movl	$998, %esi                      ## imm = 0x3E6
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_write16
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	-108(%rbp), %edx                ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$89, %esi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_b43_synth_pu_workaround
	movq	%rbx, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	$3, %edx
	callq	_b43_phy_set
	movq	%rbx, %rdi
	callq	_b43_set_original_gains
	movq	_B43_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43_phy_set
	cmpl	$3, 12(%rbx)
	jl	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
LBB0_27:
	movq	%rbx, %rdi
	callq	_b43_nrssi_mem_update
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_calc_nrssi_threshold       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHYTYPE_G,8,3              ## @B43_PHYTYPE_G
	.comm	_B43_PHY_G_CRS,4,2              ## @B43_PHY_G_CRS
	.comm	_B43_MMIO_CHANNEL_EXT,4,2       ## @B43_MMIO_CHANNEL_EXT
	.comm	_B43_PHY_G_LO_CONTROL,4,2       ## @B43_PHY_G_LO_CONTROL
	.no_dead_strip	_b43_calc_nrssi_slope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_calc_nrssi_slope
_b43_calc_nrssi_slope:                  ; @b43_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	x20, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _B43_PHYTYPE_G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_PHYTYPE_G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_B43_WARN_ON
	ldr	w8, [x19, #8]
	cmp	w8, #8
	b.le	LBB0_2
; %bb.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
	ret
LBB0_2:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_b43_calc_nrssi_offset
LBB0_4:
Lloh3:
	adrp	x8, _B43_PHY_G_CRS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_PHY_G_CRS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32767
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #2050
	mov	w2, #65532
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #994
	bl	_b43_read16
	mov	x25, x0
	mov	x0, x19
	mov	w1, #994
	bl	_b43_read16
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #994
	bl	_b43_write16
	mov	x0, x19
	mov	w1, #122
	bl	_b43_radio_read16
	mov	x22, x0
	mov	x0, x19
	mov	w1, #82
	bl	_b43_radio_read16
	mov	x23, x0
	mov	x0, x19
	mov	w1, #67
	bl	_b43_radio_read16
	mov	x28, x0
	mov	x0, x19
	mov	w1, #21
	bl	_b43_phy_read
	mov	x26, x0
	mov	x0, x19
	mov	w1, #90
	bl	_b43_phy_read
	mov	x24, x0
	mov	x0, x19
	mov	w1, #89
	bl	_b43_phy_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #88
	bl	_b43_phy_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #998
	bl	_b43_read16
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _B43_MMIO_CHANNEL_EXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_read16
	ldr	w8, [x19, #12]
	cmp	w8, #2
	stp	w23, w0, [sp, #48]              ; 8-byte Folded Spill
	str	w28, [sp, #60]                  ; 4-byte Folded Spill
	b.le	LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #46
	bl	_b43_phy_read
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #47
	bl	_b43_phy_read
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2063
	bl	_b43_phy_read
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x21, _B43_PHY_G_LO_CONTROL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _B43_PHY_G_LO_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_phy_read
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #2049
	bl	_b43_phy_read
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #96
	bl	_b43_phy_read
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #20
	bl	_b43_phy_read
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1144
	bl	_b43_phy_read
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #46
	mov	w2, #0
	bl	_b43_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_phy_write
	ldr	w8, [x19, #12]
	cmp	w8, #7
	b.hi	LBB0_11
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #208
	tst	w8, w9
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #256
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #2049
	mov	w2, #64
	bl	_b43_phy_set
	b	LBB0_11
LBB0_8:
	mov	x28, x22
	mov	x23, x20
	mov	x20, x27
	stp	xzr, xzr, [sp, #8]              ; 16-byte Folded Spill
	stp	xzr, xzr, [sp, #24]             ; 16-byte Folded Spill
	b	LBB0_12
LBB0_9:
	mov	w9, #40
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #2049
	mov	w2, #65471
	bl	_b43_phy_mask
LBB0_11:
	mov	x28, x22
	mov	x23, x20
	mov	x20, x27
	mov	x0, x19
	mov	w1, #96
	mov	w2, #64
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #20
	mov	w2, #512
	bl	_b43_phy_set
LBB0_12:
	mov	x27, x25
	mov	x0, x19
	mov	w1, #122
	mov	w2, #112
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	mov	w3, #0
	bl	_b43_set_all_gains
	mov	x0, x19
	mov	w1, #122
	mov	w2, #247
	bl	_b43_radio_mask
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #2065
	mov	w2, #65487
	mov	w3, #48
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #2066
	mov	w2, #65487
	mov	w3, #16
	bl	_b43_phy_maskset
LBB0_14:
	mov	x0, x19
	mov	w1, #122
	mov	w2, #128
	bl	_b43_radio_set
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #1151
	bl	_b43_phy_read
	mov	x21, x0
	ubfx	w8, w0, #8, #6
	mov	w9, #-64
	cmp	w8, #31
	csel	w25, w9, wzr, hi
	mov	x0, x19
	mov	w1, #122
	mov	w2, #127
	bl	_b43_radio_mask
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #65439
	mov	w3, #64
	bl	_b43_phy_maskset
LBB0_16:
Lloh11:
	adrp	x8, _B43_MMIO_CHANNEL_EXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_b43_read16
	orr	w2, w0, #0x2000
	mov	x0, x19
	mov	x1, x22
	bl	_b43_write16
	mov	x0, x19
	mov	w1, #122
	mov	w2, #15
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #21
	mov	w2, #62256
	bl	_b43_phy_write
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #2066
	mov	w2, #65487
	mov	w3, #32
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #2065
	mov	w2, #65487
	mov	w3, #32
	bl	_b43_phy_maskset
LBB0_18:
	bfxil	w25, w21, #8, #6
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	mov	w3, #1
	bl	_b43_set_all_gains
	ldr	w8, [x19, #8]
	cmp	w8, #8
	b.ne	LBB0_20
; %bb.19:
	mov	w2, #31
	b	LBB0_21
LBB0_20:
	mov	x0, x19
	mov	w1, #82
	bl	_b43_radio_read16
	mov	w8, #65295
	and	w8, w0, w8
	orr	w2, w8, #0x60
	mov	x0, x19
	mov	w1, #82
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #67
	bl	_b43_radio_read16
	and	w8, w0, #0xfff0
	mov	w9, #9
	orr	w2, w8, w9
LBB0_21:
Lloh14:
	adrp	x21, _B43_PHY_G_CRS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _B43_PHY_G_CRS@GOTPAGEOFF]
	mov	x22, x27
	mov	x27, x20
	mov	x20, x23
	ldr	w23, [sp, #48]                  ; 4-byte Folded Reload
	mov	x0, x19
	mov	w1, #67
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #1152
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	w2, #2064
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #13
	bl	_b43_phy_write
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	mov	w1, #1151
	bl	_b43_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, w25, w8
	b.ne	LBB0_23
; %bb.22:
	mov	w9, #65536
	b	LBB0_24
LBB0_23:
	mov	w10, #4194304
	sdiv	w9, w10, w9
LBB0_24:
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	str	w9, [x10]
	cmn	w25, #4
	b.lt	LBB0_26
; %bb.25:
	ldr	x9, [x10, #8]
	stp	w8, w25, [x9]
LBB0_26:
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.le	LBB0_28
; %bb.27:
	mov	x0, x19
	mov	w1, #46
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #47
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #2063
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
Lloh16:
	adrp	x8, _B43_PHY_G_LO_CONTROL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_PHY_G_LO_CONTROL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_b43_phy_write
	ldr	w8, [x19, #12]
LBB0_28:
	cmp	w8, #2
	b.lt	LBB0_30
; %bb.29:
	mov	x0, x19
	mov	w1, #2066
	mov	w2, #65487
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #2065
	mov	w2, #65487
	bl	_b43_phy_mask
LBB0_30:
	mov	x0, x19
	mov	w1, #122
	mov	x2, x28
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #82
	mov	x2, x23
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #67
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #994
	mov	x2, x22
	bl	_b43_write16
	mov	x0, x19
	mov	w1, #998
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_b43_write16
Lloh19:
	adrp	x8, _B43_MMIO_CHANNEL_EXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_MMIO_CHANNEL_EXT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_b43_write16
	mov	x0, x19
	mov	w1, #21
	mov	x2, x26
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #90
	mov	x2, x24
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #89
	mov	x2, x27
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #88
	mov	x2, x20
	bl	_b43_phy_write
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_b43_synth_pu_workaround
	mov	x0, x19
	mov	w1, #2050
	mov	w2, #3
	bl	_b43_phy_set
	mov	x0, x19
	bl	_b43_set_original_gains
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #32768
	bl	_b43_phy_set
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.le	LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w1, #2049
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #96
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #20
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #1144
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_b43_phy_write
LBB0_32:
	mov	x0, x19
	bl	_b43_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	_b43_calc_nrssi_threshold
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHYTYPE_G,8,3              ; @B43_PHYTYPE_G
	.comm	_B43_PHY_G_CRS,4,2              ; @B43_PHY_G_CRS
	.comm	_B43_MMIO_CHANNEL_EXT,4,2       ; @B43_MMIO_CHANNEL_EXT
	.comm	_B43_PHY_G_LO_CONTROL,4,2       ; @B43_PHY_G_LO_CONTROL
	.no_dead_strip	_b43_calc_nrssi_slope
.subsections_via_symbols
