	.file	"extr_hls.c_hls_read_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"stream index inconsistency: index %d, %d main streams, %d subdemuxer streams\n"
	.text
	.p2align 4
	.type	hls_read_packet, @function
hls_read_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rsi
	mov	rsi, QWORD PTR 32[rbp]
	mov	QWORD PTR 16[rsp], rdi
	call	recheck_discard_flags@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR 32[rbp], 0
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	mov	r14, -1
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	test	rax, rax
	je	.L4
.L18:
	cmp	r14d, -1
	je	.L29
	mov	rdi, QWORD PTR 40[r15]
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	cmp	rax, rdi
	je	.L29
	mov	rcx, QWORD PTR 24[rbp]
	movsx	rdx, r14d
	mov	rcx, QWORD PTR [rcx+rdx*8]
	mov	rdx, QWORD PTR 40[rcx]
	cmp	rax, rdx
	je	.L6
	mov	rsi, r15
	call	compare_ts_with_wrapdetect@PLT
	test	rax, rax
	cmovs	r14, r13
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L44
.L19:
	mov	rax, QWORD PTR 24[rbp]
	movsx	r13, ebx
	mov	r15, QWORD PTR [rax+rbx*8]
	cmp	QWORD PTR 104[r15], 0
	mov	rax, QWORD PTR 56[r15]
	jne	.L45
	test	rax, rax
	jne	.L18
.L43:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L19
.L44:
	cmp	r14d, -1
	jne	.L46
.L2:
	mov	r9d, DWORD PTR AVERROR_EOF[rip]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r9d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movsx	r14, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	lea	r12, 32[r15]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L50:
	cmp	rdx, QWORD PTR 32[r15]
	je	.L13
.L14:
	mov	rdi, r12
	call	av_packet_unref@PLT
.L17:
	mov	rdi, QWORD PTR 72[r15]
	mov	rsi, r12
	call	av_read_frame@PLT
	test	eax, eax
	js	.L47
	cmp	QWORD PTR 88[r15], 0
	je	.L11
	cmp	QWORD PTR 32[r15], 0
	je	.L48
.L11:
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L49
.L12:
	cmp	QWORD PTR [r15], rax
	je	.L10
	mov	rdx, QWORD PTR 8[r15]
	test	rdx, rdx
	jns	.L50
.L13:
	cmp	QWORD PTR 40[r15], rax
	je	.L41
	mov	rdi, r15
	call	get_timebase@PLT
	mov	rdi, QWORD PTR 40[r15]
	mov	ecx, DWORD PTR AV_ROUND_DOWN[rip]
	mov	esi, DWORD PTR AV_TIME_BASE[rip]
	mov	edx, eax
	call	av_rescale_rnd@PLT
	cmp	rax, QWORD PTR [r15]
	js	.L14
	mov	eax, DWORD PTR 16[r15]
	test	DWORD PTR AVSEEK_FLAG_ANY[rip], eax
	jne	.L16
	mov	eax, DWORD PTR 48[r15]
	test	DWORD PTR AV_PKT_FLAG_KEY[rip], eax
	je	.L14
.L16:
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
.L41:
	mov	QWORD PTR [r15], rax
.L10:
	mov	rax, QWORD PTR 56[r15]
.L51:
	test	rax, rax
	je	.L43
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L49:
	cmp	rax, QWORD PTR 40[r15]
	je	.L12
	mov	edx, DWORD PTR AV_TIME_BASE_Q[rip]
	mov	rdi, r15
	mov	DWORD PTR 12[rsp], edx
	call	get_timebase@PLT
	mov	rdi, QWORD PTR 40[r15]
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, eax
	call	av_rescale_q@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, r15
	call	fill_timing_for_id3_timestamped_stream@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rdi, 96[r15]
	mov	DWORD PTR 12[rsp], eax
	call	avio_feof@PLT
	test	eax, eax
	jne	.L8
	mov	r9d, DWORD PTR 12[rsp]
	cmp	DWORD PTR AVERROR_EOF[rip], r9d
	jne	.L1
.L8:
	mov	rdi, r12
	call	reset_packet@PLT
	mov	rax, QWORD PTR 56[r15]
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12, QWORD PTR [rax+r14*8]
	mov	rsi, r12
	call	update_streams_from_subdemuxer@PLT
	test	eax, eax
	js	.L52
	mov	rdx, QWORD PTR 72[r12]
	mov	eax, DWORD PTR AVFMT_EVENT_FLAG_METADATA_UPDATED[rip]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, eax
	je	.L21
	cmp	QWORD PTR 24[r12], 0
	jne	.L53
.L22:
	not	eax
	and	eax, ecx
	mov	DWORD PTR [rdx], eax
.L21:
	cmp	QWORD PTR 80[r12], 0
	je	.L23
	mov	eax, DWORD PTR 4[rdx]
	test	DWORD PTR AVFMTCTX_NOHEADER[rip], eax
	jne	.L23
	mov	QWORD PTR 80[r12], 0
	mov	rdi, QWORD PTR 16[rsp]
	call	update_noheader_flag@PLT
	mov	rdx, QWORD PTR 72[r12]
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rcx, QWORD PTR 32[r12]
	mov	r8, QWORD PTR 24[r12]
	cmp	rcx, r8
	jge	.L54
	mov	rax, QWORD PTR 8[rdx]
	mov	rbx, QWORD PTR 24[rsp]
	movdqu	xmm0, XMMWORD PTR 32[r12]
	mov	r15, QWORD PTR [rax+rcx*8]
	mov	rax, QWORD PTR 64[r12]
	mov	r13, QWORD PTR [rax+rcx*8]
	movups	XMMWORD PTR [rbx], xmm0
	movdqu	xmm1, XMMWORD PTR 48[r12]
	mov	rax, QWORD PTR 0[r13]
	movups	XMMWORD PTR 16[rbx], xmm1
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR [rax+r14*8]
	add	rdi, 32
	call	reset_packet@PLT
	mov	rdi, QWORD PTR 8[rbx]
	cmp	rdi, QWORD PTR AV_NOPTS_VALUE[rip]
	jne	.L55
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR 8[r15]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rdx], rax
	je	.L27
.L26:
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, r13
	call	set_stream_info_from_input_stream@PLT
	test	eax, eax
	js	.L56
.L27:
	xor	r9d, r9d
	jmp	.L1
.L55:
	mov	edx, DWORD PTR AV_TIME_BASE_Q[rip]
	mov	esi, DWORD PTR 16[r15]
	call	av_rescale_q@PLT
	mov	rdx, QWORD PTR 8[r15]
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 8[r13]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rdx], rax
	jne	.L26
	jmp	.L27
.L54:
	mov	r9d, DWORD PTR 16[rdx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, QWORD PTR 16[rsp]
	call	av_log@PLT
	lea	rdi, 32[r12]
	call	av_packet_unref@PLT
	mov	r9d, DWORD PTR AVERROR_BUG[rip]
	jmp	.L1
.L52:
	lea	rdi, 32[r12]
	mov	DWORD PTR 12[rsp], eax
	call	av_packet_unref@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L1
.L53:
	mov	rax, QWORD PTR 64[r12]
	mov	esi, DWORD PTR 20[rdx]
	xor	edx, edx
	mov	rbx, QWORD PTR [rax]
	lea	rdi, 24[rbx]
	call	av_dict_copy@PLT
	mov	rdx, QWORD PTR 72[r12]
	mov	eax, DWORD PTR AVSTREAM_EVENT_FLAG_METADATA_UPDATED[rip]
	or	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR AVFMT_EVENT_FLAG_METADATA_UPDATED[rip]
	mov	ecx, DWORD PTR [rdx]
	jmp	.L22
.L56:
	mov	rdi, QWORD PTR 24[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	av_packet_unref@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hls_read_packet, .-hls_read_packet
	.comm	AV_TIME_BASE_Q,4,4
	.comm	AV_TIME_BASE,4,4
	.comm	AV_ROUND_DOWN,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_NOPTS_VALUE,8,8
	.comm	AV_LOG_ERROR,4,4
	.comm	AVSTREAM_EVENT_FLAG_METADATA_UPDATED,4,4
	.comm	AVSEEK_FLAG_ANY,4,4
	.comm	AVFMT_EVENT_FLAG_METADATA_UPDATED,4,4
	.comm	AVFMTCTX_NOHEADER,4,4
	.comm	AVERROR_EOF,4,4
	.comm	AVERROR_BUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hls.c_hls_read_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stream index inconsistency: index %d, %d main strea"
	.ascii	"ms, %d subdemuxer streams\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hls_read_packet, %function
hls_read_packet:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	ldr	r5, [r0]
	sub	sp, sp, #28
	str	r1, [sp, #20]
	ldr	r1, [r5, #16]
	str	r0, [sp, #16]
	bl	recheck_discard_flags
	ldr	r3, [r5]
	str	r6, [r5, #16]
	cmp	r3, r6
	ble	.L2
	mvn	r9, #0
	ldr	r8, .L71
	b	.L19
.L58:
	cmp	r3, #0
	beq	.L4
.L18:
	cmn	r9, #1
	beq	.L29
	ldr	r0, [r4, #20]
	ldr	r1, [r8]
	cmp	r1, r0
	beq	.L29
	ldr	r3, [r5, #12]
	ldr	r3, [r3, r9, lsl #2]
	ldr	r2, [r3, #20]
	cmp	r1, r2
	beq	.L6
	mov	r1, r4
	bl	compare_ts_with_wrapdetect
	cmp	r0, #0
	movlt	r9, r6
.L6:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L57
.L19:
	ldr	r3, [r5, #12]
	ldr	r4, [r3, r6, lsl #2]
	ldr	r2, [r4, #52]
	ldr	r3, [r4, #28]
	cmp	r2, #0
	bne	.L58
	cmp	r3, #0
	bne	.L18
.L56:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L19
.L57:
	cmn	r9, #1
	bne	.L59
.L2:
	ldr	r3, .L71+4
	ldr	r3, [r3]
.L1:
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r9, r6
	b	.L6
.L4:
	ldr	r10, .L71+8
	ldr	fp, .L71+12
	add	r7, r4, #16
	str	r6, [sp, #12]
	b	.L17
.L63:
	ldr	r1, [r4, #16]
	cmp	r3, r1
	beq	.L13
.L14:
	mov	r0, r7
	bl	av_packet_unref
.L17:
	mov	r1, r7
	ldr	r0, [r4, #36]
	bl	av_read_frame
	cmp	r0, #0
	blt	.L60
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L61
.L11:
	ldr	r2, [r8]
	ldr	r3, [r5, #4]
	cmp	r3, r2
	beq	.L62
.L12:
	ldr	r3, [r4]
	cmp	r3, r2
	beq	.L53
.L65:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bge	.L63
.L13:
	ldr	r3, [r4, #20]
	cmp	r3, r2
	beq	.L64
	mov	r0, r4
	bl	get_timebase
	ldr	r3, .L71+16
	ldr	r1, .L71+20
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r4, #20]
	bl	av_rescale_rnd
	ldr	r3, [r4]
	sub	r0, r0, r3
	cmp	r0, #0
	blt	.L14
	ldr	r2, [r4, #8]
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L16
	ldr	r2, [r4, #24]
	ldr	r3, [fp]
	tst	r2, r3
	beq	.L14
.L16:
	ldr	r3, [r8]
	ldr	r6, [sp, #12]
	str	r3, [r4]
	b	.L10
.L62:
	ldr	r6, [r4, #20]
	cmp	r2, r6
	beq	.L12
	mov	r0, r4
	bl	get_timebase
	ldr	r3, .L71+24
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r6
	bl	av_rescale_q
	ldr	r2, [r8]
	ldr	r3, [r4]
	str	r0, [r5, #4]
	cmp	r3, r2
	bne	.L65
.L53:
	ldr	r6, [sp, #12]
	b	.L10
.L61:
	mov	r0, r4
	bl	fill_timing_for_id3_timestamped_stream
	b	.L11
.L60:
	mov	r10, r0
	add	r0, r4, #48
	ldr	r6, [sp, #12]
	bl	avio_feof
	cmp	r0, #0
	bne	.L8
	ldr	r2, .L71+4
	ldr	r2, [r2]
	cmp	r2, r10
	bne	.L52
.L8:
	mov	r0, r7
	bl	reset_packet
.L10:
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L56
	b	.L18
.L64:
	ldr	r6, [sp, #12]
	str	r2, [r4]
	b	.L10
.L59:
	ldr	r3, [r5, #12]
	ldr	r0, [sp, #16]
	ldr	r4, [r3, r9, lsl #2]
	lsl	r9, r9, #2
	mov	r1, r4
	bl	update_streams_from_subdemuxer
	subs	r3, r0, #0
	blt	.L66
	ldr	r2, [r4, #36]
	ldr	r6, .L71+28
	ldr	r3, [r2]
	ldr	r1, [r6]
	tst	r3, r1
	beq	.L21
	ldr	r0, [r4, #12]
	cmp	r0, #0
	bne	.L67
.L22:
	bic	r3, r3, r1
	str	r3, [r2]
.L21:
	ldr	r3, [r4, #40]
	cmp	r3, #0
	beq	.L23
	ldr	r1, .L71+32
	ldr	r3, [r2, #4]
	ldr	r1, [r1]
	ands	r3, r3, r1
	bne	.L23
	ldr	r0, [sp, #16]
	str	r3, [r4, #40]
	bl	update_noheader_flag
	ldr	r2, [r4, #36]
.L23:
	ldr	r1, [r4, #16]
	ldr	r3, [r4, #12]
	cmp	r1, r3
	bge	.L68
	ldr	r0, [r4, #32]
	ldr	r3, [r5, #12]
	ldr	r6, [r0, r1, lsl #2]
	ldr	r2, [r2, #8]
	ldr	lr, [r3, r9]
	ldr	r8, [sp, #20]
	ldr	ip, [r6]
	add	r3, r4, #16
	ldr	r7, [r2, r1, lsl #2]
	ldm	r3, {r0, r1, r2, r3}
	stm	r8, {r0, r1, r2, r3}
	str	ip, [r8]
	add	r0, lr, #16
	bl	reset_packet
	ldr	r3, .L71
	ldr	r0, [r8, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L69
.L25:
	ldr	r2, [r7, #4]
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L27
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	bl	set_stream_info_from_input_stream
	subs	r3, r0, #0
	blt	.L70
.L27:
	mov	r3, #0
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L69:
	ldr	r3, .L71+24
	ldr	r1, [r7, #8]
	ldr	r2, [r3]
	bl	av_rescale_q
	str	r0, [r5, #8]
	b	.L25
.L68:
	ldr	r0, [r2, #12]
	ldr	r2, .L71+36
	str	r0, [sp, #4]
	str	r3, [sp]
	ldr	r0, [sp, #16]
	mov	r3, r1
	ldr	r1, [r2]
	ldr	r2, .L71+40
	bl	av_log
	add	r0, r4, #16
	bl	av_packet_unref
	ldr	r3, .L71+44
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L66:
	add	r0, r4, #16
	str	r3, [sp, #12]
	bl	av_packet_unref
	ldr	r3, [sp, #12]
	b	.L1
.L67:
	ldr	r3, [r4, #32]
	ldr	r1, [r2, #16]
	ldr	r7, [r3]
	mov	r2, #0
	add	r0, r7, #16
	bl	av_dict_copy
	ldr	r3, .L71+48
	ldr	r0, [r7, #12]
	ldr	r3, [r3]
	ldr	r2, [r4, #36]
	orr	r0, r0, r3
	ldr	r1, [r6]
	ldr	r3, [r2]
	str	r0, [r7, #12]
	b	.L22
.L52:
	mov	r3, r10
	b	.L1
.L70:
	ldr	r0, [sp, #20]
	str	r3, [sp, #12]
	bl	av_packet_unref
	ldr	r3, [sp, #12]
	b	.L1
.L72:
	.align	2
.L71:
	.word	AV_NOPTS_VALUE
	.word	AVERROR_EOF
	.word	AVSEEK_FLAG_ANY
	.word	AV_PKT_FLAG_KEY
	.word	AV_ROUND_DOWN
	.word	AV_TIME_BASE
	.word	AV_TIME_BASE_Q
	.word	AVFMT_EVENT_FLAG_METADATA_UPDATED
	.word	AVFMTCTX_NOHEADER
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	AVERROR_BUG
	.word	AVSTREAM_EVENT_FLAG_METADATA_UPDATED
	.size	hls_read_packet, .-hls_read_packet
	.comm	AV_TIME_BASE_Q,4,4
	.comm	AV_TIME_BASE,4,4
	.comm	AV_ROUND_DOWN,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVSTREAM_EVENT_FLAG_METADATA_UPDATED,4,4
	.comm	AVSEEK_FLAG_ANY,4,4
	.comm	AVFMT_EVENT_FLAG_METADATA_UPDATED,4,4
	.comm	AVFMTCTX_NOHEADER,4,4
	.comm	AVERROR_EOF,4,4
	.comm	AVERROR_BUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
