	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_convert_vid2_to_vid7
_kv_convert_vid2_to_vid7:               ## @kv_convert_vid2_to_vid7
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%rdi), %rcx
	cmpq	%rdx, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	(%rcx,%rdx,8), %rax
	jmp	LBB0_10
LBB0_5:
	movq	(%rsi), %rcx
	movq	8(%rsi), %rsi
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	leaq	8(%rsi), %rax
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rax)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %rax
	decq	%rdi
	jne	LBB0_7
LBB0_9:
	shlq	$4, %rcx
	leaq	(%rcx,%rsi), %rax
	addq	$-8, %rax
	jmp	LBB0_10
LBB0_4:
	leaq	(%rcx,%rax,8), %rax
	addq	$-8, %rax
LBB0_10:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kv_convert_vid2_to_vid7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_convert_vid2_to_vid7
_kv_convert_vid2_to_vid7:               ; @kv_convert_vid2_to_vid7
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x0, #8]
	add	x10, x9, x8, lsl #3
	sub	x10, x10, #8
	add	x9, x9, x2, lsl #3
	cmp	x8, x2
	csel	x8, x10, x9, ls
	ldr	x0, [x8]
	ret
LBB0_3:
	ldp	x9, x10, [x1]
	cbz	x9, LBB0_7
; %bb.4:
	add	x8, x10, #8
	mov	x11, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x8, #-8]
	cmp	x12, x2
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #16
	subs	x11, x11, #1
	b.ne	LBB0_5
LBB0_7:
	add	x8, x10, x9, lsl #4
	sub	x8, x8, #8
LBB0_8:
	ldr	x0, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kv_convert_vid2_to_vid7
.subsections_via_symbols
