	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_rssi_to_dbm
_p54_rssi_to_dbm:                       ## @p54_rssi_to_dbm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$5, (%rdi)
	jne	LBB0_1
## %bb.2:
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	addl	$-110, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rdi), %rax
	imull	(%rax), %esi
	leal	63(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$6, %ecx
	movl	4(%rax), %edx
	leal	(%rcx,%rdx), %eax
	addl	$3, %eax
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%edx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_p54_rssi_to_dbm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_rssi_to_dbm
_p54_rssi_to_dbm:                       ; @p54_rssi_to_dbm
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #5
	b.ne	LBB0_2
; %bb.1:
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w8, w8, #1
	sub	w0, w8, #110
	ret
LBB0_2:
	ldr	x8, [x0, #8]
	ldp	w9, w8, [x8]
	mul	w9, w9, w1
	add	w10, w9, #63
	cmp	w9, #0
	csel	w9, w10, w9, lt
	add	w8, w8, w9, asr #6
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_p54_rssi_to_dbm
.subsections_via_symbols
