	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function svq1_decode_frame
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_svq1_decode_frame:                     ## @svq1_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %r15
	movl	(%rcx), %edx
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	leaq	32(%r13), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rdx, %r12
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$22, %esi
	callq	_get_bits
	movl	%eax, (%r13)
	testl	$-113, %eax
	jne	LBB0_6
## %bb.2:
	movl	%eax, %ecx
	andl	$96, %ecx
	je	LBB0_6
## %bb.3:
	movq	%r13, %r14
	cmpl	$32, %eax
	movq	%rbx, %r13
	je	LBB0_10
## %bb.4:
	cmpl	$35, %r12d
	jg	LBB0_8
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rbx
	addq	$40, %r14
	leaq	48(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_av_fast_padded_malloc
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_52
## %bb.9:
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%r14), %rsi
	leal	(,%r12,8), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_init_get_bits
	movq	%rbx, %rdi
	movl	$22, %esi
	callq	_skip_bits
	movq	(%r14), %rax
	movdqu	16(%rax), %xmm0
	movdqu	32(%rax), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$16, %xmm2
	psrad	$16, %xmm0
	por	%xmm2, %xmm0
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pxor	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rax)
	movq	-120(%rbp), %r14                ## 8-byte Reload
LBB0_10:
	movq	%r13, %rdi
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_svq1_decode_frame_header
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ff_dlog
	movl	%ebx, %r12d
	jmp	LBB0_12
LBB0_13:
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	movq	%r13, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_7
## %bb.14:
	movq	(%r13), %rax
	movq	_AVDISCARD_NONREF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.15:
	cmpq	$0, 24(%r14)
	jne	LBB0_12
LBB0_16:
	movq	_AVDISCARD_NONKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_19
## %bb.17:
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jge	LBB0_12
	jmp	LBB0_21
LBB0_19:
	movq	(%r15), %rcx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_12
## %bb.20:
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_12
LBB0_21:
	xorl	%edx, %edx
	cmpq	$0, 24(%r14)
	jne	LBB0_23
## %bb.22:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_23:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.24:
	movl	4(%r14), %edi
	movl	$16, %esi
	callq	_FFALIGN
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	leal	(%rcx,%rcx), %edi
	addl	$48, %edi
	callq	_av_malloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_52
## %bb.25:
	leaq	36(%r14), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
                                        ##       Child Loop BB0_46 Depth 3
                                        ##     Child Loop BB0_34 Depth 2
                                        ##       Child Loop BB0_36 Depth 3
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rax
	movslq	(%rax,%rcx,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_49
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	4(%r14), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	movl	$16, %esi
	callq	_FFALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	4(%r14), %edi
	movl	$16, %esi
	callq	_FFALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	$16, %esi
	callq	_FFALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r15), %rsi
	movq	16(%r15), %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	testl	%eax, %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_48
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	shlq	$6, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=2
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addl	$16, %edx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	cmpl	-112(%rbp), %edx                ## 4-byte Folded Reload
	jge	LBB0_48
LBB0_34:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_36 Depth 3
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_36:                                ##   Parent Loop BB0_26 Depth=1
                                        ##     Parent Loop BB0_34 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_svq1_decode_block_intra
	testl	%eax, %eax
	jne	LBB0_54
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=3
	addq	$64, %rbx
	addl	$16, %r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%r13d, %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jg	LBB0_36
	jmp	LBB0_33
LBB0_38:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	16(%r14), %rax
	movq	16(%rax), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	testq	%rcx, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_58
## %bb.39:                              ##   in Loop: Header=BB0_26 Depth=1
	movslq	4(%r14), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_58
## %bb.40:                              ##   in Loop: Header=BB0_26 Depth=1
	movslq	8(%r14), %rcx
	cmpq	%rcx, 8(%rax)
	jne	LBB0_58
## %bb.41:                              ##   in Loop: Header=BB0_26 Depth=1
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	andl	$-8, %eax
	leal	(%rax,%rax), %edx
	addl	$48, %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	movq	-112(%rbp), %r11                ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	testl	%r11d, %r11d
	jle	LBB0_48
## %bb.42:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	$4, %eax
	cltq
	shlq	$2, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	$16, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rax)
	movq	-152(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%r11d, %ecx
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jge	LBB0_48
LBB0_44:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_46 Depth 3
	testl	%r10d, %r10d
	jle	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=2
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_46:                                ##   Parent Loop BB0_26 Depth=1
                                        ##     Parent Loop BB0_44 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r11
	pushq	%r10
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	movq	%r10, %r14
	callq	_svq1_decode_delta_block
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_55
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=3
	addl	$16, %r13d
	addq	$64, %rbx
	cmpl	%r13d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r10
	movq	-112(%rbp), %r11                ## 8-byte Reload
	jg	LBB0_46
	jmp	LBB0_43
LBB0_48:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	cmpq	$3, %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	-144(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_26
LBB0_49:
	cmpq	$0, 24(%r14)
	jne	LBB0_51
## %bb.50:
	movq	16(%r14), %rdi
	callq	_av_frame_unref
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_59
LBB0_51:
	movl	$1, (%rbx)
	jmp	LBB0_57
LBB0_7:
	movl	%eax, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_54:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_56
LBB0_55:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_ff_dlog
LBB0_56:
	movl	%r15d, %r12d
LBB0_57:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	jmp	LBB0_12
LBB0_58:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_57
LBB0_59:
	movl	%eax, %r12d
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input packet too small\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Error in svq1_decode_frame_header %i\n"

	.comm	_AVDISCARD_NONREF,8,3           ## @AVDISCARD_NONREF
	.comm	_AVDISCARD_NONKEY,8,3           ## @AVDISCARD_NONKEY
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
L_.str.2:                               ## @.str.2
	.asciz	"Error in svq1_decode_block %i (keyframe)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Missing reference frame.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error in svq1_decode_delta_block %i\n"

	.no_dead_strip	_svq1_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq1_decode_frame
_svq1_decode_frame:                     ; @svq1_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x24, [x3, #8]
	ldr	w26, [x3]
	ldr	x27, [x0, #16]
	add	x23, x27, #32
	mov	x0, x23
	mov	x1, x24
	mov	x2, x26
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_45
; %bb.1:
	mov	x0, x23
	mov	w1, #22
	bl	_get_bits
	str	w0, [x27]
	and	w8, w0, #0xffffff8f
	and	w9, w0, #0x60
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	b	LBB0_46
LBB0_3:
	cmp	w0, #32
	b.eq	LBB0_8
; %bb.4:
	cmp	w26, #35
	b.gt	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_2
LBB0_6:
	add	x25, x27, #40
	add	x1, x27, #48
	mov	x0, x25
	mov	x2, x26
	bl	_av_fast_padded_malloc
	ldr	x0, [x27, #40]
	cbz	x0, LBB0_47
; %bb.7:
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
	ldr	x1, [x25]
	lsl	w2, w26, #3
	mov	x0, x23
	bl	_init_get_bits
	mov	x0, x23
	mov	w1, #22
	bl	_skip_bits
	ldr	x8, [x25]
	ldp	q0, q1, [x8, #16]
	shl.4s	v2, v0, #16
	sshr.4s	v0, v0, #16
	orr.16b	v0, v2, v0
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	eor.16b	v0, v0, v1
	str	q0, [x8, #16]
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	bl	_svq1_decode_frame_header
	cbz	w0, LBB0_10
; %bb.9:
	mov	x24, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_ff_dlog
	mov	x26, x24
	b	LBB0_46
LBB0_10:
	ldp	w1, w2, [x27, #4]
	mov	x0, x20
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_45
; %bb.11:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _AVDISCARD_NONREF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVDISCARD_NONREF@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.12:
	ldr	x9, [x27, #24]
	cbnz	x9, LBB0_46
LBB0_13:
Lloh13:
	adrp	x9, _AVDISCARD_NONKEY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AVDISCARD_NONKEY@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x9]
Lloh16:
	adrp	x9, _AVDISCARD_ALL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AVDISCARD_ALL@GOTPAGEOFF]
	cmp	x8, x10
	b.lt	LBB0_15
; %bb.14:
	ldr	x10, [x22]
Lloh18:
	adrp	x11, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh19:
	ldr	x11, [x11, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_46
LBB0_15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_46
; %bb.16:
	ldr	x8, [x27, #24]
Lloh21:
	adrp	x9, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, w9, wzr, eq
	mov	x0, x20
	mov	x1, x22
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_45
; %bb.17:
	ldr	w0, [x27, #4]
	mov	w1, #16
	bl	_FFALIGN
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	lsl	w8, w8, #1
	and	w8, w8, #0xfffffff0
	add	w0, w8, #48
	bl	_av_malloc
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_47
; %bb.18:
	mov	x25, #0
	add	x8, x27, #36
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
Lloh24:
	adrp	x24, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh25:
	ldr	x24, [x24, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;       Child Loop BB0_39 Depth 3
                                        ;     Child Loop BB0_27 Depth 2
                                        ;       Child Loop BB0_29 Depth 3
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, x25, lsl #2]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	cbz	x25, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x20, #8]
Lloh26:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_42
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x27, #4]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	mov	w1, #16
	bl	_FFALIGN
	mov	x19, x0
	ldr	w8, [x27, #8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x27, #4]
	mov	w1, #16
	bl	_FFALIGN
	mov	x19, x0
	ldr	w0, [x27, #8]
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w1, #16
	bl	_FFALIGN
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x25, lsl #3]
	stp	x25, x8, [sp, #24]              ; 16-byte Folded Spill
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	b.ne	LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w0, #1
	b.lt	LBB0_41
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x9, x19
	mov	w10, #0
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	lsl	x8, x8, #6
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	add	w10, w10, #16
	ldp	x8, x11, [sp, #32]              ; 16-byte Folded Reload
	add	x8, x8, x11
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w10, w8
	b.ge	LBB0_41
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_29 Depth 3
	str	w10, [sp, #56]                  ; 4-byte Folded Spill
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	w28, #0
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
LBB0_29:                                ;   Parent Loop BB0_19 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	mov	x1, x24
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_svq1_decode_block_intra
	cbnz	w0, LBB0_48
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=3
	add	x24, x24, #64
	add	w28, w28, #16
	mov	x9, x19
	cmp	w19, w28
	b.gt	LBB0_29
	b	LBB0_26
LBB0_31:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x27, #16]
	ldr	x9, [x8, #16]
	ldr	x9, [x9, x25, lsl #3]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	cbz	x9, LBB0_51
; %bb.32:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x9, [x8]
	ldrsw	x10, [x27, #4]
	cmp	x9, x10
	b.ne	LBB0_51
; %bb.33:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x8, #8]
	ldrsw	x9, [x27, #8]
	cmp	x8, x9
	b.ne	LBB0_51
; %bb.34:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x25, x19
	add	w8, w19, #7
	cmp	w19, #0
	csel	w8, w8, w19, lt
	lsl	w8, w8, #1
	and	w8, w8, #0xfffffff0
	add	w2, w8, #48
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_memset
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	cmp	w10, #1
	b.lt	LBB0_41
; %bb.35:                               ;   in Loop: Header=BB0_19 Depth=1
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	lsl	w8, w8, #4
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	w11, [sp, #56]                  ; 4-byte Folded Reload
	add	w11, w11, #16
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	stp	xzr, xzr, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	add	x8, x8, x12
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	str	w11, [sp, #56]                  ; 4-byte Folded Spill
	cmp	w11, w10
	b.ge	LBB0_41
LBB0_37:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_39 Depth 3
	cmp	w25, #1
	b.lt	LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	w24, #0
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
LBB0_39:                                ;   Parent Loop BB0_19 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	stp	w25, w10, [sp, #4]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x20
	ldp	x4, x1, [sp, #40]               ; 16-byte Folded Reload
	mov	x2, x23
	mov	x3, x28
	ldp	x6, x5, [sp, #64]               ; 16-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	mov	x7, x24
	bl	_svq1_decode_delta_block
	cbnz	w0, LBB0_49
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=3
	add	w24, w24, #16
	add	x28, x28, #64
	cmp	w25, w24
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	b.gt	LBB0_39
	b	LBB0_36
LBB0_41:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	add	x25, x25, #1
	cmp	x25, #3
Lloh29:
	adrp	x24, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh30:
	ldr	x24, [x24, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	b.ne	LBB0_19
LBB0_42:
	ldr	x8, [x27, #24]
	cbnz	x8, LBB0_44
; %bb.43:
	ldr	x0, [x27, #16]
	bl	_av_frame_unref
	ldr	x0, [x27, #16]
	mov	x1, x22
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_52
LBB0_44:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_50
LBB0_45:
	mov	x26, x0
LBB0_46:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_47:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
LBB0_48:
	mov	x25, x0
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh37:
	adrp	x2, l_.str.2@PAGE
Lloh38:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x26, x25
	b	LBB0_50
LBB0_49:
	mov	x19, x0
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_ff_dlog
	mov	x26, x19
LBB0_50:
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_av_free
	b	LBB0_46
LBB0_51:
Lloh41:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str.3@PAGE
Lloh45:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh46:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh48:
	ldr	w26, [x8]
	b	LBB0_50
LBB0_52:
	mov	x26, x0
	b	LBB0_50
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input packet too small\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Error in svq1_decode_frame_header %i\n"

	.comm	_AVDISCARD_NONREF,8,3           ; @AVDISCARD_NONREF
	.comm	_AVDISCARD_NONKEY,8,3           ; @AVDISCARD_NONKEY
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
l_.str.2:                               ; @.str.2
	.asciz	"Error in svq1_decode_block %i (keyframe)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Missing reference frame.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error in svq1_decode_delta_block %i\n"

	.no_dead_strip	_svq1_decode_frame
.subsections_via_symbols
