	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_find_next_frame
_flv_find_next_frame:                   ## @flv_find_next_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, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %r13
	movl	16(%rbp), %edi
	movq	(%r13), %rax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	callq	_VC_CONTAINER_PARAM_UNUSED
	cmpl	$0, (%rbx)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	24(%rbx), %rsi
LBB0_3:
	movq	%r13, %rdi
	callq	_SEEK
	movq	%rax, %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_24
## %bb.4:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r15
	jne	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r12
	subq	$8, %rsp
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-56(%rbp), %r9
	pushq	$0
	callq	_flv_read_frame_header
	addq	$16, %rsp
	movq	%rax, %r15
	cmpq	(%rbx), %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %eax
	movq	_FLV_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -68(%rbp)
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rcx
	movq	-104(%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_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_FLV_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_flv_validate_frame_data
	cmpq	(%rbx), %rax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %r14d
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movl	-44(%rbp), %r9d
	movl	-52(%rbp), %ebx
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%rax, %r8
	pushq	$0
	pushq	%rbx
	callq	_flv_update_track_position
	addq	$16, %rsp
	movl	-44(%rbp), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_SKIP_BYTES
	movslq	-44(%rbp), %rcx
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_STREAM_STATUS
	movq	%rax, %r15
	jmp	LBB0_15
LBB0_12:
	movl	-60(%rbp), %r14d
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movl	-44(%rbp), %r9d
	movl	-52(%rbp), %r10d
	movl	-56(%rbp), %r11d
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%rax, %r8
	pushq	%r11
	pushq	%r10
	callq	_flv_update_track_position
	addq	$16, %rsp
LBB0_16:
	testq	%r15, %r15
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_24
## %bb.17:
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	movl	-44(%rbp), %eax
	movl	%eax, (%rsi)
LBB0_19:
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:
	movl	-52(%rbp), %eax
	movl	%eax, (%rdx)
LBB0_21:
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.22:
	movl	-56(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_23:
	xorl	%r15d, %r15d
LBB0_24:
	movq	%r15, %rax
	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_next_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_next_frame
_flv_find_next_frame:                   ; @flv_find_next_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x26, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x28, [x8]
	mov	x0, x6
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w8, [x28]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x9, x8, [x28, #8]
	add	x1, x9, x8
	b	LBB0_3
LBB0_2:
	ldr	x1, [x28, #24]
LBB0_3:
	mov	x0, x23
	bl	_SEEK
	mov	x25, x0
Lloh0:
	adrp	x19, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.4:
	stp	x26, x21, [sp]                  ; 16-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x20, w22
Lloh2:
	adrp	x21, _FLV_FLAG_DISCARD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FLV_FLAG_DISCARD@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cmp	x25, x8
	b.ne	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_STREAM_POSITION
	mov	x26, x0
	add	x1, sp, #40
	add	x2, sp, #44
	add	x3, sp, #36
	add	x4, sp, #28
	add	x5, sp, #32
	mov	x0, x23
	mov	w6, #0
	bl	_flv_read_frame_header
	mov	x25, x0
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #32]
	ldr	w9, [x21]
	and	w9, w9, w8
	ldr	w10, [sp, #44]
	cmp	w9, #0
	ccmp	w10, w22, #0, eq
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w24, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	ldr	x9, [x9, x20, 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_11
; %bb.10:                               ;   in Loop: Header=BB0_6 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_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #36
	add	x3, sp, #28
	mov	x0, x23
	mov	x1, x22
	bl	_flv_validate_frame_data
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w27, [sp, #40]
	mov	x0, x23
	bl	_STREAM_POSITION
	mov	x4, x0
	ldr	w5, [sp, #36]
	ldr	w6, [sp, #28]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	mov	x3, x27
	mov	w7, #0
	bl	_flv_update_track_position
	ldr	w8, [sp, #36]
	str	w8, [x28]
	ldr	w1, [sp, #36]
	mov	x0, x23
	bl	_SKIP_BYTES
	ldrsw	x8, [sp, #36]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_STREAM_STATUS
	mov	x25, x0
	b	LBB0_5
LBB0_14:
	ldr	w24, [sp, #40]
	mov	x0, x23
	bl	_STREAM_POSITION
	mov	x4, x0
	ldp	w7, w5, [sp, #32]
	ldr	w6, [sp, #28]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	mov	x3, x24
	bl	_flv_update_track_position
LBB0_15:
	ldp	x10, x9, [sp, #8]               ; 16-byte Folded Reload
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	cbnz	x25, LBB0_22
; %bb.16:
	cbz	x11, LBB0_18
; %bb.17:
	ldr	w8, [sp, #36]
	str	w8, [x11]
LBB0_18:
	cbz	x10, LBB0_20
; %bb.19:
	ldr	w8, [sp, #28]
	str	w8, [x10]
LBB0_20:
	mov	x25, #0
	cbz	x9, LBB0_22
; %bb.21:
	ldr	w8, [sp, #32]
	str	w8, [x9]
LBB0_22:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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_next_frame
.subsections_via_symbols
