	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_part_of_packet
_read_part_of_packet:                   ## @read_part_of_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
	subq	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -368(%rbp)                ## 4-byte Spill
	movq	%rcx, -352(%rbp)                ## 8-byte Spill
	movq	%rdx, -344(%rbp)                ## 8-byte Spill
	movq	%rsi, -336(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	movq	%rdi, -328(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %r13
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_pva_log
	movl	-308(%rbp), %esi                ## 4-byte Reload
	addl	$-9, %esi
	movq	%r13, %rdi
	callq	_avio_skip
	cmpl	$0, -368(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_25
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, -376(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rb16
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_avio_r8
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_avio_rb16
	movl	%eax, %ecx
	movq	_PVA_MAGIC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVA_VIDEO_PAYLOAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movq	-328(%rbp), %r15                ## 8-byte Reload
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVA_AUDIO_PAYLOAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$85, %ebx
	movl	%ecx, -308(%rbp)                ## 4-byte Spill
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_pva_log
	movl	-308(%rbp), %ecx                ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVA_MAX_PAYLOAD_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVA_VIDEO_PAYLOAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movl	%r12d, -312(%rbp)               ## 4-byte Spill
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	andl	$16, %r14d
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVA_AUDIO_PAYLOAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-360(%rbp), %rdx                ## 8-byte Reload
	movl	(%rdx), %eax
	testl	%eax, %eax
	jne	LBB0_35
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_avio_rb24
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_avio_r8
	movq	%r13, %rdi
	callq	_avio_rb16
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_avio_rb16
	movl	%eax, -364(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r12d
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.26:
	leaq	-304(%rbp), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_27
## %bb.29:
	movl	-308(%rbp), %ecx                ## 4-byte Reload
	subl	%ebx, %ecx
	addl	$-9, %ecx
	subl	%ebx, %r14d
	addl	$-3, %r14d
	movq	-360(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, (%rdx)
	testb	$-128, -364(%rbp)               ## 1-byte Folded Reload
	je	LBB0_34
## %bb.30:
	movb	-304(%rbp), %al
	andb	$-16, %al
	cmpb	$32, %al
	jne	LBB0_34
## %bb.31:
	movl	%ecx, %r14d
	cmpl	$4, %ebx
	jg	LBB0_33
## %bb.32:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pva_log
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_avio_skip
	jmp	LBB0_28
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_3
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_pva_log
	jmp	LBB0_4
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pva_log
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.5:
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movq	%r13, %rdi
	callq	_avio_rb32
	movl	-308(%rbp), %ecx                ## 4-byte Reload
	movq	%rax, %rbx
	addl	$-4, %ecx
	movq	-352(%rbp), %r14                ## 8-byte Reload
	movq	-344(%rbp), %r15                ## 8-byte Reload
	movq	-336(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_38
LBB0_18:
	movq	-352(%rbp), %r14                ## 8-byte Reload
	movq	-344(%rbp), %r15                ## 8-byte Reload
	movq	-336(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_37
LBB0_21:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_41
LBB0_25:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_41
LBB0_27:
	testl	%eax, %eax
	js	LBB0_41
LBB0_28:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_41
LBB0_33:
	leaq	-304(%rbp), %rdi
	callq	_ff_parse_pes_pts
	movq	-360(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movl	%r14d, %ecx
LBB0_34:
	movl	(%rdx), %eax
LBB0_35:
	subl	%ecx, %eax
	movl	%eax, (%rdx)
	movq	-352(%rbp), %r14                ## 8-byte Reload
	movq	-344(%rbp), %r15                ## 8-byte Reload
	movq	-336(%rbp), %r13                ## 8-byte Reload
	jns	LBB0_37
## %bb.36:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %r12
	leaq	L_.str.6(%rip), %rdx
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	movl	%ecx, %ebx
	callq	_pva_log
	movl	%ebx, %ecx
	movl	$0, (%r12)
LBB0_37:
	movq	-320(%rbp), %rbx                ## 8-byte Reload
LBB0_38:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_40
## %bb.39:
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ecx, %r12d
	movslq	-312(%rbp), %rcx                ## 4-byte Folded Reload
	movl	-4(%rax,%rcx,4), %edi
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-376(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	movl	%r12d, %ecx
LBB0_40:
	movq	%rbx, (%r13)
	movl	%ecx, (%r15)
	movl	-312(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_41:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.42:
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_PVA_MAGIC,4,2                  ## @PVA_MAGIC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid syncword\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_PVA_VIDEO_PAYLOAD,4,2          ## @PVA_VIDEO_PAYLOAD
	.comm	_PVA_AUDIO_PAYLOAD,4,2          ## @PVA_AUDIO_PAYLOAD
L_.str.1:                               ## @.str.1
	.asciz	"invalid streamid\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"expected reserved byte to be 0x55\n"

	.comm	_PVA_MAX_PAYLOAD_LENGTH,4,2     ## @PVA_MAX_PAYLOAD_LENGTH
L_.str.3:                               ## @.str.3
	.asciz	"invalid payload length %u\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.4:                               ## @.str.4
	.asciz	"expected non empty signaled PES packet, trying to recover\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.5:                               ## @.str.5
	.asciz	"header too short\n"

L_.str.6:                               ## @.str.6
	.asciz	"audio data corruption\n"

	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_read_part_of_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_part_of_packet
_read_part_of_packet:                   ; @read_part_of_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #352]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #368]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #384]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #52]                   ; 4-byte Folded Spill
	stp	x2, x3, [sp, #32]               ; 16-byte Folded Spill
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldp	x23, x27, [x0, #8]
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x19, _PVA_VIDEO_PAYLOAD@GOTPAGE
Lloh7:
	ldr	x19, [x19, _PVA_VIDEO_PAYLOAD@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PVA_AUDIO_PAYLOAD@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PVA_AUDIO_PAYLOAD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	bl	_avio_tell
	mov	x25, x0
	mov	x0, x27
	bl	_avio_rb16
	mov	x22, x0
	mov	x0, x27
	bl	_avio_r8
	mov	x26, x0
	mov	x0, x27
	bl	_avio_r8
	mov	x0, x27
	bl	_avio_r8
	mov	x20, x0
	mov	x0, x27
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x27
	bl	_avio_rb16
Lloh10:
	adrp	x8, _PVA_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PVA_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	cmp	w26, w8
	ccmp	w26, w9, #4, ne
	b.ne	LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	cmp	w20, #85
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_pva_log
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh18:
	adrp	x8, _PVA_MAX_PAYLOAD_LENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PVA_MAX_PAYLOAD_LENGTH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	and	w9, w21, #0x10
	cmp	w26, w8
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	cmp	w26, w8
	b.ne	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_33
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w26, [sp, #48]                  ; 4-byte Folded Spill
	mov	x26, x25
	mov	x25, x23
	mov	x0, x27
	bl	_avio_rb24
	mov	x20, x0
	mov	x0, x27
	bl	_avio_r8
	mov	x0, x27
	bl	_avio_rb16
	mov	x23, x0
	mov	x0, x27
	bl	_avio_rb16
	mov	x21, x0
	mov	x0, x27
	bl	_avio_r8
	mov	x22, x0
	mov	x0, x27
	bl	_avio_feof
	cbnz	x0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #1
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w22, LBB0_23
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh21:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_pva_log
	sub	w1, w24, #9
	mov	x0, x27
	bl	_avio_skip
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x25
	b	LBB0_1
LBB0_14:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh36:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	str	x24, [sp]
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_17:
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_pva_log
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.18:
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	b	_AVERROR
LBB0_19:
	mov	x0, x27
	bl	_avio_rb32
	mov	x23, x0
	sub	w24, w24, #4
	ldp	x21, x20, [sp, #32]             ; 16-byte Folded Reload
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_21
LBB0_20:
	ldp	x21, x20, [sp, #32]             ; 16-byte Folded Reload
	ldp	x23, x22, [sp, #16]             ; 16-byte Folded Reload
LBB0_21:
Lloh47:
	adrp	x27, _AV_NOPTS_VALUE@GOTPAGE
Lloh48:
	ldr	x27, [x27, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_36
LBB0_22:
Lloh49:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	b	LBB0_39
LBB0_23:
	add	x1, sp, #64
	mov	x0, x27
	mov	x2, x22
	bl	_avio_read
	cmp	w0, w22
	b.ne	LBB0_27
; %bb.24:
	sub	w8, w24, w22
	sub	w24, w8, #9
	sub	w8, w23, w22
	sub	w8, w8, #3
	mov	x23, x25
	str	w8, [x25]
	tbnz	w21, #7, LBB0_28
; %bb.25:
	mov	x25, x26
	ldr	w26, [sp, #48]                  ; 4-byte Folded Reload
	b	LBB0_32
LBB0_26:
Lloh52:
	adrp	x8, _EIO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_39
LBB0_27:
Lloh55:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	b	LBB0_39
LBB0_28:
	ldrb	w8, [sp, #64]
	and	w8, w8, #0xf0
	cmp	w8, #32
	mov	x25, x26
	ldr	w26, [sp, #48]                  ; 4-byte Folded Reload
	b.ne	LBB0_32
; %bb.29:
	cmp	w22, #4
	b.gt	LBB0_31
; %bb.30:
Lloh58:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x2, l_.str.5@PAGE
Lloh62:
	add	x2, x2, l_.str.5@PAGEOFF
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_pva_log
	mov	x0, x27
	mov	x1, x24
	bl	_avio_skip
Lloh63:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	b	LBB0_39
LBB0_31:
	add	x0, sp, #64
	bl	_ff_parse_pes_pts
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
LBB0_32:
	ldr	w8, [x23]
LBB0_33:
	subs	w8, w8, w24
	str	w8, [x23]
	ldp	x21, x20, [sp, #32]             ; 16-byte Folded Reload
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
Lloh66:
	adrp	x27, _AV_NOPTS_VALUE@GOTPAGE
Lloh67:
	ldr	x27, [x27, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b.pl	LBB0_35
; %bb.34:
Lloh68:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x2, l_.str.6@PAGE
Lloh72:
	add	x2, x2, l_.str.6@PAGEOFF
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_pva_log
	str	wzr, [x23]
LBB0_35:
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
LBB0_36:
	ldr	x8, [x27]
	cmp	x23, x8
	b.eq	LBB0_38
; %bb.37:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	sub	w9, w26, #1
	ldr	w0, [x8, w9, sxtw #2]
Lloh73:
	adrp	x8, _AVINDEX_KEYFRAME@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh75:
	ldr	w5, [x8]
	mov	x1, x25
	mov	x2, x23
	mov	w3, #0
	mov	w4, #0
	bl	_av_add_index_entry
LBB0_38:
	mov	w0, #0
	str	x23, [x22]
	str	w24, [x21]
	str	w26, [x20]
LBB0_39:
	ldur	x8, [x29, #-96]
Lloh76:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh77:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_PVA_MAGIC,4,2                  ; @PVA_MAGIC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid syncword\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_PVA_VIDEO_PAYLOAD,4,2          ; @PVA_VIDEO_PAYLOAD
	.comm	_PVA_AUDIO_PAYLOAD,4,2          ; @PVA_AUDIO_PAYLOAD
l_.str.1:                               ; @.str.1
	.asciz	"invalid streamid\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"expected reserved byte to be 0x55\n"

	.comm	_PVA_MAX_PAYLOAD_LENGTH,4,2     ; @PVA_MAX_PAYLOAD_LENGTH
l_.str.3:                               ; @.str.3
	.asciz	"invalid payload length %u\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.4:                               ; @.str.4
	.asciz	"expected non empty signaled PES packet, trying to recover\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.5:                               ; @.str.5
	.asciz	"header too short\n"

l_.str.6:                               ; @.str.6
	.asciz	"audio data corruption\n"

	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_read_part_of_packet
.subsections_via_symbols
