	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pva_read_packet
_pva_read_packet:                       ## @pva_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	-28(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movl	$1, %r8d
	callq	_read_part_of_packet
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	-24(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	-20(%rbp), %ecx
	decl	%ecx
	movl	%ecx, (%rbx)
	movl	-28(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pva_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pva_read_packet
_pva_read_packet:                       ; @pva_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x20, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	w4, #1
	bl	_read_part_of_packet
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_av_get_packet
	cmp	w0, #0
	b.le	LBB0_3
; %bb.2:
	ldr	w8, [sp, #4]
	sub	w8, w8, #1
	ldr	w9, [sp, #12]
	stp	w8, w9, [x19]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pva_read_packet
.subsections_via_symbols
