	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opus_rc_dec_laplace         ## -- Begin function ff_opus_rc_dec_laplace
	.p2align	4, 0x90
_ff_opus_rc_dec_laplace:                ## @ff_opus_rc_dec_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	%edx, %r12d
	movl	%esi, %ebx
	movl	(%rdi), %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	sarl	$15, %r15d
	cltd
	idivl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	$32768, %r14d                   ## imm = 0x8000
	movl	$32768, %esi                    ## imm = 0x8000
	callq	_FFMIN
	subl	%eax, %r14d
	xorl	%r13d, %r13d
	cmpl	%ebx, %r14d
	jge	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_2:
	movl	$32736, %eax                    ## imm = 0x7FE0
	subl	%ebx, %eax
	movl	$16384, %edx                    ## imm = 0x4000
	subl	%r12d, %edx
	imull	%eax, %edx
	movl	%edx, %ecx
	sarl	$15, %ecx
	incl	%ecx
	movl	$1, %eax
	cmpl	$32768, %edx                    ## imm = 0x8000
	jl	LBB0_3
## %bb.4:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rcx,2), %edx
	cmpl	%edx, %r14d
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%ecx, %ecx
	incl	%eax
	addl	$-2, %ecx
	imull	%r12d, %ecx
	movl	%ecx, %esi
	sarl	$15, %esi
	incl	%esi
	movl	%edx, %ebx
	cmpl	$32767, %ecx                    ## imm = 0x7FFF
	movl	%esi, %ecx
	jg	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movl	%ebx, %edx
	movl	%ecx, %esi
LBB0_7:
	movl	%r14d, %ebx
	subl	%edx, %ebx
	movl	%ebx, %ecx
	sarl	%ecx
	addl	%ecx, %eax
	andl	$-2, %ebx
	addl	%edx, %ebx
	movl	%esi, %ecx
LBB0_8:
	leal	(%rbx,%rcx), %r12d
	movl	%eax, %r13d
	negl	%r13d
	cmpl	%r12d, %r14d
	cmovgel	%eax, %r13d
	cmovll	%ebx, %r12d
	movl	%ecx, %ebx
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addl	%r12d, %ebx
	movl	%ebx, %edi
	movl	$32768, %esi                    ## imm = 0x8000
	callq	_FFMIN
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$32768, %r8d                    ## imm = 0x8000
	callq	_opus_rc_dec_update
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_dec_laplace         ; -- Begin function ff_opus_rc_dec_laplace
	.p2align	2
_ff_opus_rc_dec_laplace:                ; @ff_opus_rc_dec_laplace
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	asr	w20, w8, #15
	sdiv	w8, w9, w20
	add	w0, w8, #1
	mov	w23, #32768
	mov	w1, #32768
	bl	_FFMIN
	sub	w8, w23, w0
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
	mov	w22, #0
	mov	w23, #0
	b	LBB0_9
LBB0_2:
	mov	w9, #32736
	sub	w9, w9, w21
	mov	w10, #16384
	sub	w10, w10, w22
	mul	w10, w10, w9
	asr	w9, w10, #15
	add	w9, w9, #1
	cmp	w10, #8, lsl #12                ; =32768
	b.lt	LBB0_6
; %bb.3:
	mov	w10, #1
	mov	x11, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w12, w9, #1
	add	w21, w12, w11
	cmp	w8, w21
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w10, #1
	sub	w9, w12, #2
	mul	w12, w9, w22
	asr	w9, w12, #15
	add	w9, w9, #1
	mov	x11, x21
	cmp	w12, #8, lsl #12                ; =32768
	b.ge	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w10, #1
LBB0_7:
	sub	w11, w8, w21
	add	w10, w10, w11, asr #1
	and	w11, w11, #0xfffffffe
	add	w11, w11, w21
LBB0_8:
	add	w12, w11, w9
	cmp	w8, w12
	cneg	w22, w10, lt
	csel	w23, w11, w12, lt
	mov	x21, x9
LBB0_9:
	add	w0, w21, w23
	mov	w1, #32768
	bl	_FFMIN
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	w4, #32768
	bl	_opus_rc_dec_update
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
