	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_reader_read
_flv_reader_read:                       ## @flv_reader_read
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	%r15, %rsi
	callq	_flv_read_sample_header
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.1:
	movq	16(%r15), %rcx
	cmpq	(%rbx), %rcx
	jae	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_3
## %bb.5:
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %r8
	testl	%r12d, (%r8)
	je	LBB0_7
## %bb.6:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rsi
	testl	%r12d, (%rsi)
	je	LBB0_17
LBB0_7:
	imull	$1000, (%r15), %esi             ## imm = 0x3E8
	movl	%esi, 4(%r14)
	movl	%esi, (%r14)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %r9
	movl	(%r9), %esi
	movl	%esi, 28(%r14)
	movq	_FLV_FLAG_KEYFRAME@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, 4(%r15)
	je	LBB0_9
## %bb.8:
	movq	_VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, 28(%r14)
LBB0_9:
	movl	8(%r15), %edi
	testl	%edi, %edi
	jne	LBB0_11
## %bb.10:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	%esi, 28(%r14)
LBB0_11:
	movq	%rcx, 8(%r14)
	movl	12(%r15), %ecx
	movl	%ecx, 16(%r14)
	subl	%edi, %ecx
	movl	%ecx, 20(%r14)
	testl	%r12d, (%r8)
	je	LBB0_12
LBB0_17:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flv_read_sample_data           ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_flv_read_sample_data
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.4:
	movq	_VC_CONTAINER_ERROR_CONTINUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	jne	LBB0_16
## %bb.13:
	movq	%r9, %r12
	movl	24(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	32(%r14), %edx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_flv_read_sample_data
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.14:
	movl	-44(%rbp), %ecx
	movl	%ecx, 20(%r14)
	movl	8(%r15), %ecx
	cmpl	12(%r15), %ecx
	je	LBB0_16
## %bb.15:
	movl	(%r12), %ecx
	notl	%ecx
	andl	%ecx, 28(%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CONTINUE,8,3 ## @VC_CONTAINER_ERROR_CONTINUE
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ## @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_FLV_FLAG_KEYFRAME,4,2          ## @FLV_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.no_dead_strip	_flv_reader_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_reader_read
_flv_reader_read:                       ; @flv_reader_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	mov	x1, x19
	bl	_flv_read_sample_header
Lloh0:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.2:
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x8, lsl #3]
	ldr	w9, [x9]
	cbz	w9, LBB0_11
; %bb.3:
Lloh2:
	adrp	x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w22
	b.eq	LBB0_5
; %bb.4:
Lloh4:
	adrp	x10, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh5:
	ldr	x10, [x10, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w22
	b.eq	LBB0_10
LBB0_5:
	mov	w10, #1000
	ldp	w11, w12, [x19]
	mul	w10, w11, w10
	stp	w10, w10, [x20]
Lloh7:
	adrp	x24, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh8:
	ldr	x24, [x24, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
	ldr	w10, [x24]
	str	w10, [x20, #28]
Lloh9:
	adrp	x11, _FLV_FLAG_KEYFRAME@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FLV_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w12
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x11, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x20, #28]
LBB0_7:
	ldr	w11, [x19, #8]
	cbnz	w11, LBB0_9
; %bb.8:
Lloh15:
	adrp	x12, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh16:
	ldr	x12, [x12, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w10, w10, w12
	str	w10, [x20, #28]
LBB0_9:
	str	x8, [x20, #8]
	ldr	w8, [x19, #12]
	sub	w10, w8, w11
	stp	w8, w10, [x20, #16]
	ldr	w8, [x9]
	tst	w8, w22
	b.eq	LBB0_13
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_flv_read_sample_data
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	bl	_flv_read_sample_data
	ldr	x8, [x23]
Lloh18:
	adrp	x9, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x9, x0, eq
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh21:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_12
; %bb.14:
	ldr	w8, [x20, #24]
	str	w8, [sp, #12]
	ldr	w2, [x20, #32]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_flv_read_sample_data
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.15:
	ldr	w8, [sp, #12]
	str	w8, [x20, #20]
	ldp	w8, w9, [x19, #8]
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.16:
	ldr	w8, [x24]
	ldr	w9, [x20, #28]
	bic	w8, w9, w8
	str	w8, [x20, #28]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CONTINUE,8,3 ; @VC_CONTAINER_ERROR_CONTINUE
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ; @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_FLV_FLAG_KEYFRAME,4,2          ; @FLV_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.no_dead_strip	_flv_reader_read
.subsections_via_symbols
