	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dash_flush
_dash_flush:                            ## @dash_flush
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %edi
	callq	_avio_find_protocol_name
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	sete	%al
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	$-1, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	testl	%eax, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	js	LBB0_10
## %bb.4:
	movq	56(%r8), %rax
	movq	%rsi, %rcx
	shlq	$7, %rcx
	leaq	(%rcx,%rsi,8), %rcx
	movl	(%rax,%rcx), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	cmpq	$0, 88(%r8)
	je	LBB0_10
## %bb.5:
	cmpl	$0, 80(%r8)
	je	LBB0_6
LBB0_10:
	movl	(%r12), %eax
	testl	%eax, %eax
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_11
## %bb.12:
	shrl	$31, -60(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movl	$116, %r15d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-8(%r13,%r15), %esi
	movq	-60(%r13,%r15), %rdx
	movq	-68(%r13,%r15), %rcx
	subq	%rdx, %rcx
	movl	-84(%r13,%r15), %r8d
	movl	-44(%rbp), %r9d
	movl	-72(%rbp), %eax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_add_segment
	addq	$16, %rsp
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-116(%r13,%r15), %r8d
	movl	-12(%r13,%r15), %r9d
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %ecx
	callq	_av_log
	movl	-44(%rbp), %eax
	addl	%eax, -84(%r13,%r15)
	movl	(%r12), %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$136, %r15
	cmpq	%rcx, %r14
	jge	LBB0_36
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r8), %r13
	movq	8(%r12), %rcx
	movq	(%rcx,%r14,8), %rdi
	movl	$0, -72(%rbp)
	cmpq	$0, 4(%r13,%r15)
	je	LBB0_35
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%r14, %rsi
	sete	%cl
	orb	-60(%rbp), %cl                  ## 1-byte Folded Reload
	je	LBB0_15
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	cmpq	$0, 64(%r8)
	je	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r8), %rcx
	movl	-12(%r13,%r15), %edi
	movl	12(%r13,%r15), %r8d
	movl	$4, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_35
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, 40(%r8)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -116(%r13,%r15)
	jg	LBB0_35
	jmp	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-92(%r13,%r15), %rax
	movq	_SEGMENT_TYPE_MP4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, 16(%r13,%r15)
	je	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r15,%r13), %rsi
	addq	$-116, %rsi
	movq	%r8, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rdx
	movq	%r8, %rbx
	callq	_flush_dynbuf
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_65
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	$0, 4(%r13,%r15)
	cmpq	$0, 64(%rbx)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-84(%r13,%r15), %edx
	movl	-12(%r13,%r15), %esi
	movq	%r12, %rdi
	leaq	-72(%rbp), %rcx
	callq	_find_index_range
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r15,%r13), %rsi
	movl	-4(%r13,%r15), %edx
	movq	%r12, %rdi
	callq	_dashenc_io_close
	cmpb	$0, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-12(%r13,%r15), %esi
	movl	-4(%r13,%r15), %edi
	callq	_avpriv_io_move
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_65
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -80(%r13,%r15)
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %r12d
	subl	-76(%r13,%r15), %r12d
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	shll	$3, %r12d
	movq	-68(%r13,%r15), %rdi
	subq	-60(%r13,%r15), %rdi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movl	%eax, %ecx
	movl	%r12d, %eax
	movq	-120(%rbp), %r12                ## 8-byte Reload
	cltd
	idivl	%ecx
	movl	%eax, -80(%r13,%r15)
LBB0_31:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$0, -76(%r13,%r15)
	cmpl	$0, -52(%r13,%r15)
	jne	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %ebx
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	shll	$3, %ebx
	movq	-68(%r13,%r15), %rdi
	subq	-60(%r13,%r15), %rdi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, -52(%r13,%r15)
	jmp	LBB0_34
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-28(%r13,%r15), %rax
	movl	(%rax), %edi
	callq	_write_styp
	jmp	LBB0_23
LBB0_11:
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_36
LBB0_65:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_36:
	movl	16(%r8), %ecx
	testl	%ecx, %ecx
	je	LBB0_43
## %bb.37:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_43
## %bb.38:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r8), %rsi
	movl	68(%rsi,%rbx), %edx
	addl	20(%r8), %ecx
	subl	%ecx, %edx
	testl	%edx, %edx
	jle	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_dashenc_delete_media_segments
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	(%r12), %eax
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	16(%r8), %ecx
	addq	$136, %rbx
	incq	%r14
	jmp	LBB0_39
LBB0_43:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_58
## %bb.44:
	cmpl	$0, (%r12)
	jle	LBB0_58
## %bb.45:
	xorl	%ebx, %ebx
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_57:                                ##   in Loop: Header=BB0_46 Depth=1
	incq	%rbx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_58
LBB0_46:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_53 Depth 2
                                        ##     Child Loop BB0_55 Depth 2
	movq	56(%r8), %r12
	movq	%rbx, %rax
	shlq	$7, %rax
	leaq	(%rax,%rbx,8), %r13
	movq	88(%r12,%r13), %rax
	testq	%rax, %rax
	je	LBB0_57
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	cmpq	$0, 96(%r12,%r13)
	je	LBB0_57
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=1
	leaq	(%r12,%r13), %r14
	addq	$88, %r14
	movl	(%rax), %edi
	callq	_avio_tell
	movl	%eax, %r15d
	movq	(%r14), %rdi
	callq	_av_write_trailer
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	cmpq	$0, 48(%r8)
	je	LBB0_57
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	leaq	(%r12,%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r8, %r15
	callq	_avio_tell
	movl	%eax, %r14d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	leaq	-44(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_get_start_index_number
	movslq	68(%r12,%r13), %rax
	cmpl	%eax, -44(%rbp)
	jge	LBB0_56
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	24(%r12,%r13), %rcx
	movq	_SEGMENT_TYPE_MP4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_56
## %bb.51:                              ##   in Loop: Header=BB0_46 Depth=1
	subl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%r14d, 80(%r12,%r13)
	movslq	-44(%rbp), %rcx
	cmpl	%eax, %ecx
	jge	LBB0_56
## %bb.52:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	72(%r12,%r13), %rdx
	movl	%eax, %edi
	subl	%ecx, %edi
	movq	%rcx, %r8
	notq	%r8
	addq	%rax, %r8
	andq	$3, %rdi
	je	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rcx,8), %rsi
	addl	%r14d, (%rsi)
	incq	%rcx
	decq	%rdi
	jne	LBB0_53
LBB0_54:                                ##   in Loop: Header=BB0_46 Depth=1
	cmpq	$3, %r8
	jb	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rcx,8), %rsi
	addl	%r14d, (%rsi)
	movq	8(%rdx,%rcx,8), %rsi
	addl	%r14d, (%rsi)
	movq	16(%rdx,%rcx,8), %rsi
	addl	%r14d, (%rsi)
	movq	24(%rdx,%rcx,8), %rsi
	addl	%r14d, (%rsi)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_55
	jmp	LBB0_56
LBB0_58:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_64
## %bb.59:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_63
## %bb.60:
	cmpq	$0, 40(%r8)
	je	LBB0_63
## %bb.61:
	movq	24(%r8), %rcx
	incq	%rcx
	movq	%rcx, 24(%r8)
	cmpq	32(%r8), %rcx
	jne	LBB0_64
## %bb.62:
	movq	$0, 24(%r8)
LBB0_63:
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_write_manifest
LBB0_64:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 72(%r8)
	je	LBB0_10
## %bb.7:
	movq	8(%rax,%rcx), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rdi
	je	LBB0_10
## %bb.8:
	movq	16(%rax,%rcx), %rax
	cmpq	%rdx, %rax
	je	LBB0_10
## %bb.9:
	subq	%rax, %rdi
	movq	8(%r12), %rax
	movq	(%rax,%rsi,8), %rax
	movl	(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	cltd
	idivl	(%r8)
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_SEGMENT_TYPE_MP4,8,3           ## @SEGMENT_TYPE_MP4
L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"Representation %d media segment %d written to: %s\n"

	.no_dead_strip	_dash_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dash_flush
_dash_flush:                            ; @dash_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x25, x2
	str	w1, [sp, #20]                   ; 4-byte Folded Spill
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_avio_find_protocol_name
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w8, eq
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	tbnz	w25, #31, LBB0_9
LBB0_2:
	ldr	x8, [x21, #56]
	mov	w9, #136
	umull	x9, w25, w9
	ldr	w9, [x8, x9]
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x9, [x21, #88]
	cbz	x9, LBB0_10
; %bb.3:
	ldr	w9, [x21, #80]
	cbnz	w9, LBB0_10
; %bb.4:
	ldr	x9, [x21, #72]
	cbz	x9, LBB0_10
; %bb.5:
	mov	w9, w25
	mov	w10, #136
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #8]
Lloh2:
	adrp	x11, _AV_NOPTS_VALUE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_10
; %bb.6:
	mov	w12, #136
	madd	x8, x9, x12, x8
	ldr	x8, [x8, #16]
	cmp	x8, x11
	b.eq	LBB0_10
; %bb.7:
	sub	x0, x10, x8
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_av_rescale_q
	ldr	w8, [x21]
	sdiv	w8, w0, w8
	add	w8, w8, #1
	b	LBB0_11
LBB0_8:
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
	tbz	w25, #31, LBB0_2
LBB0_9:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_10:
	mov	w8, #-1
LBB0_11:
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.12:
	mov	x19, #0
	mov	x24, #0
	mov	w22, #0
	lsr	w28, w25, #31
	mov	w9, #136
	umull	x9, w25, w9
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	str	w28, [sp, #24]                  ; 4-byte Folded Spill
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x23, x25, x19
	ldr	w1, [x23, #108]
	ldp	x8, x2, [x23, #48]
	sub	x3, x8, x2
	ldr	w4, [x23, #32]
	ldp	w6, w5, [sp, #40]
	mov	x0, x27
	ldr	w7, [sp, #28]                   ; 4-byte Folded Reload
	bl	_add_segment
Lloh8:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w4, [x23]
	ldr	w5, [x23, #104]
	mov	x0, x20
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x24
	bl	_av_log
	ldr	w8, [sp, #44]
	ldr	w9, [x23, #32]
	add	w8, w9, w8
	str	w8, [x23, #32]
	ldr	w8, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	add	x19, x19, #136
	cmp	x24, w8, sxtw
	b.ge	LBB0_36
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21, #56]
	add	x27, x25, x19
	ldr	x9, [x20, #8]
	ldr	x23, [x9, x24, lsl #3]
	str	wzr, [sp, #40]
	ldr	x9, [x27, #120]
	cbz	x9, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x9, x19
	cset	w9, eq
	orr	w9, w28, w9
	tbz	w9, #0, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x25, x19
	ldr	w0, [x8, #104]
	ldr	x3, [x21, #8]
	ldr	w4, [x8, #128]
	mov	w1, #4
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	b	LBB0_25
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x23, #8]
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x21, #40]
	cbz	x9, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x25, x19]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.gt	LBB0_14
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x25, x19
	ldr	x9, [x8, #24]
Lloh18:
	adrp	x10, _SEGMENT_TYPE_MP4@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SEGMENT_TYPE_MP4@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x8, #132]
	cbnz	w8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x25, x19
	ldr	x8, [x8, #88]
	ldr	w0, [x8]
	bl	_write_styp
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x2, sp, #44
	mov	x0, x21
	mov	x1, x27
	bl	_flush_dynbuf
	mov	x22, x0
	tbnz	w0, #31, LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [x27, #120]
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x25, x19
	ldr	w1, [x8, #104]
	ldr	w2, [x8, #32]
	add	x3, sp, #40
	mov	x0, x20
	bl	_find_index_range
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x25, x19
	add	x1, x26, #116
	ldr	w2, [x26, #112]
	mov	x0, x20
	bl	_dashenc_io_close
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x26, #112]
	ldr	w1, [x26, #104]
	bl	_avpriv_io_move
	mov	x22, x0
	tbnz	w0, #31, LBB0_36
LBB0_30:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x25, x19
	ldr	w8, [x26, #36]
	cbnz	w8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [sp, #44]
	ldr	w9, [x26, #40]
	sub	w8, w8, w9
Lloh21:
	adrp	x9, _AV_TIME_BASE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AV_TIME_BASE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w28, w8, #3
	ldp	x8, x9, [x26, #48]
	sub	x0, x8, x9
	ldr	w1, [x23]
Lloh24:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_av_rescale_q
	sdiv	w8, w28, w0
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
	str	w8, [x26, #36]
LBB0_32:                                ;   in Loop: Header=BB0_15 Depth=1
	str	wzr, [x26, #40]
	ldr	w8, [x26, #64]
	cbnz	w8, LBB0_13
; %bb.33:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [sp, #44]
Lloh27:
	adrp	x9, _AV_TIME_BASE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AV_TIME_BASE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w28, w8, #3
	add	x8, x25, x19
	ldp	x9, x8, [x8, #48]
	sub	x0, x9, x8
	ldr	w1, [x23]
Lloh30:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	bl	_av_rescale_q
	sdiv	w8, w28, w0
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_13
; %bb.34:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w8, [x26, #64]
	b	LBB0_13
LBB0_35:
	mov	w22, #0
LBB0_36:
	ldr	w9, [x21, #16]
	cbz	w9, LBB0_43
; %bb.37:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.38:
	mov	x19, #0
	mov	w23, #1
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #56]
	add	x1, x10, x19
	ldr	w10, [x1, #68]
	ldr	w11, [x21, #20]
	add	w9, w9, w11
	sub	w2, w10, w9
	cmp	w2, #1
	b.lt	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x20
	bl	_dashenc_delete_media_segments
	ldr	w8, [x20]
LBB0_41:                                ;   in Loop: Header=BB0_39 Depth=1
	cmp	x23, w8, sxtw
	b.ge	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w9, [x21, #16]
	add	x19, x19, #136
	add	x23, x23, #1
	b	LBB0_39
LBB0_43:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_55
; %bb.44:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.45:
	mov	x19, #0
	mov	w26, #136
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x20]
	cmp	x19, x8
	b.ge	LBB0_55
LBB0_47:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
	ldr	x27, [x21, #56]
	madd	x24, x19, x26, x27
	mov	x25, x24
	ldr	x8, [x25, #88]!
	cbz	x8, LBB0_46
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	madd	x9, x19, x26, x27
	ldr	x9, [x9, #96]
	cbz	x9, LBB0_46
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w0, [x8]
	bl	_avio_tell
	mov	x23, x0
	ldr	x0, [x25]
	bl	_av_write_trailer
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_46
; %bb.50:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_avio_tell
	mov	x25, x0
	add	x2, sp, #44
	add	x3, sp, #40
	mov	x0, x24
	mov	x1, x21
	bl	_get_start_index_number
	ldr	w9, [sp, #44]
	madd	x8, x19, x26, x27
	ldrsw	x8, [x8, #68]
	cmp	w9, w8
	b.ge	LBB0_46
; %bb.51:                               ;   in Loop: Header=BB0_47 Depth=1
	madd	x9, x19, x26, x27
	ldr	x9, [x9, #24]
Lloh33:
	adrp	x10, _SEGMENT_TYPE_MP4@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SEGMENT_TYPE_MP4@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_46
; %bb.52:                               ;   in Loop: Header=BB0_47 Depth=1
	madd	x10, x19, x26, x27
	ldr	w11, [x10, #80]
	sub	w9, w25, w23
	add	w11, w11, w9
	str	w11, [x10, #80]
	ldrsw	x11, [sp, #44]
	cmp	w11, w8
	b.ge	LBB0_46
; %bb.53:                               ;   in Loop: Header=BB0_47 Depth=1
	madd	x10, x19, x26, x27
	ldr	x10, [x10, #72]
	add	x10, x10, x11, lsl #3
	sub	x8, x8, x11
LBB0_54:                                ;   Parent Loop BB0_47 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10], #8
	ldr	w12, [x11]
	add	w12, w12, w9
	str	w12, [x11]
	subs	x8, x8, #1
	b.ne	LBB0_54
	b	LBB0_46
LBB0_55:
	tbnz	w22, #31, LBB0_61
; %bb.56:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_60
; %bb.57:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_60
; %bb.58:
	ldp	x8, x9, [x21, #24]
	add	x8, x8, #1
	str	x8, [x21, #24]
	cmp	x8, x9
	b.ne	LBB0_61
; %bb.59:
	str	xzr, [x21, #24]
LBB0_60:
	mov	x0, x20
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_write_manifest
	mov	x22, x0
LBB0_61:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_SEGMENT_TYPE_MP4,8,3           ; @SEGMENT_TYPE_MP4
l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"Representation %d media segment %d written to: %s\n"

	.no_dead_strip	_dash_flush
.subsections_via_symbols
