	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opus_rc_enc_laplace         ## -- Begin function ff_opus_rc_enc_laplace
	.p2align	4, 0x90
_ff_opus_rc_enc_laplace:                ## @ff_opus_rc_enc_laplace
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	callq	_FFABS
	movl	(%r15), %ecx
	xorl	%r8d, %r8d
	testl	%ecx, %ecx
	setg	%sil
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$32736, %edx                    ## imm = 0x7FE0
	subl	%r12d, %edx
	movl	$16384, %edi                    ## imm = 0x4000
	subl	%r13d, %edi
	imull	%edx, %edi
	movl	%edi, %ebx
	sarl	$15, %ebx
	cmpl	$32768, %edi                    ## imm = 0x8000
	setae	%dl
	movl	$1, %r14d
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.4:
	cmpl	$32768, %edi                    ## imm = 0x8000
	jb	LBB0_8
## %bb.5:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%rbx,2), %r12d
	addl	$2, %r12d
	movl	%ebx, %edi
	imull	%r13d, %edi
	movl	%edi, %ebx
	sarl	$14, %ebx
	incl	%r14d
	cmpl	$16384, %edi                    ## imm = 0x4000
	setae	%dl
	cmpl	%r14d, %eax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$16383, %edi                    ## imm = 0x3FFF
	ja	LBB0_6
LBB0_8:
	testb	%dl, %dl
	je	LBB0_10
## %bb.9:
	incl	%ebx
	xorl	%r13d, %r13d
	testl	%ecx, %ecx
	cmovgl	%ebx, %r13d
	addl	%r12d, %r13d
	jmp	LBB0_11
LBB0_1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	jmp	LBB0_2
LBB0_10:
	movb	%sil, %r8b
	xorl	%esi, %esi
	testl	%ecx, %ecx
	setg	%sil
	subl	%r14d, %eax
	subl	%r12d, %esi
	addl	$32767, %esi                    ## imm = 0x7FFF
	sarl	%esi
	decl	%esi
	movl	%eax, %edi
	movq	%r8, %rbx
	callq	_FFMIN
	addl	%r12d, %ebx
	leal	(%rbx,%rax,2), %r13d
	movq	%rax, %r12
	movl	$32768, %esi                    ## imm = 0x8000
	subl	%r13d, %esi
	movl	$1, %edi
	callq	_FFMIN
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_FFSIGN
	addl	%r12d, %r14d
	imull	%eax, %r14d
	movl	%r14d, (%r15)
LBB0_11:
	addl	%r13d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
LBB0_2:
	movl	$32768, %ecx                    ## imm = 0x8000
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_opus_rc_enc_update             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opus_rc_enc_laplace         ; -- Begin function ff_opus_rc_enc_laplace
	.p2align	2
_ff_opus_rc_enc_laplace:                ; @ff_opus_rc_enc_laplace
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_FFABS
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w25, gt
	cbz	w0, LBB0_8
; %bb.1:
	mov	w9, #32736
	sub	w9, w9, w21
	mov	w10, #16384
	sub	w10, w10, w22
	mul	w11, w10, w9
	asr	w9, w11, #15
	tst	w11, #0xffff8000
	cset	w10, ne
	mov	w24, #1
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.2:
	cmp	w11, #8, lsl #12                ; =32768
	b.lo	LBB0_6
; %bb.3:
	mov	w24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w21, w9, lsl #1
	add	w21, w10, #2
	mul	w11, w9, w22
	asr	w9, w11, #14
	add	w24, w24, #1
	tst	w11, #0xffffc000
	cset	w10, ne
	cmp	w0, w24
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w11, w11, #14
	cbnz	w11, LBB0_4
LBB0_6:
	cbz	w10, LBB0_9
; %bb.7:
	add	w22, w9, #1
	cmp	w8, #0
	csinc	w8, wzr, w9, le
	add	w21, w8, w21
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	b	LBB0_11
LBB0_9:
	sub	w0, w0, w24
	cmp	w8, #0
	mov	w8, #32767
	cinc	w8, w8, gt
	sub	w8, w8, w21
	asr	w8, w8, #1
	sub	w1, w8, #1
	bl	_FFMIN
	mov	x23, x0
	add	w8, w21, w25
	add	w21, w8, w23, lsl #1
	mov	w8, #32768
	sub	w1, w8, w21
	mov	w0, #1
	bl	_FFMIN
	mov	x22, x0
	ldr	w0, [x20]
	bl	_FFSIGN
	add	w8, w24, w23
	mul	w8, w0, w8
	str	w8, [x20]
LBB0_10:
	add	w2, w22, w21
	mov	x0, x19
	mov	x1, x21
LBB0_11:
	mov	w3, #32768
	mov	w4, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_opus_rc_enc_update
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
