	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_read_packet
_mv_read_packet:                        ## @mv_read_packet
	.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	%rdi, %r12
	movq	24(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movq	(%rax,%rcx,8), %rax
	movslq	(%rdx,%rcx,4), %rbx
	cmpl	(%rax), %ebx
	jge	LBB0_10
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %r15
	movq	8(%rax), %r14
	movq	%r15, %rdi
	callq	_avio_tell
	shlq	$4, %rbx
	movq	(%r14,%rbx), %rsi
	movq	%rsi, %rcx
	subq	%rax, %rcx
	jle	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	_avio_skip
	jmp	LBB0_8
LBB0_10:
	movq	16(%r13), %rax
	incq	%rax
	movq	%rax, 16(%r13)
	cmpq	(%r12), %rax
	jae	LBB0_11
## %bb.13:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	jge	LBB0_8
## %bb.4:
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.7:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_12
LBB0_8:
	movl	12(%r14,%rbx), %edx
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_av_get_packet
	testq	%rax, %rax
	js	LBB0_12
## %bb.9:
	movq	(%r13), %rcx
	movq	%rcx, (%r15)
	movl	8(%r14,%rbx), %eax
	movl	%eax, 12(%r15)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	8(%r13), %rax
	incl	(%rax,%rcx,4)
	movq	$0, 16(%r13)
	incq	%rcx
	xorl	%eax, %eax
	cmpq	(%r12), %rcx
	cmovaeq	%rax, %rcx
	movq	%rcx, (%r13)
	jmp	LBB0_12
LBB0_11:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_mv_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_read_packet
_mv_read_packet:                        ; @mv_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x22, [x0, #24]
	ldr	x8, [x0, #8]
	ldp	x9, x10, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldrsw	x23, [x10, x9, lsl #2]
	ldr	w9, [x8]
	cmp	w23, w9
	b.ge	LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x21, [x19, #16]
	ldr	x24, [x8, #8]
	mov	x0, x21
	bl	_avio_tell
	lsl	x8, x23, #4
	ldr	x1, [x24, x8]
	subs	x8, x1, x0
	b.le	LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x8
	bl	_avio_skip
	b	LBB0_9
LBB0_3:
	ldr	x8, [x22, #16]
	add	x8, x8, #1
	str	x8, [x22, #16]
	ldr	x9, [x19]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.4:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	b.ge	LBB0_9
; %bb.7:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.8:
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	tbnz	x0, #63, LBB0_13
LBB0_9:
	add	x23, x24, x23, lsl #4
	ldr	w2, [x23, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_av_get_packet
	tbnz	x0, #63, LBB0_12
; %bb.10:
	mov	w0, #0
	ldr	w8, [x23, #8]
Lloh8:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #8]
	ldp	x8, x9, [x22]
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	add	w11, w11, #1
	str	w11, [x9, x10]
	str	x8, [x20]
	str	xzr, [x22, #16]
	add	x9, x8, #1
	ldr	x10, [x19]
	cmp	x9, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x22]
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_mv_read_packet
.subsections_via_symbols
