	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function video_decode
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_video_decode:                          ## @video_decode
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movq	_draw_horiz_band_called@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	leaq	-56(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %ebx
	movl	$-1, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_av_find_best_stream
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	%eax, %r12d
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	callq	_avcodec_find_decoder
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_avcodec_alloc_context3
	movq	%rax, -112(%rbp)
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_avcodec_parameters_to_context
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	callq	_av_log
LBB0_12:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_14:
	xorl	%edi, %edi
	callq	_av_log
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_16:
	xorl	%edi, %edi
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_17:
	movq	_draw_horiz_band@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	$1, (%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_avcodec_open2
	testl	%eax, %eax
	js	LBB0_23
## %bb.18:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -96(%rbp)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_39
## %bb.19:
	movl	(%r13), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movl	(%r13), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movl	(%r13), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	jmp	LBB0_14
LBB0_23:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_11
LBB0_24:
	movl	12(%r14), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movl	$32, %ecx
	callq	_av_image_get_buffer_size
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_av_malloc
	movq	%rax, -104(%rbp)
	testq	%rax, %rax
	je	LBB0_40
## %bb.25:
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_av_malloc
	movq	_slice_byte_buffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_40
## %bb.26:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	_slice_byte_buffer_size@GOTPCREL(%rip), %rax
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, (%rax)
	leaq	-136(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_av_init_packet
	xorl	%eax, %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_37
LBB0_28:                                ##   in Loop: Header=BB0_27 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	$1, %eax
	movb	$1, %cl
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_avcodec_decode_video2
	testl	%eax, %eax
	js	LBB0_41
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movl	12(%r14), %r8d
	movl	4(%r14), %eax
	movl	8(%r14), %r9d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	pushq	$1
	pushq	%rax
	callq	_av_image_copy_to_buffer
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_43
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_44
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_av_adler32_update
	movq	%rax, %r13
	movq	_slice_byte_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_av_adler32_update
	cmpq	%rax, %r13
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_45
LBB0_34:                                ##   in Loop: Header=BB0_27 Depth=1
	leaq	-136(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movq	%rbx, %rdi
	callq	_av_init_packet
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	testb	%cl, %cl
	je	LBB0_27
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$0, -44(%rbp)
	jne	LBB0_27
	jmp	LBB0_42
LBB0_37:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_av_read_frame
	testq	%rax, %rax
	js	LBB0_28
## %bb.38:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%ecx, %ecx
	movl	$0, %eax
	cmpl	%r12d, -136(%rbp)
	je	LBB0_29
	jmp	LBB0_35
LBB0_39:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_16
LBB0_40:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdx
	jmp	LBB0_16
LBB0_41:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.13(%rip), %rdx
	jmp	LBB0_10
LBB0_42:
	leaq	-136(%rbp), %rdi
	callq	_av_packet_unref
	leaq	-96(%rbp), %rdi
	callq	_av_frame_free
	movq	%r14, %rdi
	callq	_avcodec_close
	leaq	-56(%rbp), %rdi
	callq	_avformat_close_input
	leaq	-112(%rbp), %rdi
	callq	_avcodec_free_context
	leaq	-104(%rbp), %rdi
	callq	_av_freep
	movq	_slice_byte_buffer@GOTPCREL(%rip), %rdi
	callq	_av_freep
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_43:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.14(%rip), %rdx
	jmp	LBB0_10
LBB0_44:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.15(%rip), %rdx
	jmp	LBB0_14
LBB0_45:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.16(%rip), %rdx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_draw_horiz_band_called,8,3     ## @draw_horiz_band_called
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't open file\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't get stream info\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
L_.str.2:                               ## @.str.2
	.asciz	"Can't find video stream in input file\n"

L_.str.3:                               ## @.str.3
	.asciz	"Can't find decoder\n"

L_.str.4:                               ## @.str.4
	.asciz	"Can't allocate decoder context\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Can't copy decoder context\n"

	.comm	_draw_horiz_band,4,2            ## @draw_horiz_band
L_.str.6:                               ## @.str.6
	.asciz	"Can't open decoder\n"

L_.str.7:                               ## @.str.7
	.asciz	"Can't allocate frame\n"

L_.str.8:                               ## @.str.8
	.asciz	"flv"

L_.str.9:                               ## @.str.9
	.asciz	"mpeg4"

L_.str.10:                              ## @.str.10
	.asciz	"huffyuv"

L_.str.11:                              ## @.str.11
	.asciz	"Wrong codec\n"

L_.str.12:                              ## @.str.12
	.asciz	"Can't allocate buffer\n"

	.comm	_slice_byte_buffer,8,3          ## @slice_byte_buffer
	.comm	_slice_byte_buffer_size,4,2     ## @slice_byte_buffer_size
L_.str.13:                              ## @.str.13
	.asciz	"Error decoding frame\n"

L_.str.14:                              ## @.str.14
	.asciz	"Can't copy image to buffer\n"

L_.str.15:                              ## @.str.15
	.asciz	"draw_horiz_band haven't been called!\n"

L_.str.16:                              ## @.str.16
	.asciz	"Decoded frames with and without draw_horiz_band are not the same!\n"

	.no_dead_strip	_video_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_decode
_video_decode:                          ; @video_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x1, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x26, _draw_horiz_band_called@GOTPAGE
Lloh1:
	ldr	x26, [x26, _draw_horiz_band_called@GOTPAGEOFF]
	str	xzr, [x26]
	add	x0, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #-1
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_av_find_best_stream
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x19, x0
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x21, [x8]
	ldr	w0, [x21]
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_12
; %bb.4:
	mov	x22, x0
	bl	_avcodec_alloc_context3
	str	x0, [sp, #56]
	cbz	x0, LBB0_14
; %bb.5:
	mov	x20, x0
	mov	x1, x21
	bl	_avcodec_parameters_to_context
	cbz	w0, LBB0_17
; %bb.6:
	mov	x24, x0
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.5@PAGE
Lloh9:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x24, x0
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x24, x0
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, #0
	bl	_av_log
	b	LBB0_16
LBB0_10:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, #0
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_13:
	bl	_av_log
	mov	w24, #-1
	b	LBB0_16
LBB0_14:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.4@PAGE
Lloh34:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_15:
	bl	_av_log
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_17:
Lloh38:
	adrp	x8, _draw_horiz_band@GOTPAGE
Lloh39:
	ldr	x8, [x8, _draw_horiz_band@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	bl	_avcodec_open2
	tbnz	w0, #31, LBB0_23
; %bb.18:
	bl	_av_frame_alloc
	str	x0, [sp, #40]
	cbz	x0, LBB0_39
; %bb.19:
	mov	x21, x0
	ldr	w0, [x22]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.20:
	ldr	w0, [x22]
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.21:
	ldr	w0, [x22]
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.22:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.11@PAGE
Lloh51:
	add	x2, x2, l_.str.11@PAGEOFF
	b	LBB0_11
LBB0_23:
	mov	x24, x0
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x2, l_.str.6@PAGE
Lloh56:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_16
LBB0_24:
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x20, #4]
	mov	w3, #32
	bl	_av_image_get_buffer_size
	mov	x22, x0
	bl	_av_malloc
	str	x0, [sp, #48]
	cbz	x0, LBB0_40
; %bb.25:
	mov	x23, x0
	mov	x0, x22
	bl	_av_malloc
Lloh57:
	adrp	x8, _slice_byte_buffer@GOTPAGE
Lloh58:
	ldr	x8, [x8, _slice_byte_buffer@GOTPAGEOFF]
Lloh59:
	str	x0, [x8]
	cbz	x0, LBB0_40
; %bb.26:
	mov	w1, #0
	mov	x2, x22
	bl	_memset
Lloh60:
	adrp	x8, _slice_byte_buffer_size@GOTPAGE
Lloh61:
	ldr	x8, [x8, _slice_byte_buffer_size@GOTPAGEOFF]
Lloh62:
	str	w22, [x8]
	add	x24, sp, #16
	add	x0, sp, #16
	bl	_av_init_packet
	mov	w27, #0
	add	x28, x24, #8
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_37
LBB0_28:                                ;   in Loop: Header=BB0_27 Depth=1
	stp	xzr, xzr, [x28]
	mov	w27, #1
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=1
	str	wzr, [sp, #4]
	add	x2, sp, #4
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_avcodec_decode_video2
	tbnz	w0, #31, LBB0_41
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	ldp	x3, x2, [x21]
	ldp	w5, w4, [x20, #8]
	ldr	w6, [x20, #4]
	mov	x0, x23
	mov	x1, x22
	mov	w7, #1
	bl	_av_image_copy_to_buffer
	mov	x24, x0
	tbnz	w0, #31, LBB0_43
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_44
; %bb.33:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #0
	mov	x1, x23
	mov	x2, x24
	bl	_av_adler32_update
	mov	x25, x0
Lloh63:
	adrp	x8, _slice_byte_buffer@GOTPAGE
Lloh64:
	ldr	x8, [x8, _slice_byte_buffer@GOTPAGEOFF]
Lloh65:
	ldr	x1, [x8]
	mov	w0, #0
	mov	x2, x24
	bl	_av_adler32_update
	cmp	x25, x0
	b.ne	LBB0_45
LBB0_34:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x0, sp, #16
	bl	_av_packet_unref
	add	x0, sp, #16
	bl	_av_init_packet
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=1
	cbz	w27, LBB0_27
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_27
	b	LBB0_42
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [sp, #8]
	add	x1, sp, #16
	bl	_av_read_frame
	tbnz	x0, #63, LBB0_28
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w27, #0
	ldr	w8, [sp, #16]
	cmp	w8, w19
	b.eq	LBB0_29
	b	LBB0_35
LBB0_39:
Lloh66:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str.7@PAGE
Lloh70:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_40:
Lloh71:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
Lloh74:
	adrp	x2, l_.str.12@PAGE
Lloh75:
	add	x2, x2, l_.str.12@PAGEOFF
	b	LBB0_15
LBB0_41:
	mov	x24, x0
Lloh76:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
Lloh79:
	adrp	x2, l_.str.13@PAGE
Lloh80:
	add	x2, x2, l_.str.13@PAGEOFF
	b	LBB0_9
LBB0_42:
	add	x0, sp, #16
	bl	_av_packet_unref
	add	x0, sp, #40
	bl	_av_frame_free
	mov	x0, x20
	bl	_avcodec_close
	add	x0, sp, #8
	bl	_avformat_close_input
	add	x0, sp, #56
	bl	_avcodec_free_context
	add	x0, sp, #48
	bl	_av_freep
Lloh81:
	adrp	x0, _slice_byte_buffer@GOTPAGE
Lloh82:
	ldr	x0, [x0, _slice_byte_buffer@GOTPAGEOFF]
	bl	_av_freep
	mov	w24, #0
	b	LBB0_16
LBB0_43:
Lloh83:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
Lloh86:
	adrp	x2, l_.str.14@PAGE
Lloh87:
	add	x2, x2, l_.str.14@PAGEOFF
	b	LBB0_9
LBB0_44:
Lloh88:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh89:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
Lloh91:
	adrp	x2, l_.str.15@PAGE
Lloh92:
	add	x2, x2, l_.str.15@PAGEOFF
	b	LBB0_11
LBB0_45:
Lloh93:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh94:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
Lloh96:
	adrp	x2, l_.str.16@PAGE
Lloh97:
	add	x2, x2, l_.str.16@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_draw_horiz_band_called,8,3     ; @draw_horiz_band_called
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't open file\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't get stream info\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
l_.str.2:                               ; @.str.2
	.asciz	"Can't find video stream in input file\n"

l_.str.3:                               ; @.str.3
	.asciz	"Can't find decoder\n"

l_.str.4:                               ; @.str.4
	.asciz	"Can't allocate decoder context\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Can't copy decoder context\n"

	.comm	_draw_horiz_band,4,2            ; @draw_horiz_band
l_.str.6:                               ; @.str.6
	.asciz	"Can't open decoder\n"

l_.str.7:                               ; @.str.7
	.asciz	"Can't allocate frame\n"

l_.str.8:                               ; @.str.8
	.asciz	"flv"

l_.str.9:                               ; @.str.9
	.asciz	"mpeg4"

l_.str.10:                              ; @.str.10
	.asciz	"huffyuv"

l_.str.11:                              ; @.str.11
	.asciz	"Wrong codec\n"

l_.str.12:                              ; @.str.12
	.asciz	"Can't allocate buffer\n"

	.comm	_slice_byte_buffer,8,3          ; @slice_byte_buffer
	.comm	_slice_byte_buffer_size,4,2     ; @slice_byte_buffer_size
l_.str.13:                              ; @.str.13
	.asciz	"Error decoding frame\n"

l_.str.14:                              ; @.str.14
	.asciz	"Can't copy image to buffer\n"

l_.str.15:                              ; @.str.15
	.asciz	"draw_horiz_band haven't been called!\n"

l_.str.16:                              ; @.str.16
	.asciz	"Decoded frames with and without draw_horiz_band are not the same!\n"

	.no_dead_strip	_video_decode
.subsections_via_symbols
