	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_file
_open_file:                             ## @open_file
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_avformat_close_input
LBB0_2:
	xorl	%eax, %eax
	callq	_avformat_alloc_context
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_AVFMT_FLAG_CUSTOM_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%r14), %ecx
	orl	%ecx, (%rax)
	movl	4(%r14), %ecx
	movl	%ecx, 16(%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ff_copy_whiteblacklists
	testl	%eax, %eax
	js	LBB0_20
## %bb.4:
	movl	%r15d, %eax
	leaq	(%rax,%rax,2), %r13
	shlq	$4, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	44(%rax,%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	movq	%rdi, 24(%r12)
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	movq	16(%r12), %rcx
	decl	%r15d
	leaq	(%r15,%r15,2), %rdx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rax
	addq	(%rcx,%rdx), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	addq	$44, %rax
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	%r12, %rdi
	callq	_avformat_close_input
	jmp	LBB0_21
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, (%rdi)
	movq	(%r12), %rsi
	movq	8(%rsi), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	cmovneq	%rax, %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, 16(%rbx,%r13)
	movq	32(%rbx,%r13), %rax
	cmpq	(%rdx), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 24(%rbx,%r13)
	movq	%rdi, %r15
	callq	_get_best_effort_duration
	movq	%rax, 8(%rbx,%r13)
	cmpq	$0, 8(%r12)
	je	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rcx
	addq	$8, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	40(%rax,%r13), %rbx
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
LBB0_15:
	movq	%r14, %rdi
	callq	_match_streams
	testl	%eax, %eax
	js	LBB0_20
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	addq	$32, %rax
	movq	(%rax), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_18
## %bb.17:
	movq	(%r12), %rdi
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	movq	%rcx, %r8
	xorl	%r9d, %r9d
	callq	_avformat_seek_file
	testl	%eax, %eax
	js	LBB0_20
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ## @AVFMT_FLAG_CUSTOM_IO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Impossible to open '%s'\n"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"lavf.concatdec.start_time"

L_.str.2:                               ## @.str.2
	.asciz	"lavf.concatdec.duration"

	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.no_dead_strip	_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_file
_open_file:                             ; @open_file
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x23, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_avformat_close_input
LBB0_2:
	bl	_avformat_alloc_context
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _AVFMT_FLAG_CUSTOM_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVFMT_FLAG_CUSTOM_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	bic	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	str	w10, [x0, #16]
	mov	x1, x20
	bl	_ff_copy_whiteblacklists
	tbnz	w0, #31, LBB0_18
; %bb.4:
	mov	w24, w21
	mov	w8, #48
	madd	x25, x24, x8, x23
	ldr	w1, [x25, #44]!
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x0, [x19]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w8, #48
	umaddl	x22, w21, w8, x23
	str	x22, [x19, #24]
	cbz	w21, LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	sub	w9, w21, #1
	mov	w10, #48
	umaddl	x8, w9, w10, x8
	ldp	x9, x8, [x8]
	add	x8, x8, x9
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	mov	x22, x0
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x25]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x0, x19
	bl	_avformat_close_input
	b	LBB0_19
LBB0_10:
	mov	x8, #0
LBB0_11:
	str	x8, [x22]
	ldr	x1, [x19]
	ldr	x8, [x1, #8]
Lloh11:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	csel	x8, xzr, x8, eq
	mov	w9, #48
	madd	x27, x24, x9, x23
	str	x8, [x27, #16]
	mov	x26, x27
	ldr	x9, [x26, #32]!
	ldr	x10, [x25]
	cmp	x9, x10
	csel	x8, x8, x9, eq
	str	x8, [x27, #24]
	mov	x0, x22
	bl	_get_best_effort_duration
	str	x0, [x27, #8]!
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.12:
	mov	w8, #48
	madd	x8, x24, x8, x23
	add	x21, x8, #40
	ldr	x2, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	x2, [x27]
	ldr	x8, [x25]
	cmp	x2, x8
	b.eq	LBB0_14
; %bb.13:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w3, #0
	bl	_av_dict_set_int
LBB0_14:
	mov	x0, x20
	bl	_match_streams
	tbnz	w0, #31, LBB0_18
; %bb.15:
	ldr	x3, [x26]
	ldr	x8, [x25]
	cmp	x3, x8
	b.eq	LBB0_17
; %bb.16:
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _INT64_MIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INT64_MIN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #-1
	mov	x4, x3
	mov	w5, #0
	bl	_avformat_seek_file
	tbnz	w0, #31, LBB0_18
LBB0_17:
	mov	w22, #0
	b	LBB0_19
LBB0_18:
	mov	x22, x0
LBB0_19:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ; @AVFMT_FLAG_CUSTOM_IO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Impossible to open '%s'\n"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"lavf.concatdec.start_time"

l_.str.2:                               ; @.str.2
	.asciz	"lavf.concatdec.duration"

	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.no_dead_strip	_open_file
.subsections_via_symbols
