	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	_fmt_ctx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r14), %rdi
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r8
	movl	$-1, %edx
	movl	$-1, %ecx
	xorl	%r9d, %r9d
	callq	_av_find_best_stream
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	%ebx, %eax
	movq	_video_stream_index@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	-32(%rbp), %rdi
	callq	_avcodec_alloc_context3
	movq	_dec_ctx@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_avcodec_parameters_to_context
	movl	(%r15), %edi
	movq	-32(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_avcodec_open2
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movl	%r14d, %ebx
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	xorl	%edi, %edi
	callq	_av_log
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_fmt_ctx,8,3                    ## @fmt_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	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
L_.str.2:                               ## @.str.2
	.asciz	"Cannot find a video stream in the input file\n"

	.comm	_video_stream_index,8,3         ## @video_stream_index
	.comm	_dec_ctx,4,2                    ## @dec_ctx
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Cannot open video decoder\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, #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	x1, x0
Lloh0:
	adrp	x20, _fmt_ctx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fmt_ctx@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x0, [x20]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x0, [x20]
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	w2, #-1
	mov	w3, #-1
	mov	w5, #0
	bl	_av_find_best_stream
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	w8, w19
Lloh5:
	adrp	x19, _video_stream_index@GOTPAGE
Lloh6:
	ldr	x19, [x19, _video_stream_index@GOTPAGEOFF]
	str	x8, [x19]
	ldr	x0, [sp, #8]
	bl	_avcodec_alloc_context3
Lloh7:
	adrp	x21, _dec_ctx@GOTPAGE
Lloh8:
	ldr	x21, [x21, _dec_ctx@GOTPAGEOFF]
	str	w0, [x21]
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	bl	_avcodec_parameters_to_context
	ldr	w0, [x21]
	ldr	x1, [sp, #8]
	mov	x2, #0
	bl	_avcodec_open2
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	w19, #0
	b	LBB0_12
LBB0_6:
	mov	x19, x0
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	x19, x0
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_12
LBB0_10:
	mov	x19, x0
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, #0
	bl	_av_log
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_fmt_ctx,8,3                    ; @fmt_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	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
l_.str.2:                               ; @.str.2
	.asciz	"Cannot find a video stream in the input file\n"

	.comm	_video_stream_index,8,3         ; @video_stream_index
	.comm	_dec_ctx,4,2                    ; @dec_ctx
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Cannot open video decoder\n"

	.no_dead_strip	_open_input_file
.subsections_via_symbols
