	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_read_videodata_properties
_flv_read_videodata_properties:         ## @flv_read_videodata_properties
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	(%rax), %rbx
	movq	_VC_CONTAINER_CODEC_VP6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.1:
	movl	%edx, %r12d
	movl	$118, %edi
	movl	$112, %esi
	movl	$54, %edx
	movl	$97, %ecx
	callq	_VC_FOURCC
	cmpq	%rax, %rbx
	jne	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	__READ_U8
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	__SKIP_U16
	movq	%r15, %rdi
	callq	__READ_U8
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	%r15, %rdi
	callq	__READ_U8
	movl	%eax, %r13d
	shll	$4, %r13d
	movl	%r12d, %eax
	sarl	$4, %eax
	subl	%eax, %r13d
	andl	$15, %r12d
	subl	%r12d, %ebx
	movq	(%r14), %rcx
LBB0_11:
	movq	8(%rcx), %rax
	movl	%r13d, (%rax)
	movl	%ebx, 4(%rax)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_3:
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	movq	_VC_CONTAINER_CODEC_H264@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	callq	__READ_U8
	cmpl	$10, %r12d
	jl	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	callq	__SKIP_U24
	addl	$-4, %r12d
	movl	$97, %edi
	movl	$118, %esi
	movl	$99, %edx
	movl	$67, %ecx
	callq	_VC_FOURCC
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_vc_container_track_allocate_extradata
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.9:
	movq	(%r14), %rax
	movl	16(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_READ_BYTES
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_CODEC_VP6,8,3     ## @VC_CONTAINER_CODEC_VP6
	.comm	_VC_CONTAINER_CODEC_H264,8,3    ## @VC_CONTAINER_CODEC_H264
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_flv_read_videodata_properties
.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_properties
_flv_read_videodata_properties:         ; @flv_read_videodata_properties
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _VC_CONTAINER_CODEC_VP6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_CODEC_VP6@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x2
	mov	w0, #118
	mov	w1, #112
	mov	w2, #54
	mov	w3, #97
	bl	_VC_FOURCC
	cmp	x22, x0
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	__READ_U8
	mov	x21, x0
	mov	x0, x19
	bl	__SKIP_U16
	mov	x0, x19
	bl	__READ_U8
	lsl	w22, w0, #4
	mov	x0, x19
	bl	__READ_U8
	lsl	w8, w0, #4
	sub	w9, w8, w21, asr #4
	and	w8, w21, #0xf
	sub	w10, w22, w8
	ldr	x8, [x20]
LBB0_3:
	ldr	x8, [x8, #8]
	stp	w9, w10, [x8]
	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
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _VC_CONTAINER_CODEC_H264@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC_CONTAINER_CODEC_H264@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	bl	__READ_U8
	cmp	w21, #10
	b.lt	LBB0_10
; %bb.6:
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	__SKIP_U24
	sub	w21, w21, #4
	mov	w0, #97
	mov	w1, #118
	mov	w2, #99
	mov	w3, #67
	bl	_VC_FOURCC
	ldr	x8, [x20]
	str	x0, [x8, #24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_vc_container_track_allocate_extradata
Lloh6:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	mov	x0, x19
	mov	x2, x21
	bl	_READ_BYTES
	mov	w9, #0
	mov	w10, #0
	ldr	x8, [x20]
	str	w0, [x8, #20]
	b	LBB0_3
LBB0_9:
	mov	w9, #0
	mov	w10, #0
	b	LBB0_3
LBB0_10:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_CODEC_VP6,8,3     ; @VC_CONTAINER_CODEC_VP6
	.comm	_VC_CONTAINER_CODEC_H264,8,3    ; @VC_CONTAINER_CODEC_H264
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_flv_read_videodata_properties
.subsections_via_symbols
