	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_decode_dc
_mpeg4_decode_dc:                       ## @mpeg4_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, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	8(%rdi), %r13
	cmpl	$4, %esi
	jge	LBB0_1
## %bb.2:
	movq	_dc_lum@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_dc_chrom@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_DC_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	cmpl	$10, %eax
	jb	LBB0_5
## %bb.4:
	movq	(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_20:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	movq	_IS_3IV1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.8:
	movq	%r13, %rdi
	callq	_get_bits1
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$1, %r14d
	jne	LBB0_11
## %bb.9:
	leal	(%rax,%rax), %ebx
	decl	%ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_14:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_xbits
	jmp	LBB0_15
LBB0_11:
	leal	-1(%r14), %esi
	movq	%r13, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_get_bits
	movl	%eax, %ebx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:
	movl	$1, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	%eax, %ebx
	cmpl	$9, %r14d
	jae	LBB0_17
	jmp	LBB0_10
LBB0_13:
	movl	$-1, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	subl	%ebx, %eax
LBB0_15:
	movl	%eax, %ebx
	cmpl	$9, %r14d
	jb	LBB0_10
LBB0_17:
	movq	%r13, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_18
LBB0_10:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_mpeg4_pred_dc               ## TAILCALL
LBB0_18:
	movq	(%r12), %rdi
	movq	_AV_EF_BITSTREAM@GOTPCREL(%rip), %rax
	movq	_AV_EF_COMPLIANT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_10
## %bb.19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_lum,4,2                     ## @dc_lum
	.comm	_DC_VLC_BITS,4,2                ## @DC_VLC_BITS
	.comm	_dc_chrom,4,2                   ## @dc_chrom
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal dc vlc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_IS_3IV1,8,3                    ## @IS_3IV1
	.comm	_AV_EF_BITSTREAM,4,2            ## @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ## @AV_EF_COMPLIANT
L_.str.1:                               ## @.str.1
	.asciz	"dc marker bit missing\n"

	.no_dead_strip	_mpeg4_decode_dc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_decode_dc
_mpeg4_decode_dc:                       ; @mpeg4_decode_dc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x0, #8
Lloh0:
	adrp	x8, _dc_lum@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dc_lum@GOTPAGEOFF]
Lloh2:
	adrp	x9, _dc_chrom@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dc_chrom@GOTPAGEOFF]
	cmp	w1, #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, #1
	bl	_get_vlc2
	cmp	w0, #10
	b.lo	LBB0_3
; %bb.1:
	ldr	x0, [x21]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	bl	_av_log
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh15:
	adrp	x8, _IS_3IV1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IS_3IV1@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_get_bits1
	mov	x24, x0
	subs	w25, w23, #1
	b.ne	LBB0_9
; %bb.6:
	lsl	w8, w24, #1
	sub	w24, w8, #1
	b	LBB0_11
LBB0_7:
	mov	w24, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x22
	mov	x1, x23
	bl	_get_xbits
	mov	x24, x0
	cmp	w23, #9
	b.hs	LBB0_10
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	mov	x1, x25
	bl	_get_bits
	mov	w8, #-1
	lsl	w8, w8, w25
	sub	w8, w8, w0
	mov	w9, #1
	lsl	w9, w9, w25
	add	w9, w0, w9
	cmp	w24, #0
	csel	w24, w8, w9, eq
	cmp	w23, #9
	b.lo	LBB0_11
LBB0_10:
	mov	x0, x22
	bl	_get_bits1
	cbz	w0, LBB0_12
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x19
	mov	w4, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ff_mpeg4_pred_dc
LBB0_12:
	ldr	x0, [x21]
	ldr	w8, [x0]
Lloh18:
	adrp	x9, _AV_EF_BITSTREAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_EF_BITSTREAM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _AV_EF_COMPLIANT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AV_EF_COMPLIANT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.13:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_lum,4,2                     ; @dc_lum
	.comm	_DC_VLC_BITS,4,2                ; @DC_VLC_BITS
	.comm	_dc_chrom,4,2                   ; @dc_chrom
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal dc vlc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_IS_3IV1,8,3                    ; @IS_3IV1
	.comm	_AV_EF_BITSTREAM,4,2            ; @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ; @AV_EF_COMPLIANT
l_.str.1:                               ; @.str.1
	.asciz	"dc marker bit missing\n"

	.no_dead_strip	_mpeg4_decode_dc
.subsections_via_symbols
