	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_compute_qn
_celt_compute_qn:                       ## @celt_compute_qn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	testl	%r8d, %r8d
	setne	%r8b
	cmpl	$2, %edi
	sete	%al
	andb	%r8b, %al
	movzbl	%al, %eax
	notl	%eax
	leal	(%rax,%rdi,2), %r8d
	imull	%r8d, %edx
	leal	(%rdx,%rsi), %eax
	movl	%esi, %edi
	subl	%ecx, %edi
	addl	$-32, %edi
	cltd
	idivl	%r8d
	movl	%eax, %esi
	movl	$64, %edx
	callq	_FFMIN3
	movl	%eax, %edx
	movl	$1, %eax
	cmpl	$4, %edx
	jl	LBB0_2
## %bb.1:
	movq	_ff_celt_qn_exp2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	andl	$7, %ecx
	movl	(%rax,%rcx,4), %eax
	shrl	$3, %edx
	movb	$14, %cl
	subb	%dl, %cl
	sarl	%cl, %eax
	incl	%eax
	andl	$-2, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_qn_exp2,8,3            ## @ff_celt_qn_exp2
	.no_dead_strip	_celt_compute_qn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_compute_qn
_celt_compute_qn:                       ; @celt_compute_qn
	.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	w4, #0
	ccmp	w0, #2, #0, ne
	mov	w8, #-2
	cinc	w8, w8, ne
	add	w8, w8, w0, lsl #1
	sub	w9, w1, w3
	sub	w0, w9, #32
	madd	w9, w8, w2, w1
	sdiv	w1, w9, w8
	mov	w2, #64
	bl	_FFMIN3
	cmp	w0, #4
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _ff_celt_qn_exp2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_celt_qn_exp2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	w9, w0, #0x7
	ldr	w8, [x8, w9, uxtw #2]
	mov	w9, #14
	sub	w9, w9, w0, lsr #3
	asr	w8, w8, w9
	add	w8, w8, #1
	and	w0, w8, #0xfffffffe
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_qn_exp2,8,3            ; @ff_celt_qn_exp2
	.no_dead_strip	_celt_compute_qn
.subsections_via_symbols
