	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcv_seek_nearest_keyframe
_rcv_seek_nearest_keyframe:             ## @rcv_seek_nearest_keyframe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	imulq	$1000, 8(%r13), %rax            ## imm = 0x3E8
	cmpq	(%r14), %rax
	jle	LBB0_3
LBB0_2:
	movl	$4, %esi
	movq	%rbx, %rdi
	callq	_SEEK
	leaq	8(%r13), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_5
LBB0_3:
	cmpq	$0, 40(%r13)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	movslq	(%r13), %rcx
	movslq	%eax, %rsi
	subq	%rcx, %rsi
	addq	$-4, %rsi
	movq	%rbx, %rdi
	callq	_SEEK
LBB0_5:
	movq	$0, 40(%r13)
	movl	$0, (%r13)
LBB0_6:
	leaq	8(%r13), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_PEEK_BYTES
	cmpl	$4, %eax
	jne	LBB0_7
## %bb.9:
	movl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r13), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_SKIP_BYTES
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_PEEK_BYTES
	cmpl	$4, %eax
	jne	LBB0_8
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r13)
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r13), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %r13
	imulq	$1000, (%r12), %r14             ## imm = 0x3E8
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_vc_container_index_add
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	imulq	$1000, (%r12), %rax             ## imm = 0x3E8
	cmpq	(%r14), %rax
	jge	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	imulq	$1000, (%r12), %rax             ## imm = 0x3E8
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_7:
	movl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SEEK                           ## TAILCALL
LBB0_14:
	movq	%rax, (%r14)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_15
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.no_dead_strip	_rcv_seek_nearest_keyframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcv_seek_nearest_keyframe
_rcv_seek_nearest_keyframe:             ; @rcv_seek_nearest_keyframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x27, [x8]
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x27, #8]
	mov	w9, #1000
	mul	x8, x8, x9
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #4
	bl	_SEEK
	add	x0, x27, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	b	LBB0_5
LBB0_3:
	ldr	x8, [x27, #40]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_STREAM_POSITION
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x27]
	sxtw	x9, w0
	sub	x8, x9, x8
	sub	x1, x8, #4
	mov	x0, x19
	bl	_SEEK
LBB0_5:
	str	xzr, [x27, #40]
	str	wzr, [x27]
LBB0_6:
	add	x24, x27, #8
	mov	w23, #4
	mov	x0, x19
	mov	x1, x24
	mov	w2, #4
	bl	_PEEK_BYTES
	cmp	w0, #4
	b.ne	LBB0_14
; %bb.7:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	x28, #0
	mov	w23, #4
	mov	w22, #1000
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27, #16]
	add	x1, x8, #4
	mov	x0, x19
	bl	_SKIP_BYTES
	mov	x0, x19
	mov	x1, x24
	mov	w2, #4
	bl	_PEEK_BYTES
	cmp	w0, #4
	b.ne	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, #24]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x25, [x27, #32]
	cbz	x25, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	mul	x26, x8, x22
	mov	x0, x19
	bl	_STREAM_POSITION
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_vc_container_index_add
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	mul	x8, x8, x22
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_STREAM_POSITION
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	x8, [x24]
	mul	x28, x8, x22
	b	LBB0_8
LBB0_14:
	mov	x28, #0
LBB0_15:
Lloh3:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_16:
	cbz	w21, LBB0_18
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	str	x28, [x20]
	mov	x0, x19
	mov	x1, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_SEEK
LBB0_19:
	str	x8, [x20]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	b.ne	LBB0_16
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.no_dead_strip	_rcv_seek_nearest_keyframe
.subsections_via_symbols
