	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_frame_rms
_compute_frame_rms:                     ## @compute_frame_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$-1, %esi
	je	LBB0_4
## %bb.1:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	movq	8(%r15), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	xorpd	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	(%r14,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	callq	_pow_2
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	addsd	%xmm1, %xmm0
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_15
LBB0_4:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.5:
	movl	4(%r15), %eax
	xorpd	%xmm0, %xmm0
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%eax, %eax
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	(%r12,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	callq	_pow_2
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	addsd	%xmm1, %xmm0
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_6
LBB0_11:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_15
LBB0_13:
	movl	4(%r15), %eax
	xorpd	%xmm0, %xmm0
LBB0_14:
	imull	%ecx, %eax
LBB0_15:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	callq	_sqrt
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DBL_EPSILON,4,2                ## @DBL_EPSILON
	.no_dead_strip	_compute_frame_rms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_frame_rms
_compute_frame_rms:                     ; @compute_frame_rms
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	cmn	w1, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x20, #0
	ldr	x8, [x19, #8]
	ldr	x21, [x8, w1, sxtw #3]
	movi	d8, #0000000000000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x21, x20, lsl #3]
	bl	_pow_2
	scvtf	d0, x0
	fadd	d8, d8, d0
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_14
LBB0_4:
	ldr	w9, [x19]
	cmp	w9, #0
	b.le	LBB0_12
; %bb.5:
	mov	x20, #0
	ldr	w8, [x19, #4]
	movi	d8, #0000000000000000
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, #0
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x20, lsl #3]
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x22, x21, lsl #3]
	bl	_pow_2
	scvtf	d0, x0
	fadd	d8, d8, d0
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19]
	b	LBB0_6
LBB0_11:
	movi	d8, #0000000000000000
	b	LBB0_14
LBB0_12:
	ldr	w8, [x19, #4]
	movi	d8, #0000000000000000
LBB0_13:
	mul	w8, w8, w9
LBB0_14:
	scvtf	d0, w8
	fdiv	d0, d8, d0
	bl	_sqrt
Lloh0:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_FFMAX
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DBL_EPSILON,4,2                ; @DBL_EPSILON
	.no_dead_strip	_compute_frame_rms
.subsections_via_symbols
