	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function segment_end
_segment_end:                           ## @segment_end
	.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, %r15d
	movl	%esi, %r12d
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	56(%rax), %rbx
	movq	_AV_TIMECODE_STR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_av_write_frame
	testl	%r12d, %r12d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_av_write_trailer
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 72(%r12)
	je	LBB0_7
## %bb.8:
	cmpq	$0, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	8(%r12), %rsi
	movq	_LIST_TYPE_M3U8@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_26
LBB0_10:
	movl	$24, %edi
	callq	_av_mallocz
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r13                ## 8-byte Reload
	leaq	24(%r13), %rsi
	movq	%rax, %rdi
	movl	$24, %edx
	callq	_memcpy
	movq	16(%r12), %rdi
	callq	_av_strdup
	movq	%rax, 16(%r12)
	leaq	96(%r13), %r14
	movq	96(%r13), %rcx
	movq	%r14, %rax
	movq	%r12, %rdi
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	104(%r13), %rax
	addq	$8, %rax
	movq	%rcx, %rdi
LBB0_14:
	movq	%r12, (%rax)
	movq	%r12, 104(%r13)
	movq	(%r13), %rax
	testq	%rax, %rax
	movq	%r13, %r12
	je	LBB0_17
## %bb.15:
	cmpq	%rax, 16(%r12)
	jl	LBB0_17
## %bb.16:
	movq	%rdi, -64(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, (%r14)
	addq	$16, %rdi
	callq	_av_freep
	leaq	-64(%rbp), %rdi
	callq	_av_freep
LBB0_17:
	movq	%rbx, %rdi
	callq	_segment_list_open
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	js	LBB0_48
## %bb.18:
	movq	(%r14), %rdx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -64(%rbp)
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	64(%r12), %edi
	movq	8(%r12), %rsi
	movq	%rbx, %rcx
	callq	_segment_list_print_entry
	movq	-64(%rbp), %rax
	movq	8(%rax), %rdx
	jmp	LBB0_20
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_50
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_21:
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.22:
	movq	_LIST_TYPE_M3U8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r12)
	jne	LBB0_24
## %bb.23:
	movl	64(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_avio_printf
LBB0_24:
	leaq	64(%r12), %rsi
	movq	%rbx, %rdi
	callq	_ff_format_io_close
	cmpq	$0, 88(%r12)
	je	LBB0_27
## %bb.25:
	movl	80(%r12), %edi
	movq	72(%r12), %rsi
	movq	%rbx, %rdx
	callq	_ff_rename
	jmp	LBB0_27
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_49
LBB0_26:
	movl	64(%r12), %edi
	leaq	24(%r12), %rdx
	movq	%rbx, %rcx
	callq	_segment_list_print_entry
	movl	64(%r12), %edi
	callq	_avio_flush
LBB0_27:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %r8
	movq	56(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	incq	16(%r12)
	cmpq	$0, 48(%r12)
	je	LBB0_48
## %bb.28:
	movl	24(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_36
## %bb.29:
	movl	4(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_38
## %bb.30:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	24(%rcx), %r15
	movq	16(%rcx), %rdx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movq	8(%rbx), %rcx
	cmpq	%rsi, (%rcx)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_32 Depth=1
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_32
	jmp	LBB0_38
LBB0_36:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_37
LBB0_33:
	movl	4(%rbx), %r14d
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_av_timecode_init_from_string
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_34
## %bb.35:
	movl	24(%r12), %ebx
	subl	28(%r12), %ebx
	movl	%r14d, %edi
	callq	_av_q2d
	imull	%ebx, %eax
	addl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_av_timecode_make_string
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	jmp	LBB0_38
LBB0_34:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_37:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_38:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_48
## %bb.39:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_44:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %ebx
	subl	28(%rax), %ebx
	movl	%r14d, %edi
	callq	_av_q2d
	imull	%ebx, %eax
	addl	%eax, -112(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%r13, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_av_timecode_make_string
	movq	%rbx, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_45:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_46:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	%rbx, %rsp
	movl	4(%r15), %eax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
LBB0_47:                                ##   in Loop: Header=BB0_40 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_48
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rcx
	jne	LBB0_47
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	%rsp, %rbx
	movq	_AV_TIMECODE_STR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	movl	4(%rax), %r14d
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_46
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	_av_timecode_init_from_string
	testq	%rax, %rax
	jns	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_45
LBB0_48:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_49:
	callq	_ff_format_io_close
LBB0_50:
	movq	-128(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.51:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ## @AV_TIMECODE_STR_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failure occurred when ending segment '%s'\n"

	.comm	_LIST_TYPE_M3U8,8,3             ## @LIST_TYPE_M3U8
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"#EXT-X-ENDLIST\n"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"segment:'%s' count:%d ended\n"

L_.str.3:                               ## @.str.3
	.asciz	"timecode"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Could not increment global timecode, error occurred during timecode creation.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Could not increment global timecode, no global timecode metadata found.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Could not increment stream %d timecode, error occurred during timecode creation.\n"

	.no_dead_strip	_segment_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function segment_end
_segment_end:                           ; @segment_end
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x28, [x0, #32]
	ldr	x19, [x28, #56]
Lloh3:
	adrp	x8, _AV_TIMECODE_STR_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_TIMECODE_STR_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x19, LBB0_21
; %bb.1:
	mov	x26, x19
	ldr	w8, [x26, #8]!
	cbz	w8, LBB0_21
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_av_write_frame
	cbz	w22, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_av_write_trailer
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
LBB0_4:
	ldr	x8, [x28, #72]
	cbz	x8, LBB0_25
LBB0_5:
	ldr	x8, [x28]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	x1, [x28, #8]
Lloh8:
	adrp	x8, _LIST_TYPE_M3U8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIST_TYPE_M3U8@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_24
LBB0_7:
	mov	w0, #24
	bl	_av_mallocz
	stur	x0, [x29, #-96]
	cbz	x0, LBB0_23
; %bb.8:
	mov	x22, x0
	add	x1, x28, #24
	mov	w2, #24
	bl	_memcpy
	ldr	x0, [x22, #16]
	bl	_av_strdup
	str	x0, [x22, #16]
	mov	x20, x28
	ldr	x9, [x20, #96]!
	mov	x10, x20
	mov	x8, x22
	cbz	x9, LBB0_10
; %bb.9:
	ldr	x8, [x28, #104]
	add	x10, x8, #8
	mov	x8, x9
LBB0_10:
	str	x22, [x10]
	str	x22, [x28, #104]
	ldr	x9, [x28]
	cbz	x9, LBB0_13
; %bb.11:
	ldr	x10, [x28, #16]
	cmp	x10, x9
	b.lt	LBB0_13
; %bb.12:
	stur	x8, [x29, #-96]
	ldr	x9, [x8, #8]
	str	x9, [x20]
	add	x0, x8, #16
	bl	_av_freep
	sub	x0, x29, #96
	bl	_av_freep
LBB0_13:
	mov	x0, x21
	bl	_segment_list_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_46
; %bb.14:
	ldr	x2, [x20]
	stur	x2, [x29, #-96]
	cbz	x2, LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28, #64]
	ldr	x1, [x28, #8]
	mov	x3, x21
	bl	_segment_list_print_entry
	ldur	x8, [x29, #-96]
	ldr	x2, [x8, #8]
	stur	x2, [x29, #-96]
	cbnz	x2, LBB0_15
LBB0_16:
	cbz	w24, LBB0_19
; %bb.17:
	ldr	x8, [x28, #8]
Lloh11:
	adrp	x9, _LIST_TYPE_M3U8@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LIST_TYPE_M3U8@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	ldr	w0, [x28, #64]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_avio_printf
LBB0_19:
	add	x1, x28, #64
	mov	x0, x21
	bl	_ff_format_io_close
	ldr	x8, [x28, #88]
	cbz	x8, LBB0_25
; %bb.20:
	ldr	w0, [x28, #80]
	ldr	x1, [x28, #72]
	mov	x2, x21
	bl	_ff_rename
	b	LBB0_25
LBB0_21:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_47
LBB0_22:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [x19]
	str	x8, [sp, #-16]!
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
	add	sp, sp, #16
	ldr	x8, [x28, #72]
	cbnz	x8, LBB0_5
	b	LBB0_25
LBB0_23:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_46
LBB0_24:
	ldr	w0, [x28, #64]
	add	x2, x28, #24
	mov	x3, x21
	bl	_segment_list_print_entry
	ldr	w0, [x28, #64]
	bl	_avio_flush
LBB0_25:
Lloh27:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x8, [x28, #56]
	ldr	x9, [x28, #16]
	ldr	w8, [x8]
	stp	x8, x9, [sp, #-16]!
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_av_log
	add	sp, sp, #16
	ldr	x8, [x28, #16]
	add	x8, x8, #1
	str	x8, [x28, #16]
	ldr	x8, [x28, #48]
	cbz	x8, LBB0_46
; %bb.26:
	stur	w22, [x29, #-124]               ; 4-byte Folded Spill
	stp	x26, x25, [x29, #-120]          ; 16-byte Folded Spill
	mov	x24, x21
	ldr	w0, [x24, #24]!
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
Lloh34:
	adrp	x27, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh35:
	ldr	x27, [x27, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	cbz	x0, LBB0_31
; %bb.27:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.28:
	ldr	x9, [x21, #16]
	ldr	x10, [x27]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x12, [x11, #8]
	ldr	x12, [x12]
	cmp	x12, x10
	b.eq	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_29
	b	LBB0_36
LBB0_31:
Lloh36:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_35
LBB0_32:
	ldr	w25, [x11, #4]
	ldr	w2, [x0]
	sub	x0, x29, #96
	mov	x1, x25
	mov	x3, x21
	bl	_av_timecode_init_from_string
	tbnz	w0, #31, LBB0_34
; %bb.33:
	ldp	w8, w9, [x28, #24]
	sub	w20, w8, w9
	mov	x0, x25
	bl	_av_q2d
	ldur	w8, [x29, #-96]
	madd	w8, w20, w0, w8
	stur	w8, [x29, #-96]
	sub	x0, x29, #96
	mov	x1, x23
	mov	w2, #0
	bl	_av_timecode_make_string
	mov	x2, x0
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	w3, #0
	bl	_av_dict_set
	b	LBB0_36
LBB0_34:
Lloh43:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.4@PAGE
Lloh47:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_35:
	mov	x0, x21
	bl	_av_log
LBB0_36:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.37:
	mov	x24, #0
Lloh48:
	adrp	x23, l_.str.3@PAGE
Lloh49:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_41 Depth=1
	ldp	w8, w9, [x28, #24]
	sub	w22, w8, w9
	mov	x0, x26
	bl	_av_q2d
	ldur	w8, [x29, #-104]
	madd	w8, w22, w0, w8
	stur	w8, [x29, #-104]
	ldr	x8, [x21, #16]
	ldr	x26, [x8, x24, lsl #3]
	sub	x0, x29, #104
	mov	x1, x25
	mov	w2, #0
	bl	_av_timecode_make_string
	mov	x2, x0
	mov	x0, x26
	mov	x1, x23
	mov	w3, #0
	bl	_av_dict_set
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	sp, x20
	ldr	w8, [x21, #4]
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_45
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x20, sp
Lloh50:
	adrp	x8, _AV_TIMECODE_STR_SIZE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AV_TIMECODE_STR_SIZE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	mov	x9, x8
Lloh53:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh54:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x24, lsl #3]
	ldp	w0, w26, [x8]
	mov	x1, x23
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_39
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	w2, [x0]
	sub	x0, x29, #104
	mov	x1, x26
	mov	x3, x21
	bl	_av_timecode_init_from_string
	tbz	x0, #63, LBB0_38
; %bb.44:                               ;   in Loop: Header=BB0_41 Depth=1
Lloh55:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	str	x24, [sp, #-16]!
	mov	x0, x21
Lloh58:
	adrp	x2, l_.str.6@PAGE
Lloh59:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
	add	sp, sp, #16
	b	LBB0_39
LBB0_45:
	ldp	x26, x25, [x29, #-120]          ; 16-byte Folded Reload
	ldur	w22, [x29, #-124]               ; 4-byte Folded Reload
LBB0_46:
	mov	x0, x19
	mov	x1, x26
	bl	_ff_format_io_close
LBB0_47:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ; @AV_TIMECODE_STR_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failure occurred when ending segment '%s'\n"

	.comm	_LIST_TYPE_M3U8,8,3             ; @LIST_TYPE_M3U8
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"#EXT-X-ENDLIST\n"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"segment:'%s' count:%d ended\n"

l_.str.3:                               ; @.str.3
	.asciz	"timecode"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Could not increment global timecode, error occurred during timecode creation.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Could not increment global timecode, no global timecode metadata found.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Could not increment stream %d timecode, error occurred during timecode creation.\n"

	.no_dead_strip	_segment_end
.subsections_via_symbols
