	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_tonal_components
_add_tonal_components:                  ## @add_tonal_components
	.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
	testl	%esi, %esi
	jle	LBB0_21
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	%esi, %r15d
	leaq	48(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r15, %r12
	je	LBB0_22
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	%r12, %rbx
	shlq	$4, %rbx
	movl	4(%r13,%rbx), %edi
	addl	(%r13,%rbx), %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	4(%r13,%rbx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13,%rbx), %rdx
	movslq	(%r13,%rbx), %r8
	leaq	(%r14,%r8,4), %r11
	cmpl	$8, %r10d
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdx,%r10,4), %rcx
	cmpq	%rcx, %r11
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r8,%r10), %rcx
	leaq	(%r14,%rcx,4), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rcx
	notq	%rcx
	addq	%r10, %rcx
	movq	%r10, %rdi
	andq	$3, %rdi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rdx,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	(%r11,%rsi,4), %xmm0
	movss	%xmm0, (%r11,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %rcx
	jb	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r8,4), %rcx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rdx,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	-12(%rcx,%rsi,4), %xmm0
	movss	%xmm0, -12(%rcx,%rsi,4)
	movss	4(%rdx,%rsi,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	addss	-8(%rcx,%rsi,4), %xmm0
	movss	%xmm0, -8(%rcx,%rsi,4)
	movss	8(%rdx,%rsi,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	addss	-4(%rcx,%rsi,4), %xmm0
	movss	%xmm0, -4(%rcx,%rsi,4)
	movss	12(%rdx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	addss	(%rcx,%rsi,4), %xmm0
	movss	%xmm0, (%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_19
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r10d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rcx
	andq	$-2, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%r8,4), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rdx,%rbx,4), %xmm0
	movups	16(%rdx,%rbx,4), %xmm1
	movups	-48(%rdi,%rbx,4), %xmm2
	addps	%xmm0, %xmm2
	movups	-32(%rdi,%rbx,4), %xmm0
	addps	%xmm1, %xmm0
	movups	-16(%rdi,%rbx,4), %xmm1
	movups	(%rdi,%rbx,4), %xmm3
	movups	%xmm2, -48(%rdi,%rbx,4)
	movups	%xmm0, -32(%rdi,%rbx,4)
	movups	32(%rdx,%rbx,4), %xmm0
	addps	%xmm1, %xmm0
	movups	48(%rdx,%rbx,4), %xmm1
	addps	%xmm3, %xmm1
	movups	%xmm0, -16(%rdi,%rbx,4)
	movups	%xmm1, (%rdi,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rcx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r9b
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movups	(%rdx,%rbx,4), %xmm0
	movups	16(%rdx,%rbx,4), %xmm1
	movups	(%r11,%rbx,4), %xmm2
	addps	%xmm0, %xmm2
	movups	16(%r11,%rbx,4), %xmm0
	addps	%xmm1, %xmm0
	movups	%xmm2, (%r11,%rbx,4)
	movups	%xmm0, 16(%r11,%rbx,4)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r10, %rsi
	je	LBB0_2
	jmp	LBB0_15
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_13
	jmp	LBB0_14
LBB0_21:
	movl	$-1, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_tonal_components
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_tonal_components
_add_tonal_components:                  ; @add_tonal_components
	.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
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	x21, #0
	add	x22, x0, #32
	mov	w8, #-1
	mov	w23, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x23
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	add	x24, x19, x21, lsl #4
	ldp	w9, w10, [x24]
	add	w0, w10, w9
	mov	x1, x8
	bl	_FFMAX
	mov	x8, x0
	ldr	w9, [x24, #4]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x24, #8]
	ldrsw	x11, [x24]
	cmp	w9, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x20, x11, lsl #2
	add	x13, x11, x9
	add	x13, x20, x13, lsl #2
	add	x14, x10, x9, lsl #2
	cmp	x12, x14
	ccmp	x10, x13, #2, lo
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x12, x9, #0xfffffff0
	add	x13, x22, x11, lsl #2
	add	x14, x10, #32
	mov	x15, x12
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	fadd.4s	v0, v0, v4
	fadd.4s	v1, v1, v5
	fadd.4s	v2, v2, v6
	fadd.4s	v3, v3, v7
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x9
	b.eq	LBB0_2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x12, x11
	add	x11, x20, x11, lsl #2
	add	x10, x10, x12, lsl #2
	sub	x9, x9, x12
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x10], #4
	ldr	s1, [x11]
	fadd	s0, s0, s1
	str	s0, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	mov	w8, #-1
LBB0_13:
	mov	x0, 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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_tonal_components
.subsections_via_symbols
