	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_inner
_open_inner:                            ## @open_inner
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	48(%rdi), %r14
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_avformat_alloc_context
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
LBB0_3:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movl	8(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movl	16(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	movq	-48(%rbp), %rdi
	movq	_AV_DICT_MATCH_CASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	addq	$40, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
LBB0_6:
	movl	32(%r12), %eax
	movl	%eax, 32(%r15)
	movl	8(%r14), %esi
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	movq	-40(%rbp), %rax
	cmpl	$0, 20(%rax)
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-40(%rbp), %rcx
	movq	24(%rcx), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	%rax, %rdi
	callq	_copy_stream_props
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	-40(%rbp), %rax
	movslq	20(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_13:
	movq	%r14, %rdi
	callq	_avformat_close_input
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movq	$0, -40(%rbp)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_17:
	movl	%eax, %r15d
LBB0_18:
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	leaq	-40(%rbp), %rdi
	callq	_avformat_close_input
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probesize"

L_.str.1:                               ## @.str.1
	.asciz	"formatprobesize"

L_.str.2:                               ## @.str.2
	.asciz	"analyzeduration"

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

L_.str.4:                               ## @.str.4
	.asciz	"max_ts_probe"

L_.str.5:                               ## @.str.5
	.asciz	"skip-calc-frame-rate"

	.comm	_AV_DICT_MATCH_CASE,4,2         ## @AV_DICT_MATCH_CASE
	.no_dead_strip	_open_inner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_inner
_open_inner:                            ; @open_inner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #48]
	str	xzr, [sp, #8]
	bl	_avformat_alloc_context
	str	x0, [sp]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	w2, #0
	bl	_av_dict_copy
LBB0_3:
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	w2, [x20, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	w2, [x20, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	w2, [x20, #12]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	w2, [x20, #16]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x8, _AV_DICT_MATCH_CASE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_DICT_MATCH_CASE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x2, x0
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.5:
	add	x0, x21, #40
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_av_dict_set_int
LBB0_6:
	ldr	w8, [x20, #32]
	str	w8, [x21, #32]
	ldr	w1, [x19, #8]
	mov	x0, sp
	add	x3, sp, #8
	mov	x2, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_15
; %bb.7:
	ldr	x0, [sp]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	x8, [sp]
	ldr	w8, [x8, #20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
	ldr	x8, [x8, #24]
	ldr	w1, [x8, x22, lsl #2]
	bl	_copy_stream_props
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp]
	ldrsw	x8, [x8, #20]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_13:
	mov	x0, x19
	bl	_avformat_close_input
	mov	w21, #0
	ldr	x8, [sp]
	str	x8, [x19]
	str	xzr, [sp]
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	mov	x21, x0
LBB0_16:
	add	x0, sp, #8
	bl	_av_dict_free
	mov	x0, sp
	bl	_avformat_close_input
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probesize"

l_.str.1:                               ; @.str.1
	.asciz	"formatprobesize"

l_.str.2:                               ; @.str.2
	.asciz	"analyzeduration"

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

l_.str.4:                               ; @.str.4
	.asciz	"max_ts_probe"

l_.str.5:                               ; @.str.5
	.asciz	"skip-calc-frame-rate"

	.comm	_AV_DICT_MATCH_CASE,4,2         ; @AV_DICT_MATCH_CASE
	.no_dead_strip	_open_inner
.subsections_via_symbols
