	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_mb_info
_decode_mb_info:                        ## @decode_mb_info
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movl	(%rsi), %r9d
	xorl	%r14d, %r14d
	cmpl	8(%rsi), %r9d
	setne	%r10b
	movq	_IVI4_FRAMETYPE_BIDIR@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	cmpq	(%rax), %rcx
	sete	%r11b
	movl	8(%rdx), %ecx
	movl	12(%rdx), %r8d
	leal	(%r9,%rcx), %eax
	decl	%eax
	cltd
	idivl	%r9d
	movl	%eax, %r15d
	leal	(%r9,%r8), %eax
	decl	%eax
	cltd
	idivl	%r9d
	imull	%r15d, %eax
	movl	16(%rbx), %edx
	cmpl	%edx, %eax
	jne	LBB0_56
## %bb.1:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_55
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	%edi, %ebx
	imull	%r9d, %ebx
	movb	%r10b, %r14b
	leal	(%r14,%r14,2), %eax
	incl	%eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	32(%rdx), %rax
	xorl	%esi, %esi
	movb	%r11b, %sil
	incl	%esi
	movl	%esi, -132(%rbp)                ## 4-byte Spill
	movq	(%rax), %rax
	movl	(%rax), %eax
	sarl	$3, %eax
	movl	%r9d, %esi
	sarl	$3, %esi
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	subl	%esi, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	(%rsi), %eax
	movl	4(%rsi), %r14d
	movq	32(%rsi), %r13
	movq	24(%rsi), %r15
	imull	%eax, %edi
	addl	%r14d, %edi
	addq	$8, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %r11d
	xorl	%edx, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -124(%rbp)                ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_52
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, -128(%rbp)                ## 4-byte Spill
	movl	%edi, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r10), %r9d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	addq	$48, %r13
	leaq	48(%r15), %rax
	testq	%r15, %r15
	cmovneq	%rax, %r15
	addl	%r9d, %r12d
	addl	%r9d, %r14d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	leal	(%rcx,%rdx), %eax
	cmpl	%eax, %r14d
	jge	LBB0_53
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, (%r13)
	movl	%r11d, 4(%r13)
	movl	%r12d, 8(%r13)
	movq	$0, 12(%r13)
	movq	%rbx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_58
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IVI4_FRAMETYPE_INTRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_59
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	$1, 20(%r13)
	movq	$0, 40(%r13)
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	cmpl	$0, 36(%r10)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 32(%r10)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, 24(%r13)
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movl	%eax, 24(%r13)
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	$0, 28(%r13)
	cmpq	$0, 24(%r10)
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	testq	%r15, %r15
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	28(%r15), %edi
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -84(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%edi, 28(%r13)
	movl	32(%r15), %eax
	movl	%eax, 32(%r13)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=2
	testq	%r15, %r15
	je	LBB0_60
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	20(%r15), %eax
	jmp	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_ivi_scale_mv
	movl	%eax, 28(%r13)
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_ivi_scale_mv
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movl	%eax, 32(%r13)
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	cmpl	$0, 20(%r13)
	jne	LBB0_50
	jmp	LBB0_5
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	xorl	%eax, %eax
	movq	_IVI4_FRAMETYPE_INTRA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_IVI4_FRAMETYPE_INTRA1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	-132(%rbp), %esi                ## 4-byte Reload
	callq	_get_bits
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, 20(%r13)
	movl	-136(%rbp), %esi                ## 4-byte Reload
	callq	_get_bits
	movq	%rax, 40(%r13)
	movl	$0, 24(%r13)
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	cmpq	$0, 40(%r10)
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_7 Depth=2
	testq	%r15, %r15
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	24(%r15), %eax
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=2
	testq	%rax, %rax
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_42
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, 24(%r13)
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, 24(%r13)
LBB0_34:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 20(%r13)
	je	LBB0_49
## %bb.35:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, 24(%r10)
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=2
	testq	%r15, %r15
	je	LBB0_47
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	28(%r15), %edi
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -84(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_45
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%edi, 28(%r13)
	movl	32(%r15), %eax
	movl	%eax, 32(%r13)
	jmp	LBB0_47
LBB0_39:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movslq	%ebx, %rbx
	addq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%ecx, 28(%r13)
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, 32(%r13)
	movl	20(%r13), %eax
	cmpl	$3, %eax
	jne	LBB0_40
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	addl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_IVI_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	callq	_IVI_TOSIGNED
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addl	%eax, %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	negl	%eax
	movl	%eax, 12(%r13)
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	negl	%eax
	movl	%eax, 16(%r13)
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$2, %eax
	jne	LBB0_41
LBB0_48:                                ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	subl	28(%r13), %eax
	movl	%eax, 12(%r13)
	xorl	%eax, %eax
	subl	32(%r13), %eax
	movl	%eax, 16(%r13)
LBB0_49:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	$0, 28(%r13)
	cmpl	$0, 20(%r13)
	jne	LBB0_50
	jmp	LBB0_5
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 36(%r10)
	jne	LBB0_34
## %bb.43:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 32(%r10)
	jne	LBB0_34
## %bb.44:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	jne	LBB0_32
	jmp	LBB0_34
LBB0_45:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_ivi_scale_mv
	movl	%eax, 28(%r13)
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_ivi_scale_mv
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movl	%eax, 32(%r13)
LBB0_47:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	20(%r13), %eax
	cmpl	$2, %eax
	je	LBB0_48
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 20(%r13)
	je	LBB0_5
LBB0_50:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	12(%r10), %ecx
	movl	28(%r13), %eax
	movl	32(%r13), %r8d
	movl	%eax, %esi
	sarl	%cl, %esi
	addl	%r14d, %esi
	movl	%r8d, %edi
	sarl	%cl, %edi
	addl	%r11d, %edi
	movl	4(%r10), %edx
	imull	%edx, %edi
	addl	%esi, %edi
	js	LBB0_57
## %bb.51:                              ##   in Loop: Header=BB0_7 Depth=2
	leal	(%rax,%rcx), %esi
	sarl	%cl, %esi
	movl	(%r10), %r9d
	leal	(%r8,%rcx), %edi
	sarl	%cl, %edi
	leal	(%r9,%r11), %ebx
	decl	%ebx
	addl	%edi, %ebx
	imull	%edx, %ebx
	leal	(%r9,%r14), %edx
	decl	%edx
	addl	%esi, %edx
	addl	%ebx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	16(%r10), %edx
	jl	LBB0_6
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edx
	jmp	LBB0_54
LBB0_53:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	(%rsi), %eax
	movl	12(%rsi), %r8d
	movl	-128(%rbp), %edi                ## 4-byte Reload
	movl	-124(%rbp), %ebx                ## 4-byte Reload
LBB0_54:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ebx, %edi
	addl	%r9d, %r11d
	leal	(%r8,%rax), %esi
	movl	%edx, %r14d
	cmpl	%esi, %r11d
	jl	LBB0_3
LBB0_55:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_align_get_bits
	xorl	%eax, %eax
	jmp	LBB0_63
LBB0_56:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_63
LBB0_57:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	imull	%ecx, %r14d
	addl	%r14d, %eax
	imull	%ecx, %r11d
	addl	%r11d, %r8d
	leaq	L_.str.4(%rip), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_62
LBB0_58:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_61
LBB0_59:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_61
LBB0_60:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_61:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_62:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_63:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IVI4_FRAMETYPE_BIDIR,8,3       ## @IVI4_FRAMETYPE_BIDIR
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num_MBs mismatch %d %d %d %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Insufficient input for mb info\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_IVI4_FRAMETYPE_INTRA,8,3       ## @IVI4_FRAMETYPE_INTRA
L_.str.2:                               ## @.str.2
	.asciz	"Empty macroblock in an INTRA picture!\n"

	.comm	_IVI_VLC_BITS,4,2               ## @IVI_VLC_BITS
L_.str.3:                               ## @.str.3
	.asciz	"ref_mb unavailable\n"

	.comm	_IVI4_FRAMETYPE_INTRA1,8,3      ## @IVI4_FRAMETYPE_INTRA1
L_.str.4:                               ## @.str.4
	.asciz	"motion vector %d %d outside reference\n"

	.no_dead_strip	_decode_mb_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function decode_mb_info
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_decode_mb_info:                        ; @decode_mb_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	ldr	w8, [x1]
	ldr	w9, [x1, #8]
	cmp	w8, w9
	mov	w9, #4
	csinc	w13, w9, wzr, ne
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _IVI4_FRAMETYPE_BIDIR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IVI4_FRAMETYPE_BIDIR@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #1
	cinc	w14, w9, eq
	sub	w11, w8, #1
	ldp	w9, w10, [x2, #8]
	add	w12, w11, w9
	sdiv	w12, w12, w8
	add	w11, w11, w10
	sdiv	w11, w11, w8
	mul	w12, w11, w12
	ldr	w11, [x2, #16]
	cmp	w12, w11
	b.ne	LBB0_52
; %bb.1:
	mov	x21, x0
	cmp	w10, #1
	b.lt	LBB0_51
; %bb.2:
	mov	x20, x2
	mov	x22, x1
	stp	xzr, xzr, [sp, #64]             ; 16-byte Folded Spill
	ldr	w12, [x1, #4]
	mul	w15, w12, w8
	ldr	x11, [x21, #32]
	ldr	x11, [x11]
	ldr	w11, [x11]
	asr	w16, w11, #3
	asr	w11, w8, #3
	stp	w11, w16, [sp, #88]             ; 8-byte Folded Spill
	sub	w11, w16, w11
	str	w11, [sp, #60]                  ; 4-byte Folded Spill
	ldp	x25, x28, [x2, #24]
	ldp	w11, w24, [x2]
	madd	w19, w11, w12, w24
	add	x26, x21, #8
Lloh3:
	adrp	x23, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
Lloh5:
	adrp	x12, lCPI0_0@PAGE
Lloh6:
	ldr	d8, [x12, lCPI0_0@PAGEOFF]
	mov	x27, x11
	str	x3, [sp, #48]                   ; 8-byte Folded Spill
	str	w13, [sp, #84]                  ; 4-byte Folded Spill
	str	w14, [sp, #44]                  ; 4-byte Folded Spill
	str	w15, [sp, #36]                  ; 4-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_50
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w19, [sp, #40]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #48
	add	x9, x25, #48
	cmp	x25, #0
	csel	x25, xzr, x9, eq
	add	w19, w8, w19
	add	w24, w8, w24
	ldp	w12, w9, [x20, #4]
	add	w10, w9, w12
	cmp	w24, w10
	b.ge	LBB0_49
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w24, w27, [x28]
	stp	wzr, wzr, [x28, #12]
	str	w19, [x28, #8]
	mov	x0, x26
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_54
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_get_bits1
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_55
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	str	xzr, [x28, #40]
	stur	d8, [x28, #20]
	ldr	w8, [x22, #36]
	cbnz	w8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22, #32]
	cbnz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
	str	w0, [x28, #24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
	str	w0, [x28, #24]
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
	stp	wzr, wzr, [x28, #28]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_46
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=2
	cbz	x25, LBB0_46
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x25, #28]
	ldp	w8, w9, [sp, #88]               ; 8-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, #32]
	stp	w0, w8, [x28, #28]
	b	LBB0_46
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=2
	cbz	x25, LBB0_56
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x25, #20]
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w23, [sp, #60]                  ; 4-byte Folded Reload
	mov	x1, x23
	bl	_ivi_scale_mv
	str	w0, [x28, #28]
	ldr	w0, [x25, #32]
	mov	x1, x23
Lloh10:
	adrp	x23, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
	bl	_ivi_scale_mv
	str	w0, [x28, #32]
	b	LBB0_46
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21]
	ldr	x9, [x23]
Lloh12:
	adrp	x10, _IVI4_FRAMETYPE_INTRA1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IVI4_FRAMETYPE_INTRA1@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w0, #0
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_get_bits
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [sp, #84]                   ; 4-byte Folded Reload
	str	w0, [x28, #20]
	mov	x0, x26
	bl	_get_bits
	str	x0, [x28, #40]
	str	wzr, [x28, #24]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=2
	cbz	x25, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x25, #24]
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	x0, LBB0_39
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
	str	w0, [x28, #24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=2
	str	w0, [x28, #24]
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x28, #20]
	cbz	w8, LBB0_36
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=2
	cbz	x25, LBB0_43
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x25, #28]
	ldp	w8, w9, [sp, #88]               ; 8-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_42
; %bb.35:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, #32]
	stp	w0, w8, [x28, #28]
	b	LBB0_43
LBB0_36:                                ;   in Loop: Header=BB0_7 Depth=2
	stp	wzr, wzr, [x28, #28]
	b	LBB0_46
LBB0_37:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	add	x23, x0, w23, sxtw
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x0, w8, sxtw
	stp	x23, x8, [sp, #64]              ; 16-byte Folded Spill
	stp	w8, w23, [x28, #28]
Lloh24:
	adrp	x23, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh25:
	ldr	x23, [x23, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
	ldr	w8, [x28, #20]
	cmp	w8, #3
	b.ne	LBB0_44
; %bb.38:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	add	w23, w0, w23
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _IVI_VLC_BITS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IVI_VLC_BITS@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w3, #1
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IVI_TOSIGNED
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	w8, w0, w8
	stp	x23, x8, [sp, #64]              ; 16-byte Folded Spill
	neg	w8, w8
	neg	w9, w23
Lloh32:
	adrp	x23, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh33:
	ldr	x23, [x23, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
	stp	w8, w9, [x28, #12]
	b	LBB0_43
LBB0_39:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22, #36]
	cbnz	w8, LBB0_31
; %bb.40:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22, #32]
	cbnz	w8, LBB0_31
; %bb.41:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_29
	b	LBB0_31
LBB0_42:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w23, [sp, #60]                  ; 4-byte Folded Reload
	mov	x1, x23
	bl	_ivi_scale_mv
	str	w0, [x28, #28]
	ldr	w0, [x25, #32]
	mov	x1, x23
Lloh34:
	adrp	x23, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh35:
	ldr	x23, [x23, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
	bl	_ivi_scale_mv
	str	w0, [x28, #32]
LBB0_43:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x28, #20]
LBB0_44:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #2
	b.ne	LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_7 Depth=2
	ldur	d0, [x28, #28]
	neg.2s	v0, v0
	stur	d0, [x28, #12]
	movi.2d	v0, #0000000000000000
	stur	d0, [x28, #28]
LBB0_46:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x28, #20]
	cbz	w8, LBB0_5
; %bb.47:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x22, #12]
	ldp	w10, w11, [x28, #28]
	asr	w8, w10, w9
	add	w8, w8, w24
	asr	w12, w11, w9
	add	w13, w12, w27
	ldr	w12, [x22, #4]
	madd	w8, w13, w12, w8
	tbnz	w8, #31, LBB0_53
; %bb.48:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w10, w9
	asr	w13, w8, w9
	ldr	w8, [x22]
	add	w14, w11, w9
	asr	w14, w14, w9
	sub	w15, w8, #1
	add	w16, w15, w27
	add	w14, w16, w14
	add	w15, w15, w24
	add	w13, w15, w13
	madd	w12, w14, w12, w13
	ldr	w13, [x22, #16]
	cmp	w12, w13
	b.lt	LBB0_6
	b	LBB0_53
LBB0_49:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x20]
	ldr	w10, [x20, #12]
	mov	x24, x12
	ldp	w15, w19, [sp, #36]             ; 8-byte Folded Reload
LBB0_50:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, w15
	add	w27, w8, w27
	add	w12, w10, w11
	cmp	w27, w12
	b.lt	LBB0_3
LBB0_51:
	add	x0, x21, #8
	bl	_align_get_bits
	mov	w0, #0
	b	LBB0_58
LBB0_52:
Lloh36:
	adrp	x12, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x12, [x12, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x12]
	stp	x8, x11, [sp, #16]
	stp	x9, x10, [sp]
Lloh39:
	adrp	x2, l_.str@PAGE
Lloh40:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x3
	bl	_av_log
	mov	w0, #-1
	b	LBB0_58
LBB0_53:
Lloh41:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	madd	w8, w9, w24, w10
	madd	w9, w9, w27, w11
	stp	x8, x9, [sp]
Lloh44:
	adrp	x2, l_.str.4@PAGE
Lloh45:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_57
LBB0_54:
Lloh46:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.1@PAGE
Lloh50:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_57
LBB0_55:
Lloh51:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
Lloh54:
	adrp	x2, l_.str.2@PAGE
Lloh55:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_57
LBB0_56:
Lloh56:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x2, l_.str.3@PAGE
Lloh60:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_57:
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_av_log
Lloh61:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
LBB0_58:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_IVI4_FRAMETYPE_BIDIR,8,3       ; @IVI4_FRAMETYPE_BIDIR
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num_MBs mismatch %d %d %d %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Insufficient input for mb info\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_IVI4_FRAMETYPE_INTRA,8,3       ; @IVI4_FRAMETYPE_INTRA
l_.str.2:                               ; @.str.2
	.asciz	"Empty macroblock in an INTRA picture!\n"

	.comm	_IVI_VLC_BITS,4,2               ; @IVI_VLC_BITS
l_.str.3:                               ; @.str.3
	.asciz	"ref_mb unavailable\n"

	.comm	_IVI4_FRAMETYPE_INTRA1,8,3      ; @IVI4_FRAMETYPE_INTRA1
l_.str.4:                               ; @.str.4
	.asciz	"motion vector %d %d outside reference\n"

	.no_dead_strip	_decode_mb_info
.subsections_via_symbols
