	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_floor_average
_get_floor_average:                     ## @get_floor_average
	.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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leal	-1(%r14), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	shlq	$4, %rax
	movq	(%rbx,%rax), %rax
	shlq	$4, %rax
	movslq	8(%rbx,%rax), %rax
	movq	(%r15), %rsi
	movq	8(%r15), %rbx
	movq	%rax, %r15
	incl	%r14d
	decq	%rsi
	movl	%r14d, %edi
	callq	_FFMIN
	shlq	$4, %rax
	movq	(%rbx,%rax), %rax
	shlq	$4, %rax
	movl	8(%rbx,%rax), %r14d
	xorps	%xmm0, %xmm0
	cmpl	%r15d, %r14d
	jle	LBB0_5
## %bb.1:
	movl	%r14d, %r12d
	subl	%r15d, %r12d
	movq	%r15, %rbx
	notl	%r15d
	addl	%r14d, %r15d
	andl	$3, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	(%r13,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	addss	%xmm1, %xmm0
	incq	%rbx
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	cmpl	$3, %r15d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jb	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	(%r13,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	4(%r13,%rbx,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	8(%r13,%rbx,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	12(%r13,%rbx,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	addq	$4, %rbx
	cmpl	%ebx, %r14d
	jne	LBB0_4
LBB0_5:
	subl	%r15d, %r14d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r14d, %xmm1
	divss	%xmm1, %xmm0
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_floor_average
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_floor_average
_get_floor_average:                     ; @get_floor_average
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	sub	w0, w2, #1
	mov	w1, #0
	bl	_FFMAX
	lsl	x8, x0, #4
	ldr	x8, [x22, x8]
	add	x8, x22, x8, lsl #4
	ldrsw	x22, [x8, #8]
	add	w0, w20, #1
	ldp	x8, x20, [x21]
	sub	x1, x8, #1
	bl	_FFMIN
	lsl	x8, x0, #4
	ldr	x8, [x20, x8]
	add	x8, x20, x8, lsl #4
	ldr	w20, [x8, #8]
	movi	d8, #0000000000000000
	cmp	w20, w22
	b.le	LBB0_3
; %bb.1:
	add	x19, x19, x22, lsl #2
	sub	w21, w20, w22
	movi	d8, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x19], #4
	bl	_fabs
	scvtf	s0, x0
	fadd	s8, s8, s0
	subs	w21, w21, #1
	b.ne	LBB0_2
LBB0_3:
	sub	w8, w20, w22
	scvtf	s0, w8
	fdiv	s0, s8, s0
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_floor_average
.subsections_via_symbols
