	.file	"extr_gatt_utils.c_gatt_sr_find_i_rcb_by_handle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gatt_sr_find_i_rcb_by_handle
	.type	gatt_sr_find_i_rcb_by_handle, @function
gatt_sr_find_i_rcb_by_handle:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR GATT_MAX_SR_PROFILES[rip]
	test	r8, r8
	je	.L1
	mov	rax, QWORD PTR gatt_cb[rip]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 16[rax], 0
	je	.L3
	cmp	QWORD PTR [rax], rdi
	jg	.L3
	cmp	QWORD PTR 8[rax], rdi
	jge	.L5
.L3:
	add	rdx, 1
	add	rax, 24
	cmp	rdx, r8
	jne	.L4
.L1:
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8, rdx
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	gatt_sr_find_i_rcb_by_handle, .-gatt_sr_find_i_rcb_by_handle
	.comm	gatt_cb,8,8
	.comm	GATT_MAX_SR_PROFILES,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gatt_utils.c_gatt_sr_find_i_rcb_by_handle.c"
	.text
	.align	2
	.global	gatt_sr_find_i_rcb_by_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	gatt_sr_find_i_rcb_by_handle, %function
gatt_sr_find_i_rcb_by_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L15
	mov	ip, r0
	ldr	r0, [r3]
	cmp	r0, #0
	bxeq	lr
	ldr	r3, .L15+4
	mov	r2, #0
	ldr	r3, [r3]
	b	.L4
.L3:
	add	r2, r2, #1
	cmp	r2, r0
	add	r3, r3, #12
	bxeq	lr
.L4:
	ldr	r1, [r3, #8]
	cmp	r1, #0
	beq	.L3
	ldr	r1, [r3]
	cmp	r1, ip
	bgt	.L3
	ldr	r1, [r3, #4]
	cmp	r1, ip
	blt	.L3
	mov	r0, r2
	bx	lr
.L16:
	.align	2
.L15:
	.word	GATT_MAX_SR_PROFILES
	.word	gatt_cb
	.size	gatt_sr_find_i_rcb_by_handle, .-gatt_sr_find_i_rcb_by_handle
	.comm	gatt_cb,4,4
	.comm	GATT_MAX_SR_PROFILES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
