	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attenuate_curve
_attenuate_curve:                       ## @attenuate_curve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EHMER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	cmpl	$8, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rdx,4), %xmm2
	movups	16(%rdi,%rdx,4), %xmm3
	movups	32(%rdi,%rdx,4), %xmm4
	movups	48(%rdi,%rdx,4), %xmm5
	addps	%xmm1, %xmm2
	addps	%xmm1, %xmm3
	movups	%xmm2, (%rdi,%rdx,4)
	movups	%xmm3, 16(%rdi,%rdx,4)
	addps	%xmm1, %xmm4
	addps	%xmm1, %xmm5
	movups	%xmm4, 32(%rdi,%rdx,4)
	movups	%xmm5, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movups	(%rdi,%rdx,4), %xmm2
	movups	16(%rdi,%rdx,4), %xmm3
	addps	%xmm1, %xmm2
	addps	%xmm1, %xmm3
	movups	%xmm2, (%rdi,%rdx,4)
	movups	%xmm3, 16(%rdi,%rdx,4)
LBB0_9:
	cmpq	%rax, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rdi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EHMER_MAX,4,2                  ## @EHMER_MAX
	.no_dead_strip	_attenuate_curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attenuate_curve
_attenuate_curve:                       ; @attenuate_curve
	.cfi_startproc
; %bb.0:
                                        ; kill: def $s0 killed $s0 def $q0
Lloh0:
	adrp	x8, _EHMER_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EHMER_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	dup.4s	v1, v0[0]
	add	x10, x0, #32
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	fadd.4s	v2, v2, v1
	fadd.4s	v3, v3, v1
	fadd.4s	v4, v4, v1
	fadd.4s	v5, v5, v1
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x0, x9, lsl #2
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x10]
	fadd	s1, s1, s0
	str	s1, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EHMER_MAX,4,2                  ; @EHMER_MAX
	.no_dead_strip	_attenuate_curve
.subsections_via_symbols
