	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_reader_seek
_flv_reader_seek:                       ## @flv_reader_seek
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -160(%rbp)
	movslq	(%rsi), %r14
	movl	$0, -52(%rbp)
	movl	%edx, %edi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movl	(%rbx), %eax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	8(%rbx), %rcx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rsi
	movq	8(%rsi), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	%eax, %ebx
	jae	LBB0_7
## %bb.8:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %r14, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ecx, -116(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	leaq	32(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	movq	_VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-68(%rbp), %esi                 ## 4-byte Folded Reload
	leaq	-132(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r13, %rdx
	callq	_vc_container_index_get
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.17:
	movl	-132(%rbp), %edx
	movslq	(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%rsp)
	movl	$0, 8(%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	callq	_flv_update_track_position
	cmpl	$0, -52(%rbp)
	jne	LBB0_13
## %bb.18:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_next_frame
	movq	%rax, %r12
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_7:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_54
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, -80(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.11:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	callq	_flv_update_track_position
LBB0_12:
	movl	$1, -52(%rbp)
LBB0_13:
	movl	-116(%rbp), %eax                ## 4-byte Reload
	cmpl	%eax, -80(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.21:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	testq	%r12, %r12
	jne	LBB0_15
## %bb.22:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_next_frame
	testq	%rax, %rax
	jne	LBB0_20
## %bb.23:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	-44(%rbp), %eax
	jle	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	(%r13), %r12d
	movl	4(%r13), %r15d
	movups	8(%r13), %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	24(%r13), %r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movdqu	(%rax), %xmm0
	movdqa	%xmm0, -160(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r13)
	movl	$0, (%rsp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_next_frame
	testq	%rax, %rax
	je	LBB0_24
## %bb.27:
	movq	%r15, %r13
	movl	%r12d, %r15d
	movq	%rax, %r12
	jmp	LBB0_33
LBB0_14:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	testq	%r12, %r12
	je	LBB0_19
LBB0_15:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_19:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_previous_frame
	testq	%rax, %rax
	je	LBB0_28
LBB0_20:
	movq	%rax, %r12
LBB0_16:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_33:
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %r12
	je	LBB0_40
## %bb.34:
	movq	_VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_36
## %bb.35:
	leaq	L_.str.1(%rip), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	jmp	LBB0_54
LBB0_36:
	leaq	L_.str.2(%rip), %rsi
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	pextrq	$1, %xmm0, %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, 4(%rax)
	movdqu	%xmm0, 8(%rax)
	movq	%r14, 24(%rax)
	movdqa	-160(%rbp), %xmm0
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movdqu	%xmm0, (%rax)
	jmp	LBB0_39
LBB0_38:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_previous_frame
LBB0_39:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
LBB0_40:
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	cmpl	$1, -52(%rbp)
	movq	-168(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_51
## %bb.41:
	movq	_VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %ecx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, (%rdx)
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	je	LBB0_47
## %bb.42:
	cmpl	-80(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_50
## %bb.43:
	cmpl	-116(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_50
## %bb.44:
	pextrq	$1, %xmm0, %rcx
	testq	%rcx, %rcx
	jne	LBB0_45
## %bb.46:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_next_frame
	jmp	LBB0_50
LBB0_47:
	cmpl	-80(%rbp), %ecx                 ## 4-byte Folded Reload
	jle	LBB0_50
## %bb.48:
	pextrq	$1, %xmm0, %rcx
	testq	%rcx, %rcx
	je	LBB0_49
LBB0_45:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx)
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, 4(%rcx)
	movdqu	%xmm0, 8(%rcx)
	movq	%rax, 24(%rcx)
	movdqa	-160(%rbp), %xmm0
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movdqu	%xmm0, (%rax)
LBB0_50:
	movl	-44(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_51:
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	movq	%xmm0, %rsi
	cmpq	%rsi, 8(%rcx)
	jne	LBB0_53
## %bb.52:
	movq	%r14, %rdi
	callq	_SEEK
LBB0_53:
	movl	-44(%rbp), %ebx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_INT64_C
	imull	%ebx, %eax
	movl	%eax, (%r12)
	movq	(%r13), %r12
LBB0_54:
	movq	%r12, %rax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	-44(%rbp), %ecx
	jge	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r15d
	cmpl	%eax, %r15d
	je	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	4(%rcx), %r13d
	movups	8(%rcx), %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	24(%rcx), %r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movdqu	(%rax), %xmm0
	movdqa	%xmm0, -160(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, 4(%rcx)
	movl	$0, (%rsp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_previous_frame
	movq	%rax, %r12
	movl	%r15d, %eax
	testq	%r12, %r12
	je	LBB0_29
	jmp	LBB0_33
LBB0_30:
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_25:
	movq	%r15, %r13
	movl	%r12d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_49:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_flv_find_previous_frame
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ## @VC_CONTAINER_ERROR_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"seek (%i, prev %i)"

	.comm	_VC_CONTAINER_SEEK_FLAG_FORWARD,4,2 ## @VC_CONTAINER_SEEK_FLAG_FORWARD
L_.str.1:                               ## @.str.1
	.asciz	"seek failed (%i)"

L_.str.2:                               ## @.str.2
	.asciz	"seek failed (%i), look for previous frame"

L_.str.3:                               ## @.str.3
	.asciz	"seek done (%i)"

L_.str.4:                               ## @.str.4
	.asciz	"seek adjustment (%i)"

	.no_dead_strip	_flv_reader_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_reader_seek
_flv_reader_seek:                       ; @flv_reader_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x3
	mov	x25, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x26, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x8]
	ldr	x23, [x26]
	stp	xzr, xzr, [sp, #64]
	ldrsw	x22, [x1]
	str	wzr, [sp, #52]
	mov	x0, x2
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, #0
	ldr	x9, [x20, #8]
Lloh2:
	adrp	x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x21, lsl #3]
	ldr	x11, [x11, #8]
	ldr	x11, [x11]
	cmp	x11, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x8, x21
	b.ne	LBB0_2
LBB0_4:
	mov	w21, #0
LBB0_5:
	cmp	w21, w8
	b.hs	LBB0_10
; %bb.6:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	mul	x8, x22, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w2, w8, w9
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w21, uxtw #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x27, [x8]
	ldr	w22, [x27]
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	bl	_LOG_DEBUG
	mov	x8, x27
	ldr	x0, [x8, #32]!
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh7:
	adrp	x8, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGEOFF]
	stp	x22, x25, [sp, #8]              ; 16-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x8]
	and	w1, w8, w24
	add	x3, sp, #48
	add	x4, sp, #52
	mov	x2, x25
	bl	_vc_container_index_get
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	ldr	w2, [sp, #48]
	ldrsw	x8, [x25]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w6, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	x4, x2
	mov	w5, #0
	mov	w7, #0
	bl	_flv_update_track_position
	ldr	w8, [sp, #52]
	cbnz	w8, LBB0_14
; %bb.9:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_next_frame
	b	LBB0_23
LBB0_10:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	b	LBB0_45
LBB0_11:
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w9, w8, asr #1
	b.ge	LBB0_13
; %bb.12:
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	x4, x2
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_flv_update_track_position
LBB0_13:
	mov	w8, #1
	str	w8, [sp, #52]
LBB0_14:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, w22
	b.le	LBB0_21
; %bb.15:
	cbnz	x23, LBB0_24
; %bb.16:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_next_frame
	cbnz	x0, LBB0_23
; %bb.17:
	mov	w26, #0
	mov	x25, #0
	mov	x22, #0
	mov	x28, #0
	mov	w19, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #60]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.le	LBB0_51
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	w19, w26, [x27]
	ldp	x25, x22, [x27, #8]
	ldr	x28, [x27, #24]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	q0, [x8]
	str	q0, [sp, #64]
	ldr	w8, [sp, #56]
	str	w8, [x27, #4]
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_next_frame
	cbz	x0, LBB0_18
; %bb.20:
	mov	x23, x0
	b	LBB0_25
LBB0_21:
	cbnz	x23, LBB0_24
; %bb.22:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_previous_frame
	cbz	x0, LBB0_46
LBB0_23:
	mov	x23, x0
LBB0_24:
	mov	w26, #0
	mov	x25, #0
	mov	x22, #0
	mov	x28, #0
	mov	w19, #0
LBB0_25:
Lloh12:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x23, x8
	b.eq	LBB0_32
; %bb.26:
Lloh14:
	adrp	x8, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_28
; %bb.27:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_LOG_DEBUG
	b	LBB0_45
LBB0_28:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_LOG_DEBUG
	cbz	x22, LBB0_30
; %bb.29:
	stp	w19, w26, [x27]
	stp	x25, x22, [x27, #8]
	str	x28, [x27, #24]
	ldr	q0, [sp, #64]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	q0, [x8]
	b	LBB0_31
LBB0_30:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_previous_frame
LBB0_31:
Lloh21:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_32:
	ldr	w2, [sp, #60]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_LOG_DEBUG
	ldr	x8, [x24]
	str	x8, [x27, #24]
	ldr	w9, [sp, #52]
	cmp	w9, #1
	b.ne	LBB0_42
; %bb.33:
Lloh25:
	adrp	x9, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _VC_CONTAINER_SEEK_FLAG_FORWARD@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x9]
	ldr	w9, [sp, #60]
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	tst	w10, w11
	b.eq	LBB0_38
; %bb.34:
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.ge	LBB0_41
; %bb.35:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w9, w10
	b.ge	LBB0_41
; %bb.36:
	cbnz	x22, LBB0_40
; %bb.37:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_next_frame
	b	LBB0_41
LBB0_38:
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.le	LBB0_41
; %bb.39:
	cbz	x22, LBB0_52
LBB0_40:
	stp	w19, w26, [x27]
	stp	x25, x22, [x27, #8]
	str	x8, [x27, #24]
	ldr	q0, [sp, #64]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	q0, [x8]
LBB0_41:
	ldr	w2, [sp, #60]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_LOG_DEBUG
LBB0_42:
	ldr	x8, [x27, #8]
	cmp	x8, x25
	b.ne	LBB0_44
; %bb.43:
	mov	x0, x20
	mov	x1, x25
	bl	_SEEK
LBB0_44:
	ldr	w19, [sp, #60]
	mov	w0, #1000
	bl	_INT64_C
	mul	w8, w0, w19
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x23, [x24]
LBB0_45:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_46:
	mov	w26, #0
	mov	x25, #0
	mov	x22, #0
	mov	x28, #0
	mov	w8, #0
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #60]
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w10, w9
	b.ge	LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w19, [x27]
	cmp	w19, w8
	b.eq	LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w26, [x27, #4]
	ldp	x25, x22, [x27, #8]
	ldr	x28, [x27, #24]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	q0, [x8]
	str	q0, [sp, #64]
	ldr	w8, [sp, #56]
	str	w8, [x27, #4]
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_previous_frame
	mov	x23, x0
	mov	x8, x19
	cbz	x0, LBB0_47
	b	LBB0_25
LBB0_50:
	mov	x23, #0
	mov	x19, x8
	b	LBB0_25
LBB0_51:
	mov	x23, #0
	b	LBB0_25
LBB0_52:
	add	x2, sp, #56
	add	x3, sp, #60
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_flv_find_previous_frame
	b	LBB0_41
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ; @VC_CONTAINER_ERROR_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"seek (%i, prev %i)"

	.comm	_VC_CONTAINER_SEEK_FLAG_FORWARD,4,2 ; @VC_CONTAINER_SEEK_FLAG_FORWARD
l_.str.1:                               ; @.str.1
	.asciz	"seek failed (%i)"

l_.str.2:                               ; @.str.2
	.asciz	"seek failed (%i), look for previous frame"

l_.str.3:                               ; @.str.3
	.asciz	"seek done (%i)"

l_.str.4:                               ; @.str.4
	.asciz	"seek adjustment (%i)"

	.no_dead_strip	_flv_reader_seek
.subsections_via_symbols
