	.file	"extr_v4l2-ctrls.c_find_ref.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_ref, @function
find_ref:
.LFB0:
	.cfi_startproc
	endbr64
	and	esi, DWORD PTR V4L2_CTRL_ID_MASK[rip]
	cmp	DWORD PTR V4L2_CID_PRIVATE_BASE[rip], esi
	jle	.L19
	mov	r8, QWORD PTR 8[rdi]
	test	r8, r8
	je	.L3
	mov	rax, QWORD PTR 8[r8]
	cmp	DWORD PTR [rax], esi
	je	.L1
.L3:
	mov	r8, QWORD PTR 16[rdi]
	test	r8, r8
	je	.L1
	mov	eax, esi
	cdq
	idiv	DWORD PTR [rdi]
	movsx	rdx, edx
	mov	r8, QWORD PTR [r8+rdx*8]
	test	r8, r8
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8, QWORD PTR [r8]
	test	r8, r8
	je	.L1
.L5:
	mov	rax, QWORD PTR 8[r8]
	cmp	DWORD PTR [rax], esi
	jne	.L6
	mov	QWORD PTR 8[rdi], r8
.L1:
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	jmp	find_private_ref@PLT
	.cfi_endproc
.LFE0:
	.size	find_ref, .-find_ref
	.comm	V4L2_CTRL_ID_MASK,4,4
	.comm	V4L2_CID_PRIVATE_BASE,4,4
	.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_v4l2-ctrls.c_find_ref.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_ref, %function
find_ref:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L21
	ldr	r3, .L21+4
	push	{r4, r5, r6, lr}
	ldr	r5, [r2]
	ldr	r3, [r3]
	and	r5, r5, r1
	cmp	r3, r5
	ble	.L20
	ldr	r4, [r0, #4]
	mov	r6, r0
	cmp	r4, #0
	beq	.L3
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L1
.L3:
	ldr	r4, [r6, #8]
	cmp	r4, #0
	beq	.L1
	mov	r0, r5
	ldr	r1, [r6]
	bl	__aeabi_idivmod
	ldr	r4, [r4, r1, lsl #2]
	cmp	r4, #0
	bne	.L5
	b	.L1
.L6:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L1
.L5:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L6
	str	r4, [r6, #4]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L20:
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	b	find_private_ref
.L22:
	.align	2
.L21:
	.word	V4L2_CTRL_ID_MASK
	.word	V4L2_CID_PRIVATE_BASE
	.size	find_ref, .-find_ref
	.comm	V4L2_CTRL_ID_MASK,4,4
	.comm	V4L2_CID_PRIVATE_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
