	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_rf_power_2_rssi        ## -- Begin function rtw_phy_rf_power_2_rssi
	.p2align	4, 0x90
_rtw_phy_rf_power_2_rssi:               ## @rtw_phy_rf_power_2_rssi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_rtw_phy_power_2_db
	movq	%rax, %rdi
	callq	_rtw_phy_db_2_linear
	addl	%eax, %r12d
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
## %bb.3:
	movq	_FRAC_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leal	-1(%rax), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	addl	%r12d, %edi
	movl	%eax, %ecx
	sarl	%cl, %edi
	cmpq	$4, %r14
	je	LBB0_8
## %bb.4:
	cmpq	$3, %r14
	je	LBB0_7
## %bb.5:
	cmpq	$2, %r14
	jne	LBB0_9
## %bb.6:
	sarl	%edi
	jmp	LBB0_9
LBB0_10:
	movq	_FRAC_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leal	-1(%rax), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%eax, %ecx
	sarl	%cl, %edi
	jmp	LBB0_9
LBB0_8:
	sarl	$2, %edi
	jmp	LBB0_9
LBB0_7:
	leal	(%rdi,%rdi,4), %eax
	leal	(%rdi,%rax,2), %edi
	sarl	$5, %edi
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_phy_linear_2_db            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAC_BITS,4,2                  ## @FRAC_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_rf_power_2_rssi        ; -- Begin function rtw_phy_rf_power_2_rssi
	.p2align	2
_rtw_phy_rf_power_2_rssi:               ; @rtw_phy_rf_power_2_rssi
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x22, lsl #2]
	bl	_rtw_phy_power_2_db
	bl	_rtw_phy_db_2_linear
	add	w21, w0, w21
	add	x22, x22, #1
	cmp	x19, x22
	b.ne	LBB0_2
; %bb.3:
Lloh0:
	adrp	x8, _FRAC_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRAC_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	mov	w10, #1
	lsl	w9, w10, w9
	add	w9, w9, w21
	asr	w8, w9, w8
	asr	w9, w8, #2
	mov	w10, #11
	mul	w10, w8, w10
	asr	w10, w10, #5
	cmp	x19, #2
	asr	w11, w8, #1
	csel	w8, w8, w11, ne
	cmp	x19, #3
	csel	w8, w10, w8, eq
	cmp	x19, #4
	csel	w0, w9, w8, eq
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _FRAC_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAC_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w8, #1
	mov	w10, #1
	lsl	w9, w10, w9
	asr	w0, w9, w8
LBB0_5:
	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	_rtw_phy_linear_2_db
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAC_BITS,4,2                  ; @FRAC_BITS
.subsections_via_symbols
