	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msmpeg4_decode_dc
_msmpeg4_decode_dc:                     ## @msmpeg4_decode_dc
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	leaq	24(%rdi), %r12
	cmpl	$2, (%rdi)
	jg	LBB0_7
## %bb.1:
	cmpl	$4, %r15d
	jge	LBB0_2
## %bb.3:
	movq	_v2_dc_lum_vlc@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	cmpl	$3, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jg	LBB0_9
## %bb.8:
	movq	_ff_msmp4_dc_luma_vlc@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_v2_dc_chroma_vlc@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	_DC_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	addl	$-256, %ebx
	cmpl	$1, (%r13)
	je	LBB0_19
LBB0_20:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	callq	_ff_msmpeg4_pred_dc
	addl	%ebx, %eax
	cmpl	$3, %r15d
	jg	LBB0_22
## %bb.21:
	movl	16(%r13), %ecx
	jmp	LBB0_23
LBB0_9:
	movq	_ff_msmp4_dc_chroma_vlc@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	8(%r13), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movl	(%rax), %esi
	movq	_DC_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	%eax, %r14d
	movq	_DC_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_15
## %bb.13:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_5:
	movl	28(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$0, (%r14)
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_11:
	movl	28(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_22:
	movl	20(%r13), %ecx
LBB0_23:
	imull	%eax, %ecx
	movq	-56(%rbp), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_24
LBB0_15:
	testl	%r14d, %r14d
	je	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%r14d, %ebx
	negl	%ebx
	testq	%rax, %rax
	cmovel	%r14d, %ebx
	jmp	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	$1, (%r13)
	jne	LBB0_20
LBB0_19:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_msmpeg4v1_pred_dc
	addl	%ebx, %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v2_dc_lum_vlc,4,2              ## @v2_dc_lum_vlc
	.comm	_DC_VLC_BITS,4,2                ## @DC_VLC_BITS
	.comm	_v2_dc_chroma_vlc,4,2           ## @v2_dc_chroma_vlc
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal dc vlc\n"

	.comm	_ff_msmp4_dc_luma_vlc,8,3       ## @ff_msmp4_dc_luma_vlc
	.comm	_ff_msmp4_dc_chroma_vlc,8,3     ## @ff_msmp4_dc_chroma_vlc
	.comm	_DC_MAX,4,2                     ## @DC_MAX
	.no_dead_strip	_msmpeg4_decode_dc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msmpeg4_decode_dc
_msmpeg4_decode_dc:                     ; @msmpeg4_decode_dc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x22, x0
	ldr	w8, [x22], #24
	cmp	w8, #3
	b.ge	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _v2_dc_lum_vlc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _v2_dc_lum_vlc@GOTPAGEOFF]
Lloh2:
	adrp	x9, _v2_dc_chroma_vlc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _v2_dc_chroma_vlc@GOTPAGEOFF]
	cmp	w21, #4
	csel	x8, x8, x9, lt
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _DC_VLC_BITS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_VLC_BITS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_9
; %bb.2:
	sub	w22, w0, #256
	b	LBB0_13
LBB0_3:
	cmp	w21, #3
	b.gt	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _ff_msmp4_dc_luma_vlc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ff_msmp4_dc_luma_vlc@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ff_msmp4_dc_chroma_vlc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ff_msmp4_dc_chroma_vlc@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x8, x8, x9, lsl #2
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DC_VLC_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DC_VLC_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x23, x0
Lloh14:
	adrp	x8, _DC_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DC_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x22
	mov	w1, #8
	bl	_get_bits
	mov	x23, x0
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20, #28]
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	str	wzr, [x19]
	mov	w0, #-1
	b	LBB0_19
LBB0_10:
	cbz	w23, LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_get_bits1
	cmp	x0, #0
	cneg	w22, w23, ne
	b	LBB0_13
LBB0_12:
	mov	w22, #0
LBB0_13:
	ldr	w8, [x20]
	add	x2, sp, #8
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x21
	bl	_msmpeg4v1_pred_dc
	add	w0, w0, w22
	ldr	x8, [sp, #8]
	str	w0, [x8]
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_ff_msmpeg4_pred_dc
	add	w0, w0, w22
	cmp	w21, #3
	b.gt	LBB0_17
; %bb.16:
	ldr	w8, [x20, #16]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x20, #20]
LBB0_18:
	mul	w8, w8, w0
	ldr	x9, [sp, #8]
	str	w8, [x9]
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_v2_dc_lum_vlc,4,2              ; @v2_dc_lum_vlc
	.comm	_DC_VLC_BITS,4,2                ; @DC_VLC_BITS
	.comm	_v2_dc_chroma_vlc,4,2           ; @v2_dc_chroma_vlc
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal dc vlc\n"

	.comm	_ff_msmp4_dc_luma_vlc,8,3       ; @ff_msmp4_dc_luma_vlc
	.comm	_ff_msmp4_dc_chroma_vlc,8,3     ; @ff_msmp4_dc_chroma_vlc
	.comm	_DC_MAX,4,2                     ; @DC_MAX
	.no_dead_strip	_msmpeg4_decode_dc
.subsections_via_symbols
