	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refresh_manifest
_refresh_manifest:                      ## @refresh_manifest
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movl	(%r13), %r14d
	movl	4(%r13), %r15d
	movq	24(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movups	32(%r13), %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	16(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%r13)
	movl	$0, 4(%r13)
	movl	$0, 8(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13)
	movups	%xmm0, 32(%r13)
	movl	(%rdi), %esi
	xorl	%edx, %edx
	callq	_parse_manifest
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_1
LBB0_20:
	leaq	16(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	cmpq	$0, 40(%r13)
	je	LBB0_27
LBB0_26:
	movq	%r13, %rdi
	callq	_free_subtitle_list
LBB0_27:
	cmpq	$0, 32(%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_29
## %bb.28:
	movq	%r13, %rdi
	callq	_free_audio_list
LBB0_29:
	cmpq	$0, 24(%r13)
	je	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	callq	_free_video_list
LBB0_31:
	movl	%ebx, 8(%r13)
	movl	%r15d, 4(%r13)
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 32(%r13)
	movl	%r14d, (%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_32
LBB0_1:
	movl	(%r13), %r8d
	cmpl	%r14d, %r8d
	jne	LBB0_2
## %bb.3:
	movl	4(%r13), %r8d
	cmpl	%r15d, %r8d
	jne	LBB0_4
## %bb.5:
	movl	8(%r13), %r8d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r8d
	jne	LBB0_22
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r12
	movq	24(%r13), %rax
	movq	(%rax,%r14,8), %r15
	cmpq	$0, 24(%r12)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_get_segment_start_time_based_on_timeline
	movl	%eax, %esi
	cltd
	idivl	(%r12)
	notl	%edx
	addl	%edx, %esi
	movq	%r15, %rdi
	callq	_calc_next_seg_no_from_timelines
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_move_timelines
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_move_segments
	jmp	LBB0_12
LBB0_24:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	cmpq	$0, 40(%r13)
	jne	LBB0_26
	jmp	LBB0_27
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	jmp	LBB0_23
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	jmp	LBB0_23
LBB0_22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
LBB0_23:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_32:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testl	%r15d, %r15d
	movq	%rbx, %r14
	jle	LBB0_20
## %bb.14:
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movlps	%xmm0, -80(%rbp)                ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rbx, %r15
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r12
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	cmpq	$0, 24(%r12)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_get_segment_start_time_based_on_timeline
	movl	%eax, %esi
	cltd
	idivl	(%r12)
	notl	%edx
	addl	%edx, %esi
	movq	%r15, %rdi
	callq	_calc_next_seg_no_from_timelines
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_move_timelines
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_move_segments
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new manifest has mismatched no. of video representations, %d -> %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"new manifest has mismatched no. of audio representations, %d -> %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"new manifest has mismatched no. of subtitles representations, %d -> %d\n"

	.no_dead_strip	_refresh_manifest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refresh_manifest
_refresh_manifest:                      ; @refresh_manifest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x19, [x0, #8]
	ldp	w20, w25, [x19]
	ldp	x27, x28, [x19, #24]
	ldr	w8, [x19, #8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x9, [x19, #40]
	mov	x22, x19
	ldr	x8, [x22, #16]!
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	str	xzr, [x19]
	str	wzr, [x19, #8]
	movi.2d	v0, #0000000000000000
	str	q0, [x22]
	str	q0, [x19, #32]
	ldr	w1, [x0]
	mov	x2, #0
	bl	_parse_manifest
	mov	x23, x0
	cbz	w0, LBB0_3
LBB0_1:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.2:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_av_free
	b	LBB0_14
LBB0_3:
	ldr	w4, [x19]
	cmp	w4, w20
	b.ne	LBB0_21
; %bb.4:
	ldr	w4, [x19, #4]
	cmp	w4, w25
	b.ne	LBB0_22
; %bb.5:
	ldr	w4, [x19, #8]
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w4, w3
	b.ne	LBB0_23
; %bb.6:
	str	x25, [sp]                       ; 8-byte Folded Spill
	cmp	w20, #1
	b.lt	LBB0_26
; %bb.7:
	mov	x21, #0
	lsl	x24, x20, #3
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #8
	cmp	x24, x21
	b.eq	LBB0_26
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x27, x21]
	ldr	x8, [x19, #24]
	ldr	x26, [x8, x21]
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x25, #16]
	mov	x0, x25
	bl	_get_segment_start_time_based_on_timeline
	ldr	w8, [x25]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	mvn	w8, w8
	add	w1, w0, w8
	mov	x0, x26
	bl	_calc_next_seg_no_from_timelines
	str	x0, [x26, #16]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x19
	bl	_move_timelines
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	mov	x1, x25
	mov	x2, x19
	bl	_move_segments
	b	LBB0_8
LBB0_13:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x22]
LBB0_14:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_free_subtitle_list
LBB0_16:
	ldr	x8, [x19, #32]
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_free_audio_list
LBB0_18:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_free_video_list
LBB0_20:
	stp	w25, w21, [x19, #4]
	stp	x28, x22, [x19, #32]
	str	w20, [x19]
	str	x27, [x19, #24]
	b	LBB0_25
LBB0_21:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	b	LBB0_24
LBB0_22:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x25
	b	LBB0_24
LBB0_23:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
LBB0_24:
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
LBB0_25:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_26:
	ldr	x25, [sp]                       ; 8-byte Folded Reload
	cmp	w25, #1
	b.lt	LBB0_1
; %bb.27:
	mov	x21, #0
	lsl	x24, x25, #3
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #8
	cmp	x24, x21
	ldr	x25, [sp]                       ; 8-byte Folded Reload
	b.eq	LBB0_1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x28, x21]
	ldr	x8, [x19, #32]
	ldr	x26, [x8, x21]
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x1, [x25, #16]
	mov	x0, x25
	bl	_get_segment_start_time_based_on_timeline
	ldr	w8, [x25]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	mvn	w8, w8
	add	w1, w0, w8
	mov	x0, x26
	bl	_calc_next_seg_no_from_timelines
	str	x0, [x26, #16]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x19
	bl	_move_timelines
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x26
	mov	x1, x25
	mov	x2, x19
	bl	_move_segments
	b	LBB0_28
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new manifest has mismatched no. of video representations, %d -> %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"new manifest has mismatched no. of audio representations, %d -> %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"new manifest has mismatched no. of subtitles representations, %d -> %d\n"

	.no_dead_strip	_refresh_manifest
.subsections_via_symbols
