	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa2400_rf_calc_rssi
_sa2400_rf_calc_rssi:                   ## @sa2400_rf_calc_rssi
	.cfi_startproc
## %bb.0:
	movl	$1, %eax
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	movl	$32, %eax
	cmpl	$78, %esi
	jg	LBB0_3
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_sa2400_rf_rssi_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, %ecx
	shll	$6, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	popq	%rbp
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sa2400_rf_rssi_map,8,3         ## @sa2400_rf_rssi_map
	.no_dead_strip	_sa2400_rf_calc_rssi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa2400_rf_calc_rssi
_sa2400_rf_calc_rssi:                   ; @sa2400_rf_calc_rssi
	.cfi_startproc
; %bb.0:
	cmp	w1, #128
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	cmp	w1, #78
	b.le	LBB0_4
; %bb.3:
	mov	w0, #32
	ret
LBB0_4:
Lloh0:
	adrp	x8, _sa2400_rf_rssi_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sa2400_rf_rssi_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w1, sxtw #2]
	add	w8, w8, w8, lsl #6
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sa2400_rf_rssi_map,8,3         ; @sa2400_rf_rssi_map
	.no_dead_strip	_sa2400_rf_calc_rssi
.subsections_via_symbols
