	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia_decode_frame
_cpia_decode_frame:                     ## @cpia_decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rcx), %r13
	movq	_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	(%rdi), %rax
	leaq	(%rax,%rax,2), %rax
	addq	%r15, %rax
	cmpq	%rax, %r13
	jl	LBB0_11
## %bb.1:
	movq	%rcx, %r12
	movq	(%rcx), %r14
	movq	(%r14), %rax
	movq	_MAGIC_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movq	8(%r14), %rax
	movq	_MAGIC_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movq	8(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	136(%r14), %rax
	movq	_SUBSAMPLE_420@GOTPCREL(%rip), %rdx
	movq	_SUBSAMPLE_422@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_5:
	movq	144(%r14), %rdx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	_YUVORDER_YUYV@GOTPCREL(%rip), %rsi
	movq	_YUVORDER_UYVY@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	(%rsi), %rdx
	je	LBB0_7
## %bb.6:
	cmpq	%rdi, %rdx
	jne	LBB0_11
LBB0_7:
	movq	224(%r14), %r11
	movq	_NOT_COMPRESSED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movq	_COMPRESSED@GOTPCREL(%rip), %rsi
	cmpq	%r8, %r11
	je	LBB0_9
## %bb.8:
	cmpq	(%rsi), %r11
	jne	LBB0_11
LBB0_9:
	movq	232(%r14), %r9
	movq	_DECIMATION_ENAB@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r10
	movq	_NO_DECIMATION@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %r9
	je	LBB0_14
## %bb.10:
	cmpq	%r10, %r9
	je	LBB0_14
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpq	%rcx, %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	cmpq	%rdi, %rdx
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	cmpq	%r10, %r9
	jne	LBB0_21
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
LBB0_20:
	movq	%rbx, %rdi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_21:
	xorl	%eax, %eax
	cmpq	%r8, %r11
	sete	%al
	jne	LBB0_23
## %bb.22:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_23:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
LBB0_24:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rsi)
	movl	%eax, (%rsi)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_13
## %bb.25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jle	LBB0_54
## %bb.26:
	subl	%r15d, %r13d
	leaq	(%r14,%r15,8), %r15
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,8), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmpl	4(%rax), %ecx
	jge	LBB0_54
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
	movq	%r15, %rdi
	callq	_AV_RL16
	subl	%eax, %r13d
	jl	LBB0_52
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	addq	$16, %r15
	movslq	%eax, %rsi
	movq	-8(%r15,%rsi,8), %r8
	movq	_EOL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_53
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rsi
	movq	16(%rdx), %rdi
	movslq	(%rdi), %r10
	movslq	-52(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%r10, %rcx
	imulq	%rdx, %rcx
	shlq	$3, %rcx
	addq	(%rsi), %rcx
	movl	%edx, %r15d
	shrl	%r15d
	movslq	4(%rdi), %r8
	movq	%r8, %r11
	imulq	%r15, %r11
	shlq	$3, %r11
	addq	8(%rsi), %r11
	movslq	8(%rdi), %r9
	imulq	%r9, %r15
	shlq	$3, %r15
	addq	16(%rsi), %r15
	leaq	(%rcx,%r10,8), %rsi
	addq	$-8, %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	136(%r14), %rsi
	movq	_SUBSAMPLE_420@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	testb	$1, %dl
	je	LBB0_41
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	%rdi, %rsi
	jne	LBB0_41
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$2, %eax
	jl	LBB0_28
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	decl	%eax
	movl	%eax, %r8d
	xorl	%edx, %edx
	jmp	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_37 Depth=2
	movq	%rsi, (%rcx)
	addq	$8, %rcx
LBB0_36:                                ##   in Loop: Header=BB0_37 Depth=2
	incq	%rdx
	cmpq	%rdx, %r8
	je	LBB0_28
LBB0_37:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	ja	LBB0_27
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rsi
	testb	$1, %sil
	je	LBB0_35
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=2
	movq	224(%r14), %rdi
	movq	_COMPRESSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_35
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=2
	andq	$-2, %rsi
	leaq	(%rcx,%rsi,4), %rcx
	jmp	LBB0_36
LBB0_41:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpq	%rdi, %rsi
	jne	LBB0_28
## %bb.42:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$5, %eax
	jl	LBB0_28
## %bb.43:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	(%r11,%r8,8), %r8
	addq	$-8, %r8
	leaq	(%r15,%r9,8), %r9
	addq	$-8, %r9
	addl	$-4, %eax
	xorl	%r10d, %r10d
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_46
LBB0_44:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	%rsi, (%rcx)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx,%rdi,8), %rsi
	movq	%rsi, (%r11)
	addq	$8, %r11
	movq	16(%rdx,%rdi,8), %rsi
	movq	%rsi, 8(%rcx)
	addq	$16, %rcx
	movq	24(%rdx,%rdi,8), %rsi
	movq	%rsi, (%r15)
	addq	$8, %r15
	movl	$4, %esi
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=2
	addl	%esi, %r10d
	cmpl	%eax, %r10d
	jge	LBB0_28
LBB0_46:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	8(%rcx), %rsi
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	ja	LBB0_27
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpq	%r8, %r11
	ja	LBB0_27
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpq	%r9, %r15
	ja	LBB0_27
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=2
	movl	%r10d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi,%rdi,8), %rsi
	testb	$1, %sil
	je	LBB0_44
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r8, %rdx
	movq	224(%r14), %r8
	movq	%r9, %rax
	movq	_COMPRESSED@GOTPCREL(%rip), %r9
	cmpq	(%r9), %r8
	movq	%rax, %r9
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	%rdx, %r8
	jne	LBB0_44
## %bb.51:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%rsi, %rdi
	andq	$-2, %rdi
	leaq	(%rcx,%rdi,4), %rcx
	addq	%rsi, %rsi
	andq	$-8, %rsi
	addq	%rsi, %r11
	addq	%rsi, %r15
	movl	$1, %esi
	jmp	LBB0_45
LBB0_52:
	movq	_FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_54
LBB0_53:
	movq	_FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rdx)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_54:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_13
## %bb.55:
	movl	8(%r12), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAME_HEADER_SIZE,8,3          ## @FRAME_HEADER_SIZE
	.comm	_MAGIC_0,8,3                    ## @MAGIC_0
	.comm	_MAGIC_1,8,3                    ## @MAGIC_1
	.comm	_SUBSAMPLE_420,8,3              ## @SUBSAMPLE_420
	.comm	_SUBSAMPLE_422,8,3              ## @SUBSAMPLE_422
	.comm	_YUVORDER_YUYV,8,3              ## @YUVORDER_YUYV
	.comm	_YUVORDER_UYVY,8,3              ## @YUVORDER_UYVY
	.comm	_NOT_COMPRESSED,8,3             ## @NOT_COMPRESSED
	.comm	_COMPRESSED,8,3                 ## @COMPRESSED
	.comm	_NO_DECIMATION,8,3              ## @NO_DECIMATION
	.comm	_DECIMATION_ENAB,8,3            ## @DECIMATION_ENAB
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid header!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"4:2:2 subsampling"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.2:                               ## @.str.2
	.asciz	"YUV byte order UYVY"

L_.str.3:                               ## @.str.3
	.asciz	"Decimation"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_FF_DECODE_ERROR_INVALID_BITSTREAM,8,3 ## @FF_DECODE_ERROR_INVALID_BITSTREAM
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Frame ended unexpectedly!\n"

	.comm	_EOL,8,3                        ## @EOL
L_.str.5:                               ## @.str.5
	.asciz	"Wrong line length %d or line not terminated properly (found 0x%02x)!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Decoded data exceeded linesize!\n"

	.no_dead_strip	_cpia_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia_decode_frame
_cpia_decode_frame:                     ; @cpia_decode_frame
	.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	x22, x0
Lloh0:
	adrp	x8, _FRAME_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	x24, [x3, #8]
Lloh2:
	ldr	x25, [x8]
	ldrsw	x8, [x0]
	add	x8, x8, x8, lsl #1
	add	x8, x25, x8
	cmp	x24, x8
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x3
	ldr	x27, [x3]
	ldr	x8, [x27]
Lloh3:
	adrp	x9, _MAGIC_0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAGIC_0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x27, #8]
Lloh6:
	adrp	x9, _MAGIC_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAGIC_1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x27, #136]
Lloh9:
	adrp	x28, _SUBSAMPLE_420@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SUBSAMPLE_420@GOTPAGEOFF]
	ldr	x10, [x28]
Lloh11:
	adrp	x9, _SUBSAMPLE_422@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SUBSAMPLE_422@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_10
; %bb.4:
	mov	x21, x2
	mov	x20, x1
	ldr	x26, [x22, #8]
	ldr	x23, [x26]
Lloh14:
	adrp	x10, _YUVORDER_YUYV@GOTPAGE
Lloh15:
	ldr	x10, [x10, _YUVORDER_YUYV@GOTPAGEOFF]
	ldr	x11, [x27, #144]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	adrp	x12, _YUVORDER_UYVY@GOTPAGE
Lloh18:
	ldr	x12, [x12, _YUVORDER_UYVY@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x12]
	cmp	x11, x10
	b.eq	LBB0_6
; %bb.5:
	cmp	x11, x13
	b.ne	LBB0_10
LBB0_6:
	ldr	x10, [x27, #224]
Lloh20:
	adrp	x12, _NOT_COMPRESSED@GOTPAGE
Lloh21:
	ldr	x12, [x12, _NOT_COMPRESSED@GOTPAGEOFF]
Lloh22:
	ldr	x12, [x12]
Lloh23:
	adrp	x14, _COMPRESSED@GOTPAGE
Lloh24:
	ldr	x14, [x14, _COMPRESSED@GOTPAGEOFF]
	cmp	x10, x12
	b.eq	LBB0_8
; %bb.7:
	ldr	x14, [x14]
	cmp	x10, x14
	b.ne	LBB0_10
LBB0_8:
Lloh25:
	adrp	x15, _NO_DECIMATION@GOTPAGE
Lloh26:
	ldr	x15, [x15, _NO_DECIMATION@GOTPAGEOFF]
	ldr	x14, [x27, #232]
Lloh27:
	ldr	x16, [x15]
Lloh28:
	adrp	x15, _DECIMATION_ENAB@GOTPAGE
Lloh29:
	ldr	x15, [x15, _DECIMATION_ENAB@GOTPAGEOFF]
Lloh30:
	ldr	x15, [x15]
	cmp	x14, x16
	b.eq	LBB0_13
; %bb.9:
	cmp	x14, x15
	b.eq	LBB0_13
LBB0_10:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str@PAGE
Lloh35:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh36:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_15:
	cmp	x11, x13
	b.ne	LBB0_17
; %bb.16:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_17:
	cmp	x14, x15
	b.ne	LBB0_20
; %bb.18:
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_19:
	mov	x0, x22
	bl	_avpriv_report_missing_feature
Lloh44:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_11
LBB0_20:
Lloh46:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh48:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	cmp	x10, x12
	csel	x8, x8, x9, eq
	cset	w9, eq
	ldr	w8, [x8]
	str	w8, [x23, #32]
	str	w9, [x23]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_12
; %bb.21:
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.22:
	mov	w8, #0
	sub	w9, w24, w25
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	mov	w24, #0
	add	x25, x27, x25, lsl #3
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
Lloh50:
	adrp	x8, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x23, #24]
Lloh53:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x22
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
Lloh56:
	adrp	x2, l_.str.6@PAGE
Lloh57:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w24, w24, #1
	add	x25, x25, x2, lsl #3
	ldr	w8, [x23, #4]
	cmp	w24, w8
	b.ge	LBB0_49
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_42 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
	mov	x0, x25
	bl	_AV_RL16
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	subs	w11, w11, w0
	b.lt	LBB0_46
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x25, x25, #16
	sxtw	x2, w0
	sub	x10, x2, #1
	ldr	x8, [x25, x10, lsl #3]
Lloh58:
	adrp	x9, _EOL@GOTPAGE
Lloh59:
	ldr	x9, [x9, _EOL@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	ldp	x8, x14, [x23, #8]
	ldpsw	x15, x13, [x14]
	mul	w9, w15, w24
	ldp	x12, x11, [x8]
	add	x9, x12, w9, sxtw #3
	ldr	x12, [x8, #16]
	ldrsw	x14, [x14, #8]
	add	x8, x9, x15, lsl #3
	sub	x8, x8, #8
	ldr	x15, [x27, #136]
	ldr	x16, [x28]
	tbz	w24, #0, LBB0_37
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	x15, x16
	b.ne	LBB0_37
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w0, #2
Lloh61:
	adrp	x15, _COMPRESSED@GOTPAGE
Lloh62:
	ldr	x15, [x15, _COMPRESSED@GOTPAGEOFF]
	b.lt	LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w10, w10
	mov	x11, x25
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=2
	str	x12, [x9], #8
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_24
LBB0_33:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x9, x8
	b.hi	LBB0_23
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	x12, [x11]
	tbz	w12, #0, LBB0_31
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	x13, [x27, #224]
	ldr	x14, [x15]
	cmp	x13, x14
	b.ne	LBB0_31
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=2
	lsl	x12, x12, #2
	and	x12, x12, #0xfffffffffffffff8
	add	x9, x9, x12
	b	LBB0_32
LBB0_37:                                ;   in Loop: Header=BB0_25 Depth=1
	cmp	x15, x16
Lloh63:
	adrp	x1, _COMPRESSED@GOTPAGE
Lloh64:
	ldr	x1, [x1, _COMPRESSED@GOTPAGEOFF]
	b.ne	LBB0_24
; %bb.38:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w0, #5
	b.lt	LBB0_24
; %bb.39:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w10, #0
	lsr	w15, w24, #1
	mul	w16, w13, w15
	add	x11, x11, w16, sxtw #3
	mul	w15, w14, w15
	add	x12, x12, w15, sxtw #3
	add	x13, x11, x13, lsl #3
	sub	x13, x13, #8
	add	x14, x12, x14, lsl #3
	sub	x14, x14, #8
	sub	w15, w0, #4
	b	LBB0_42
LBB0_40:                                ;   in Loop: Header=BB0_42 Depth=2
	str	x16, [x9]
	add	w16, w10, #1
	ldr	x16, [x25, w16, uxtw #3]
	str	x16, [x11], #8
	add	w16, w10, #2
	ldr	x16, [x25, w16, uxtw #3]
	str	x16, [x9, #8]
	add	x9, x9, #16
	add	w16, w10, #3
	ldr	x16, [x25, w16, uxtw #3]
	str	x16, [x12], #8
	mov	w16, #4
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=2
	add	w10, w10, w16
	cmp	w10, w15
	b.ge	LBB0_24
LBB0_42:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x16, x9, #8
	cmp	x16, x8
	ccmp	x11, x13, #2, ls
	ccmp	x12, x14, #2, ls
	b.hi	LBB0_23
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=2
	ldr	x16, [x25, w10, uxtw #3]
	tbz	w16, #0, LBB0_40
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=2
	ldr	x17, [x27, #224]
	ldr	x0, [x1]
	cmp	x17, x0
	b.ne	LBB0_40
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=2
	lsl	x17, x16, #2
	and	x17, x17, #0xfffffffffffffff8
	add	x9, x9, x17
	lsl	x16, x16, #1
	and	x16, x16, #0xfffffffffffffff8
	add	x11, x11, x16
	add	x12, x12, x16
	mov	w16, #1
	b	LBB0_41
LBB0_46:
Lloh65:
	adrp	x8, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGE
Lloh66:
	ldr	x8, [x8, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	str	x8, [x23, #24]
Lloh68:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x2, l_.str.4@PAGE
Lloh72:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_48
LBB0_47:
Lloh73:
	adrp	x9, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGE
Lloh74:
	ldr	x9, [x9, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	str	x9, [x23, #24]
Lloh76:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh77:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x8, [sp]
Lloh79:
	adrp	x2, l_.str.5@PAGE
Lloh80:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_48:
	mov	x0, x22
	bl	_av_log
LBB0_49:
	mov	w8, #1
	str	w8, [x21]
	ldr	x1, [x26]
	mov	x0, x20
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_12
; %bb.50:
	ldr	w0, [x19, #8]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAME_HEADER_SIZE,8,3          ; @FRAME_HEADER_SIZE
	.comm	_MAGIC_0,8,3                    ; @MAGIC_0
	.comm	_MAGIC_1,8,3                    ; @MAGIC_1
	.comm	_SUBSAMPLE_420,8,3              ; @SUBSAMPLE_420
	.comm	_SUBSAMPLE_422,8,3              ; @SUBSAMPLE_422
	.comm	_YUVORDER_YUYV,8,3              ; @YUVORDER_YUYV
	.comm	_YUVORDER_UYVY,8,3              ; @YUVORDER_UYVY
	.comm	_NOT_COMPRESSED,8,3             ; @NOT_COMPRESSED
	.comm	_COMPRESSED,8,3                 ; @COMPRESSED
	.comm	_NO_DECIMATION,8,3              ; @NO_DECIMATION
	.comm	_DECIMATION_ENAB,8,3            ; @DECIMATION_ENAB
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid header!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"4:2:2 subsampling"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.2:                               ; @.str.2
	.asciz	"YUV byte order UYVY"

l_.str.3:                               ; @.str.3
	.asciz	"Decimation"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_FF_DECODE_ERROR_INVALID_BITSTREAM,8,3 ; @FF_DECODE_ERROR_INVALID_BITSTREAM
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Frame ended unexpectedly!\n"

	.comm	_EOL,8,3                        ; @EOL
l_.str.5:                               ; @.str.5
	.asciz	"Wrong line length %d or line not terminated properly (found 0x%02x)!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Decoded data exceeded linesize!\n"

	.no_dead_strip	_cpia_decode_frame
.subsections_via_symbols
