	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_rssi_find                  ## -- Begin function p54_rssi_find
	.p2align	4, 0x90
_p54_rssi_find:                         ## @p54_rssi_find
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_p54_rssi_default@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rcx), %rbx
	addq	16(%rcx), %rbx
	movl	$-1, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r15), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r14,8), %rsi
	movq	%r12, %rdi
	callq	_same_band
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %r13d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rax
	subq	(%rbx,%r14,8), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovsq	%rax, %rcx
	movslq	%r13d, %rax
	movq	%r12, %rdx
	subq	(%rbx,%rax,8), %rdx
	movq	%rdx, %rax
	negq	%rax
	cmovsq	%rdx, %rax
	cmpq	%rax, %rcx
	jb	LBB0_6
LBB0_8:
	testl	%r13d, %r13d
	movq	_p54_rssi_default@GOTPCREL(%rip), %rax
	js	LBB0_10
## %bb.9:
	movslq	%r13d, %rax
	leaq	(%rbx,%rax,8), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_p54_rssi_default,8,3           ## @p54_rssi_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_rssi_find                  ; -- Begin function p54_rssi_find
	.p2align	2
_p54_rssi_find:                         ; @p54_rssi_find
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	ldp	x8, x9, [x8, #8]
	add	x21, x8, x9
	mov	w23, #-1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21, x22, lsl #3]
	mov	x0, x19
	bl	_same_band
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w23, #1
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, x22, lsl #3]
	subs	x8, x19, x8
	cneg	x8, x8, mi
	ldr	x9, [x21, w23, sxtw #3]
	subs	x9, x19, x9
	cneg	x9, x9, mi
	cmp	x8, x9
	b.lo	LBB0_3
LBB0_8:
	tbnz	w23, #31, LBB0_10
; %bb.9:
	add	x0, x21, w23, sxtw #3
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x0, _p54_rssi_default@GOTPAGE
Lloh1:
	ldr	x0, [x0, _p54_rssi_default@GOTPAGEOFF]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_p54_rssi_default,8,3           ; @p54_rssi_default
.subsections_via_symbols
