	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp3_dequant
_vp3_dequant:                           ## @vp3_dequant
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	(%rdi), %rbx
	movq	8(%rdi), %r11
	movq	(%rbx,%rax,8), %rax
	movslq	%ecx, %r9
	movq	(%rax,%r9,8), %rax
	movslq	%edx, %r10
	movq	(%rax,%r10,8), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	leal	1(%rax), %ebx
	cmpl	$63, %eax
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rax
	movq	(%rax,%r10,8), %r15
	movslq	%ebx, %r12
	movq	(%r15,%r12,8), %rdx
	movl	(%rdx), %eax
	movl	%eax, %ecx
	andl	$3, %ecx
	cmpl	$1, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$2, %eax
	movq	(%r11,%r12,8), %rcx
	imull	(%r14,%rcx,4), %eax
	movl	%eax, (%r8,%rcx,4)
	addq	$4, %rdx
	movq	%rdx, (%r15,%r12,8)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rdx
	movq	%rdx, (%r15,%r12,8)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$127, %ecx
	movl	%r12d, %ebx
	addl	%ecx, %ebx
	cmpl	$64, %ebx
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$9, %eax
	movslq	%ebx, %rcx
	movq	(%r11,%rcx,8), %rcx
	imull	(%r14,%rcx,4), %eax
	movl	%eax, (%r8,%rcx,4)
	jmp	LBB0_1
LBB0_7:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.8:
	cmpl	$4, %eax
	jg	LBB0_11
## %bb.9:
	addq	$4, %rdx
	movq	%rdx, (%r15,%r12,8)
	jmp	LBB0_12
LBB0_10:
	movl	24(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_14
LBB0_11:
	decl	%eax
	andl	$-4, %eax
	movl	%eax, (%rdx)
LBB0_12:
	movl	%ebx, %eax
LBB0_13:
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r9,8), %rcx
	movq	(%rcx,%r10,8), %rcx
	movl	(%rcx), %ecx
	imull	8(%rsi), %ecx
	movl	%ecx, (%r8)
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	"Coefficient index overflow\n"

	.no_dead_strip	_vp3_dequant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp3_dequant
_vp3_dequant:                           ; @vp3_dequant
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	w19, #0
	ldr	x8, [x1]
	ldp	x9, x10, [x0]
	ldr	x9, [x9, x8, lsl #3]
	sxtw	x8, w3
	ldr	x11, [x9, w3, sxtw #3]
	sxtw	x9, w2
	ldr	x11, [x11, w2, sxtw #3]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x12, x19
	add	w19, w19, #1
	cmp	w12, #63
	b.ge	LBB0_13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x0, #16]
	ldr	x12, [x12, x9, lsl #3]
	sxtw	x15, w19
	ldr	x13, [x12, w19, sxtw #3]
	ldr	w14, [x13]
	and	w16, w14, #0x3
	cmp	w16, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w16, #2
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w14, w14, #2
	lsl	x15, x15, #3
	ldr	x16, [x10, x15]
	lsl	x16, x16, #2
	ldr	w17, [x11, x16]
	mul	w14, w17, w14
	str	w14, [x4, x16]
	add	x13, x13, #4
	str	x13, [x12, x15]
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x13, x13, #4
	str	x13, [x12, x15, lsl #3]
	ubfx	w12, w14, #2, #7
	add	w19, w12, w19
	cmp	w19, #64
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w12, w14, #9
	ldr	x13, [x10, w19, sxtw #3]
	lsl	x13, x13, #2
	ldr	w14, [x11, x13]
	mul	w12, w14, w12
	str	w12, [x4, x13]
	b	LBB0_1
LBB0_7:
	cbnz	w16, LBB0_14
; %bb.8:
	cmp	w14, #4
	b.gt	LBB0_11
; %bb.9:
	add	x10, x13, #4
	str	x10, [x12, x15, lsl #3]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_14
LBB0_11:
	sub	w10, w14, #1
	and	w10, w10, #0xfffffffc
	str	w10, [x13]
LBB0_12:
	mov	x12, x19
LBB0_13:
	ldr	w10, [x1, #8]
	ldr	x11, [x0]
	ldr	x11, [x11]
	ldr	x8, [x11, x8, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	mul	w8, w8, w10
	str	w8, [x4]
	mov	x19, x12
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Coefficient index overflow\n"

	.no_dead_strip	_vp3_dequant
.subsections_via_symbols
