	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function floor_fit
LCPI0_0:
	.long	0x3ba3d70a                      ## float 0.00499999989
LCPI0_1:
	.long	0x3fa00000                      ## float 1.25
LCPI0_2:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_floor_fit:                             ## @floor_fit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$255, %eax
	xorl	%edx, %edx
	idivl	(%rsi)
	movl	%eax, %r14d
	movq	_MAX_FLOOR_VALUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r15)
	jle	LBB0_15
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorps	%xmm1, %xmm1
	xorl	%r12d, %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_get_floor_average
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx,%r12,4)
	addss	%xmm0, %xmm1
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_15
## %bb.4:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	%xmm0, %xmm1
	divss	(%rcx), %xmm1
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r13), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi,%rdx,4)
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rbx, %r13
	shlq	$4, %r13
	movq	(%rcx,%r13), %rax
	shlq	$4, %rax
	movl	8(%rcx,%rax), %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	ucomiss	LCPI0_2(%rip), %xmm0
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_sqrt
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_pow
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movq	_ff_vorbis_floor1_inverse_db_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	(%r15), %rdx
	shlq	$2, %rdx
	xorl	%eax, %eax
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rax
	addq	%rdx, %rcx
	cmpq	%rax, %r14
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %eax
	jmp	LBB0_14
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FLOOR_VALUES,4,2           ## @MAX_FLOOR_VALUES
	.comm	_ff_vorbis_floor1_inverse_db_table,8,3 ## @ff_vorbis_floor1_inverse_db_table
	.no_dead_strip	_floor_fit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function floor_fit
_floor_fit:                             ; @floor_fit
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w12, [x1]
Lloh3:
	adrp	x8, _MAX_FLOOR_VALUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_FLOOR_VALUES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x23, #0
	mov	w8, #255
	movi	d8, #0000000000000000
	sdiv	w25, w8, w12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_get_floor_average
	str	s0, [x24, x23, lsl #2]
	fadd	s8, s8, s0
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x22, #0
	scvtf	s0, w8
	fdiv	s0, s8, s0
	ldr	s1, [x21]
	fdiv	s9, s0, s1
	ldr	x9, [x20, #8]
	mov	w21, #55050
	movk	w21, #15267, lsl #16
Lloh8:
	adrp	x23, _ff_vorbis_floor1_inverse_db_table@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ff_vorbis_floor1_inverse_db_table@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x9, x26]
	str	w8, [x19, x10, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x26, x22, #4
	ldr	x8, [x9, x26]
	add	x8, x9, x8, lsl #4
	ldr	w8, [x8, #8]
	ldr	s0, [x24, x22, lsl #2]
	fmul	s0, s9, s0
	fsqrt	s8, s0
	fcmp	s8, s8
	b.vs	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_7 Depth=1
	scvtf	s0, w8
	fmov	s1, w21
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	fmov	s0, #1.25000000
	bl	_pow
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	fmul	s0, s8, s0
	ldr	x9, [x23]
	ldrsw	x10, [x20]
	lsl	x10, x10, #2
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x9]
	fcmp	s1, s0
	b.gt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x8, #1
	add	x9, x9, x10
	cmp	x25, x8
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x25
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	bl	_sqrt
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	fmov	s8, s0
	b	LBB0_8
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FLOOR_VALUES,4,2           ; @MAX_FLOOR_VALUES
	.comm	_ff_vorbis_floor1_inverse_db_table,8,3 ; @ff_vorbis_floor1_inverse_db_table
	.no_dead_strip	_floor_fit
.subsections_via_symbols
