	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function smooth
LCPI0_0:
	.long	0x421e0000                      ## float 39.5
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0x42200000                      ## float 40
LCPI0_3:
	.long	0x40000000                      ## float 2
LCPI0_5:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_smooth:                                ## @smooth
	.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	%rcx, %r15
	movss	%xmm0, -92(%rbp)                ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	%edx, %esi
	callq	_start_end_for
	movq	%rax, %r12
	shrq	$32, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r12, %rbx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	addss	LCPI0_1(%rip), %xmm0
	movq	%r13, %r15
	jmp	LBB0_10
LBB0_2:
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_make_gauss_kernel
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpl	%r12d, %eax
	movq	%r13, %r15
	jle	LBB0_3
## %bb.4:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	movl	%eax, %r12d
	subl	%r13d, %r12d
	xorps	%xmm0, %xmm0
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	leal	(%rbx,%r13), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	callq	_ringbuf_float_at
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r15,%rbx,4), %xmm0
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	addss	%xmm0, %xmm1
	movaps	%xmm1, -80(%rbp)                ## 16-byte Spill
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
## %bb.6:
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_make_gauss_kernel
	xorps	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	leal	(%rbx,%r13), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	callq	_ringbuf_float_at
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r15,%rbx,4), %xmm0
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
## %bb.8:
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	subss	%xmm0, %xmm1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %r12
	jmp	LBB0_9
LBB0_3:
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_make_gauss_kernel
	xorps	%xmm1, %xmm1
LBB0_9:
	movq	%r12, %rbx
	andps	LCPI0_4(%rip), %xmm1
	divss	-92(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movl	$40, %edi
	callq	_powf
	mulss	LCPI0_2(%rip), %xmm0
LBB0_10:
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_make_gauss_kernel
	xorps	%xmm0, %xmm0
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %eax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_13
## %bb.11:
	movq	%r15, %r13
	movq	%r14, %r15
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -80(%rbp)                ## 4-byte Spill
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-44(%rbp), %rdx
	callq	_ringbuf_float_at
	movq	%rbx, %rax
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r13,%r14,4), %xmm0
	movss	-80(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -80(%rbp)                ## 4-byte Spill
	movss	-80(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_12
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_smooth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smooth
_smooth:                                ; @smooth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	fmov	s8, s0
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	x1, x2
	bl	_start_end_for
	mov	x22, x0
	lsr	x25, x0, #32
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	scvtf	s0, w8
	mov	w8, #1109262336
	fmov	s1, w8
	fmov	s2, #0.50000000
	fmadd	s0, s0, s1, s2
	b	LBB0_10
LBB0_2:
	mov	w8, #1109393408
	fmov	s0, w8
	mov	x0, x20
	mov	x1, x23
	bl	_make_gauss_kernel
	cmp	w25, w22
	b.le	LBB0_8
; %bb.3:
	mov	x24, #0
	sub	w26, w25, w22
	movi	d9, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w22, w24
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_ringbuf_float_at
	ldr	s0, [sp, #12]
	ldr	s1, [x20, x24, lsl #2]
	fmadd	s9, s0, s1, s9
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_4
; %bb.5:
	fmov	s0, #2.00000000
	mov	x0, x20
	mov	x1, x23
	bl	_make_gauss_kernel
	movi	d10, #0000000000000000
	mov	x27, x20
	mov	x24, x22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	mov	x3, x24
	bl	_ringbuf_float_at
	ldr	s0, [sp, #12]
	ldr	s1, [x27], #4
	fmadd	s10, s0, s1, s10
	add	w24, w24, #1
	subs	x26, x26, #1
	b.ne	LBB0_6
; %bb.7:
	fsub	s0, s9, s10
	b	LBB0_9
LBB0_8:
	fmov	s0, #2.00000000
	mov	x0, x20
	mov	x1, x23
	bl	_make_gauss_kernel
	movi	d0, #0000000000000000
LBB0_9:
	fabs	s0, s0
	fdiv	s0, s0, s8
	fmov	s1, #1.00000000
	fsub	s0, s1, s0
	mov	w0, #40
	bl	_powf
	mov	w8, #1109393408
	fmov	s1, w8
	fmul	s0, s0, s1
LBB0_10:
	mov	x0, x20
	mov	x1, x23
	bl	_make_gauss_kernel
	movi	d8, #0000000000000000
	cmp	w25, w22
	b.le	LBB0_13
; %bb.11:
	sub	w23, w25, w22
	movi	d8, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_ringbuf_float_at
	ldr	s0, [sp, #12]
	ldr	s1, [x20], #4
	fmadd	s8, s0, s1, s8
	add	w22, w22, #1
	subs	x23, x23, #1
	b.ne	LBB0_12
LBB0_13:
	fmov	s0, s8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_smooth
.subsections_via_symbols
