	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dequantize
_dequantize:                            ## @dequantize
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	8(%r14), %r11d
	testl	%r11d, %r11d
	jle	LBB0_16
## %bb.1:
	movq	_at9_q_unit_to_coeff_idx@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_at9_quant_step_coarse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_at9_quant_step_fine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r15d
	xorl	%r13d, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r11, %r13
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r13, %rax
	movl	%r15d, %edx
	incq	%r13
	movl	4(%rsi,%rax,4), %r15d
	cmpl	%r15d, %edx
	jge	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %r8
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movss	(%rdi,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movss	(%rcx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movq	(%r14), %rax
	movq	32(%r14), %rcx
	movq	40(%r14), %rbx
	movslq	%edx, %r9
	movq	%r8, %r12
	subq	%r9, %r12
	cmpq	$8, %r12
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %r10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%r9,4), %rdx
	leaq	(%rcx,%r9,4), %rsi
	movq	%rdx, %rdi
	subq	%rsi, %rdi
	cmpq	$32, %rdi
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r9,4), %rsi
	subq	%rsi, %rdx
	cmpq	$32, %rdx
	jb	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	andq	$-8, %rdi
	leaq	(%rdi,%r9), %r10
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	movaps	%xmm1, %xmm3
	shufps	$0, %xmm1, %xmm3                ## xmm3 = xmm3[0,0],xmm1[0,0]
	leaq	(%rcx,%r9,4), %r11
	addq	$16, %r11
	leaq	(%rbx,%r9,4), %r14
	addq	$16, %r14
	leaq	(%rax,%r9,4), %rsi
	addq	$16, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%r11,%rdx,4), %xmm4
	movups	(%r11,%rdx,4), %xmm5
	mulps	%xmm2, %xmm4
	mulps	%xmm2, %xmm5
	movups	-16(%r14,%rdx,4), %xmm6
	movups	(%r14,%rdx,4), %xmm7
	mulps	%xmm3, %xmm6
	addps	%xmm4, %xmm6
	mulps	%xmm3, %xmm7
	addps	%xmm5, %xmm7
	movups	%xmm6, -16(%rsi,%rdx,4)
	movups	%xmm7, (%rsi,%rdx,4)
	addq	$8, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_2
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %r10
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edx
	subl	%r10d, %edx
	movq	%r10, %rdi
	testb	$1, %dl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movss	(%rcx,%r10,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	(%rbx,%r10,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, (%rax,%r10,4)
	leaq	1(%r10), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	notq	%r10
	addq	%r8, %r10
	je	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%rdi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	(%rbx,%rdi,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, (%rax,%rdi,4)
	movss	4(%rcx,%rdi,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	4(%rbx,%rdi,4), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, 4(%rax,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_15
	jmp	LBB0_2
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ## @at9_q_unit_to_coeff_idx
	.comm	_at9_quant_step_coarse,8,3      ## @at9_quant_step_coarse
	.comm	_at9_quant_step_fine,8,3        ## @at9_quant_step_fine
	.no_dead_strip	_dequantize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dequantize
_dequantize:                            ; @dequantize
	.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
	mov	x19, x2
	ldr	x0, [x2]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x17, #0
Lloh0:
	adrp	x9, _at9_q_unit_to_coeff_idx@GOTPAGE
Lloh1:
	ldr	x9, [x9, _at9_q_unit_to_coeff_idx@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _at9_quant_step_coarse@GOTPAGE
Lloh4:
	ldr	x10, [x10, _at9_quant_step_coarse@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _at9_quant_step_fine@GOTPAGE
Lloh7:
	ldr	x11, [x11, _at9_quant_step_fine@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	ldp	x12, x13, [x19, #16]
	ldr	w0, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x15
	mov	x17, x14
	cmp	x14, x8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	add	x14, x17, #1
	ldr	w15, [x9, x14, lsl #2]
	cmp	w0, w15
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x16, w15
	lsl	x17, x17, #3
	ldr	x1, [x12, x17]
	ldr	s0, [x10, x1, lsl #2]
	ldr	x17, [x13, x17]
	ldr	s1, [x11, x17, lsl #2]
	ldp	x2, x1, [x19, #32]
	ldr	x17, [x19]
	sxtw	x0, w0
	sub	x3, x16, x0
	cmp	x3, #16
	b.hs	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x3, x0, #2
	add	x2, x2, x3
	add	x1, x1, x3
	add	x17, x17, x3
	sub	x16, x16, x0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s2, [x2], #4
	ldr	s3, [x1], #4
	fmul	s2, s0, s2
	fmul	s3, s1, s3
	fadd	s2, s2, s3
	str	s2, [x17], #4
	subs	x16, x16, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x7, x0, #2
	add	x4, x7, x17
	add	x5, x7, x2
	sub	x5, x4, x5
	cmp	x5, #64
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x5, x7, x1
	sub	x4, x4, x5
	cmp	x4, #64
	b.lo	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x4, x3, #0xfffffffffffffff0
	add	x0, x4, x0
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
	add	x5, x17, x7
	add	x5, x5, #32
	add	x6, x1, x7
	add	x6, x6, #32
	add	x7, x2, x7
	add	x7, x7, #32
	mov	x20, x4
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x7, #-32]
	ldp	q6, q7, [x7], #64
	fmul.4s	v4, v2, v4
	fmul.4s	v5, v2, v5
	fmul.4s	v6, v2, v6
	fmul.4s	v7, v7, v0[0]
	ldp	q16, q17, [x6, #-32]
	ldp	q18, q19, [x6], #64
	fmul.4s	v16, v3, v16
	fmul.4s	v17, v3, v17
	fmul.4s	v18, v3, v18
	fmul.4s	v19, v19, v1[0]
	fadd.4s	v4, v4, v16
	fadd.4s	v5, v5, v17
	fadd.4s	v6, v6, v18
	fadd.4s	v7, v7, v19
	stp	q4, q5, [x5, #-32]
	stp	q6, q7, [x5], #64
	subs	x20, x20, #16
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x3, x4
	b.eq	LBB0_2
	b	LBB0_5
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ; @at9_q_unit_to_coeff_idx
	.comm	_at9_quant_step_coarse,8,3      ; @at9_quant_step_coarse
	.comm	_at9_quant_step_fine,8,3        ; @at9_quant_step_fine
	.no_dead_strip	_dequantize
.subsections_via_symbols
