	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.3:
	movq	8(%rsi), %rsi
	movq	_src_filename@GOTPCREL(%rip), %rbx
	movq	%rsi, (%rbx)
	movq	_fmt_ctx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:
	movl	(%r14), %edi
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open_codec_context
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_av_dump_format
	movq	_video_stream@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	_frame@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	-48(%rbp), %rbx
	movq	_video_stream_idx@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r15d, %r15d
	js	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_av_read_frame
	testq	%rax, %rax
	js	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_decode_packet
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_15:
	xorl	%edi, %edi
	callq	_decode_packet
	jmp	LBB0_16
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_16
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
LBB0_16:
	movq	_video_dec_ctx@GOTPCREL(%rip), %rdi
	callq	_avcodec_free_context
	movq	_fmt_ctx@GOTPCREL(%rip), %rdi
	callq	_avformat_close_input
	movq	_frame@GOTPCREL(%rip), %rdi
	callq	_av_frame_free
	shrl	$31, %r15d
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s <video>\n"

	.comm	_src_filename,8,3               ## @src_filename
	.comm	_fmt_ctx,4,2                    ## @fmt_ctx
L_.str.1:                               ## @.str.1
	.asciz	"Could not open source file %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not find stream information\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_video_stream,4,2               ## @video_stream
L_.str.3:                               ## @.str.3
	.asciz	"Could not find video stream in the input, aborting\n"

	.comm	_frame,4,2                      ## @frame
L_.str.4:                               ## @.str.4
	.asciz	"Could not allocate frame\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_video_stream_idx,8,3           ## @video_stream_idx
	.comm	_video_dec_ctx,4,2              ## @video_dec_ctx
L_str:                                  ## @str
	.asciz	"framenum,source,blockw,blockh,srcx,srcy,dstx,dsty,flags"

.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #16]
	cmp	w0, #2
	b.ne	LBB0_14
; %bb.1:
	ldr	x1, [x1, #8]
Lloh0:
	adrp	x20, _src_filename@GOTPAGE
Lloh1:
	ldr	x20, [x20, _src_filename@GOTPAGEOFF]
	str	x1, [x20]
Lloh2:
	adrp	x19, _fmt_ctx@GOTPAGE
Lloh3:
	ldr	x19, [x19, _fmt_ctx@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	x0, #63, LBB0_15
; %bb.2:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	x0, #63, LBB0_16
; %bb.3:
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_open_codec_context
	ldr	w0, [x19]
	ldr	x2, [x20]
	mov	w1, #0
	mov	w3, #0
	bl	_av_dump_format
Lloh7:
	adrp	x8, _video_stream@GOTPAGE
Lloh8:
	ldr	x8, [x8, _video_stream@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.4:
	bl	_av_frame_alloc
Lloh10:
	adrp	x8, _frame@GOTPAGE
Lloh11:
	ldr	x8, [x8, _frame@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	cbz	w0, LBB0_12
; %bb.5:
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w20, #0
Lloh15:
	adrp	x21, _video_stream_idx@GOTPAGE
Lloh16:
	ldr	x21, [x21, _video_stream_idx@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_av_packet_unref
	tbnz	w20, #31, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x1, sp, #16
	bl	_av_read_frame
	tbnz	x0, #63, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_decode_packet
	mov	x20, x0
	b	LBB0_6
LBB0_10:
	mov	x0, #0
	bl	_decode_packet
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w20, #1
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_13:
Lloh30:
	adrp	x0, _video_dec_ctx@GOTPAGE
Lloh31:
	ldr	x0, [x0, _video_dec_ctx@GOTPAGEOFF]
	bl	_avcodec_free_context
Lloh32:
	adrp	x0, _fmt_ctx@GOTPAGE
Lloh33:
	ldr	x0, [x0, _fmt_ctx@GOTPAGEOFF]
	bl	_avformat_close_input
Lloh34:
	adrp	x0, _frame@GOTPAGE
Lloh35:
	ldr	x0, [x0, _frame@GOTPAGEOFF]
	bl	_av_frame_free
	lsr	w0, w20, #31
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x1]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh46:
	adrp	x8, _stderr@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s <video>\n"

	.comm	_src_filename,8,3               ; @src_filename
	.comm	_fmt_ctx,4,2                    ; @fmt_ctx
l_.str.1:                               ; @.str.1
	.asciz	"Could not open source file %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not find stream information\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_video_stream,4,2               ; @video_stream
l_.str.3:                               ; @.str.3
	.asciz	"Could not find video stream in the input, aborting\n"

	.comm	_frame,4,2                      ; @frame
l_.str.4:                               ; @.str.4
	.asciz	"Could not allocate frame\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_video_stream_idx,8,3           ; @video_stream_idx
	.comm	_video_dec_ctx,4,2              ; @video_dec_ctx
l_str:                                  ; @str
	.asciz	"framenum,source,blockw,blockh,srcx,srcy,dstx,dsty,flags"

.subsections_via_symbols
