	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_find_previous_frame
_flv_find_previous_frame:               ## @flv_find_previous_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r12
	subq	8(%r13), %r12
	movq	(%r14), %rax
	cmpq	%rax, %r12
	cmovleq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SEEK
	cmpq	(%rbx), %rax
	jne	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	subq	$8, %rsp
	movq	%r15, %rdi
	leaq	-60(%rbp), %rsi
	leaq	-76(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-52(%rbp), %r9
	pushq	$0
	callq	_flv_read_frame_header
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %eax
	movq	_FLV_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -76(%rbp)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_FLV_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_flv_validate_frame_data
	cmpq	(%rbx), %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdx
	cmpq	%rdx, %r12
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
	movq	%r14, %r13
	movl	-60(%rbp), %r14d
	movq	%r15, %rdi
	callq	_STREAM_POSITION
	movl	-48(%rbp), %r9d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r14
	movq	%rbx, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	movq	%rax, %r8
	pushq	$0
	pushq	-72(%rbp)
	callq	_flv_update_track_position
	addq	$16, %rsp
	movl	-48(%rbp), %eax
	movl	%eax, 16(%r13)
	cmpq	$0, (%rbx)
	je	LBB0_1
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	movq	%rdx, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_flv_update_track_position
	addq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_flv_find_next_frame
	addq	$16, %rsp
	jmp	LBB0_20
LBB0_9:
	movl	-60(%rbp), %r14d
	movq	%r15, %rdi
	callq	_STREAM_POSITION
	movl	-48(%rbp), %r9d
	movl	-52(%rbp), %r10d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%rax, %r8
	pushq	%r10
	pushq	-72(%rbp)
	callq	_flv_update_track_position
	addq	$16, %rsp
LBB0_13:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movl	-48(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_15:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	movq	-72(%rbp), %rax
	movq	%rax, (%rdx)
LBB0_17:
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	movl	-52(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_FLV_FLAG_DISCARD,4,2           ## @FLV_FLAG_DISCARD
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_FLV_FLAG_KEYFRAME,4,2          ## @FLV_FLAG_KEYFRAME
	.no_dead_strip	_flv_find_previous_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_find_previous_frame
_flv_find_previous_frame:               ; @flv_find_previous_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	mov	x25, x5
	stp	x3, x4, [sp, #24]               ; 16-byte Folded Spill
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	mov	x22, x1
	mov	x24, x0
	ldp	x9, x8, [x0]
	ldr	x28, [x8]
	ldr	x8, [x9, w1, sxtw #3]
	sxtw	x23, w22
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x20, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x21, _FLV_FLAG_DISCARD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FLV_FLAG_DISCARD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19]
	ldr	x10, [x28]
	sub	x8, x8, x9
	cmp	x8, x10
	csel	x26, x8, x10, gt
	mov	x0, x24
	mov	x1, x26
	bl	_SEEK
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #56
	add	x2, sp, #60
	add	x3, sp, #52
	add	x4, sp, #40
	add	x5, sp, #48
	mov	x0, x24
	mov	w6, #0
	bl	_flv_read_frame_header
	cbnz	x0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #48]
	ldr	w9, [x21]
	and	w9, w9, w8
	ldr	w10, [sp, #60]
	cmp	w9, #0
	ccmp	w10, w22, #0, eq
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w25, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x24]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh4:
	adrp	x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh5:
	ldr	x10, [x10, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x9, _FLV_FLAG_KEYFRAME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FLV_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x2, sp, #52
	add	x3, sp, #40
	mov	x0, x24
	mov	x1, x22
	bl	_flv_validate_frame_data
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x2, [x28]
	cmp	x26, x2
	b.le	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w27, [sp, #56]
	mov	x0, x24
	bl	_STREAM_POSITION
	mov	x4, x0
	ldr	w5, [sp, #52]
	ldr	x6, [sp, #40]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	mov	x3, x27
	mov	w7, #0
	bl	_flv_update_track_position
	ldr	w8, [sp, #52]
	str	w8, [x19, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_1
; %bb.10:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_12
LBB0_11:
	ldr	w8, [sp, #52]
	str	w8, [x9]
LBB0_12:
	ldp	x10, x9, [sp, #24]              ; 16-byte Folded Reload
	cbz	x10, LBB0_14
; %bb.13:
	ldr	x8, [sp, #40]
	str	x8, [x10]
LBB0_14:
	mov	x0, #0
	cbz	x9, LBB0_17
; %bb.15:
	ldr	w8, [sp, #48]
	str	w8, [x9]
	b	LBB0_17
LBB0_16:
	mov	x0, x24
	mov	x1, x22
	mov	w3, #0
	mov	x4, x2
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_flv_update_track_position
	mov	x0, x24
	mov	x1, x22
	ldp	x2, x3, [sp, #16]               ; 16-byte Folded Reload
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	mov	x5, x25
	ldr	w6, [sp, #12]                   ; 4-byte Folded Reload
	bl	_flv_find_next_frame
LBB0_17:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	ldr	w23, [sp, #56]
	mov	x0, x24
	bl	_STREAM_POSITION
	mov	x4, x0
	ldp	w7, w5, [sp, #48]
	ldr	x6, [sp, #40]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	mov	x3, x23
	bl	_flv_update_track_position
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x9, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_FLV_FLAG_DISCARD,4,2           ; @FLV_FLAG_DISCARD
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_FLV_FLAG_KEYFRAME,4,2          ; @FLV_FLAG_KEYFRAME
	.no_dead_strip	_flv_find_previous_frame
.subsections_via_symbols
