	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_convert_vid7_to_vid2
_kv_convert_vid7_to_vid2:               ## @kv_convert_vid7_to_vid2
	.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_6
## %bb.1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	movq	8(%rdi), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi,%rax,8)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
## %bb.5:
	decq	%rcx
	movq	%rcx, %rax
	popq	%rbp
	retq
LBB0_6:
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	8(%rcx), %rsi
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rsi)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rsi
	decq	%rdi
	jne	LBB0_8
LBB0_11:
	shlq	$4, %rax
	movq	-8(%rax,%rcx), %rax
LBB0_12:
	popq	%rbp
	retq
LBB0_9:
	movq	(%rsi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kv_convert_vid7_to_vid2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_convert_vid7_to_vid2
_kv_convert_vid7_to_vid2:               ; @kv_convert_vid7_to_vid2
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	mov	x8, x0
	ldr	x9, [x0]
	cbz	x9, LBB0_6
; %bb.2:
	mov	x0, #0
	ldr	x8, [x8, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x0, lsl #3]
	cmp	x10, x2
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.ne	LBB0_3
; %bb.5:
	sub	x0, x9, #1
	ret
LBB0_6:
	ldp	x8, x9, [x1]
	cbz	x8, LBB0_10
; %bb.7:
	add	x10, x9, #8
	mov	x11, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cmp	x12, x2
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_10:
	add	x8, x9, x8, lsl #4
	ldur	x0, [x8, #-8]
LBB0_11:
	ret
LBB0_12:
	ldr	x0, [x10]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kv_convert_vid7_to_vid2
.subsections_via_symbols
