	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rms                         ## -- Begin function ff_rms
	.p2align	4, 0x90
_ff_rms:                                ## @ff_rms
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LPC_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, %r8d
	movl	$65536, %ecx                    ## imm = 0x10000
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	cmpq	%r8, %r9
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%rdi,%r9,4), %edx
	imull	%edx, %edx
	movl	$16777216, %esi                 ## imm = 0x1000000
	subl	%edx, %esi
	sarl	$12, %esi
	imull	%ecx, %esi
	cmpl	$4096, %esi                     ## imm = 0x1000
	jb	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edx
	shrl	$12, %edx
	cmpl	$67108863, %esi                 ## imm = 0x3FFFFFF
	ja	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	leal	(,%rdx,4), %ecx
	cmpl	$4096, %edx                     ## imm = 0x1000
	movl	%ecx, %edx
	jb	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	$65536, %ecx                    ## imm = 0x10000
LBB0_8:
	movl	%ecx, %edi
	callq	_ff_t_sqrt
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	sarl	%cl, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC_ORDER,4,2                  ## @LPC_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rms                         ; -- Begin function ff_rms
	.p2align	2
_ff_rms:                                ; @ff_rms
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _LPC_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPC_ORDER@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
	mov	x10, x19
	mov	w8, #65536
	mov	w11, #16777216
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w12, [x0, x9, lsl #2]
	msub	w12, w12, w12, w11
	asr	w12, w12, #12
	mul	w8, w12, w8
	cmp	w8, #1, lsl #12                 ; =4096
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w12, w8, #12
	lsr	w8, w8, #26
	cbnz	w8, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w19, w19, #1
	lsl	w8, w12, #2
	cmp	w12, #1, lsl #12                ; =4096
	mov	x12, x8
	b.lo	LBB0_6
	b	LBB0_3
LBB0_7:
	mov	w8, #65536
LBB0_8:
	mov	x0, x8
	bl	_ff_t_sqrt
	asr	w0, w0, w19
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC_ORDER,4,2                  ; @LPC_ORDER
.subsections_via_symbols
