	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, %r14
	movq	%rax, -72(%rbp)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -64(%rbp)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_28
## %bb.4:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_28
## %bb.5:
	movq	8(%r15), %rdi
	callq	_open_input_file
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_25
## %bb.6:
	movq	_filter_descr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_init_filters
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_25
## %bb.7:
	movq	_fmt_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_av_read_frame
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_8
LBB0_25:
	movq	_filter_graph@GOTPCREL(%rip), %rdi
	callq	_avfilter_graph_free
	movq	_dec_ctx@GOTPCREL(%rip), %rdi
	callq	_avcodec_free_context
	movq	_fmt_ctx@GOTPCREL(%rip), %rdi
	callq	_avformat_close_input
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_26
## %bb.27:
	xorl	%edi, %edi
	callq	_exit
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_28:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_av_err2str
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	jmp	LBB0_2
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r13
	movq	_buffersink_ctx@GOTPCREL(%rip), %r14
	jmp	LBB0_9
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	L_.str.4(%rip), %rdx
	callq	_av_log
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	_fmt_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_24
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	movq	-56(%rbp), %rax
	movq	_video_stream_index@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_dec_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_avcodec_send_packet
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_unref
	testl	%r15d, %r15d
	js	LBB0_23
LBB0_13:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movq	_dec_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_avcodec_receive_frame
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	(%r13), %r15d
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	movl	%eax, 4(%rsi)
	movq	_buffersrc_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AV_BUFFERSRC_FLAG_KEEP_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_buffersrc_add_frame_flags
	testq	%rax, %rax
	js	LBB0_29
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_av_buffersink_get_frame
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	cmpl	(%r13), %r15d
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=3
	testl	%r15d, %r15d
	js	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_display_frame
	movq	%rbx, %rdi
	callq	_av_frame_unref
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.3(%rip), %rdx
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_av_log
	jmp	LBB0_25
LBB0_24:
	movl	%eax, %r15d
	jmp	LBB0_25
LBB0_11:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s file\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate frame"

	.comm	_filter_descr,4,2               ## @filter_descr
	.comm	_fmt_ctx,4,2                    ## @fmt_ctx
	.comm	_video_stream_index,8,3         ## @video_stream_index
	.comm	_dec_ctx,4,2                    ## @dec_ctx
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Error while sending a packet to the decoder\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.3:                               ## @.str.3
	.asciz	"Error while receiving a frame from the decoder\n"

	.comm	_buffersrc_ctx,4,2              ## @buffersrc_ctx
	.comm	_AV_BUFFERSRC_FLAG_KEEP_REF,4,2 ## @AV_BUFFERSRC_FLAG_KEEP_REF
L_.str.4:                               ## @.str.4
	.asciz	"Error while feeding the filtergraph\n"

	.comm	_buffersink_ctx,8,3             ## @buffersink_ctx
	.comm	_filter_graph,4,2               ## @filter_graph
L_.str.5:                               ## @.str.5
	.asciz	"Error occurred: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.1:
	bl	_av_frame_alloc
	mov	x19, x0
	str	x0, [sp, #16]
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x19, LBB0_10
; %bb.2:
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_open_input_file
	mov	x23, x0
Lloh0:
	adrp	x24, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AVERROR_EOF@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _filter_descr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _filter_descr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_init_filters
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _fmt_ctx@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fmt_ctx@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_av_read_frame
	mov	x23, x0
	tbz	w0, #31, LBB0_12
LBB0_6:
Lloh8:
	adrp	x0, _filter_graph@GOTPAGE
Lloh9:
	ldr	x0, [x0, _filter_graph@GOTPAGEOFF]
	bl	_avfilter_graph_free
Lloh10:
	adrp	x0, _dec_ctx@GOTPAGE
Lloh11:
	ldr	x0, [x0, _dec_ctx@GOTPAGEOFF]
	bl	_avcodec_free_context
Lloh12:
	adrp	x0, _fmt_ctx@GOTPAGE
Lloh13:
	ldr	x0, [x0, _fmt_ctx@GOTPAGEOFF]
	bl	_avformat_close_input
	add	x0, sp, #16
	bl	_av_frame_free
	add	x0, sp, #8
	bl	_av_frame_free
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_11
; %bb.7:
	mov	w0, #0
	bl	_exit
LBB0_8:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x2, [x21]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_10:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_11:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	mov	x0, x23
	bl	_av_err2str
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	b	LBB0_9
LBB0_12:
Lloh26:
	adrp	x27, _video_stream_index@GOTPAGE
Lloh27:
	ldr	x27, [x27, _video_stream_index@GOTPAGEOFF]
Lloh28:
	adrp	x28, _dec_ctx@GOTPAGE
Lloh29:
	ldr	x28, [x28, _dec_ctx@GOTPAGEOFF]
Lloh30:
	adrp	x21, _EAGAIN@GOTPAGE
Lloh31:
	ldr	x21, [x21, _EAGAIN@GOTPAGEOFF]
Lloh32:
	adrp	x26, _buffersrc_ctx@GOTPAGE
Lloh33:
	ldr	x26, [x26, _buffersrc_ctx@GOTPAGEOFF]
Lloh34:
	adrp	x22, _AV_BUFFERSRC_FLAG_KEEP_REF@GOTPAGE
Lloh35:
	ldr	x22, [x22, _AV_BUFFERSRC_FLAG_KEEP_REF@GOTPAGEOFF]
Lloh36:
	adrp	x25, _buffersink_ctx@GOTPAGE
Lloh37:
	ldr	x25, [x25, _buffersink_ctx@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, #0
Lloh41:
	adrp	x2, l_.str.4@PAGE
Lloh42:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x0, sp, #24
	bl	_av_packet_unref
Lloh43:
	adrp	x8, _fmt_ctx@GOTPAGE
Lloh44:
	ldr	x8, [x8, _fmt_ctx@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_26
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	x8, [sp, #24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x28]
	add	x1, sp, #24
	bl	_avcodec_send_packet
	tbz	w0, #31, LBB0_18
	b	LBB0_27
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x19
	bl	_av_frame_unref
	tbnz	w23, #31, LBB0_14
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	w0, [x28]
	mov	x1, x19
	bl	_avcodec_receive_frame
	mov	x23, x0
	ldr	w0, [x21]
	bl	_AVERROR
	ldr	w8, [x24]
	cmp	w23, w0
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	tbnz	w23, #31, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x19]
	str	w8, [x19, #4]
	ldr	w0, [x26]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_av_buffersrc_add_frame_flags
	tbnz	x0, #63, LBB0_13
LBB0_21:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x25]
	mov	x1, x20
	bl	_av_buffersink_get_frame
	mov	x23, x0
	ldr	w0, [x21]
	bl	_AVERROR
	ldr	w8, [x24]
	cmp	w23, w0
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=3
	tbnz	w23, #31, LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=3
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_display_frame
	mov	x0, x20
	bl	_av_frame_unref
	b	LBB0_21
LBB0_24:
Lloh46:
	adrp	x2, l_.str.3@PAGE
Lloh47:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_25:
Lloh48:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_av_log
	b	LBB0_6
LBB0_26:
	mov	x23, x0
	b	LBB0_6
LBB0_27:
	mov	x23, x0
Lloh51:
	adrp	x2, l_.str.2@PAGE
Lloh52:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s file\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate frame"

	.comm	_filter_descr,4,2               ; @filter_descr
	.comm	_fmt_ctx,4,2                    ; @fmt_ctx
	.comm	_video_stream_index,8,3         ; @video_stream_index
	.comm	_dec_ctx,4,2                    ; @dec_ctx
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Error while sending a packet to the decoder\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.3:                               ; @.str.3
	.asciz	"Error while receiving a frame from the decoder\n"

	.comm	_buffersrc_ctx,4,2              ; @buffersrc_ctx
	.comm	_AV_BUFFERSRC_FLAG_KEEP_REF,4,2 ; @AV_BUFFERSRC_FLAG_KEEP_REF
l_.str.4:                               ; @.str.4
	.asciz	"Error while feeding the filtergraph\n"

	.comm	_buffersink_ctx,8,3             ; @buffersink_ctx
	.comm	_filter_graph,4,2               ; @filter_graph
l_.str.5:                               ; @.str.5
	.asciz	"Error occurred: %s\n"

.subsections_via_symbols
