	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function finish_sample_noise
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xc059000000000000              ## double -100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_finish_sample_noise:                   ## @finish_sample_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_C@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r8
	movq	8(%r12), %rsi
	movl	(%r8,%rbx,4), %eax
	cltd
	idivl	(%rsi,%rbx,4)
	movl	%eax, (%r8,%rbx,4)
	movq	16(%r12), %rdi
	movl	(%rdi,%rbx,4), %eax
	cltd
	idivl	(%rsi,%rbx,4)
	movl	%eax, (%rdi,%rbx,4)
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx,4), %eax
	cltd
	idivl	(%rsi,%rbx,4)
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r8,%rbx,4), %edx
	movl	(%rdi,%rbx,4), %esi
	imull	%edx, %edx
	imull	%esi, %esi
	addl	%edx, %esi
	subl	%esi, %eax
	movl	%eax, (%rcx,%rbx,4)
	movq	32(%r12), %rdx
	movl	%eax, (%rdx,%rbx,4)
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	(%r13), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	(%rcx,%rbx,4), %eax
	cltd
	idivl	4(%r15)
	movl	%eax, %edi
	callq	_log
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, (%r14,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_2
## %bb.3:
	cmpl	$14, %ecx
	jg	LBB0_8
LBB0_4:
	movslq	%ecx, %rax
	movsd	-8(%r14,%rax,8), %xmm0          ## xmm0 = mem[0],zero
	movl	$7, %edx
	subl	%eax, %edx
	andl	$7, %edx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%r14,%rax,8)
	incq	%rax
	decl	%edx
	jne	LBB0_5
LBB0_6:
	addl	$-8, %ecx
	cmpl	$7, %ecx
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%r14,%rax,8)
	movsd	%xmm0, 8(%r14,%rax,8)
	movsd	%xmm0, 16(%r14,%rax,8)
	movsd	%xmm0, 24(%r14,%rax,8)
	movsd	%xmm0, 32(%r14,%rax,8)
	movsd	%xmm0, 40(%r14,%rax,8)
	movsd	%xmm0, 48(%r14,%rax,8)
	movsd	%xmm0, 56(%r14,%rax,8)
	addq	$8, %rax
	cmpl	$15, %eax
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C,8,3                          ## @C
	.no_dead_strip	_finish_sample_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_sample_noise
_finish_sample_noise:                   ; @finish_sample_noise
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x2
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _C@GOTPAGE
Lloh1:
	ldr	x23, [x23, _C@GOTPAGEOFF]
	fmov	d8, #1.00000000
	mov	x24, #-4586634745500139520
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x22, #2
	ldp	x10, x9, [x20]
	ldr	w11, [x9, x8]
	ldr	w12, [x10, x8]
	sdiv	w11, w12, w11
	str	w11, [x10, x8]
	ldr	w11, [x9, x8]
	ldp	x12, x13, [x20, #16]
	ldr	w14, [x12, x8]
	sdiv	w11, w14, w11
	str	w11, [x12, x8]
	ldr	w9, [x9, x8]
	ldr	w11, [x13, x8]
	sdiv	w9, w11, w9
	str	w9, [x13, x8]
	ldr	w10, [x10, x8]
	ldr	w11, [x12, x8]
	mul	w10, w10, w10
	madd	w10, w11, w11, w10
	sub	w9, w9, w10
	str	w9, [x13, x8]
	ldr	x10, [x20, #32]
	str	w9, [x10, x8]
	ldr	d0, [x23]
	fdiv	d9, d8, d0
	ldr	w8, [x13, x8]
	ldr	w9, [x21, #4]
	sdiv	w0, w8, w9
	bl	_log
	fmov	d1, x24
	fmadd	d0, d9, d0, d1
	str	d0, [x19, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #14
	b.gt	LBB0_6
LBB0_4:
	add	x9, x19, w8, sxtw #3
	ldur	d0, [x9, #-8]
	sub	w8, w8, #15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	d0, [x9], #8
	adds	w8, w8, #1
	b.lo	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_C,8,3                          ; @C
	.no_dead_strip	_finish_sample_noise
.subsections_via_symbols
