	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	8(%rcx), %ecx
	cmpl	$0, 4(%rdi)
	sete	%al
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$11, %ecx
	jg	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_9
LBB0_2:
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	(%r14), %r8
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movb	(%r8), %cl
	cmpb	$86, %cl
	je	LBB0_13
## %bb.3:
	cmpb	$68, %cl
	jne	LBB0_7
## %bb.4:
	cmpb	$82, 1(%r8)
	jne	LBB0_7
## %bb.5:
	addq	$12, %r8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-12(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r8, %rdx
	callq	_get_quant
	testl	%eax, %eax
	js	LBB0_59
## %bb.6:
	leaq	32(%r13), %rdi
	movl	(%r13), %esi
	movl	4(%r13), %edx
	movl	52(%r13), %ecx
	movl	48(%r13), %r8d
	callq	_ff_rtjpeg_decode_init
	jmp	LBB0_12
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	callq	_av_log
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movsbl	1(%r8), %esi
	leal	-49(%rsi), %ecx
	cmpl	$2, %ecx
	jae	LBB0_17
## %bb.14:
	cmpl	$16, (%r13)
	jl	LBB0_10
## %bb.15:
	xorl	%edi, %edi
	cmpb	$0, 2(%r8)
	sete	%cl
	cmpl	$15, 4(%r13)
	jle	LBB0_10
## %bb.16:
	movb	%cl, %dil
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_19
LBB0_17:
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	cmpl	$76, %esi
	jne	LBB0_19
## %bb.18:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	_FF_REGET_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_23
LBB0_19:
	xorl	%edi, %edi
	cmpl	$49, %esi
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.20:
	cmpl	$48, %esi
	jne	LBB0_23
## %bb.21:
	movl	(%r13), %ecx
	imull	4(%r13), %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	jmp	LBB0_24
LBB0_23:
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_22:
	movq	(%r13), %xmm0                   ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm1
	psrad	$31, %xmm1
	psrld	$28, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$4, %xmm1
	pextrd	$1, %xmm1, %ecx
	movd	%xmm1, %edx
	imull	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
LBB0_24:
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	cmpl	%edx, -48(%rbp)                 ## 4-byte Folded Reload
	jl	LBB0_10
## %bb.25:
	movl	%edi, -100(%rbp)                ## 4-byte Spill
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movb	%al, %cl
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $al killed $al killed $rax
	andb	$-2, %al
	movb	%al, -49(%rbp)                  ## 1-byte Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r12
	movq	_AV_LZO_OUTPUT_PADDING@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	addq	$12, %r8
	addl	$-12, %ebx
	cmpb	$50, -49(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %ebx
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	callq	_FFMAX
	subl	%eax, %ebx
	movl	%ebx, -88(%rbp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movq	16(%r13), %rdi
	leaq	-88(%rbp), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	-104(%rbp), %rcx
	callq	_av_lzo1x_decode
	testq	%rax, %rax
	jne	LBB0_52
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	16(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %ebx
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_FFMAX
	addl	-88(%rbp), %eax
	subl	%eax, %ebx
	movslq	%ebx, %rdi
	addq	16(%r13), %rdi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	-80(%rbp), %r8                  ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpq	$0, 40(%r13)
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	je	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_RTJPEG_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r12, %r15
	cmpb	$86, (%r8)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	leaq	4(%r8), %rdi
	movq	%r8, %r12
	callq	_AV_RL16
	movq	%r12, %r8
	cmpl	$12, %eax
	jne	LBB0_53
LBB0_33:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rbx
	leaq	6(%r8), %rdi
	movq	%r8, %r12
	callq	_AV_RL16
	movl	%eax, %r13d
	leaq	8(%r12), %rdi
	callq	_AV_RL16
	movsbl	10(%r12), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_codec_reinit
	testl	%eax, %eax
	js	LBB0_59
## %bb.34:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %r13
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	(%r14), %r8
	movl	8(%r14), %ebx
	movb	$1, %al
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r15, %r12
	movq	_AV_LZO_OUTPUT_PADDING@GOTPCREL(%rip), %r15
	jmp	LBB0_26
LBB0_36:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_8
LBB0_37:
	movq	_RTJPEG_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, -80(%rbp)                 ## 8-byte Folded Spill
	subl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
LBB0_38:
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	setne	%al
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	orb	%al, %cl
	testb	$1, %cl
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_40
## %bb.39:
	movq	24(%r13), %rdi
	callq	_av_frame_unref
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
LBB0_40:
	movq	24(%r13), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_59
## %bb.41:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.42:
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rdi
	movl	(%rax), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	imull	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	imull	(%rbx), %eax
	movq	8(%rcx), %rdi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	$128, %esi
	callq	_memset
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	8(%rax), %eax
	imull	(%rbx), %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movq	16(%rcx), %rdi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	$128, %esi
	callq	_memset
LBB0_43:
	testl	%ebx, %ebx
	je	LBB0_45
## %bb.44:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_45:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
LBB0_46:
	movl	(%rax), %eax
	movq	24(%r13), %rsi
	movl	%eax, 20(%rsi)
	movl	%ebx, 16(%rsi)
	addl	$-48, %r14d
	cmpl	$30, %r14d
	ja	LBB0_55
## %bb.47:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_48:
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	movl	%ecx, %eax
	imull	%r8d, %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%edx, %ebx
	jge	LBB0_50
## %bb.49:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movl	(%r13), %r8d
	movl	%ebx, %eax
	cltd
	idivl	%r8d
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	addl	%ecx, %ecx
LBB0_50:
	testl	%ecx, %ecx
	jle	LBB0_57
## %bb.51:
	movq	24(%r13), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r8d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_copy_frame
	jmp	LBB0_57
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_8
LBB0_53:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_8
LBB0_54:
	leaq	32(%r13), %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_ff_rtjpeg_decode_frame_yuv420
	testl	%eax, %eax
	jns	LBB0_57
	jmp	LBB0_59
LBB0_55:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_8
LBB0_56:
	movq	(%rsi), %rax
	movq	(%rax), %rdi
	movl	4(%r13), %edx
	imull	(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movl	4(%r13), %eax
	imull	(%r13), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movl	$128, %esi
	callq	_memset
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rdi
	movl	4(%r13), %eax
	imull	(%r13), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movl	$128, %esi
	callq	_memset
LBB0_57:
	movq	24(%r13), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_59
## %bb.58:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_12
LBB0_59:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
LJTI0_0:
	.long	L0_0_set_48
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_48
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_55
	.long	L0_0_set_57
	.long	L0_0_set_55
	.long	L0_0_set_56
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coded frame too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"not a nuv video frame\n"

	.comm	_FF_REGET_BUFFER_FLAG_READONLY,4,2 ## @FF_REGET_BUFFER_FLAG_READONLY
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_LZO_OUTPUT_PADDING,4,2      ## @AV_LZO_OUTPUT_PADDING
L_.str.2:                               ## @.str.2
	.asciz	"error during lzo decompression\n"

	.comm	_RTJPEG_HEADER_SIZE,4,2         ## @RTJPEG_HEADER_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Too small NUV video frame\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown secondary frame header (wrong codec_tag?)\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
L_.str.5:                               ## @.str.5
	.asciz	"uncompressed frame too short\n"

L_.str.6:                               ## @.str.6
	.asciz	"unknown compression\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x0
	ldr	w19, [x3, #8]
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cset	w26, eq
	cmp	w19, #11
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	mov	x25, x3
	ldr	x8, [x3]
	ldr	x20, [x23, #8]
	ldrb	w9, [x8]
	cmp	w9, #86
	b.eq	LBB0_11
; %bb.3:
	cmp	w9, #68
	b.ne	LBB0_7
; %bb.4:
	ldrb	w9, [x8, #1]
	cmp	w9, #82
	b.ne	LBB0_7
; %bb.5:
	add	x2, x8, #12
	sub	w3, w19, #12
	mov	x0, x23
	mov	x1, x20
	bl	_get_quant
	tbnz	w0, #31, LBB0_54
; %bb.6:
	add	x0, x20, #32
	ldp	w1, w2, [x20]
	ldp	w4, w3, [x20, #48]
	bl	_ff_rtjpeg_decode_init
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x23
	bl	_av_log
LBB0_9:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	ldrsb	w12, [x8, #1]
	sub	w9, w12, #49
	cmp	w9, #2
	b.hs	LBB0_14
; %bb.12:
	ldr	w9, [x20]
	cmp	w9, #16
	b.lt	LBB0_9
; %bb.13:
	ldrb	w9, [x8, #2]
	cmp	w9, #0
	cset	w13, eq
	ldr	w9, [x20, #4]
	cmp	w9, #15
	b.le	LBB0_9
	b	LBB0_17
LBB0_14:
	cmp	w12, #76
	b.ne	LBB0_16
; %bb.15:
	mov	w13, #0
	mov	w9, #0
Lloh13:
	adrp	x10, _FF_REGET_BUFFER_FLAG_READONLY@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FF_REGET_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh15:
	ldr	w14, [x10]
	b	LBB0_22
LBB0_16:
	mov	w13, #1
LBB0_17:
	cmp	w12, #49
	b.eq	LBB0_20
; %bb.18:
	cmp	w12, #48
	b.ne	LBB0_21
; %bb.19:
	mov	w14, #0
	ldp	w9, w10, [x20]
	mul	w9, w9, w10
	add	w9, w9, w9, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	b	LBB0_22
LBB0_20:
	mov	w14, #0
	ldp	w9, w10, [x20]
	add	w11, w9, #15
	cmp	w9, #0
	csel	w9, w11, w9, lt
	asr	w9, w9, #4
	add	w11, w10, #15
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #4
	mul	w9, w9, w10
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #1
	b	LBB0_22
LBB0_21:
	mov	w14, #0
	mov	w9, #0
LBB0_22:
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w19, w9, asr #2
	b.lt	LBB0_9
; %bb.23:
	stp	w14, w13, [sp, #24]             ; 8-byte Folded Spill
	stp	x2, x1, [sp]                    ; 16-byte Folded Spill
	str	wzr, [sp, #32]                  ; 4-byte Folded Spill
Lloh16:
	adrp	x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	str	w12, [sp, #20]                  ; 4-byte Folded Spill
	and	w9, w12, #0xfffffffe
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x22, _AV_LZO_OUTPUT_PADDING@GOTPAGE
Lloh19:
	ldr	x22, [x22, _AV_LZO_OUTPUT_PADDING@GOTPAGEOFF]
	mov	x9, x19
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x8, #12
	sub	w27, w9, #12
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #50
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w28, [x20, #8]
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_FFMAX
	sub	w8, w28, w0
	stp	w27, w8, [sp, #40]
	ldr	x0, [x20, #16]
	add	x1, sp, #44
	add	x3, sp, #40
	mov	x2, x24
	bl	_av_lzo1x_decode
	cbnz	x0, LBB0_47
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x24, [x20, #16]
	ldr	w27, [x20, #8]
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_FFMAX
	ldr	w8, [sp, #44]
	add	w8, w0, w8
	sub	w27, w27, w8
	ldr	x8, [x20, #16]
	add	x0, x8, w27, sxtw
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_36
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
Lloh20:
	adrp	x8, _RTJPEG_HEADER_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTJPEG_HEADER_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w27, w8
	b.lt	LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x24]
	cmp	w8, #86
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, x24, #4
	bl	_AV_RL16
	cmp	w0, #12
	b.ne	LBB0_48
LBB0_31:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x0, x24, #6
	bl	_AV_RL16
	mov	x28, x0
	add	x0, x24, #8
	bl	_AV_RL16
	mov	x2, x0
	ldrsb	w3, [x24, #10]
	mov	x0, x23
	mov	x1, x28
	bl	_codec_reinit
	tbnz	w0, #31, LBB0_54
; %bb.32:                               ;   in Loop: Header=BB0_24 Depth=1
	cbz	w0, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x25]
	ldr	w9, [x25, #8]
	mov	w10, #1
	str	w10, [sp, #32]                  ; 4-byte Folded Spill
	b	LBB0_24
LBB0_34:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_35:
Lloh28:
	adrp	x8, _RTJPEG_HEADER_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RTJPEG_HEADER_SIZE@GOTPAGEOFF]
Lloh30:
	ldrsw	x8, [x8]
	add	x24, x24, x8
	sub	w27, w27, w8
LBB0_36:
	ldp	w22, w9, [sp, #28]              ; 8-byte Folded Reload
	cmp	w22, #0
	cset	w8, ne
	orr	w8, w9, w8
	tbz	w8, #0, LBB0_38
; %bb.37:
	ldr	x0, [x20, #24]
	bl	_av_frame_unref
	mov	w26, #1
LBB0_38:
	ldr	x1, [x20, #24]
	mov	x0, x23
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_54
; %bb.39:
	cbz	w26, LBB0_41
; %bb.40:
	ldr	x8, [x20, #24]
	ldp	x9, x8, [x8]
	ldr	x0, [x9]
	ldr	w9, [x23]
	ldr	w8, [x8]
	mul	w2, w8, w9
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #24]
	ldp	x9, x8, [x8]
	ldr	x0, [x9, #8]
	ldr	w9, [x23]
	ldr	w8, [x8, #4]
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #128
	bl	_memset
	ldr	x8, [x20, #24]
	ldp	x9, x8, [x8]
	ldr	x0, [x9, #16]
	ldr	w9, [x23]
	ldr	w8, [x8, #8]
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #128
	bl	_memset
LBB0_41:
Lloh31:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh33:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	ldr	x1, [x20, #24]
	stp	w22, w8, [x1, #16]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	sub	w8, w8, #48
	cmp	w8, #30
	b.hi	LBB0_50
; %bb.42:
Lloh35:
	adrp	x9, lJTI0_0@PAGE
Lloh36:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_43
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_43:
	ldp	w2, w3, [x20]
	mul	w8, w3, w2
	add	w8, w8, w8, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w27, w8, asr #1
	b.ge	LBB0_45
; %bb.44:
Lloh37:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x2, l_.str.5@PAGE
Lloh41:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_av_log
	ldr	w2, [x20]
	sdiv	w8, w27, w2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	lsl	w3, w8, #1
LBB0_45:
	cmp	w3, #1
	b.lt	LBB0_52
; %bb.46:
	ldr	x0, [x20, #24]
	mov	x1, x24
	bl	_copy_frame
	b	LBB0_52
LBB0_47:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.2@PAGE
Lloh46:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_48:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.4@PAGE
Lloh51:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_49:
	add	x0, x20, #32
	mov	x2, x24
	mov	x3, x27
	bl	_ff_rtjpeg_decode_frame_yuv420
	tbz	w0, #31, LBB0_52
	b	LBB0_54
LBB0_50:
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
	b	LBB0_8
LBB0_51:
	ldr	x8, [x1]
	ldr	x0, [x8]
	ldp	w8, w9, [x20]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	w1, #128
	bl	_memset
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x0, [x8, #16]
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	w1, #128
	bl	_memset
LBB0_52:
	ldr	x1, [x20, #24]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_54
; %bb.53:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_10
LBB0_54:
	mov	x19, x0
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_43-LBB0_43)>>2
	.byte	(LBB0_49-LBB0_43)>>2
	.byte	(LBB0_49-LBB0_43)>>2
	.byte	(LBB0_43-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_52-LBB0_43)>>2
	.byte	(LBB0_50-LBB0_43)>>2
	.byte	(LBB0_51-LBB0_43)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coded frame too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"not a nuv video frame\n"

	.comm	_FF_REGET_BUFFER_FLAG_READONLY,4,2 ; @FF_REGET_BUFFER_FLAG_READONLY
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_LZO_OUTPUT_PADDING,4,2      ; @AV_LZO_OUTPUT_PADDING
l_.str.2:                               ; @.str.2
	.asciz	"error during lzo decompression\n"

	.comm	_RTJPEG_HEADER_SIZE,4,2         ; @RTJPEG_HEADER_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Too small NUV video frame\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown secondary frame header (wrong codec_tag?)\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
l_.str.5:                               ; @.str.5
	.asciz	"uncompressed frame too short\n"

l_.str.6:                               ; @.str.6
	.asciz	"unknown compression\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
