	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dequant
_dequant:                               ## @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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%rcx, %r10
	leal	-1(%r9), %ecx
	movl	$1, %r11d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r11d
	movl	16(%rbp), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	16(%rdi), %r14
	movl	%ecx, %r15d
	incq	%r15
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r15), %ecx
	movslq	%ebx, %rbx
	addq	(%rdx,%rcx,8), %rbx
	cmpl	$64, %ebx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi,%rcx,4), %r12d
	imull	%r8d, %r12d
	addl	%r11d, %r12d
	movl	%r9d, %ecx
	sarl	%cl, %r12d
	movslq	%ebx, %rcx
	movq	(%r14,%rcx,8), %rcx
	movl	%r12d, (%r10,%rcx,4)
	decq	%r15
	cmpq	$1, %r15
	ja	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	12(%rdi), %eax
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rdi), %ecx
	movl	(%rdi), %r9d
	movl	4(%rdi), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	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	"position out of block bounds at pic %d MB(%d,%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_dequant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dequant
_dequant:                               ; @dequant
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w6, #1
	b.lt	LBB0_4
; %bb.1:
	sub	w8, w5, #1
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x0, #16]
	mov	w10, w6
	add	x10, x10, #1
	mov	x11, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w10, #2
	ldr	x13, [x2, w12, uxtw #3]
	add	x11, x13, w11, sxtw
	cmp	w11, #64
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x1, x12, lsl #2]
	madd	w12, w12, w4, w8
	asr	w12, w12, w5
	sbfiz	x13, x11, #3, #32
	ldr	x13, [x9, x13]
	str	w12, [x3, x13, lsl #2]
	sub	x10, x10, #1
	cmp	x10, #1
	b.hi	LBB0_2
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w8, [x0, #8]
	ldp	w5, w4, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	"position out of block bounds at pic %d MB(%d,%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_dequant
.subsections_via_symbols
