	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cubic_peak
_cubic_peak:                            ## @cubic_peak
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r15d
	callq	_FT_ABS
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_FT_ABS
	orl	%eax, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_FT_ABS
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_FT_ABS
	orl	%eax, %r13d
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, %edi
	callq	_FT_MSB
	movl	%eax, %ecx
	movl	$27, %eax
	subl	%ecx, %eax
	cmpl	$26, %ecx
	jg	LBB0_2
## %bb.1:
	cmpl	$2, %eax
	movl	$2, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, %ecx
	shll	%cl, %r15d
	shll	%cl, %ebx
	shll	%cl, %r12d
	shll	%cl, %r14d
	jmp	LBB0_3
LBB0_2:
	addb	$-27, %cl
	sarl	%cl, %r15d
	sarl	%cl, %ebx
	sarl	%cl, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r14,%r12), %ecx
	addl	%ebx, %r12d
	addl	%r15d, %ebx
	cmpl	%ecx, %ebx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r12d, %ecx
	leal	(%r12,%rbx), %edx
	movl	%ecx, %esi
	addl	%edx, %esi
	leal	7(%rcx,%rdx), %r14d
	cmovnsl	%esi, %r14d
	sarl	$3, %r14d
	addl	%ebx, %r12d
	addl	$3, %r12d
	testl	%edx, %edx
	cmovnsl	%edx, %r12d
	sarl	$2, %r12d
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	movl	%ecx, %ebx
	cmpl	%ebx, %r15d
	je	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r12d, %ebx
	leal	(%rcx,%r12), %edx
	leal	(%rbx,%rdx), %r15d
	addl	$7, %r15d
	movl	%ebx, %esi
	addl	%edx, %esi
	cmovnsl	%esi, %r15d
	sarl	$3, %r15d
	leal	(%rcx,%r12), %ebx
	addl	$3, %ebx
	testl	%edx, %edx
	cmovnsl	%edx, %ebx
	sarl	$2, %ebx
	movl	%ecx, %r12d
	shrl	$31, %r12d
	addl	%ecx, %r12d
	sarl	%r12d
	cmpl	%ebx, %r15d
	jne	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %r15d
	jge	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r12d
	jne	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %ebx
	jg	LBB0_3
	jmp	LBB0_14
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	movl	%r15d, %r12d
LBB0_14:
	movl	%r12d, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	negb	%cl
	shll	%cl, %r12d
	testl	%eax, %eax
	cmovgl	%edx, %r12d
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cubic_peak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cubic_peak
_cubic_peak:                            ; @cubic_peak
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_FT_ABS
	mov	x23, x0
	mov	x0, x21
	bl	_FT_ABS
	orr	w23, w0, w23
	mov	x0, x20
	bl	_FT_ABS
	orr	w23, w23, w0
	mov	x0, x19
	bl	_FT_ABS
	orr	w0, w23, w0
	bl	_FT_MSB
	mov	w8, #27
	sub	w8, w8, w0
	sub	w9, w0, #27
	asr	w10, w22, w9
	asr	w11, w21, w9
	asr	w13, w20, w9
	asr	w14, w19, w9
	mov	w9, #2
	cmp	w8, #2
	csel	w15, w8, w9, lt
	lsl	w9, w22, w15
	lsl	w12, w21, w15
	lsl	w16, w20, w15
	lsl	w17, w19, w15
	cmp	w0, #26
	csel	w9, w10, w9, gt
	csel	w12, w11, w12, gt
	csel	w11, w13, w16, gt
	csel	w10, w14, w17, gt
	csel	w8, w8, w15, gt
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #0
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w11, #1
	b.lt	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w13, w12, w9
	add	w12, w11, w12
	add	w14, w12, w13
	add	w11, w10, w11
	add	w12, w11, w12
	add	w15, w14, w12
	add	w16, w15, #7
	cmp	w15, #0
	csel	w15, w16, w15, lt
	asr	w15, w15, #3
	add	w16, w12, #3
	cmp	w12, #0
	csel	w16, w16, w12, lt
	asr	w16, w16, #2
	cmp	w11, #0
	cinc	w17, w11, lt
	asr	w17, w17, #1
	add	w12, w12, w14
	add	w0, w12, #7
	cmp	w12, #0
	csel	w12, w0, w12, lt
	asr	w0, w12, #3
	add	w12, w14, #3
	cmp	w14, #0
	csel	w12, w12, w14, lt
	asr	w14, w12, #2
	cmp	w13, #0
	cinc	w12, w13, lt
	asr	w12, w12, #1
	cmp	w13, w11
	csel	w9, w15, w9, le
	csel	w12, w16, w12, le
	csel	w11, w17, w14, le
	csel	w10, w10, w0, le
	cmp	w9, w12
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w9, w11
	b.ge	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w11, w10
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w12, w10
	b.gt	LBB0_1
	b	LBB0_9
LBB0_7:
	mov	w11, #0
	b	LBB0_9
LBB0_8:
	mov	x11, x9
LBB0_9:
	asr	w9, w11, w8
	neg	w10, w8
	lsl	w10, w11, w10
	cmp	w8, #0
	csel	w0, w9, w10, gt
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cubic_peak
.subsections_via_symbols
