	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msmpeg4v12_decode_mb
_msmpeg4v12_decode_mb:                  ## @msmpeg4v12_decode_mb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	120(%rdi), %r15
	movslq	(%rdi), %rcx
	movslq	4(%rdi), %rdx
	movslq	8(%rdi), %r14
	imulq	%rdx, %r14
	addq	%rcx, %r14
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 112(%rbx)
	je	LBB0_9
## %bb.2:
	leaq	80(%rbx), %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	$0, 24(%rbx)
	movq	32(%rbx), %rax
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, (%rax)
	movq	$-1, 16(%rax)
	movq	_MV_DIR_FORWARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 104(%rbx)
	movq	_MV_TYPE_16X16@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movl	$1, 48(%rbx)
	movq	_MB_TYPE_SKIP@GOTPCREL(%rip), %rax
	movq	_MB_TYPE_L0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MB_TYPE_16x16@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15,%r14,4)
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_4:
	movl	$1, 24(%rbx)
	leaq	80(%rbx), %rdi
	xorl	%eax, %eax
	cmpl	$2, 52(%rbx)
	sete	%al
	movq	_ff_h263_intra_MCBPC_vlc@GOTPCREL(%rip), %rcx
	cmoveq	_v2_intra_cbpc_vlc@GOTPCREL(%rip), %rcx
	movq	_INTRA_MCBPC_VLC_BITS@GOTPCREL(%rip), %rdx
	cmoveq	_V2_INTRA_CBPC_VLC_BITS@GOTPCREL(%rip), %rdx
	movl	(%rcx), %esi
	movl	$2, %ecx
	subl	%eax, %ecx
	movl	(%rdx), %edx
	callq	_get_vlc2
	movl	%eax, %r12d
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.5:
	movl	24(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_13
LBB0_6:
	cmpl	$2, 52(%rbx)
	jne	LBB0_15
## %bb.7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	80(%rbx), %r15
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 88(%rbx)
	movq	_ff_h263_cbpy_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CBPY_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_28
## %bb.8:
	movl	%eax, %r15d
	shll	$2, %r15d
	orl	%r12d, %r15d
	jmp	LBB0_17
LBB0_9:
	leaq	80(%rbx), %rdi
	xorl	%eax, %eax
	cmpl	$2, 52(%rbx)
	sete	%al
	movq	_ff_h263_inter_MCBPC_vlc@GOTPCREL(%rip), %rcx
	cmoveq	_v2_mb_type_vlc@GOTPCREL(%rip), %rcx
	movq	_INTER_MCBPC_VLC_BITS@GOTPCREL(%rip), %rdx
	cmoveq	_V2_MB_TYPE_VLC_BITS@GOTPCREL(%rip), %rdx
	movl	(%rcx), %esi
	movl	$2, %ecx
	subl	%eax, %ecx
	movl	(%rdx), %edx
	callq	_get_vlc2
	movl	%eax, %r12d
	cmpl	$8, %eax
	jb	LBB0_12
LBB0_10:
	movl	56(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	leaq	L_.str(%rip), %rdx
LBB0_11:
	movl	%r12d, %ecx
	jmp	LBB0_25
LBB0_12:
	movl	%r12d, %eax
	shrl	$2, %eax
	movl	%eax, 24(%rbx)
	andl	$3, %r12d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_13:
	movq	%r15, %r13
	leaq	80(%rbx), %rdi
	movq	_ff_h263_cbpy_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CBPY_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_29
## %bb.14:
	movl	%eax, %r15d
	shll	$2, %r15d
	orl	%r12d, %r15d
	movl	%r15d, %eax
	xorl	$60, %eax
	cmpl	$3, %r12d
	cmovnel	%eax, %r15d
	cmpl	$1, 52(%rbx)
	cmovel	%eax, %r15d
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ff_h263_pred_motion
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_msmpeg4v2_decode_motion
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_msmpeg4v2_decode_motion
	movl	%eax, -44(%rbp)
	movq	_MV_DIR_FORWARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 104(%rbx)
	movq	_MV_TYPE_16X16@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movl	-48(%rbp), %eax
	movq	40(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%rcx)
	movq	_MB_TYPE_L0@GOTPCREL(%rip), %rax
	movq	_MB_TYPE_16x16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r13,%r14,4)
	jmp	LBB0_18
LBB0_15:
	movq	$0, 88(%rbx)
	leaq	80(%rbx), %rdi
	movq	_ff_h263_cbpy_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CBPY_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_28
## %bb.16:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	shll	$2, %eax
	orl	%r12d, %eax
	movq	16(%rbx), %rcx
	movl	%eax, %r15d
	xorl	$60, %r15d
	cmpq	(%r13), %rcx
	cmovnel	%eax, %r15d
LBB0_17:
	movq	_MB_TYPE_INTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
LBB0_18:
	movq	64(%rbx), %rax
	movl	(%rax), %edi
	callq	*72(%rbx)
	movl	%r15d, %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	js	LBB0_24
## %bb.19:
	leaq	256(%r14), %rsi
	movl	%r15d, %ecx
	shrl	$4, %ecx
	andl	$1, %ecx
	movl	$1, %r12d
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	js	LBB0_24
## %bb.20:
	leaq	512(%r14), %rsi
	movl	%r15d, %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	movl	$2, %r12d
	movq	%rbx, %rdi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	js	LBB0_24
## %bb.21:
	leaq	768(%r14), %rsi
	movl	%r15d, %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	movl	$3, %r12d
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	js	LBB0_24
## %bb.22:
	leaq	1024(%r14), %rsi
	movl	%r15d, %ecx
	shrl	%ecx
	andl	$1, %ecx
	xorl	%r13d, %r13d
	movl	$4, %r12d
	movq	%rbx, %rdi
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	js	LBB0_24
## %bb.23:
	addq	$1280, %r14                     ## imm = 0x500
	andl	$1, %r15d
	movl	$5, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$5, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_ff_msmpeg4_decode_block
	testq	%rax, %rax
	jns	LBB0_27
LBB0_24:
	movl	56(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	leaq	L_.str.3(%rip), %rdx
	movl	%r12d, %r9d
LBB0_25:
	xorl	%eax, %eax
	callq	_av_log
LBB0_26:
	movl	$-1, %r13d
LBB0_27:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	56(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_26
LBB0_29:
	movl	56(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_MV_DIR_FORWARD,8,3             ## @MV_DIR_FORWARD
	.comm	_MV_TYPE_16X16,8,3              ## @MV_TYPE_16X16
	.comm	_MB_TYPE_SKIP,4,2               ## @MB_TYPE_SKIP
	.comm	_MB_TYPE_L0,4,2                 ## @MB_TYPE_L0
	.comm	_MB_TYPE_16x16,4,2              ## @MB_TYPE_16x16
	.comm	_v2_mb_type_vlc,4,2             ## @v2_mb_type_vlc
	.comm	_V2_MB_TYPE_VLC_BITS,4,2        ## @V2_MB_TYPE_VLC_BITS
	.comm	_ff_h263_inter_MCBPC_vlc,4,2    ## @ff_h263_inter_MCBPC_vlc
	.comm	_INTER_MCBPC_VLC_BITS,4,2       ## @INTER_MCBPC_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cbpc %d invalid at %d %d\n"

	.comm	_v2_intra_cbpc_vlc,4,2          ## @v2_intra_cbpc_vlc
	.comm	_V2_INTRA_CBPC_VLC_BITS,4,2     ## @V2_INTRA_CBPC_VLC_BITS
	.comm	_ff_h263_intra_MCBPC_vlc,4,2    ## @ff_h263_intra_MCBPC_vlc
	.comm	_INTRA_MCBPC_VLC_BITS,4,2       ## @INTRA_MCBPC_VLC_BITS
	.comm	_ff_h263_cbpy_vlc,4,2           ## @ff_h263_cbpy_vlc
	.comm	_CBPY_VLC_BITS,4,2              ## @CBPY_VLC_BITS
L_.str.1:                               ## @.str.1
	.asciz	"cbpy %d invalid at %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cbpy vlc invalid\n"

	.comm	_MB_TYPE_INTRA,4,2              ## @MB_TYPE_INTRA
L_.str.3:                               ## @.str.3
	.asciz	"\nerror while decoding block: %d x %d (%d)\n"

	.no_dead_strip	_msmpeg4v12_decode_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msmpeg4v12_decode_mb
_msmpeg4v12_decode_mb:                  ; @msmpeg4v12_decode_mb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #120]
	ldpsw	x8, x9, [x0]
	ldrsw	x10, [x0, #8]
	madd	x24, x10, x9, x8
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x22, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_6
; %bb.2:
	add	x0, x19, #80
	bl	_get_bits1
	cbz	x0, LBB0_6
; %bb.3:
	mov	w0, #0
	str	wzr, [x19, #24]
	ldr	x8, [x19, #32]
	mov	x9, #-1
	stp	x9, x9, [x8, #8]
	str	x9, [x8]
Lloh2:
	adrp	x8, _MV_DIR_FORWARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV_DIR_FORWARD@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MV_TYPE_16X16@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MV_TYPE_16X16@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #96]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	xzr, [x8]
	mov	w8, #1
Lloh8:
	adrp	x9, _MB_TYPE_SKIP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MB_TYPE_SKIP@GOTPAGEOFF]
	str	w8, [x19, #48]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _MB_TYPE_L0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MB_TYPE_L0@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _MB_TYPE_16x16@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MB_TYPE_16x16@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x23, x24, lsl #2]
	b	LBB0_29
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #24]
	ldr	w9, [x19, #52]
	add	x0, x19, #80
	cmp	w9, #2
	cinc	w3, w8, ne
Lloh17:
	adrp	x8, _v2_intra_cbpc_vlc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _v2_intra_cbpc_vlc@GOTPAGEOFF]
Lloh19:
	adrp	x9, _ff_h263_intra_MCBPC_vlc@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ff_h263_intra_MCBPC_vlc@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _V2_INTRA_CBPC_VLC_BITS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V2_INTRA_CBPC_VLC_BITS@GOTPAGEOFF]
Lloh23:
	adrp	x9, _INTRA_MCBPC_VLC_BITS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _INTRA_MCBPC_VLC_BITS@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	bl	_get_vlc2
	mov	x21, x0
	cmp	w0, #3
	b.ls	LBB0_8
; %bb.5:
	ldr	w0, [x19, #56]
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh28:
	adrp	x2, l_.str@PAGE
Lloh29:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_28
LBB0_6:
	ldr	w8, [x19, #52]
	add	x0, x19, #80
	cmp	w8, #2
	mov	w8, #1
	cinc	w3, w8, ne
Lloh30:
	adrp	x8, _v2_mb_type_vlc@GOTPAGE
Lloh31:
	ldr	x8, [x8, _v2_mb_type_vlc@GOTPAGEOFF]
Lloh32:
	adrp	x9, _ff_h263_inter_MCBPC_vlc@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ff_h263_inter_MCBPC_vlc@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _V2_MB_TYPE_VLC_BITS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V2_MB_TYPE_VLC_BITS@GOTPAGEOFF]
Lloh36:
	adrp	x9, _INTER_MCBPC_VLC_BITS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _INTER_MCBPC_VLC_BITS@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #8
	b.lo	LBB0_12
; %bb.7:
	ldr	w8, [x19, #56]
Lloh38:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x9]
	ldp	w9, w10, [x19]
	stp	x9, x10, [sp, #8]
	str	x0, [sp]
Lloh41:
	adrp	x2, l_.str@PAGE
Lloh42:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	b	LBB0_28
LBB0_8:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
LBB0_9:
	ldr	w8, [x19, #52]
	cmp	w8, #2
	b.ne	LBB0_15
; %bb.10:
	add	x22, x19, #80
	mov	x0, x22
	bl	_get_bits1
	str	x0, [x19, #88]
Lloh43:
	adrp	x8, _ff_h263_cbpy_vlc@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ff_h263_cbpy_vlc@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _CBPY_VLC_BITS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CBPY_VLC_BITS@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #1
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_25
; %bb.11:
	orr	w21, w21, w0, lsl #2
	b	LBB0_17
LBB0_12:
	lsr	w8, w0, #2
	str	w8, [x19, #24]
	and	w21, w0, #0x3
	cbnz	w8, LBB0_9
LBB0_13:
	add	x0, x19, #80
Lloh49:
	adrp	x8, _ff_h263_cbpy_vlc@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ff_h263_cbpy_vlc@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _CBPY_VLC_BITS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CBPY_VLC_BITS@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_30
; %bb.14:
	orr	w8, w21, w0, lsl #2
	ldr	w9, [x19, #52]
	cmp	w21, #3
	ccmp	w9, #1, #4, eq
	eor	w9, w8, #0x3c
	csel	w21, w8, w9, ne
	add	x3, sp, #28
	add	x4, sp, #24
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ff_h263_pred_motion
	ldr	w1, [sp, #28]
	mov	x0, x19
	mov	w2, #1
	bl	_msmpeg4v2_decode_motion
	str	w0, [sp, #28]
	ldr	w1, [sp, #24]
	mov	x0, x19
	mov	w2, #1
	bl	_msmpeg4v2_decode_motion
	str	w0, [sp, #24]
Lloh55:
	adrp	x8, _MV_DIR_FORWARD@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MV_DIR_FORWARD@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
Lloh58:
	adrp	x9, _MV_TYPE_16X16@GOTPAGE
Lloh59:
	ldr	x9, [x9, _MV_TYPE_16X16@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #96]
	ldr	w8, [sp, #28]
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [sp, #24]
	str	w8, [x9, #4]
Lloh61:
	adrp	x8, _MB_TYPE_L0@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MB_TYPE_L0@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _MB_TYPE_16x16@GOTPAGE
Lloh65:
	ldr	x9, [x9, _MB_TYPE_16x16@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_15:
	str	xzr, [x19, #88]
	add	x0, x19, #80
Lloh67:
	adrp	x8, _ff_h263_cbpy_vlc@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ff_h263_cbpy_vlc@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
Lloh70:
	adrp	x8, _CBPY_VLC_BITS@GOTPAGE
Lloh71:
	ldr	x8, [x8, _CBPY_VLC_BITS@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_25
; %bb.16:
	orr	w8, w21, w0, lsl #2
	ldr	x9, [x19, #16]
	ldr	x10, [x22]
	eor	w11, w8, #0x3c
	cmp	x9, x10
	csel	w21, w11, w8, eq
LBB0_17:
Lloh73:
	adrp	x8, _MB_TYPE_INTRA@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MB_TYPE_INTRA@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
LBB0_18:
	str	w8, [x23, x24, lsl #2]
	ldp	x9, x8, [x19, #64]
	ldr	w0, [x9]
	blr	x8
	ubfx	w3, w21, #5, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_26
; %bb.19:
	add	x1, x20, #256
	ubfx	w3, w21, #4, #1
	mov	w22, #1
	mov	x0, x19
	mov	w2, #1
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_27
; %bb.20:
	add	x1, x20, #512
	ubfx	w3, w21, #3, #1
	mov	w22, #2
	mov	x0, x19
	mov	w2, #2
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_27
; %bb.21:
	add	x1, x20, #768
	ubfx	w3, w21, #2, #1
	mov	w22, #3
	mov	x0, x19
	mov	w2, #3
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_27
; %bb.22:
	add	x1, x20, #1024
	ubfx	w3, w21, #1, #1
	mov	w22, #4
	mov	x0, x19
	mov	w2, #4
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_27
; %bb.23:
	add	x1, x20, #1280
	and	w3, w21, #0x1
	mov	w22, #5
	mov	x0, x19
	mov	w2, #5
	mov	x4, #0
	bl	_ff_msmpeg4_decode_block
	tbnz	x0, #63, LBB0_27
; %bb.24:
	mov	w0, #0
	b	LBB0_29
LBB0_25:
	ldr	w0, [x19, #56]
Lloh76:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
Lloh79:
	adrp	x2, l_.str.2@PAGE
Lloh80:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_26:
	mov	w22, #0
LBB0_27:
	ldr	w0, [x19, #56]
Lloh81:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	ldp	w8, w9, [x19]
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh84:
	adrp	x2, l_.str.3@PAGE
Lloh85:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_28:
	bl	_av_log
	mov	w0, #-1
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_30:
	ldr	w0, [x19, #56]
Lloh86:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh87:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp, #8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh89:
	adrp	x2, l_.str.1@PAGE
Lloh90:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_MV_DIR_FORWARD,8,3             ; @MV_DIR_FORWARD
	.comm	_MV_TYPE_16X16,8,3              ; @MV_TYPE_16X16
	.comm	_MB_TYPE_SKIP,4,2               ; @MB_TYPE_SKIP
	.comm	_MB_TYPE_L0,4,2                 ; @MB_TYPE_L0
	.comm	_MB_TYPE_16x16,4,2              ; @MB_TYPE_16x16
	.comm	_v2_mb_type_vlc,4,2             ; @v2_mb_type_vlc
	.comm	_V2_MB_TYPE_VLC_BITS,4,2        ; @V2_MB_TYPE_VLC_BITS
	.comm	_ff_h263_inter_MCBPC_vlc,4,2    ; @ff_h263_inter_MCBPC_vlc
	.comm	_INTER_MCBPC_VLC_BITS,4,2       ; @INTER_MCBPC_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cbpc %d invalid at %d %d\n"

	.comm	_v2_intra_cbpc_vlc,4,2          ; @v2_intra_cbpc_vlc
	.comm	_V2_INTRA_CBPC_VLC_BITS,4,2     ; @V2_INTRA_CBPC_VLC_BITS
	.comm	_ff_h263_intra_MCBPC_vlc,4,2    ; @ff_h263_intra_MCBPC_vlc
	.comm	_INTRA_MCBPC_VLC_BITS,4,2       ; @INTRA_MCBPC_VLC_BITS
	.comm	_ff_h263_cbpy_vlc,4,2           ; @ff_h263_cbpy_vlc
	.comm	_CBPY_VLC_BITS,4,2              ; @CBPY_VLC_BITS
l_.str.1:                               ; @.str.1
	.asciz	"cbpy %d invalid at %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cbpy vlc invalid\n"

	.comm	_MB_TYPE_INTRA,4,2              ; @MB_TYPE_INTRA
l_.str.3:                               ; @.str.3
	.asciz	"\nerror while decoding block: %d x %d (%d)\n"

	.no_dead_strip	_msmpeg4v12_decode_mb
.subsections_via_symbols
