	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_cwrsi
_celt_cwrsi:                            ## @celt_cwrsi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%r8d, %r8d
	cmpl	$3, %edi
	jl	LBB0_1
## %bb.2:
	movq	_ff_celt_pvq_u_row@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movl	%edi, %r12d
	leaq	-8(%r11), %r10
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %edx
	addl	%r14d, %esi
	subl	%edi, %esi
	xorl	%r14d, %esi
	movl	%esi, %r15d
	movl	%esi, %eax
	imull	%esi, %eax
	addl	%eax, %r9d
	movl	%edi, %esi
	movl	%edx, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, (%rcx)
	addq	$4, %rcx
	leaq	-1(%r12), %rax
	movl	%ebx, %edx
	cmpq	$3, %r12
	movq	%rax, %r12
	jle	LBB0_17
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movslq	%esi, %rdi
	cmpq	%rdi, %r12
	jle	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r11,%rdi,8), %r14
	movq	8(%r11,%rdi,8), %rax
	movl	(%rax,%r12,4), %eax
	movl	%edx, %ebx
	subl	(%r14,%r12,4), %ebx
	jl	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %edx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r11,%r12,8), %rbx
	movl	4(%rbx,%rdi,4), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %edx
	setge	%r14b
	negl	%r14d
	andl	%r14d, %eax
	subl	%eax, %edx
	cmpl	%edx, (%rbx,%r12,4)
	jle	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r11,%rdi,8), %rax
	decq	%rdi
	movl	(%rax,%r12,4), %eax
	cmpl	%edx, %eax
	jg	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	cmpl	%eax, %edx
	setge	%r14b
	negl	%r14d
	andl	%r14d, %eax
	subl	%eax, %edx
	leaq	(%r10,%rdi,8), %r15
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rax,8), %rdi
	decq	%rax
	movl	%edx, %ebx
	subl	(%rdi,%r12,4), %ebx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %esi
	movl	%r14d, %r15d
	subl	%eax, %r15d
	xorl	%r14d, %r15d
	movl	%r15d, %eax
	imull	%r15d, %eax
	addl	%eax, %r9d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rbx,%rdi,4), %eax
	decq	%rdi
	cmpl	%edx, %eax
	jg	LBB0_6
	jmp	LBB0_9
LBB0_1:
	movl	%edx, %ebx
	xorl	%r9d, %r9d
LBB0_17:
	leal	(%rsi,%rsi), %eax
	incl	%eax
	xorl	%r10d, %r10d
	cmpl	%eax, %ebx
	setge	%r10b
	movl	%r10d, %r11d
	negl	%r11d
	andl	%r11d, %eax
	movl	%ebx, %edx
	subl	%eax, %edx
	negl	%eax
	addl	%ebx, %eax
	incl	%eax
	shrl	$31, %eax
	leal	(%rax,%rdx), %ebx
	incl	%ebx
	movl	%ebx, %edi
	sarl	%edi
	leal	2(%rdx), %r14d
	andl	$-2, %ebx
	movl	$1, %eax
	subl	%ebx, %eax
	cmpl	$3, %r14d
	cmovbl	%r8d, %eax
	addl	%edx, %eax
	subl	%r10d, %esi
	subl	%edi, %esi
	xorl	%r11d, %esi
	movl	%esi, %edx
	imull	%esi, %edx
	addl	%r9d, %edx
	movl	%esi, (%rcx)
	subl	%eax, %edi
	negl	%eax
	xorl	%edi, %eax
	movl	%eax, 4(%rcx)
	imull	%eax, %eax
	addl	%edx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_pvq_u_row,8,3          ## @ff_celt_pvq_u_row
	.no_dead_strip	_celt_cwrsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_cwrsi
_celt_cwrsi:                            ; @celt_cwrsi
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w0, #3
	b.lt	LBB0_15
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _ff_celt_pvq_u_row@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_celt_pvq_u_row@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, w0
	sub	x11, x9, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w2, w14, w15
	add	w14, w1, w12
	sub	w14, w14, w13
	eor	w12, w14, w12
	madd	w8, w12, w12, w8
	mov	x1, x13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w12, [x3], #4
	sub	x12, x10, #1
	cmp	x10, #3
	mov	x10, x12
	b.le	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	sxtw	x13, w1
	cmp	x10, x13
	b.le	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, x13, lsl #3
	lsl	x14, x10, #2
	ldp	x15, x12, [x12]
	ldr	w16, [x15, x14]
	ldr	w15, [x12, x14]
	subs	w14, w2, w16
	ccmp	w2, w15, #0, ge
	b.lt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, w15
	csetm	w12, ge
	and	w14, w15, w12
	sub	w14, w2, w14
	add	x13, x11, x13, lsl #3
	mov	x15, x12
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x13], #-8
	ldr	w16, [x16, x10, lsl #2]
	add	w15, w15, #1
	sub	w1, w1, #1
	subs	w2, w14, w16
	b.lt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	eor	w12, w15, w12
	madd	w8, w12, w12, w8
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x9, x10, lsl #3]
	add	x12, x16, x13, lsl #2
	ldr	w14, [x12, #4]
	cmp	w2, w14
	csetm	w12, ge
	and	w14, w14, w12
	ldr	w15, [x16, x10, lsl #2]
	sub	w14, w2, w14
	cmp	w15, w14
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, x10
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x11, x13, lsl #3]
	sub	x13, x13, #1
	ldr	w15, [x15, x10, lsl #2]
	cmp	w15, w14
	b.gt	LBB0_11
	b	LBB0_2
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x16, x13, lsl #2]
	sub	x13, x13, #1
	cmp	w15, w14
	b.gt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x13, #1
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	mov	x2, x14
	b	LBB0_3
LBB0_15:
	mov	w8, #0
LBB0_16:
	mov	w9, #1
	mov	w10, #1
	bfi	w10, w1, #1, #31
	cmp	w2, w10
	cset	w11, ge
	csetm	w12, ge
	and	w12, w10, w12
	sub	w12, w2, w12
	add	w13, w12, #1
	cmp	w13, #0
	add	w13, w12, #2
	csinc	w14, w13, w12, lt
	asr	w15, w14, #1
	sub	w11, w1, w11
	sub	w11, w11, w15
	cmp	w2, w10
	and	w10, w14, #0xfffffffe
	cinv	w11, w11, ge
	sub	w9, w9, w10
	cmp	w13, #3
	csel	w9, wzr, w9, lo
	add	w9, w9, w12
	madd	w8, w11, w11, w8
	neg	w10, w9
	sub	w9, w15, w9
	eor	w9, w9, w10
	madd	w0, w9, w9, w8
	stp	w11, w9, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_pvq_u_row,8,3          ; @ff_celt_pvq_u_row
	.no_dead_strip	_celt_cwrsi
.subsections_via_symbols
