	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aptx_invert_quantization
_aptx_invert_quantization:              ## @aptx_invert_quantization
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movl	%esi, %eax
	sarl	$31, %eax
	xorl	%esi, %eax
	movslq	%eax, %r15
	movq	8(%rcx), %rax
	movl	4(%rax,%r15,4), %esi
	movl	%edx, %edi
	callq	_MUL64
	movl	%eax, %edi
	movl	$32, %esi
	callq	_rshift64_clip24
	movl	4(%rbx), %edi
	movl	%eax, %esi
	callq	_MUL64
	sarl	$19, %eax
	movl	%eax, (%rbx)
	imull	$32620, 8(%rbx), %eax           ## imm = 0x7F6C
	movq	16(%r14), %rcx
	movl	4(%rcx,%r15,4), %edi
	shll	$15, %edi
	addl	%eax, %edi
	movl	$15, %esi
	callq	_rshift32
	movl	24(%r14), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, 8(%rbx)
	movl	24(%r14), %ecx
	subl	%eax, %ecx
                                        ## kill: def $eax killed $eax def $rax
	shrl	$3, %eax
	andl	$31, %eax
	shrl	$8, %ecx
	movq	_quantization_factors@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %eax
	shll	$11, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_quantization_factors,8,3       ## @quantization_factors
	.no_dead_strip	_aptx_invert_quantization
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aptx_invert_quantization
_aptx_invert_quantization:              ; @aptx_invert_quantization
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x0
	eor	w8, w1, w1, asr #31
	add	w8, w8, #1
	ldr	x9, [x3, #8]
	sbfiz	x21, x8, #2, #32
	ldr	w1, [x9, x21]
	mov	x0, x2
	bl	_MUL64
	mov	w1, #32
	bl	_rshift64_clip24
	mov	x1, x0
	ldr	w0, [x19, #4]
	bl	_MUL64
	asr	w8, w0, #19
	str	w8, [x19]
	ldr	w8, [x19, #8]
	mov	w9, #32620
	mul	w8, w8, w9
	ldr	x9, [x20, #16]
	ldr	w9, [x9, x21]
	add	w0, w8, w9, lsl #15
	mov	w1, #15
	bl	_rshift32
	ldr	w2, [x20, #24]
	mov	w1, #0
	bl	_av_clip
	str	w0, [x19, #8]
	ubfx	w8, w0, #3, #5
	ldr	w9, [x20, #24]
	sub	w9, w9, w0
	asr	w9, w9, #8
Lloh0:
	adrp	x10, _quantization_factors@GOTPAGE
Lloh1:
	ldr	x10, [x10, _quantization_factors@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w8, [x10, w8, uxtw #2]
	lsl	w8, w8, #11
	asr	w8, w8, w9
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_quantization_factors,8,3       ; @quantization_factors
	.no_dead_strip	_aptx_invert_quantization
.subsections_via_symbols
