	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seg_init
_seg_init:                              ## @seg_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rbx
	movq	$0, -48(%rbp)
	movq	$0, 176(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	$0, 72(%rbx)
LBB0_2:
	cmpq	$0, 80(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movq	$0, 72(%rbx)
LBB0_4:
	cmpq	$0, 8(%rbx)
	jle	LBB0_6
## %bb.5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	136(%rbx), %rsi
	movq	144(%rbx), %rcx
	movq	160(%rbx), %rax
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	cmpq	$1, %rsi
	sbbl	$-1, %edx
	cmpq	$1, %rcx
	sbbl	$-1, %edx
	cmpl	$2, %edx
	jb	LBB0_10
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	172(%rbx), %rsi
	leaq	168(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_parse_times
	testl	%eax, %eax
	jns	LBB0_15
	jmp	LBB0_12
LBB0_13:
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.14:
	leaq	156(%rbx), %rsi
	leaq	152(%rbx), %rdx
	movq	%r14, %rdi
	callq	_parse_frames
	testl	%eax, %eax
	js	LBB0_12
LBB0_15:
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	leaq	64(%rbx), %rdi
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.6(%rip), %rcx
	xorl	%r8d, %r8d
	callq	_av_dict_parse_string
	testl	%eax, %eax
	js	LBB0_21
LBB0_17:
	movq	112(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.18:
	movq	24(%rbx), %rax
	movq	_LIST_TYPE_UNDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.19:
	leaq	L_.str.8(%rip), %rsi
	callq	_av_match_ext
	testq	%rax, %rax
	je	LBB0_29
## %bb.20:
	movq	_LIST_TYPE_CSV@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_21:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%rbx), %rcx
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_32
LBB0_22:
	testq	%rsi, %rsi
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.2(%rip), %rdi
	callq	_av_strdup
	movq	%rax, %rsi
	movq	%rax, 136(%rbx)
LBB0_24:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_av_parse_time
	testl	%eax, %eax
	js	LBB0_31
## %bb.25:
	cmpq	$0, 128(%rbx)
	je	LBB0_15
## %bb.26:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.27:
	movl	20(%rbx), %eax
	cltd
	idivl	%ecx
	subl	%edx, %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_15
LBB0_29:
	movq	112(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_av_match_ext
	testq	%rax, %rax
	je	LBB0_34
## %bb.30:
	movq	_LIST_TYPE_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_31:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	136(%rbx), %rcx
	leaq	L_.str.3(%rip), %rdx
LBB0_32:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_56
LBB0_33:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_8
LBB0_34:
	movq	112(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_av_match_ext
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	_LIST_TYPE_M3U8@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_36:
	movq	112(%rbx), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_av_match_ext
	testq	%rax, %rax
	jne	LBB0_38
## %bb.37:
	movq	_LIST_TYPE_FLAT@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_38:
	movq	_LIST_TYPE_FFCONCAT@GOTPCREL(%rip), %rax
LBB0_39:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_40:
	cmpl	$0, 120(%rbx)
	jne	LBB0_44
## %bb.41:
	movq	_LIST_TYPE_M3U8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_44
## %bb.42:
	movq	%r14, %rdi
	callq	_segment_list_open
	testl	%eax, %eax
	jns	LBB0_48
	jmp	LBB0_12
LBB0_44:
	movq	112(%rbx), %rdi
	callq	_avio_find_protocol_name
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_47
LBB0_46:
	xorl	%eax, %eax
LBB0_47:
	movzbl	%al, %eax
	movl	%eax, 108(%rbx)
LBB0_48:
	movq	24(%rbx), %rax
	movq	_LIST_TYPE_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.49:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.13(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_50:
	movq	%r14, %rdi
	callq	_select_reference_stream
	testl	%eax, %eax
	js	LBB0_12
## %bb.51:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	32(%rbx), %r12
	movq	24(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_av_get_media_type_string
	leaq	L_.str.14(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	104(%rbx), %edi
	movq	40(%r14), %rsi
	xorl	%edx, %edx
	callq	_av_guess_format
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_55
## %bb.52:
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_57
## %bb.53:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%rax), %rcx
	leaq	L_.str.15(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_55:
	movq	_AVERROR_MUXER_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_56
LBB0_57:
	movq	%r14, %rdi
	callq	_segment_mux_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.58:
	movq	%r14, %rdi
	callq	_set_segment_filename
	testl	%eax, %eax
	js	LBB0_12
## %bb.59:
	movq	88(%rbx), %r15
	cmpl	$0, (%rbx)
	je	LBB0_67
## %bb.60:
	movq	(%r14), %rax
	leaq	32(%r15), %r12
	movq	80(%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_62
## %bb.61:
	movq	40(%r15), %rdx
LBB0_62:
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_70
## %bb.63:
	cmpq	$0, 72(%rbx)
	jne	LBB0_68
## %bb.64:
	movq	(%r12), %rax
	movq	$0, (%rax)
	jmp	LBB0_68
LBB0_67:
	leaq	32(%r15), %rdi
	callq	_open_null_ctx
	testl	%eax, %eax
	js	LBB0_12
LBB0_68:
	movl	64(%rbx), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	leaq	L_.str.17(%rip), %rsi
	leaq	L_.str.18(%rip), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_avformat_init_output
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_av_dict_count
	testq	%rax, %rax
	je	LBB0_71
## %bb.69:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%rbx), %rcx
	leaq	L_.str.19(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_56
LBB0_12:
	movl	%eax, %r13d
LBB0_56:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_70:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r15), %rcx
	leaq	L_.str.16(%rip), %rdx
	jmp	LBB0_32
LBB0_71:
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	testl	%r13d, %r13d
	js	LBB0_82
## %bb.72:
	movq	$0, 48(%rbx)
	movl	8(%r14), %eax
	xorl	%edi, %edi
	cmpl	8(%r15), %eax
	sete	%dil
	callq	_av_assert0
	movq	_AVSTREAM_INIT_IN_WRITE_HEADER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_75
## %bb.73:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avformat_write_header
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_56
## %bb.74:
	movl	$1, 40(%rbx)
LBB0_75:
	cmpl	$0, 8(%r14)
	jle	LBB0_78
## %bb.76:
	xorl	%ebx, %ebx
LBB0_77:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	24(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_avpriv_set_pts_info
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_77
LBB0_78:
	cmpq	$0, 16(%r15)
	jle	LBB0_56
## %bb.79:
	cmpq	$0, 16(%r14)
	jns	LBB0_56
## %bb.80:
	movq	$1, 16(%r14)
	jmp	LBB0_56
LBB0_82:
	leaq	32(%r15), %rsi
	movq	%r15, %rdi
	callq	_ff_format_io_close
	jmp	LBB0_56
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTE: the option initial_offset is deprecated,you can use output_ts_offset instead of it\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"segment_time, segment_times, and segment_frames options are mutually exclusive, select just one of them\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"2"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid time duration specification '%s' for segment_time option\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid negative segment_time with segment_atclocktime option set\n"

L_.str.5:                               ## @.str.5
	.asciz	"="

L_.str.6:                               ## @.str.6
	.asciz	":"

L_.str.7:                               ## @.str.7
	.asciz	"Could not parse format options list '%s'\n"

	.comm	_LIST_TYPE_UNDEFINED,8,3        ## @LIST_TYPE_UNDEFINED
L_.str.8:                               ## @.str.8
	.asciz	"csv"

	.comm	_LIST_TYPE_CSV,8,3              ## @LIST_TYPE_CSV
L_.str.9:                               ## @.str.9
	.asciz	"ext"

	.comm	_LIST_TYPE_EXT,8,3              ## @LIST_TYPE_EXT
L_.str.10:                              ## @.str.10
	.asciz	"m3u8"

	.comm	_LIST_TYPE_M3U8,8,3             ## @LIST_TYPE_M3U8
L_.str.11:                              ## @.str.11
	.asciz	"ffcat,ffconcat"

	.comm	_LIST_TYPE_FFCONCAT,8,3         ## @LIST_TYPE_FFCONCAT
	.comm	_LIST_TYPE_FLAT,8,3             ## @LIST_TYPE_FLAT
L_.str.12:                              ## @.str.12
	.asciz	"file"

L_.str.13:                              ## @.str.13
	.asciz	"'ext' list type option is deprecated in favor of 'csv'\n"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.14:                              ## @.str.14
	.asciz	"Selected stream id:%d type:%s\n"

	.comm	_AVERROR_MUXER_NOT_FOUND,4,2    ## @AVERROR_MUXER_NOT_FOUND
	.comm	_AVFMT_NOFILE,4,2               ## @AVFMT_NOFILE
L_.str.15:                              ## @.str.15
	.asciz	"format %s not supported.\n"

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
L_.str.16:                              ## @.str.16
	.asciz	"Failed to open segment '%s'\n"

L_.str.17:                              ## @.str.17
	.asciz	"fflags"

L_.str.18:                              ## @.str.18
	.asciz	"-autobsf"

L_.str.19:                              ## @.str.19
	.asciz	"Some of the provided format options in '%s' are not recognized\n"

	.comm	_AVSTREAM_INIT_IN_WRITE_HEADER,4,2 ## @AVSTREAM_INIT_IN_WRITE_HEADER
	.no_dead_strip	_seg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seg_init
_seg_init:                              ; @seg_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x23, [x0, #48]
	str	xzr, [sp, #24]
	str	xzr, [x23, #176]
	ldr	w8, [x23]
	cbnz	w8, LBB0_2
; %bb.1:
	str	xzr, [x23, #72]
LBB0_2:
	ldr	x8, [x23, #80]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x23]
	str	xzr, [x23, #72]
LBB0_4:
	ldr	x8, [x23, #8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_6:
	ldp	x1, x3, [x23, #136]
	cmp	x1, #0
	cset	w9, ne
	ldr	x8, [x23, #160]
	cmp	x8, #0
	cinc	w9, w9, ne
	cmp	x3, #0
	cinc	w9, w9, ne
	cmp	w9, #2
	b.lo	LBB0_9
; %bb.7:
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
LBB0_8:
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_9:
	cbz	x8, LBB0_11
; %bb.10:
	add	x1, x23, #172
	add	x2, x23, #168
	mov	x0, x19
	mov	x3, x8
	bl	_parse_times
	tbz	w0, #31, LBB0_13
	b	LBB0_60
LBB0_11:
	cbz	x3, LBB0_20
; %bb.12:
	add	x1, x23, #156
	add	x2, x23, #152
	mov	x0, x19
	bl	_parse_frames
	tbnz	w0, #31, LBB0_60
LBB0_13:
	ldr	x1, [x23, #56]
	cbz	x1, LBB0_15
; %bb.14:
	add	x0, x23, #64
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
Lloh15:
	adrp	x3, l_.str.6@PAGE
Lloh16:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	w4, #0
	bl	_av_dict_parse_string
	tbnz	w0, #31, LBB0_19
LBB0_15:
	ldr	x0, [x23, #112]
	cbz	x0, LBB0_42
; %bb.16:
	ldr	x8, [x23, #24]
Lloh17:
	adrp	x9, _LIST_TYPE_UNDEFINED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LIST_TYPE_UNDEFINED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.17:
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_av_match_ext
	cbz	x0, LBB0_26
; %bb.18:
Lloh22:
	adrp	x8, _LIST_TYPE_CSV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LIST_TYPE_CSV@GOTPAGEOFF]
	b	LBB0_34
LBB0_19:
	mov	x20, x0
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x8, [x23, #56]
	str	x8, [sp]
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_29
LBB0_20:
	cbnz	x1, LBB0_22
; %bb.21:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_av_strdup
	mov	x1, x0
	str	x0, [x23, #136]
LBB0_22:
	add	x21, x23, #16
	mov	x0, x21
	mov	w2, #1
	bl	_av_parse_time
	tbnz	w0, #31, LBB0_28
; %bb.23:
	ldr	x8, [x23, #128]
	cbz	x8, LBB0_13
; %bb.24:
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_30
; %bb.25:
	ldr	w9, [x23, #20]
	sdiv	w10, w9, w8
	neg	w9, w9
	madd	w9, w10, w8, w9
	add	w8, w8, w9
	str	w8, [x23, #20]
	b	LBB0_13
LBB0_26:
	ldr	x0, [x23, #112]
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_av_match_ext
	cbz	x0, LBB0_31
; %bb.27:
Lloh33:
	adrp	x8, _LIST_TYPE_EXT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LIST_TYPE_EXT@GOTPAGEOFF]
	b	LBB0_34
LBB0_28:
	mov	x20, x0
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	x8, [x23, #136]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_29:
	mov	x0, x19
	bl	_av_log
	b	LBB0_61
LBB0_30:
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.4@PAGE
Lloh44:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_31:
	ldr	x0, [x23, #112]
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_av_match_ext
	cbz	x0, LBB0_33
; %bb.32:
Lloh47:
	adrp	x8, _LIST_TYPE_M3U8@GOTPAGE
Lloh48:
	ldr	x8, [x8, _LIST_TYPE_M3U8@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:
	ldr	x0, [x23, #112]
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_av_match_ext
Lloh51:
	adrp	x8, _LIST_TYPE_FFCONCAT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _LIST_TYPE_FFCONCAT@GOTPAGEOFF]
Lloh53:
	adrp	x9, _LIST_TYPE_FLAT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _LIST_TYPE_FLAT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_34:
	ldr	x8, [x8]
	str	x8, [x23, #24]
LBB0_35:
	ldr	w9, [x23, #120]
	cbnz	w9, LBB0_38
; %bb.36:
Lloh55:
	adrp	x9, _LIST_TYPE_M3U8@GOTPAGE
Lloh56:
	ldr	x9, [x9, _LIST_TYPE_M3U8@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.37:
	mov	x0, x19
	bl	_segment_list_open
	tbz	w0, #31, LBB0_42
	b	LBB0_60
LBB0_38:
	ldr	x0, [x23, #112]
	bl	_avio_find_protocol_name
	cbz	x0, LBB0_40
; %bb.39:
Lloh58:
	adrp	x1, l_.str.12@PAGE
Lloh59:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_41
LBB0_40:
	mov	w8, #0
LBB0_41:
	str	w8, [x23, #108]
LBB0_42:
Lloh60:
	adrp	x8, _LIST_TYPE_EXT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _LIST_TYPE_EXT@GOTPAGEOFF]
	ldr	x9, [x23, #24]
Lloh62:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
Lloh63:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x2, l_.str.13@PAGE
Lloh67:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_44:
	mov	x0, x19
	bl	_select_reference_stream
	tbnz	w0, #31, LBB0_60
; %bb.45:
Lloh68:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh70:
	ldr	w20, [x8]
	ldr	x21, [x23, #32]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_av_get_media_type_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh71:
	adrp	x2, l_.str.14@PAGE
Lloh72:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
	ldr	w0, [x23, #104]
	ldr	x1, [x19, #40]
	mov	x2, #0
	bl	_av_guess_format
	str	x0, [x23, #96]
	cbz	x0, LBB0_48
; %bb.46:
	ldr	w8, [x0]
Lloh73:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_49
; %bb.47:
Lloh76:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	ldr	x8, [x0, #8]
	str	x8, [sp]
Lloh79:
	adrp	x2, l_.str.15@PAGE
Lloh80:
	add	x2, x2, l_.str.15@PAGEOFF
	b	LBB0_8
LBB0_48:
Lloh81:
	adrp	x8, _AVERROR_MUXER_NOT_FOUND@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AVERROR_MUXER_NOT_FOUND@GOTPAGEOFF]
Lloh83:
	ldr	w20, [x8]
	b	LBB0_61
LBB0_49:
	mov	x0, x19
	bl	_segment_mux_init
	tbnz	w0, #31, LBB0_60
; %bb.50:
	mov	x0, x19
	bl	_set_segment_filename
	tbnz	w0, #31, LBB0_60
; %bb.51:
	ldr	x21, [x23, #88]
	ldr	w8, [x23]
	cbz	w8, LBB0_57
; %bb.52:
	ldr	x8, [x19]
	add	x22, x21, #32
	ldr	x2, [x23, #80]
	cbnz	x2, LBB0_54
; %bb.53:
	ldr	x2, [x21, #40]
LBB0_54:
Lloh84:
	adrp	x9, _AVIO_FLAG_WRITE@GOTPAGE
Lloh85:
	ldr	x9, [x9, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh86:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x22
	mov	x4, #0
	blr	x8
	tbnz	w0, #31, LBB0_62
; %bb.55:
	ldr	x8, [x23, #72]
	cbnz	x8, LBB0_58
; %bb.56:
	ldr	x8, [x22]
	str	xzr, [x8]
	b	LBB0_58
LBB0_57:
	add	x0, x21, #32
	bl	_open_null_ctx
	tbnz	w0, #31, LBB0_60
LBB0_58:
	ldr	w1, [x23, #64]
	add	x0, sp, #24
	mov	w2, #0
	bl	_av_dict_copy
Lloh87:
	adrp	x1, l_.str.17@PAGE
Lloh88:
	add	x1, x1, l_.str.17@PAGEOFF
Lloh89:
	adrp	x2, l_.str.18@PAGE
Lloh90:
	add	x2, x2, l_.str.18@PAGEOFF
	add	x0, sp, #24
	mov	w3, #0
	bl	_av_dict_set
	add	x1, sp, #24
	mov	x0, x21
	bl	_avformat_init_output
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_av_dict_count
	cbz	x0, LBB0_63
; %bb.59:
Lloh91:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh92:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	ldr	x8, [x23, #56]
	str	x8, [sp]
Lloh94:
	adrp	x2, l_.str.19@PAGE
Lloh95:
	add	x2, x2, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x0, sp, #24
	bl	_av_dict_free
Lloh96:
	adrp	x8, _EINVAL@GOTPAGE
Lloh97:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_61
LBB0_60:
	mov	x20, x0
LBB0_61:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_62:
	mov	x20, x0
Lloh99:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh100:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
	ldr	x8, [x21, #40]
	str	x8, [sp]
Lloh102:
	adrp	x2, l_.str.16@PAGE
Lloh103:
	add	x2, x2, l_.str.16@PAGEOFF
	b	LBB0_29
LBB0_63:
	add	x0, sp, #24
	bl	_av_dict_free
	tbnz	w20, #31, LBB0_73
; %bb.64:
	str	xzr, [x23, #48]
	ldr	w8, [x19, #8]
	ldr	w9, [x21, #8]
	cmp	w8, w9
	cset	w0, eq
	bl	_av_assert0
Lloh104:
	adrp	x8, _AVSTREAM_INIT_IN_WRITE_HEADER@GOTPAGE
Lloh105:
	ldr	x8, [x8, _AVSTREAM_INIT_IN_WRITE_HEADER@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_67
; %bb.65:
	mov	x0, x21
	mov	x1, #0
	bl	_avformat_write_header
	mov	x20, x0
	tbnz	w0, #31, LBB0_61
; %bb.66:
	mov	w8, #1
	str	w8, [x23, #40]
LBB0_67:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_70
; %bb.68:
	mov	x22, #0
LBB0_69:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	lsl	x9, x22, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x19, #24]
	ldr	x0, [x10, x9]
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	bl	_avpriv_set_pts_info
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_69
LBB0_70:
	ldr	x8, [x21, #16]
	cmp	x8, #1
	b.lt	LBB0_61
; %bb.71:
	ldr	x8, [x19, #16]
	tbz	x8, #63, LBB0_61
; %bb.72:
	mov	w8, #1
	str	x8, [x19, #16]
	b	LBB0_61
LBB0_73:
	add	x1, x21, #32
	mov	x0, x21
	bl	_ff_format_io_close
	b	LBB0_61
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTE: the option initial_offset is deprecated,you can use output_ts_offset instead of it\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"segment_time, segment_times, and segment_frames options are mutually exclusive, select just one of them\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"2"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid time duration specification '%s' for segment_time option\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid negative segment_time with segment_atclocktime option set\n"

l_.str.5:                               ; @.str.5
	.asciz	"="

l_.str.6:                               ; @.str.6
	.asciz	":"

l_.str.7:                               ; @.str.7
	.asciz	"Could not parse format options list '%s'\n"

	.comm	_LIST_TYPE_UNDEFINED,8,3        ; @LIST_TYPE_UNDEFINED
l_.str.8:                               ; @.str.8
	.asciz	"csv"

	.comm	_LIST_TYPE_CSV,8,3              ; @LIST_TYPE_CSV
l_.str.9:                               ; @.str.9
	.asciz	"ext"

	.comm	_LIST_TYPE_EXT,8,3              ; @LIST_TYPE_EXT
l_.str.10:                              ; @.str.10
	.asciz	"m3u8"

	.comm	_LIST_TYPE_M3U8,8,3             ; @LIST_TYPE_M3U8
l_.str.11:                              ; @.str.11
	.asciz	"ffcat,ffconcat"

	.comm	_LIST_TYPE_FFCONCAT,8,3         ; @LIST_TYPE_FFCONCAT
	.comm	_LIST_TYPE_FLAT,8,3             ; @LIST_TYPE_FLAT
l_.str.12:                              ; @.str.12
	.asciz	"file"

l_.str.13:                              ; @.str.13
	.asciz	"'ext' list type option is deprecated in favor of 'csv'\n"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.14:                              ; @.str.14
	.asciz	"Selected stream id:%d type:%s\n"

	.comm	_AVERROR_MUXER_NOT_FOUND,4,2    ; @AVERROR_MUXER_NOT_FOUND
	.comm	_AVFMT_NOFILE,4,2               ; @AVFMT_NOFILE
l_.str.15:                              ; @.str.15
	.asciz	"format %s not supported.\n"

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
l_.str.16:                              ; @.str.16
	.asciz	"Failed to open segment '%s'\n"

l_.str.17:                              ; @.str.17
	.asciz	"fflags"

l_.str.18:                              ; @.str.18
	.asciz	"-autobsf"

l_.str.19:                              ; @.str.19
	.asciz	"Some of the provided format options in '%s' are not recognized\n"

	.comm	_AVSTREAM_INIT_IN_WRITE_HEADER,4,2 ; @AVSTREAM_INIT_IN_WRITE_HEADER
	.no_dead_strip	_seg_init
.subsections_via_symbols
