	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function celt_enc_quant_pfilter
LCPI0_0:
	.long	0x3dc00000                      ## float 0.09375
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_celt_enc_quant_pfilter:                ## @celt_enc_quant_pfilter
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	4(%rsi), %r14d
	movl	8(%rsi), %r12d
	movslq	12(%rsi), %rbx
	movl	32(%rsi), %esi
	movl	$1, %edx
	callq	_ff_opus_rc_enc_log
	cmpl	$0, 32(%r13)
	je	LBB0_5
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	$6, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$6, %edx
	callq	_ff_opus_rc_enc_uint
	movl	%r12d, %edi
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	$16, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	subl	%r12d, %edi
	incl	%edi
	addl	$4, %ebx
	movl	$-1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_ff_opus_rc_put_raw
	addl	%r12d, %r14d
	decl	%r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	divss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	decl	%edi
	movl	$7, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$3, %edx
	callq	_ff_opus_rc_put_raw
	incl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	callq	_opus_rc_tell
	addq	$2, %rax
	cmpq	16(%r13), %rax
	jle	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_3:
	movq	_ff_celt_model_tapset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ff_opus_rc_enc_cdf
LBB0_4:
	movq	24(%r13), %rbx
	movq	_CELT_POSTFILTER_MINPERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_FFMAX
	movl	%eax, 8(%rbx)
	movq	_ff_celt_postfilter_taps@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movq	(%rbx), %rcx
	movss	%xmm0, (%rcx)
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	%xmm0, 4(%rcx)
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	%xmm0, 8(%rcx)
	movq	24(%r13), %rbx
	movq	_CELT_POSTFILTER_MINPERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_FFMAX
	movl	%eax, 24(%rbx)
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movq	16(%rbx), %rcx
	movss	%xmm0, (%rcx)
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	%xmm0, 4(%rcx)
	mulss	8(%rax), %xmm1
	movss	%xmm1, 8(%rcx)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_model_tapset,4,2       ## @ff_celt_model_tapset
	.comm	_CELT_POSTFILTER_MINPERIOD,4,2  ## @CELT_POSTFILTER_MINPERIOD
	.comm	_ff_celt_postfilter_taps,8,3    ## @ff_celt_postfilter_taps
	.no_dead_strip	_celt_enc_quant_pfilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_enc_quant_pfilter
_celt_enc_quant_pfilter:                ; @celt_enc_quant_pfilter
	.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, x1
	mov	x21, x0
	ldr	s8, [x1]
	ldp	w23, w22, [x1, #4]
	ldrsw	x20, [x1, #12]
	ldr	w1, [x1, #32]
	mov	w2, #1
	bl	_ff_opus_rc_enc_log
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x0, x23
	mov	w1, #6
	bl	_FFMIN
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	mov	w2, #6
	bl	_ff_opus_rc_enc_uint
	mov	w8, #16
	lsl	w25, w8, w23
	sub	w8, w22, w25
	add	w0, w8, #1
	add	w23, w23, #4
	mov	w8, #-1
	lsl	w8, w8, w23
	mvn	w2, w8
	mov	w1, #0
	bl	_av_clip
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_ff_opus_rc_put_raw
	add	w8, w25, w24
	sub	w22, w8, #1
	mov	w8, #1035993088
	fmov	s9, w8
	fdiv	s0, s8, s9
	fcvtzs	w8, s0
	sub	w0, w8, #1
	mov	w1, #7
	bl	_FFMIN
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	mov	w2, #3
	bl	_ff_opus_rc_put_raw
	add	w8, w23, #1
	scvtf	s0, w8
	fmul	s8, s0, s9
	mov	x0, x21
	bl	_opus_rc_tell
	add	x8, x0, #2
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.2:
	mov	x20, #0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ff_celt_model_tapset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_celt_model_tapset@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_ff_opus_rc_enc_cdf
LBB0_4:
	ldr	x21, [x19, #24]
Lloh3:
	adrp	x23, _CELT_POSTFILTER_MINPERIOD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CELT_POSTFILTER_MINPERIOD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_FFMAX
	str	w0, [x21, #8]
Lloh5:
	adrp	x24, _ff_celt_postfilter_taps@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ff_celt_postfilter_taps@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x20, x20, #3
	ldr	x8, [x8, x20]
	ldr	s0, [x8]
	fmul	s0, s8, s0
	ldr	x9, [x21]
	str	s0, [x9]
	ldr	s0, [x8, #4]
	fmul	s0, s8, s0
	str	s0, [x9, #4]
	ldr	s0, [x8, #8]
	fmul	s0, s8, s0
	str	s0, [x9, #8]
	ldr	x19, [x19, #24]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_FFMAX
	str	w0, [x19, #24]
	ldr	x8, [x24]
	ldr	x8, [x8, x20]
	ldr	s0, [x8]
	fmul	s0, s8, s0
	ldr	x9, [x19, #16]
	str	s0, [x9]
	ldr	s0, [x8, #4]
	fmul	s0, s8, s0
	str	s0, [x9, #4]
	ldr	s0, [x8, #8]
	fmul	s0, s8, s0
	str	s0, [x9, #8]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_model_tapset,4,2       ; @ff_celt_model_tapset
	.comm	_CELT_POSTFILTER_MINPERIOD,4,2  ; @CELT_POSTFILTER_MINPERIOD
	.comm	_ff_celt_postfilter_taps,8,3    ; @ff_celt_postfilter_taps
	.no_dead_strip	_celt_enc_quant_pfilter
.subsections_via_symbols
