	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_read_frame_header
_flv_read_frame_header:                 ## @flv_read_frame_header
	.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
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_STREAM_POSITION
	movq	%rax, %r12
	movl	$0, -48(%rbp)
	movq	_VC_CONTAINER_ES_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r13d
	movq	$0, -56(%rbp)
	leaq	-60(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	callq	_flv_read_tag_header
	movq	%rax, %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_32
## %bb.1:
	movq	%r14, %rdi
	callq	_STREAM_STATUS
	cmpq	(%rbx), %rax
	jne	LBB0_32
## %bb.2:
	movq	%r14, %rdi
	callq	_STREAM_POSITION
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.3:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_32
LBB0_4:
	movl	-60(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdx
	movl	16(%rbp), %r8d
	movq	_FLV_TAG_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FLV_TAG_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r8d, %r8d
	je	LBB0_10
## %bb.7:
	cmpl	%esi, %ecx
	je	LBB0_10
## %bb.8:
	cmpl	%edi, %ecx
	je	LBB0_10
## %bb.9:
	movq	_FLV_TAG_TYPE_METADATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_10
LBB0_5:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_32
LBB0_10:
	movl	-44(%rbp), %r9d
	cmpl	%esi, %ecx
	jne	LBB0_11
## %bb.14:
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.17:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r8d, %r15d
	xorl	%r8d, %r8d
	callq	_flv_read_audiodata_header
	movl	%r15d, %r8d
	movq	%r12, %rdx
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	cmpl	%edi, %ecx
	jne	LBB0_16
## %bb.12:
	testl	%r9d, %r9d
	je	LBB0_16
## %bb.13:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r8d, %r15d
	callq	_flv_read_videodata_header
	movl	%r15d, %r8d
	movq	%r12, %rdx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movl	-44(%rbp), %r9d
	decl	%r9d
	movl	%r9d, -44(%rbp)
	movl	(%r14), %ecx
	xorl	%r15d, %r15d
	movl	$0, %r13d
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.19:
	movq	16(%r14), %rdi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %esi
	movq	(%rdi,%rsi,8), %rsi
	movq	(%rsi), %rsi
	cmpq	(%rsi), %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	%r13d
	cmpl	%r13d, %ecx
	jne	LBB0_20
## %bb.22:
	movl	%ecx, %r13d
LBB0_23:
	cmpl	%ecx, %r13d
	movq	_FLV_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%ecx, %r15d
	testl	%r8d, %r8d
	je	LBB0_25
## %bb.24:
	movq	-56(%rbp), %r8
	movq	16(%r14), %rsi
	movl	%r13d, %edi
	movq	(%rsi,%rdi,8), %rsi
	movq	(%rsi), %rsi
	cmpq	8(%rsi), %r8
	jne	LBB0_5
	jmp	LBB0_25
LBB0_15:
	xorl	%r9d, %r9d
LBB0_16:
	movq	_FLV_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_25:
	movq	8(%r14), %rsi
	movq	(%rsi), %rsi
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.26:
	andl	%r15d, %ecx
	jne	LBB0_31
## %bb.27:
	cmpq	$0, (%rsi)
	js	LBB0_30
## %bb.28:
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.29:
	movq	_FLV_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -48(%rbp)
	je	LBB0_31
LBB0_30:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	imulq	$1000, (%rax), %rsi             ## imm = 0x3E8
	callq	_vc_container_index_add
	movl	-44(%rbp), %r9d
LBB0_31:
	orl	-48(%rbp), %r15d
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%r15d, (%rcx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%r9d, (%rcx)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	(%rbx), %r15d
LBB0_32:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ES_TYPE_UNKNOWN,8,3 ## @VC_CONTAINER_ES_TYPE_UNKNOWN
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_FLV_TAG_TYPE_AUDIO,4,2         ## @FLV_TAG_TYPE_AUDIO
	.comm	_FLV_TAG_TYPE_VIDEO,4,2         ## @FLV_TAG_TYPE_VIDEO
	.comm	_FLV_TAG_TYPE_METADATA,4,2      ## @FLV_TAG_TYPE_METADATA
	.comm	_FLV_FLAG_DISCARD,4,2           ## @FLV_FLAG_DISCARD
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
	.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_read_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_read_frame_header
_flv_read_frame_header:                 ; @flv_read_frame_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x6
	str	x5, [sp]                        ; 8-byte Folded Spill
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x26, x1
	mov	x24, x0
	bl	_STREAM_POSITION
	mov	x23, x0
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _VC_CONTAINER_ES_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ES_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w28, [x24]
	str	xzr, [sp, #8]
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x0, x24
	mov	x1, x26
	mov	x4, x22
	bl	_flv_read_tag_header
	mov	x26, x0
Lloh3:
	adrp	x27, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.1:
	mov	x0, x24
	bl	_STREAM_STATUS
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.2:
	mov	x0, x24
	bl	_STREAM_POSITION
	cmp	x23, x0
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
	b	LBB0_29
LBB0_4:
	ldr	w9, [sp, #28]
	cbz	w9, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _FLV_TAG_TYPE_AUDIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLV_TAG_TYPE_AUDIO@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x8]
Lloh11:
	adrp	x8, _FLV_TAG_TYPE_VIDEO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLV_TAG_TYPE_VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x8]
	cbz	w25, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _FLV_TAG_TYPE_METADATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLV_TAG_TYPE_METADATA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w9, w11
	ccmp	w9, w10, #4, ne
	ccmp	w9, w8, #4, ne
	b.eq	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
	b	LBB0_29
LBB0_8:
	ldr	w8, [sp, #24]
	cmp	w9, w11
	b.ne	LBB0_11
; %bb.9:
	cbz	w8, LBB0_12
; %bb.10:
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_flv_read_audiodata_header
Lloh20:
	adrp	x8, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	cmp	w9, w10
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_13
LBB0_12:
Lloh22:
	adrp	x9, _FLV_FLAG_DISCARD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FLV_FLAG_DISCARD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	mov	x26, x9
	b	LBB0_22
LBB0_13:
	add	x1, sp, #8
	add	x2, sp, #20
	mov	x0, x24
	bl	_flv_read_videodata_header
Lloh25:
	adrp	x8, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
LBB0_14:
	ldr	x19, [x8]
	ldr	w8, [sp, #24]
	sub	w8, w8, #1
	str	w8, [sp, #24]
	ldr	w10, [x24]
	cbz	w10, LBB0_19
; %bb.15:
	mov	w28, #0
	ldr	x9, [x24, #16]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, w28, uxtw #3]
	ldr	x11, [x11]
	ldr	x11, [x11]
	cmp	x19, x11
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w28, w28, #1
	cmp	w10, w28
	b.ne	LBB0_16
; %bb.18:
	mov	x28, x10
	b	LBB0_20
LBB0_19:
	mov	w28, #0
LBB0_20:
Lloh27:
	adrp	x9, _FLV_FLAG_DISCARD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FLV_FLAG_DISCARD@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w28, w10
	csel	w26, w9, wzr, eq
	cbz	w25, LBB0_22
; %bb.21:
	ldr	x10, [sp, #8]
	ldr	x11, [x24, #16]
	ldr	x11, [x11, w28, uxtw #3]
	ldr	x11, [x11]
	ldr	x11, [x11, #8]
	cmp	x10, x11
	b.ne	LBB0_7
LBB0_22:
	ldr	x10, [x24, #8]
	ldr	x10, [x10]
	ldr	x0, [x10, #8]
	and	w9, w9, w26
	cmp	x0, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_24
; %bb.23:
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	b	LBB0_28
LBB0_24:
	ldr	x9, [x10]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	tbnz	x9, #63, LBB0_27
; %bb.25:
Lloh30:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x19, x9
	b.ne	LBB0_28
; %bb.26:
	ldr	w9, [sp, #20]
Lloh33:
	adrp	x10, _FLV_FLAG_KEYFRAME@GOTPAGE
Lloh34:
	ldr	x10, [x10, _FLV_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_28
LBB0_27:
	ldr	x8, [x22]
	mov	w9, #1000
	mul	x1, x8, x9
	mov	x2, x23
	bl	_vc_container_index_add
	ldr	w8, [sp, #24]
LBB0_28:
	ldr	w9, [sp, #20]
	orr	w9, w9, w26
	str	w9, [x24]
	str	w8, [x20]
	str	w28, [x21]
	ldr	w26, [x27]
LBB0_29:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ES_TYPE_UNKNOWN,8,3 ; @VC_CONTAINER_ES_TYPE_UNKNOWN
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_FLV_TAG_TYPE_AUDIO,4,2         ; @FLV_TAG_TYPE_AUDIO
	.comm	_FLV_TAG_TYPE_VIDEO,4,2         ; @FLV_TAG_TYPE_VIDEO
	.comm	_FLV_TAG_TYPE_METADATA,4,2      ; @FLV_TAG_TYPE_METADATA
	.comm	_FLV_FLAG_DISCARD,4,2           ; @FLV_FLAG_DISCARD
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
	.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_read_frame_header
.subsections_via_symbols
