	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_decode_studio_block
_mpeg4_decode_studio_block:             ## @mpeg4_decode_studio_block
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	48(%rdi), %rax
	movq	64(%rdi), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movb	(%rax), %cl
	addb	$6, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$3, %eax
	subl	(%rdi), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	cmpl	$3, %r12d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jg	LBB0_2
## %bb.1:
	leaq	40(%r13), %rdi
	movl	12(%rbx), %esi
	movq	_STUDIO_INTRA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, %r14d
	leaq	8(%r13), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_2:
	andl	$1, %r12d
	incl	%r12d
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	setne	%al
	leaq	40(%r13), %rdi
	movl	8(%rbx,%rax,4), %esi
	movq	_STUDIO_INTRA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, %r14d
	leaq	16(%r13), %rax
LBB0_3:
	movq	%r13, %rbx
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.4:
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.5:
	leaq	40(%rbx), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_get_xbits
	movl	%eax, %r13d
	cmpl	$9, %r14d
	jb	LBB0_9
## %bb.6:
	movq	48(%rbx), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rsi
	callq	_check_marker
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
	jmp	LBB0_36
LBB0_7:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_35
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	negl	%esi
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rax
	addl	(%rax,%r12,4), %r13d
	movl	%r13d, (%rax,%r12,4)
	movb	32(%rbx), %cl
	movl	$8, %edi
	shrl	%cl, %edi
	movl	$8, %eax
	imull	%r13d, %edi
	cmpq	$0, 56(%rbx)
	jne	LBB0_12
## %bb.11:
	movb	(%rbx), %cl
	shrl	%cl, %eax
	imull	%eax, %edi
LBB0_12:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%edi, (%r15)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, (%r15)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	40(%rbx), %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_STUDIO_INTRA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_34
## %bb.13:
	xorl	$1, -72(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r15d
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rdx, %rbx
	callq	_get_bits
	movq	%rbx, %rdx
	addl	%r12d, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addl	%eax, %r15d
	movl	(%r14,%rdx,4), %esi
	movq	_STUDIO_INTRA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_34
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_38
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ac_state_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rbx
	movq	8(%rcx), %rdx
	movq	(%r12), %r14
	cmpl	$6, %eax
	ja	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %eax
	jmp	LBB0_15
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$12, %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_bits
	movl	%eax, %esi
	decb	%bl
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	sarl	%esi
	addl	%r15d, %edx
	addl	%esi, %edx
	cmpl	$64, %edx
	jge	LBB0_36
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	andl	$1, %eax
	movslq	%edx, %rcx
	incl	%edx
	cmpl	$1, %eax
	movl	$0, %eax
	sbbl	%eax, %eax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rcx,4), %ecx
	orl	$1, %eax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r12,4)
	movl	%edx, %r15d
	jmp	LBB0_33
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$20, %eax
	ja	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$64, %r15d
	jge	LBB0_36
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r15d, %rax
	incl	%r15d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r12d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_xbits
                                        ## kill: def $eax killed $eax def $rax
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movslq	%r12d, %r12
	jmp	LBB0_30
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$21, %eax
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$64, %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_36
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r15d, %rax
	incl	%r15d
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r12
	movq	48(%rcx), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	leal	(%rcx,%rax), %esi
	addl	$4, %esi
	movl	%ecx, %ebx
	addl	%eax, %ebx
	movq	%r13, %rdi
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	callq	_get_bits
	movl	%eax, %edx
	addb	$3, %bl
	movl	%ebx, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$-1, %eax
	movl	-100(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorl	%edx, %eax
LBB0_30:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r12,4)
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	movslq	%ecx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r12,4), %eax
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%edx, (%rbx,%r12,4)
	movl	%edx, %eax
LBB0_33:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	imull	(%rdx,%r12,4), %eax
	imull	36(%rcx), %eax
	movl	-104(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	movl	%edi, (%rbx,%r12,4)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movl	%eax, (%rbx,%r12,4)
	xorl	%eax, -72(%rbp)                 ## 4-byte Folded Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%r14,%rax,4), %esi
	movq	_STUDIO_INTRA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jns	LBB0_16
LBB0_34:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_35:
	callq	_av_log
LBB0_36:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_37:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	andl	$1, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorl	%ecx, 252(%rax)
	xorl	%eax, %eax
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_STUDIO_INTRA_BITS,4,2          ## @STUDIO_INTRA_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal dct_dc_size vlc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"dct_dc_size > 8"

L_.str.2:                               ## @.str.2
	.asciz	"illegal ac coefficient group vlc\n"

	.comm	_ac_state_tab,8,3               ## @ac_state_tab
	.no_dead_strip	_mpeg4_decode_studio_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_decode_studio_block
_mpeg4_decode_studio_block:             ; @mpeg4_decode_studio_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	ldr	x25, [x8, #8]
	ldr	x28, [x25]
	ldr	x22, [x0, #64]
	ldr	w24, [x8]
	ldr	w23, [x0]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #256
	bl	_memset
Lloh0:
	adrp	x27, _STUDIO_INTRA_BITS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _STUDIO_INTRA_BITS@GOTPAGEOFF]
	cmp	w21, #3
	b.gt	LBB0_5
; %bb.1:
	add	x0, x20, #40
	ldr	w1, [x25, #12]
	ldr	w2, [x27]
	mov	w3, #2
	bl	_get_vlc2
	mov	x21, x0
	mov	x26, #0
	add	x8, x20, #8
	tbnz	w21, #31, LBB0_6
LBB0_2:
	str	w23, [sp, #76]                  ; 4-byte Folded Spill
	ldr	x8, [x8]
	stp	x22, x8, [sp, #48]              ; 16-byte Folded Spill
	cbz	w21, LBB0_7
; %bb.3:
	add	x23, x20, #40
	mov	x0, x23
	mov	x1, x21
	bl	_get_xbits
	mov	x22, x0
	cmp	w21, #9
	b.lo	LBB0_8
; %bb.4:
	ldr	x0, [x20, #48]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_check_marker
	cbnz	w0, LBB0_8
	b	LBB0_33
LBB0_5:
	and	w8, w21, #0x1
	add	w26, w8, #1
	ldr	x8, [x25, #16]
	add	x0, x20, #40
	mov	w9, #12
	mov	w10, #8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x25, x8]
	ldr	w2, [x27]
	mov	w3, #2
	bl	_get_vlc2
	mov	x21, x0
	add	x8, x20, #16
	tbz	w21, #31, LBB0_2
LBB0_6:
	ldr	x0, [x20, #48]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_32
LBB0_7:
	mov	w22, #0
LBB0_8:
	add	w8, w24, #6
	mov	w9, #1
	lsl	w8, w9, w8
	neg	w1, w8
	ldr	x9, [x20, #24]
	lsl	x10, x26, #2
	ldr	w11, [x9, x10]
	add	w11, w11, w22
	str	w11, [x9, x10]
	sub	w2, w8, #1
	ldr	x9, [x20, #56]
	ldr	w10, [x20, #32]
	mov	w8, #8
	lsr	w10, w8, w10
	mul	w0, w10, w11
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	w9, [x20]
	lsr	w8, w8, w9
	mul	w0, w0, w8
LBB0_10:
	str	w0, [x19]
	stp	w2, w1, [sp, #40]               ; 8-byte Folded Spill
	bl	_av_clip
	mov	x24, x0
	str	x19, [sp, #64]                  ; 8-byte Folded Spill
	str	w0, [x19]
	add	x23, x20, #40
	ldr	w1, [x28]
	ldr	w2, [x27]
	mov	x0, x23
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_31
; %bb.11:
	mov	w8, #3
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	sub	w8, w8, w9
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	eor	w8, w24, #0x1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x21, _ac_state_tab@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ac_state_tab@GOTPAGEOFF]
                                        ; implicit-def: $w8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	w26, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbz	w0, LBB0_35
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x22, [x25]
	ldp	x24, x28, [x8]
	cmp	w0, #6
	b.hi	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #1
	cbz	w24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	w19, w8, w24
	mov	x0, x23
	mov	x1, x24
	bl	_get_bits
	add	w8, w0, w19
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w8, w26
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x22, x28, lsl #2]
	ldr	w2, [x27]
	mov	x0, x23
	mov	w3, #2
	bl	_get_vlc2
	tbz	w0, #31, LBB0_12
	b	LBB0_31
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w0, #12
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	b.hi	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_get_bits
	sub	w8, w24, #1
	mov	w9, #1
	lsl	w8, w9, w8
	add	w8, w8, w26
	add	w8, w8, w0, asr #1
	cmp	w8, #64
	b.ge	LBB0_33
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w8, #1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [x9, w8, sxtw #2]
	tst	w0, #0x1
	mov	w9, #-1
	cneg	w0, w9, ne
	sxtw	x10, w8
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	str	w0, [x24, w8, sxtw #2]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w0, #20
	b.hi	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, #64
	b.ge	LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w26, #1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w19, [x8, w26, sxtw #2]
	mov	x0, x23
	mov	x1, x24
	bl	_get_xbits
	sxtw	x10, w19
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	str	w0, [x24, w19, sxtw #2]
	ldr	w26, [sp, #32]                  ; 4-byte Folded Reload
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_30
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w0, #21
	b.ne	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, #64
	b.ge	LBB0_33
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w26, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [x8, w26, sxtw #2]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sxtw	x8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [x20, #48]
	ldr	w8, [x8]
	ldr	w9, [x20]
	add	w19, w9, w8
	add	w26, w19, #4
	mov	x0, x23
	mov	x1, x26
	bl	_get_bits
	add	w8, w19, #3
	asr	w8, w0, w8
	cbz	w8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #-1
	lsl	w8, w8, w26
	eor	w0, w8, w0
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	str	w0, [x24, x10, lsl #2]
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, x9
	sxtw	x10, w8
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w0, [x24, w9, sxtw #2]
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	w2, w1, [sp, #40]               ; 8-byte Folded Reload
	lsl	x19, x10, #2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x19]
	mul	w8, w8, w0
	ldr	w9, [x20, #36]
	mul	w8, w8, w9
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	lsl	w8, w8, w9
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #4
	str	w0, [x24, x19]
	bl	_av_clip
	str	w0, [x24, x19]
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	eor	w8, w0, w8
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	b	LBB0_17
LBB0_31:
	ldr	x0, [x20, #48]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_32:
	bl	_av_log
LBB0_33:
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_34:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_35:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	and	w8, w8, #0x1
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w9, [x10, #252]
	eor	w8, w9, w8
	str	w8, [x10, #252]
	b	LBB0_34
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STUDIO_INTRA_BITS,4,2          ; @STUDIO_INTRA_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal dct_dc_size vlc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"dct_dc_size > 8"

l_.str.2:                               ; @.str.2
	.asciz	"illegal ac coefficient group vlc\n"

	.comm	_ac_state_tab,8,3               ; @ac_state_tab
	.no_dead_strip	_mpeg4_decode_studio_block
.subsections_via_symbols
