	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_icwrsi
_celt_icwrsi:                           ## @celt_icwrsi
	.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
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	incq	%r14
	xorl	%r15d, %r15d
	movl	$1, %r12d
	xorl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	-2(%r14), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13,%rax,4), %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %esi
	incl	%esi
	movl	%r12d, %edi
	callq	_CELT_PVQ_U
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_CELT_PVQ_U
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %edi
	movl	%edi, %eax
	sarl	$31, %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%eax, %ebx
	callq	_FFABS
	addl	%r15d, %eax
	decq	%r14
	incl	%r12d
	movl	%eax, %r15d
	movl	%ebx, %eax
	cmpq	$1, %r14
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_celt_icwrsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_icwrsi
_celt_icwrsi:                           ; @celt_icwrsi
	.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
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	w21, #0
	mov	w20, #0
	mov	w8, w0
	add	x24, x8, #1
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w24, #2
	lsl	x25, x8, #2
	ldr	w0, [x19, x25]
	bl	_FFABS
	add	w8, w21, w0
	add	w1, w8, #1
	mov	x0, x22
	bl	_CELT_PVQ_U
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_CELT_PVQ_U
	ldr	w8, [x19, x25]
	and	w9, w23, w8, asr #31
	add	w10, w0, w20
	add	w20, w10, w9
	mov	x0, x8
	bl	_FFABS
	add	w21, w0, w21
	sub	x24, x24, #1
	add	w22, w22, #1
	cmp	x24, #1
	b.hi	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_celt_icwrsi
.subsections_via_symbols
