	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ref
_find_ref:                              ## @find_ref
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_V4L2_CTRL_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_8
## %bb.1:
	movl	%esi, %eax
	cltd
	idivl	(%rdi)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rax), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_12
LBB0_3:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	popq	%rbp
	jmp	_find_private_ref               ## TAILCALL
LBB0_11:
	movq	%rax, 8(%rdi)
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_ID_MASK,4,2          ## @V4L2_CTRL_ID_MASK
	.comm	_V4L2_CID_PRIVATE_BASE,4,2      ## @V4L2_CID_PRIVATE_BASE
	.no_dead_strip	_find_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ref
_find_ref:                              ; @find_ref
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _V4L2_CTRL_ID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CTRL_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w8, w1
Lloh3:
	adrp	x8, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ge	LBB0_8
; %bb.1:
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x10, [x8, #8]
	ldr	w10, [x10]
	cmp	w10, w1
	b.eq	LBB0_7
LBB0_3:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.4:
	sdiv	w10, w1, w9
	msub	w9, w10, w9, w1
	ldr	x8, [x8, w9, sxtw #3]
	cbz	x8, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
	b	_find_private_ref
LBB0_9:
	str	x8, [x0, #8]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_ID_MASK,4,2          ; @V4L2_CTRL_ID_MASK
	.comm	_V4L2_CID_PRIVATE_BASE,4,2      ; @V4L2_CID_PRIVATE_BASE
	.no_dead_strip	_find_ref
.subsections_via_symbols
