	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function tremolocore_init
LCPI0_0:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tremolocore_init:                      ## @tremolocore_init
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	$0, 16(%rdi)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	divss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edi
	movl	%edi, (%r14)
	shll	$2, %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	movl	(%r14), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_M_PI@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	divss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	movl	(%r12), %ebx
	addsd	LCPI0_2(%rip), %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_fmod
	imull	%eax, %ebx
	addl	%ebx, %ebx
	movl	%ebx, %edi
	callq	_sin
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	movl	$1, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	8(%r14), %rax
	movsd	%xmm0, (%rax,%r15,8)
	incq	%r15
	movl	(%r14), %eax
	cmpq	%rax, %r15
	jb	LBB0_2
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_tremolocore_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tremolocore_init
_tremolocore_init:                      ; @tremolocore_init
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	fmov	s8, s1
	fmov	s9, s0
	mov	x19, x0
	scvtf	s11, w1
	str	xzr, [x0, #16]
	fdiv	s0, s11, s1
	fcvtzs	w8, s0
	str	w8, [x0]
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
	fcvt	d0, s9
	fmov	d1, #-0.50000000
	fmul	d0, d0, d1
	fmov	d1, #1.00000000
	fadd	d9, d0, d1
Lloh0:
	adrp	x21, _M_PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_PI@GOTPAGEOFF]
	fmov	d12, #0.25000000
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ucvtf	s0, w20
	fmul	s0, s0, s8
	fdiv	s0, s0, s11
	fcvt	d0, s0
	ldr	w23, [x21]
	fadd	d0, d0, d12
	fmov	d1, #1.00000000
	bl	_fmod
	mul	w8, w23, w0
	lsl	w0, w8, #1
	bl	_sin
	fmov	d10, d0
	fmov	d0, d9
	bl	_fabs
	sub	w8, w22, w0
	scvtf	d0, w8
	fmadd	d0, d10, d0, d9
	ldr	x8, [x19, #8]
	str	d0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #112            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_tremolocore_init
.subsections_via_symbols
