	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_read_packet
_hls_read_packet:                       ## @hls_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	32(%r14), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_recheck_discard_flags
	movq	$0, 32(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_49
## %bb.1:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_31
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	cmpq	$0, 104(%rbx)
	je	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rbx)
	jne	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	32(%rbx), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_av_packet_unref
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	72(%rbx), %rdi
	movq	%r12, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, 88(%rbx)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_fill_timing_for_id3_timestamped_stream
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r14), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	40(%rbx), %r13
	movq	%rcx, %rax
	cmpq	%rcx, %r13
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_get_timebase
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_av_rescale_q
	movq	%rax, 8(%r14)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%rax, (%rbx)
	je	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	(%r12), %rcx
	jne	LBB0_34
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%rax, 40(%rbx)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_get_timebase
	movq	40(%rbx), %rdi
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_av_rescale_rnd
	cmpq	(%rbx), %rax
	jl	LBB0_34
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%rbx)
	je	LBB0_34
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rbx)
	jmp	LBB0_24
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	leaq	96(%rbx), %rdi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_51
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_reset_packet
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rbx)
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	40(%rcx), %rdx
	cmpq	%rax, %rdx
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	_compare_ts_with_wrapdetect
	testq	%rax, %rax
	jns	LBB0_30
	jmp	LBB0_29
LBB0_31:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_49
## %bb.32:
	movl	%eax, %ecx
	movq	24(%r14), %rax
	movl	%ecx, %r15d
	movq	(%rax,%r15,8), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_update_streams_from_subdemuxer
	testl	%eax, %eax
	js	LBB0_33
## %bb.35:
	movq	72(%rbx), %rax
	movl	(%rax), %edx
	movq	_AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%edx, %ecx
	je	LBB0_39
## %bb.36:
	cmpq	$0, 24(%rbx)
	je	LBB0_38
## %bb.37:
	movq	64(%rbx), %rcx
	movq	(%rcx), %r13
	leaq	24(%r13), %rdi
	movl	20(%rax), %esi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movq	_AVSTREAM_EVENT_FLAG_METADATA_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	movl	(%r12), %ecx
	movq	72(%rbx), %rax
	movl	(%rax), %edx
LBB0_38:
	notl	%ecx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_39:
	cmpq	$0, 80(%rbx)
	je	LBB0_42
## %bb.40:
	movq	_AVFMTCTX_NOHEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	jne	LBB0_42
## %bb.41:
	movq	$0, 80(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_update_noheader_flag
LBB0_42:
	leaq	32(%rbx), %r13
	movq	24(%rbx), %r8
	movq	32(%rbx), %rcx
	cmpq	%r8, %rcx
	jge	LBB0_43
## %bb.44:
	movq	64(%rbx), %rax
	movq	72(%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movq	(%rax,%rcx,8), %r12
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movups	%xmm1, 16(%r13)
	movups	%xmm0, (%r13)
	movq	(%r12), %rax
	movq	%rax, (%r13)
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	movq	%rdx, %r15
	addq	$32, %rdi
	callq	_reset_packet
	movq	8(%r13), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_46
## %bb.45:
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %esi
	callq	_av_rescale_q
	movq	%rax, 16(%r14)
LBB0_46:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_51
## %bb.47:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_set_stream_info_from_input_stream
	testl	%eax, %eax
	jns	LBB0_51
## %bb.48:
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_unref
	movl	%ebx, %r13d
	jmp	LBB0_51
LBB0_49:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_50:
	movl	(%rax), %r13d
LBB0_51:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	%eax, %r13d
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_av_packet_unref
	jmp	LBB0_51
LBB0_43:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	72(%rbx), %rax
	movl	16(%rax), %r9d
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	%r13, %rdi
	callq	_av_packet_unref
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ## @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.comm	_AVSTREAM_EVENT_FLAG_METADATA_UPDATED,4,2 ## @AVSTREAM_EVENT_FLAG_METADATA_UPDATED
	.comm	_AVFMTCTX_NOHEADER,4,2          ## @AVFMTCTX_NOHEADER
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream index inconsistency: index %d, %d main streams, %d subdemuxer streams\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.no_dead_strip	_hls_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hls_read_packet
_hls_read_packet:                       ; @hls_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x1, [sp]                        ; 8-byte Folded Spill
	mov	x19, x0
	ldr	x24, [x0]
	ldr	x1, [x24, #32]
	bl	_recheck_discard_flags
	str	xzr, [x24, #32]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	mov	w27, #-1
Lloh0:
	adrp	x26, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	adrp	x28, _AV_TIME_BASE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _AV_TIME_BASE@GOTPAGEOFF]
Lloh4:
	adrp	x20, _AV_ROUND_DOWN@GOTPAGE
Lloh5:
	ldr	x20, [x20, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh6:
	adrp	x25, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x24]
	cmp	x19, x8
	b.ge	LBB0_31
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x24, #24]
	ldr	x21, [x8, x19, lsl #3]
	ldr	x8, [x21, #104]
	cbz	x8, LBB0_26
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x21, #32
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_av_packet_unref
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x21, #72]
	mov	x1, x22
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21, #88]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x22]
	cbnz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_fill_timing_for_id3_timestamped_stream
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x24, #8]
	ldr	x8, [x26]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x23, [x21, #40]
	mov	x8, x9
	cmp	x23, x9
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_get_timebase
Lloh8:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, w0
	mov	x0, x23
	bl	_av_rescale_q
	str	x0, [x24, #8]
	ldr	x8, [x26]
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x21]
	cmp	x9, x8
	b.eq	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x21, #8]
	tbnz	x9, #63, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x21, #40]
	cmp	x9, x8
	b.eq	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_get_timebase
	mov	x2, x0
	ldr	x0, [x21, #40]
	ldr	w1, [x28]
	ldr	w3, [x20]
	bl	_av_rescale_rnd
	ldr	x8, [x21]
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21, #16]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21, #48]
Lloh11:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x21]
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	add	x0, x21, #96
	bl	_avio_feof
Lloh14:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w23, w8, #4, eq
	b.ne	LBB0_48
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_reset_packet
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_3
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w27, #31, LBB0_2
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21, #40]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24, #24]
	ldr	x3, [x9, w27, uxtw #3]
	ldr	x2, [x3, #40]
	cmp	x2, x8
	b.eq	LBB0_3
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	bl	_compare_ts_with_wrapdetect
	tbz	x0, #63, LBB0_3
	b	LBB0_2
LBB0_31:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	tbnz	w27, #31, LBB0_46
; %bb.32:
	ldr	x8, [x24, #24]
	ldr	x21, [x8, w27, uxtw #3]
	mov	x0, x22
	mov	x1, x21
	bl	_update_streams_from_subdemuxer
	tbnz	w0, #31, LBB0_49
; %bb.33:
	ldr	x8, [x21, #72]
	ldr	w10, [x8]
Lloh17:
	adrp	x19, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGE
Lloh18:
	ldr	x19, [x19, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGEOFF]
	ldr	w9, [x19]
	tst	w9, w10
	b.eq	LBB0_37
; %bb.34:
	ldr	x11, [x21, #24]
	cbz	x11, LBB0_36
; %bb.35:
	ldr	x9, [x21, #64]
	ldr	x20, [x9]
	add	x0, x20, #24
	ldr	w1, [x8, #20]
	mov	w2, #0
	bl	_av_dict_copy
Lloh19:
	adrp	x8, _AVSTREAM_EVENT_FLAG_METADATA_UPDATED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVSTREAM_EVENT_FLAG_METADATA_UPDATED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
	ldr	w9, [x19]
	ldr	x8, [x21, #72]
	ldr	w10, [x8]
LBB0_36:
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_37:
	ldr	x9, [x21, #80]
	cbz	x9, LBB0_40
; %bb.38:
	ldr	w8, [x8, #4]
Lloh22:
	adrp	x9, _AVFMTCTX_NOHEADER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AVFMTCTX_NOHEADER@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_40
; %bb.39:
	str	xzr, [x21, #80]
	mov	x0, x22
	bl	_update_noheader_flag
LBB0_40:
	mov	x23, x21
	ldr	x3, [x23, #32]!
	ldur	x4, [x23, #-8]
	cmp	x3, x4
	b.ge	LBB0_50
; %bb.41:
	mov	w8, w27
	ldp	x10, x9, [x21, #64]
	ldr	x9, [x9, #8]
	lsl	x11, x3, #3
	ldr	x20, [x9, x11]
	ldr	x22, [x10, x11]
	ldp	q0, q1, [x23]
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	stp	q0, q1, [x19]
	ldr	x9, [x22]
	str	x9, [x19]
	ldr	x9, [x24, #24]
	ldr	x8, [x9, x8, lsl #3]
	add	x0, x8, #32
	bl	_reset_packet
	ldr	x0, [x19, #8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_43
; %bb.42:
Lloh25:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldr	w1, [x20, #16]
	bl	_av_rescale_q
	str	x0, [x24, #16]
LBB0_43:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.44:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_set_stream_info_from_input_stream
	tbnz	w0, #31, LBB0_51
LBB0_45:
	mov	w23, #0
	b	LBB0_48
LBB0_46:
Lloh28:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_47:
	ldr	w23, [x8]
LBB0_48:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_49:
	mov	x23, x0
	add	x0, x21, #32
	bl	_av_packet_unref
	b	LBB0_48
LBB0_50:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	x8, [x21, #72]
	ldr	w5, [x8, #16]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
	mov	x0, x23
	bl	_av_packet_unref
Lloh35:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
	b	LBB0_47
LBB0_51:
	mov	x23, x0
	mov	x0, x19
	bl	_av_packet_unref
	b	LBB0_48
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ; @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.comm	_AVSTREAM_EVENT_FLAG_METADATA_UPDATED,4,2 ; @AVSTREAM_EVENT_FLAG_METADATA_UPDATED
	.comm	_AVFMTCTX_NOHEADER,4,2          ; @AVFMTCTX_NOHEADER
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream index inconsistency: index %d, %d main streams, %d subdemuxer streams\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_hls_read_packet
.subsections_via_symbols
