	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_alg_quant
_celt_alg_quant:                        ## @celt_alg_quant
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r14
	movq	(%r14), %r13
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%r9d, %edx
	movl	%ecx, %ebx
	movl	$1, %r9d
	callq	_celt_exp_rotation
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_sqrtf
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%ebx, %r14d
	movl	%ebx, %ecx
	callq	_celt_encode_pulses
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_celt_normalize_residual
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_celt_exp_rotation
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_celt_extract_collapse_mask     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_celt_alg_quant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_alg_quant
_celt_alg_quant:                        ; @celt_alg_quant
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x6
	fmov	s8, s0
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x26, [x6]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x5
	mov	w5, #1
	bl	_celt_exp_rotation
	ldr	x8, [x19, #8]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x22
	mov	x3, x23
	blr	x8
	bl	_sqrtf
	fdiv	s8, s8, s0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	mov	x3, x22
	bl	_celt_encode_pulses
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	fmov	s0, s8
	bl	_celt_normalize_residual
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	mov	w5, #0
	bl	_celt_exp_rotation
	mov	x0, x26
	mov	x1, x23
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_celt_extract_collapse_mask
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_celt_alg_quant
.subsections_via_symbols
