	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function add_noise
LCPI0_0:
	.long	0xc6800000                      ## float -16384
LCPI0_1:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_add_noise:                             ## @add_noise
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movslq	%esi, %r13
	movq	(%rax,%r13,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%r13,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rdi), %eax
	movq	16(%rdi), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_noise_bands_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	24(%r15), %rax
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_7
## %bb.1:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movslq	%ecx, %r12
	xorl	%ebx, %ebx
	movq	_qdmc_nodes@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_lin_calc
	incq	%rbx
	movq	_noise_bands_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	24(%r15), %rax
	movslq	(%rcx,%rax,4), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%rcx,%rax,4), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	12(%r15), %eax
	cmpl	%eax, %esi
	jge	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r12,4), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_amplitude_tab@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	$63, %eax
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_6
LBB0_7:
	movl	12(%r15), %eax
LBB0_8:
	cmpl	$4, %eax
	jl	LBB0_15
## %bb.9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	decl	%eax
	movq	16(%r15), %r9
	movl	40(%r15), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdi,4), %r8
	addq	$8, %r8
	leaq	(%rdi,%rax), %r10
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%r10,4), %rbx
	addq	$4, %rbx
	cmpq	%rbx, %r8
	jae	LBB0_13
## %bb.10:
	leaq	(%rcx,%r10,4), %r8
	addq	$4, %r8
	leaq	(%rsi,%rdi,4), %rbx
	addq	$8, %rbx
	cmpq	%r8, %rbx
	jae	LBB0_13
## %bb.11:
	addq	$-2, %rax
	leaq	(%rsi,%rdi,4), %rsi
	addq	$12, %rsi
	leaq	(%rcx,%rdi,4), %rdi
	addq	$12, %rdi
	xorl	%ebx, %ebx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	imull	$214013, %edx, %ecx             ## imm = 0x343FD
	addl	$2531011, %ecx                  ## imm = 0x269EC3
	movl	%ecx, 40(%r15)
	imull	$214013, %ecx, %edx             ## imm = 0x343FD
	andl	$32767, %ecx                    ## imm = 0x7FFF
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ecx, %xmm2
	addss	%xmm0, %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2ssl	8(%r9,%rbx,4), %xmm3
	mulss	%xmm1, %xmm2
	mulss	%xmm2, %xmm3
	addl	$2531011, %edx                  ## imm = 0x269EC3
	movl	%edx, 40(%r15)
	movl	%edx, %ecx
	andl	$32767, %ecx                    ## imm = 0x7FFF
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ecx, %xmm2
	addss	%xmm0, %xmm2
	xorps	%xmm4, %xmm4
	cvtsi2ssl	8(%r9,%rbx,4), %xmm4
	mulss	%xmm1, %xmm2
	mulss	%xmm2, %xmm4
	movss	-4(%rdi,%rbx,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm2
	movss	%xmm2, -4(%rdi,%rbx,4)
	movss	-4(%rsi,%rbx,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm2
	movss	%xmm2, -4(%rsi,%rbx,4)
	movss	(%rdi,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm2
	movss	%xmm2, (%rdi,%rbx,4)
	movss	(%rsi,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm4, %xmm2
	movss	%xmm2, (%rsi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_13:
	movss	8(%rcx,%rdi,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	movss	8(%rsi,%rdi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	leaq	(%rsi,%rdi,4), %rsi
	addq	$12, %rsi
	leaq	(%rcx,%rdi,4), %rdi
	addq	$12, %rdi
	addq	$-2, %rax
	xorl	%ebx, %ebx
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	imull	$214013, %edx, %ecx             ## imm = 0x343FD
	addl	$2531011, %ecx                  ## imm = 0x269EC3
	movl	%ecx, 40(%r15)
	imull	$214013, %ecx, %edx             ## imm = 0x343FD
	andl	$32767, %ecx                    ## imm = 0x7FFF
	xorps	%xmm4, %xmm4
	cvtsi2ss	%ecx, %xmm4
	addss	%xmm2, %xmm4
	mulss	%xmm3, %xmm4
	xorps	%xmm5, %xmm5
	cvtsi2ssl	8(%r9,%rbx,4), %xmm5
	addl	$2531011, %edx                  ## imm = 0x269EC3
	movl	%edx, %ecx
	andl	$32767, %ecx                    ## imm = 0x7FFF
	xorps	%xmm6, %xmm6
	cvtsi2ss	%ecx, %xmm6
	mulss	%xmm4, %xmm5
	movl	%edx, 40(%r15)
	addss	%xmm2, %xmm6
	mulss	%xmm3, %xmm6
	xorps	%xmm4, %xmm4
	cvtsi2ssl	8(%r9,%rbx,4), %xmm4
	mulss	%xmm6, %xmm4
	addss	%xmm5, %xmm0
	movss	%xmm0, -4(%rdi,%rbx,4)
	addss	%xmm4, %xmm1
	movss	%xmm1, -4(%rsi,%rbx,4)
	movss	(%rdi,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm5, %xmm0
	movss	%xmm0, (%rdi,%rbx,4)
	movss	(%rsi,%rbx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm4, %xmm1
	movss	%xmm1, (%rsi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_14
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_noise_bands_size,8,3           ## @noise_bands_size
	.comm	_qdmc_nodes,8,3                 ## @qdmc_nodes
	.comm	_amplitude_tab,8,3              ## @amplitude_tab
	.no_dead_strip	_add_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_noise
_add_noise:                             ; @add_noise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	add	x8, x8, w1, sxtw #3
	ldr	x10, [x8]
	ldp	w9, w26, [x0, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x8, #16]
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	ldr	x0, [x0, #16]
	lsl	w2, w26, #2
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x27, _noise_bands_size@GOTPAGE
Lloh1:
	ldr	x27, [x27, _noise_bands_size@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	x8, [x19, #24]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
	sxtw	x22, w22
	cmp	w20, #0
	cinc	w9, w20, lt
	sbfx	x28, x9, #1, #31
Lloh2:
	adrp	x25, _qdmc_nodes@GOTPAGE
Lloh3:
	ldr	x25, [x25, _qdmc_nodes@GOTPAGEOFF]
	mov	w23, #21
Lloh4:
	adrp	x24, _amplitude_tab@GOTPAGE
Lloh5:
	ldr	x24, [x24, _amplitude_tab@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x8, lsl #2
	add	x8, x8, x21, lsl #2
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	x3, x21
	bl	_lin_calc
	add	x21, x21, #1
	ldr	x9, [x27]
	ldr	x8, [x19, #24]
	ldrsw	x9, [x9, x8, lsl #2]
	cmp	x21, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	mul	x8, x8, x23
	add	x10, x9, x8, lsl #2
	ldr	w1, [x10, x21, lsl #2]
	ldr	w10, [x19, #12]
	cmp	w1, w10
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #32]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x10, [x10, x21, lsl #3]
	ldr	w10, [x10, x28, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x24]
	and	x10, x10, #0x3f
	ldr	s0, [x11, x10, lsl #2]
	b	LBB0_3
LBB0_7:
	ldr	w10, [x19, #12]
LBB0_8:
	cmp	w10, #4
	b.lt	LBB0_14
; %bb.9:
	mul	w8, w26, w20
	ldp	x9, x2, [sp, #8]                ; 16-byte Folded Reload
	add	x12, x9, w8, sxtw
	mov	w8, #40643
	movk	w8, #38, lsl #16
	mov	w9, #17405
	movk	w9, #3, lsl #16
	sub	w14, w10, #1
	ldr	x13, [x19, #16]
	ldr	w10, [x19, #40]
	lsl	x15, x12, #2
	add	x11, x15, #8
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	add	x16, x1, x11
	add	x12, x12, x14
	lsl	x12, x12, #2
	add	x12, x12, #4
	add	x17, x1, x12
	add	x0, x2, x11
	add	x12, x2, x12
	cmp	x16, x12
	ccmp	x0, x17, #2, lo
	b.lo	LBB0_12
; %bb.10:
	ldr	s0, [x1, x11]
	ldr	s1, [x2, x11]
	add	x12, x15, #12
	add	x11, x2, x12
	add	x12, x1, x12
	add	x13, x13, #8
	sub	x14, x14, #2
	mov	w15, #-964689920
	movi.2s	v2, #56, lsl #24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	madd	w10, w10, w9, w8
	str	w10, [x19, #40]
	and	w16, w10, #0x7fff
	ucvtf	s3, w16
	fmov	s4, w15
	fadd	s3, s3, s4
	fmul	s3, s3, s2
	ldr	s5, [x13]
	scvtf	s5, s5
	fmul	s3, s3, s5
	madd	w10, w10, w9, w8
	str	w10, [x19, #40]
	and	w16, w10, #0x7fff
	ucvtf	s5, w16
	fadd	s4, s5, s4
	fmul	s4, s4, s2
	ldr	s5, [x13], #4
	scvtf	s5, s5
	fmul	s4, s4, s5
	fadd	s0, s0, s3
	stur	s0, [x12, #-4]
	fadd	s0, s1, s4
	stur	s0, [x11, #-4]
	ldr	s0, [x12]
	fsub	s0, s0, s3
	str	s0, [x12], #4
	ldr	s1, [x11]
	fsub	s1, s1, s4
	str	s1, [x11], #4
	subs	x14, x14, #1
	b.ne	LBB0_11
	b	LBB0_14
LBB0_12:
	sub	x11, x14, #2
	add	x12, x13, #8
	add	x14, x15, #12
	add	x13, x1, x14
	add	x14, x2, x14
	mov	w15, #-964689920
	movi.2s	v0, #56, lsl #24
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	madd	w10, w10, w9, w8
	str	w10, [x19, #40]
	and	w16, w10, #0x7fff
	ucvtf	s1, w16
	fmov	s2, w15
	fadd	s1, s1, s2
	fmul	s1, s1, s0
	ldr	s3, [x12]
	scvtf	s3, s3
	fmul	s1, s1, s3
	madd	w10, w10, w9, w8
	str	w10, [x19, #40]
	and	w16, w10, #0x7fff
	ucvtf	s3, w16
	fadd	s2, s3, s2
	ldr	s3, [x12], #4
	fmul	s2, s2, s0
	scvtf	s3, s3
	fmul	s2, s2, s3
	ldur	s3, [x13, #-4]
	fadd	s3, s3, s1
	stur	s3, [x13, #-4]
	ldur	s3, [x14, #-4]
	fadd	s3, s3, s2
	stur	s3, [x14, #-4]
	ldr	s3, [x13]
	fsub	s1, s3, s1
	str	s1, [x13], #4
	ldr	s1, [x14]
	fsub	s1, s1, s2
	str	s1, [x14], #4
	subs	x11, x11, #1
	b.ne	LBB0_13
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_noise_bands_size,8,3           ; @noise_bands_size
	.comm	_qdmc_nodes,8,3                 ; @qdmc_nodes
	.comm	_amplitude_tab,8,3              ; @amplitude_tab
	.no_dead_strip	_add_noise
.subsections_via_symbols
