	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sample_noise_block
LCPI0_0:
	.long	0x4b800000                      ## float 16777216
	.long	0x4b800000                      ## float 16777216
	.space	4
	.space	4
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x4b800000                      ## float 16777216
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sample_noise_block:                    ## @sample_noise_block
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %r9
	testq	%r9, %r9
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_14
## %bb.1:
	movq	(%rdx), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%r9d, %r14d
	movq	8(%rdi), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %r8
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rax
	shlq	$4, %rax
	leaq	(%r8,%rax), %rdi
	addq	$-12, %rdi
	leaq	(%rsi,%r14,4), %rax
	leaq	(%rcx,%r14,4), %rbx
	cmpq	%rax, %r8
	setb	%r10b
	cmpq	%rdi, %rsi
	setb	%r11b
	cmpq	%rbx, %r8
	setb	%al
	cmpq	%rdi, %rcx
	setb	%bl
	xorl	%edx, %edx
	testb	%r11b, %r10b
	jne	LBB0_4
## %bb.5:
	andb	%bl, %al
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.6:
	movl	%r14d, %edx
	andl	$-2, %edx
	leaq	24(%r8), %rbx
	xorl	%eax, %eax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = <1.6777216E+7,1.6777216E+7,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsd	(%rsi,%rax,4), %xmm1            ## xmm1 = mem[0],zero
	movsd	(%rcx,%rax,4), %xmm2            ## xmm2 = mem[0],zero
	mulps	%xmm1, %xmm2
	mulps	%xmm0, %xmm2
	movss	%xmm2, -24(%rbx)
	extractps	$1, %xmm2, -8(%rbx)
	movq	$0, -16(%rbx)
	movq	$0, (%rbx)
	addq	$2, %rax
	addq	$32, %rbx
	cmpq	%rax, %rdx
	jne	LBB0_7
## %bb.8:
	cmpq	%r14, %rdx
	jne	LBB0_9
	jmp	LBB0_14
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	movq	%rdx, %rax
	notq	%rax
	testb	$1, %r14b
	je	LBB0_11
## %bb.10:
	movss	(%rsi,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rcx,%rdx,4), %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	movq	%rdx, %rbx
	shlq	$4, %rbx
	movss	%xmm0, (%r8,%rbx)
	movq	$0, 8(%r8,%rbx)
	orq	$1, %rdx
LBB0_11:
	addq	%r14, %rax
	je	LBB0_14
## %bb.12:
	movq	%rdx, %rax
	shlq	$4, %rax
	leaq	(%rax,%r8), %rbx
	addq	$24, %rbx
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rsi,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%rcx,%rdx,4), %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, -24(%rbx)
	movq	$0, -16(%rbx)
	movss	4(%rsi,%rdx,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	4(%rcx,%rdx,4), %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, -8(%rbx)
	movq	$0, (%rbx)
	addq	$2, %rdx
	addq	$32, %rbx
	cmpq	%rdx, %r14
	jne	LBB0_13
LBB0_14:
	movslq	16(%rdi), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rsi
	cmpl	%ecx, %r9d
	jge	LBB0_20
## %bb.15:
	movl	%ecx, %edx
	subl	%r9d, %edx
	movq	%r9, %rax
	notq	%rax
	testb	$1, %dl
	je	LBB0_17
## %bb.16:
	movq	%r9, %rdx
	shlq	$4, %rdx
	movl	$0, (%rsi,%rdx)
	movq	$0, 8(%rsi,%rdx)
	incq	%r9
LBB0_17:
	addq	%rcx, %rax
	je	LBB0_20
## %bb.18:
	subq	%r9, %rcx
	shlq	$4, %r9
	leaq	(%r9,%rsi), %rax
	addq	$24, %rax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -24(%rax)
	movq	$0, -16(%rax)
	movl	$0, -8(%rax)
	movq	$0, (%rax)
	addq	$32, %rax
	addq	$-2, %rcx
	jne	LBB0_19
LBB0_20:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	48(%r14), %edi
	callq	_av_fft_permute
	movl	48(%r14), %edi
	movq	40(%r14), %rsi
	callq	_av_fft_calc
	movq	40(%r14), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	36(%rbx), %esi
	callq	_preprocess
	movq	24(%rbx), %rax
	movl	(%rax), %r12d
	movl	60(%rax), %esi
	movl	16(%rbx), %edi
	callq	_fmin
	movq	40(%r14), %rcx
	movsd	8(%rcx), %xmm0                  ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movslq	16(%rbx), %rdx
	shlq	$4, %rdx
	movss	%xmm0, (%rcx,%rdx)
	movq	$0, 8(%rcx)
	movq	$0, 8(%rcx,%rdx)
	movl	%r12d, %edi
	negl	%edi
	cmpl	%eax, %r12d
	jle	LBB0_23
## %bb.21:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorps	%xmm2, %xmm2
	xorps	%xmm0, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	xorps	%xmm1, %xmm1
LBB0_22:
	addl	%edi, %r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	addl	%r12d, -4(%rax,%rcx,4)
	movq	8(%rdx), %rax
	addsd	-8(%rax,%rcx,8), %xmm2
	movsd	%xmm2, -8(%rax,%rcx,8)
	movq	16(%rdx), %rax
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-8(%rax,%rcx,8), %xmm0
	movsd	%xmm0, -8(%rax,%rcx,8)
	movq	24(%rdx), %rax
	addsd	-8(%rax,%rcx,8), %xmm1
	movsd	%xmm1, -8(%rax,%rcx,8)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movslq	%r12d, %rbx
	movslq	%eax, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	incl	%eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r14
	shlq	$4, %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorps	%xmm1, %xmm1
	movl	%r12d, %r13d
	xorps	%xmm0, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	leal	1(%rcx), %esi
	movq	24(%r8), %rax
	xorl	%edx, %edx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$15, %esi
	sete	%dl
	addl	4(%rax,%rcx,4), %edx
	movl	%r12d, %r13d
	xorps	%xmm0, %xmm0
	xorpd	%xmm2, %xmm2
	movl	%edx, %r12d
	xorps	%xmm1, %xmm1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	40(%r15), %rax
	movss	(%rax,%r14), %xmm1              ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm3, %xmm3
	cvtss2sd	%xmm1, %xmm3
	addsd	%xmm0, %xmm3
	movsd	%xmm3, -104(%rbp)               ## 8-byte Spill
	movsd	8(%rax,%r14), %xmm0             ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm2
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	mulss	%xmm1, %xmm1
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movl	32(%r8), %edi
	callq	_fmax
	movsd	-104(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movq	32(%r15), %rax
	movsd	%xmm0, (%rax,%rbx,8)
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	incq	%rbx
	movl	%r13d, %edi
	negl	%edi
	addq	$16, %r14
	movaps	%xmm2, %xmm0
	cmpl	%ebx, -84(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_22
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %ebx
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	cmpl	%r13d, %r12d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	addl	%r12d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rdx
	addl	%edi, -4(%rdx,%rcx,4)
	movq	8(%rsi), %rax
	addsd	-8(%rax,%rcx,8), %xmm0
	movsd	%xmm0, -8(%rax,%rcx,8)
	movq	16(%rsi), %rax
	addsd	-8(%rax,%rcx,8), %xmm2
	movsd	%xmm2, -8(%rax,%rcx,8)
	movq	24(%rsi), %rax
	addsd	-8(%rax,%rcx,8), %xmm1
	movsd	%xmm1, -8(%rax,%rcx,8)
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sample_noise_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample_noise_block
_sample_noise_block:                    ; @sample_noise_block
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x1
	mov	x20, x0
	ldr	w10, [x0]
	sxtw	x9, w10
	mov	x8, x9
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x11, [x2]
	ldr	x13, [x11, w3, sxtw #3]
	ldr	x12, [x20, #8]
	ldr	x11, [x19, #40]
	cmp	w10, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x14, #0
	b	LBB0_8
LBB0_3:
	mov	x14, #0
	add	x15, x11, x10, lsl #4
	sub	x16, x15, #12
	lsl	x15, x10, #2
	add	x17, x12, x15
	add	x15, x13, x15
	cmp	x11, x15
	ccmp	x13, x16, #2, lo
	cset	w15, lo
	cmp	x12, x16
	ccmp	x11, x17, #2, lo
	b.lo	LBB0_8
; %bb.4:
	tbnz	w15, #0, LBB0_8
; %bb.5:
	and	x14, x10, #0xfffffffe
	add	x15, x11, #16
	mov	w16, #1266679808
	dup.2s	v0, w16
	mov	x16, x14
	mov	x17, x13
	mov	x0, x12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x0], #8
	ldr	d2, [x17], #8
	fmul.2s	v1, v1, v2
	fmul.2s	v1, v1, v0
	stur	s1, [x15, #-16]
	st1.s	{ v1 }[1], [x15]
	stur	xzr, [x15, #-8]
	str	xzr, [x15, #8]
	add	x15, x15, #32
	subs	x16, x16, #2
	b.ne	LBB0_6
; %bb.7:
	cmp	x14, x10
	b.eq	LBB0_10
LBB0_8:
	lsl	x15, x14, #2
	add	x13, x13, x15
	add	x12, x12, x15
	add	x11, x11, x14, lsl #4
	add	x11, x11, #8
	sub	x10, x10, x14
	mov	w14, #1266679808
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x12], #4
	ldr	s1, [x13], #4
	fmul	s0, s0, s1
	fmov	s1, w14
	fmul	s0, s0, s1
	stur	s0, [x11, #-8]
	str	xzr, [x11], #16
	subs	x10, x10, #1
	b.ne	LBB0_9
LBB0_10:
	ldrsw	x10, [x20, #16]
	ldr	x1, [x19, #40]
	cmp	w8, w10
	b.ge	LBB0_17
; %bb.11:
	sub	x11, x10, x9
	cmp	x11, #4
	b.lo	LBB0_15
; %bb.12:
	and	x12, x11, #0xfffffffffffffffc
	add	x8, x12, x9
	add	x9, x1, x9, lsl #4
	add	x9, x9, #32
	mov	x13, x12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-32]
	stur	wzr, [x9, #-16]
	str	wzr, [x9]
	str	wzr, [x9, #16]
	stur	xzr, [x9, #-24]
	stur	xzr, [x9, #-8]
	str	xzr, [x9, #8]
	str	xzr, [x9, #24]
	add	x9, x9, #64
	subs	x13, x13, #4
	b.ne	LBB0_13
; %bb.14:
	cmp	x11, x12
	b.eq	LBB0_17
LBB0_15:
	add	x9, x1, x8, lsl #4
	add	x9, x9, #8
	sub	x8, x10, x8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-8]
	str	xzr, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_16
LBB0_17:
	ldr	w0, [x19, #48]
	bl	_av_fft_permute
	ldr	w0, [x19, #48]
	ldr	x1, [x19, #40]
	bl	_av_fft_calc
	ldr	x0, [x19, #40]
	ldr	w1, [x20, #36]
	bl	_preprocess
	ldr	x8, [x20, #24]
	ldr	w21, [x8]
	ldr	w0, [x20, #16]
	ldr	w1, [x8, #60]
	bl	_fmin
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #40]
	ldr	d0, [x8, #8]
	fcvt	s0, d0
	ldrsw	x9, [x20, #16]
	add	x9, x8, x9, lsl #4
	str	s0, [x9]
	str	xzr, [x8, #8]
	str	xzr, [x9, #8]
	neg	w8, w21
	cmp	w21, w0
	b.le	LBB0_20
; %bb.18:
	mov	w22, #0
	movi	d10, #0000000000000000
	movi	d9, #0000000000000000
	movi	d8, #0000000000000000
LBB0_19:
	sub	w9, w22, #1
	sbfiz	x10, x9, #2, #32
	ldp	x11, x12, [x19]
	ldr	w13, [x11, x10]
	add	w8, w21, w8
	add	w8, w8, w13
	str	w8, [x11, x10]
	sbfiz	x8, x9, #3, #32
	ldr	d0, [x12, x8]
	fadd	d0, d10, d0
	str	d0, [x12, x8]
	ldp	x9, x10, [x19, #16]
	ldr	d0, [x9, x8]
	fadd	d0, d9, d0
	str	d0, [x9, x8]
	ldr	d0, [x10, x8]
	fadd	d0, d8, d0
	str	d0, [x10, x8]
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w22, #0
	sxtw	x23, w21
	sxtw	x24, w0
	add	w25, w0, #1
	lsl	x26, x23, #4
	movi	d8, #0000000000000000
	mov	x27, x21
	movi	d9, #0000000000000000
	movi	d10, #0000000000000000
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	sxtw	x8, w22
	add	x22, x8, #1
	ldr	x8, [x20, #24]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w22, #15
	mov	x27, x21
	cinc	w8, w8, eq
	movi	d10, #0000000000000000
	movi	d9, #0000000000000000
	mov	x21, x8
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	movi	d8, #0000000000000000
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, x26
	ldr	s0, [x8]
	fcvt	d1, s0
	fadd	d10, d10, d1
	ldr	d1, [x8, #8]
	fadd	d9, d9, d1
	fmul	s0, s0, s0
	fcvt	d0, s0
	fmadd	d0, d1, d1, d0
	ldr	w0, [x20, #32]
	bl	_fmax
	ldr	x8, [x19, #32]
	str	d0, [x8, x23, lsl #3]
	fadd	d8, d8, d0
	add	x23, x23, #1
	neg	w8, w27
	add	x26, x26, #16
	cmp	w25, w23
	b.eq	LBB0_19
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	cmp	w23, w21
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	x23, x24
	b.ge	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w21, w27
	b.le	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x9, x22
	sxtw	x9, w9
	sub	x9, x9, #1
	lsl	x10, x9, #2
	ldp	x11, x12, [x19]
	ldr	w13, [x11, x10]
	add	w8, w21, w8
	add	w8, w8, w13
	str	w8, [x11, x10]
	lsl	x8, x9, #3
	ldr	d0, [x12, x8]
	fadd	d0, d10, d0
	str	d0, [x12, x8]
	ldp	x9, x10, [x19, #16]
	ldr	d0, [x9, x8]
	fadd	d0, d9, d0
	str	d0, [x9, x8]
	ldr	d0, [x10, x8]
	fadd	d0, d8, d0
	str	d0, [x10, x8]
	b	LBB0_21
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sample_noise_block
.subsections_via_symbols
