	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_read_videodata_header
_flv_read_videodata_header:             ## @flv_read_videodata_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_READ_U8
                                        ## kill: def $eax killed $eax def $rax
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	%eax, %edx
	sarl	$4, %edx
	xorl	%ecx, %ecx
	cmpl	$3, %edx
	jne	LBB0_3
## %bb.2:
	movq	_FLV_FLAG_INTERFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	cmpl	$1, %edx
	jne	LBB0_5
## %bb.4:
	movq	_FLV_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	movl	%ecx, (%rbx)
LBB0_6:
	andl	$15, %eax
	addl	$-2, %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_VC_CONTAINER_CODEC_SPARK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_10:
	movl	$115, %edi
	movl	$99, %esi
	movl	$114, %edx
	movl	$49, %ecx
	callq	_VC_FOURCC
	jmp	LBB0_16
LBB0_11:
	movq	_VC_CONTAINER_CODEC_VP6@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movl	$118, %edi
	movl	$112, %esi
	movl	$54, %edx
	movl	$97, %ecx
	callq	_VC_FOURCC
	jmp	LBB0_16
LBB0_13:
	movl	$115, %edi
	movl	$99, %esi
	movl	$114, %edx
	movl	$50, %ecx
	callq	_VC_FOURCC
	jmp	LBB0_16
LBB0_14:
	movq	_VC_CONTAINER_CODEC_H264@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FrameType/CodecID"

	.comm	_FLV_FLAG_KEYFRAME,4,2          ## @FLV_FLAG_KEYFRAME
	.comm	_FLV_FLAG_INTERFRAME,4,2        ## @FLV_FLAG_INTERFRAME
	.comm	_VC_CONTAINER_CODEC_SPARK,4,2   ## @VC_CONTAINER_CODEC_SPARK
	.comm	_VC_CONTAINER_CODEC_VP6,4,2     ## @VC_CONTAINER_CODEC_VP6
	.comm	_VC_CONTAINER_CODEC_H264,4,2    ## @VC_CONTAINER_CODEC_H264
	.no_dead_strip	_flv_read_videodata_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_videodata_header
_flv_read_videodata_header:             ; @flv_read_videodata_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_READ_U8
	cbz	x21, LBB0_2
; %bb.1:
	asr	w8, w0, #4
Lloh2:
	adrp	x9, _FLV_FLAG_KEYFRAME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FLV_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _FLV_FLAG_INTERFRAME@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FLV_FLAG_INTERFRAME@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, #3
	csel	w10, w10, wzr, eq
	cmp	w8, #1
	csel	w8, w9, w10, eq
	str	w8, [x21]
LBB0_2:
	and	w8, w0, #0xf
	sub	w8, w8, #2
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh10:
	adrp	x8, _VC_CONTAINER_CODEC_SPARK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_CODEC_SPARK@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	mov	w0, #115
	mov	w1, #99
	mov	w2, #114
	mov	w3, #49
	bl	_VC_FOURCC
	b	LBB0_12
LBB0_7:
Lloh12:
	adrp	x8, _VC_CONTAINER_CODEC_VP6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VC_CONTAINER_CODEC_VP6@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	w0, #118
	mov	w1, #112
	mov	w2, #54
	mov	w3, #97
	bl	_VC_FOURCC
	b	LBB0_12
LBB0_9:
	mov	w0, #115
	mov	w1, #99
	mov	w2, #114
	mov	w3, #50
	bl	_VC_FOURCC
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _VC_CONTAINER_CODEC_H264@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_CODEC_H264@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	str	w0, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_STREAM_STATUS
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FrameType/CodecID"

	.comm	_FLV_FLAG_KEYFRAME,4,2          ; @FLV_FLAG_KEYFRAME
	.comm	_FLV_FLAG_INTERFRAME,4,2        ; @FLV_FLAG_INTERFRAME
	.comm	_VC_CONTAINER_CODEC_SPARK,4,2   ; @VC_CONTAINER_CODEC_SPARK
	.comm	_VC_CONTAINER_CODEC_VP6,4,2     ; @VC_CONTAINER_CODEC_VP6
	.comm	_VC_CONTAINER_CODEC_H264,4,2    ; @VC_CONTAINER_CODEC_H264
	.no_dead_strip	_flv_read_videodata_header
.subsections_via_symbols
