	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_decode_dpcm_macroblock
_mpeg4_decode_dpcm_macroblock:          ## @mpeg4_decode_dpcm_macroblock
	.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
	movl	%edx, %r13d
	movq	%rdi, %r12
	movl	$16, %ebx
	testl	%edx, %edx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movb	(%r12), %cl
	movl	$16, %r15d
	shrl	%cl, %r15d
	movl	4(%r12), %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	movl	$16, %r15d
LBB0_3:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	leaq	32(%r12), %r14
	movq	24(%r12), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	20(%r12), %ecx
	addl	16(%r12), %ecx
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	8(%r12), %rcx
	movslq	%r13d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	leaq	L_.str.1(%rip), %rdx
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:
	movl	%eax, %esi
	xorl	%eax, %eax
	cmpl	$15, %esi
	cmovel	%eax, %esi
	cmpl	$11, %esi
	jg	LBB0_20
## %bb.7:
	testl	%r15d, %r15d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_21
## %bb.8:
	movl	%ebx, %eax
	cmpl	$2, %ebx
	movl	$1, %ecx
	cmovbl	%ecx, %ebx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	addl	%r13d, %edi
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	xorl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %ecx
	je	LBB0_21
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	cmpl	$4, %edx
	ja	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r12), %rax
	movb	(%rax), %cl
	decb	%cl
	movl	$1, %r15d
	shll	%cl, %r15d
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	(%r8,%rax,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r15d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movl	%r15d, %r13d
	subl	%r12d, %r13d
	addl	%ebx, %r13d
	movl	%r15d, %edi
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_FFMIN
	movl	%eax, %r12d
	cmpl	%eax, %r13d
	cmovlel	%eax, %r13d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpl	%eax, %r13d
	cmovgel	%eax, %r13d
	movl	%r12d, %edi
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_FFMIN
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_FFMAX
	addl	%r15d, %eax
	sarl	%eax
	cmpl	%r13d, %eax
	cmovel	-80(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r14d, %edx
	negl	%edx
	cmpl	%r13d, %eax
	cmovlel	%r14d, %edx
	addl	%r13d, %edx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movzbl	(%rax), %ecx
	movl	$-1, %r15d
	shll	%cl, %r15d
	notl	%r15d
	andl	%edx, %r15d
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%r15d, (%rax,%r13,4)
	incq	%r13
	movl	-88(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r13d, -128(%rbp)               ## 4-byte Folded Reload
	movq	-120(%rbp), %r14                ## 8-byte Reload
	je	LBB0_17
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$12, %edx
	callq	_get_unary
	cmpl	$11, %eax
	je	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%eax, %ebx
	cmpl	$12, %eax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r14, %rdi
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_get_bitsz
	movl	%r14d, %ecx
	shll	%cl, %ebx
	addl	%eax, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r14, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rax
	movl	(%rax), %esi
	callq	_get_bits
	movl	%eax, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%ebx, %r14d
	negl	%r14d
	testb	$1, %bl
	cmovel	%ebx, %r14d
	sarl	%r14d
	movl	%r12d, %ebx
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %ebx
	jmp	LBB0_16
LBB0_19:
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	movq	24(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forbidden block_mean\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Forbidden rice_parameter\n"

L_.str.2:                               ## @.str.2
	.asciz	"Forbidden rice_prefix_code\n"

	.no_dead_strip	_mpeg4_decode_dpcm_macroblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_decode_dpcm_macroblock
_mpeg4_decode_dpcm_macroblock:          ; @mpeg4_decode_dpcm_macroblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x2
	mov	x19, x1
	mov	x27, x0
	mov	w22, #16
	cbz	w2, LBB0_2
; %bb.1:
	ldp	w8, w21, [x27]
	lsr	w24, w22, w8
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w24, #16
LBB0_3:
	add	x28, x27, #32
	ldr	x8, [x27, #24]
	ldr	w1, [x8]
	mov	x0, x28
	bl	_get_bits
	cbz	w0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldp	w8, w9, [x27, #16]
	add	w8, w9, w8
	lsl	w8, w0, w8
	ldr	x9, [x27, #8]
	str	w8, [x9, w23, sxtw #2]
	mov	x0, x28
	mov	w1, #4
	bl	_get_bits
	cbz	w0, LBB0_6
; %bb.5:
	cmp	w0, #15
	csel	w8, wzr, w0, eq
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w8, #11
	b.le	LBB0_8
LBB0_6:
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_7:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_21
LBB0_8:
	cbz	w24, LBB0_23
; %bb.9:
	str	w20, [sp, #44]                  ; 4-byte Folded Spill
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x8, #0
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	mov	w20, #0
	lsr	w9, w22, w21
	cmp	w9, #1
	csinc	w10, w9, wzr, hi
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	sub	x8, x8, w9, uxtw #2
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	stp	w24, w21, [sp, #20]             ; 8-byte Folded Spill
	str	x28, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	ldp	w8, w21, [sp, #20]              ; 8-byte Folded Reload
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	cmp	w9, w8
	b.eq	LBB0_22
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w21, #4
	b.hi	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27, #24]
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w24, w9, w8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x8, w20, sxtw #2
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	mov	x25, x24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	asr	w28, w8, #1
	sub	w8, w24, w25
	add	w19, w8, w26
	mov	x0, x24
	mov	x1, x26
	bl	_FFMIN
	mov	x27, x0
	cmp	w19, w0
	csel	w19, w19, w0, gt
	mov	x0, x24
	mov	x1, x26
	bl	_FFMAX
	mov	x24, x0
	cmp	w19, w0
	csel	w19, w19, w0, lt
	mov	x0, x27
	mov	x1, x25
	bl	_FFMIN
	mov	x27, x0
	mov	x0, x24
	mov	x1, x25
	bl	_FFMAX
	add	w8, w0, w27
	asr	w8, w8, #1
	cmp	w8, w19
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	csel	w8, w9, w8, eq
	cmp	w8, w19
	cneg	w8, w28, gt
	mov	x27, x21
	ldr	x9, [x21, #24]
	ldr	w9, [x9]
	mov	w10, #-1
	lsl	w9, w10, w9
	add	w8, w8, w19
	bic	w24, w8, w9
	str	w24, [x23], #4
	add	w20, w20, #1
	mov	x25, x26
	subs	w22, w22, #1
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	w1, #1
	mov	w2, #12
	bl	_get_unary
	cmp	w0, #11
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x26, x0
	cmp	w0, #12
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x28
	ldr	w19, [sp, #28]                  ; 4-byte Folded Reload
	mov	x1, x19
	bl	_get_bitsz
	lsl	w8, w26, w19
	add	w0, w0, w8
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x27, #24]
	ldr	w1, [x8]
	mov	x0, x28
	bl	_get_bits
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x21, x27
	tst	w0, #0x1
	cneg	w8, w0, ne
	mov	x26, x25
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w26, [x23, x9]
	b	LBB0_13
LBB0_20:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_21:
	ldr	x0, [x27, #24]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	mov	w0, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forbidden block_mean\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Forbidden rice_parameter\n"

l_.str.2:                               ; @.str.2
	.asciz	"Forbidden rice_prefix_code\n"

	.no_dead_strip	_mpeg4_decode_dpcm_macroblock
.subsections_via_symbols
