	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_input_file
_open_input_file:                       ## @open_input_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
	movq	%rdi, %r14
	movq	_ifmt_ctx@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	_stream_ctx@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	(%rbx), %rdi
	cmpl	$0, (%rdi)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_avcodec_open2
	testl	%eax, %eax
	js	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_stream_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, (%rax,%r12,8)
	incq	%r12
	movq	(%rbx), %rdi
	movl	(%rdi), %eax
	cmpq	%rax, %r12
	jae	LBB0_23
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%r12,8), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_avcodec_find_decoder
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_avcodec_alloc_context3
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_avcodec_parameters_to_context
	testl	%eax, %eax
	js	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_av_guess_frame_rate
	movl	%eax, 8(%r14)
	jmp	LBB0_20
LBB0_1:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
LBB0_24:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_av_dump_format
	jmp	LBB0_24
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_DECODER_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_24
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	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_14:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_15
LBB0_21:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_15:
	xorl	%edi, %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ifmt_ctx,8,3                   ## @ifmt_ctx
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open input file\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot find stream information\n"

	.comm	_stream_ctx,8,3                 ## @stream_ctx
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to find decoder for stream #%u\n"

	.comm	_AVERROR_DECODER_NOT_FOUND,4,2  ## @AVERROR_DECODER_NOT_FOUND
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate the decoder context for stream #%u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to copy decoder parameters to input decoder context for stream #%u\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
L_.str.5:                               ## @.str.5
	.asciz	"Failed to open decoder for stream #%u\n"

	.no_dead_strip	_open_input_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_input_file
_open_input_file:                       ; @open_input_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x20, _ifmt_ctx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ifmt_ctx@GOTPAGEOFF]
	str	xzr, [x20]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_13
; %bb.1:
	ldr	x0, [x20]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #8
	bl	_av_mallocz_array
Lloh2:
	adrp	x26, _stream_ctx@GOTPAGE
Lloh3:
	ldr	x26, [x26, _stream_ctx@GOTPAGEOFF]
	str	x0, [x26]
	cbz	x0, LBB0_20
; %bb.3:
	ldr	x0, [x20]
	ldr	w8, [x0]
	cbz	w8, LBB0_17
; %bb.4:
	mov	x25, #0
Lloh4:
	adrp	x27, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh6:
	adrp	x28, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh7:
	ldr	x28, [x28, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, #0
	bl	_avcodec_open2
	tbnz	w0, #31, LBB0_22
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26]
	str	x23, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	x25, x8
	b.hs	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	ldr	x24, [x8, x25, lsl #3]
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	bl	_avcodec_alloc_context3
	cbz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	x1, [x24]
	bl	_avcodec_parameters_to_context
	tbnz	w0, #31, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20]
	mov	x1, x24
	mov	x2, #0
	bl	_av_guess_frame_rate
	str	w0, [x23, #8]
	b	LBB0_5
LBB0_13:
	mov	x21, x0
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x21, x0
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, #0
	bl	_av_log
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	w1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_av_dump_format
	mov	w21, #0
	b	LBB0_16
LBB0_18:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
Lloh23:
	adrp	x8, _AVERROR_DECODER_NOT_FOUND@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_DECODER_NOT_FOUND@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_19:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
LBB0_20:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_21:
	mov	x21, x0
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_22:
	mov	x21, x0
Lloh39:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh42:
	adrp	x2, l_.str.5@PAGE
Lloh43:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ifmt_ctx,8,3                   ; @ifmt_ctx
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open input file\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot find stream information\n"

	.comm	_stream_ctx,8,3                 ; @stream_ctx
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to find decoder for stream #%u\n"

	.comm	_AVERROR_DECODER_NOT_FOUND,4,2  ; @AVERROR_DECODER_NOT_FOUND
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate the decoder context for stream #%u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to copy decoder parameters to input decoder context for stream #%u\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
l_.str.5:                               ; @.str.5
	.asciz	"Failed to open decoder for stream #%u\n"

	.no_dead_strip	_open_input_file
.subsections_via_symbols
