	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function fill_samples
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x407b800000000000              ## double 440
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fill_samples:                          ## @fill_samples
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_14
## %bb.1:
	movq	%r8, %r12
	movq	%rdi, %rbx
	cvtsi2sd	%ecx, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movq	_M_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cvtsi2sd	%eax, %xmm2
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -112(%rbp)               ## 8-byte Spill
	mulsd	LCPI0_1(%rip), %xmm2
	movsd	%xmm2, -104(%rbp)               ## 8-byte Spill
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	movsd	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	movl	%r13d, %r14d
	leaq	-1(%r14), %rax
	leaq	-5(%r14), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	shrq	$2, %rcx
	incq	%rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	andq	$-4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	andl	$3, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	andq	$-4, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	shlq	$3, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %rbx
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	addsd	-112(%rbp), %xmm0               ## 8-byte Folded Reload
	movsd	%xmm0, (%r12)
	incl	%r15d
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	mulsd	-104(%rbp), %xmm0               ## 8-byte Folded Reload
	callq	_sin
	movsd	%xmm0, (%rbx)
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	cmpq	$4, -64(%rbp)                   ## 8-byte Folded Reload
	jb	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	cmpq	$12, -96(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	%xmm1, 8(%rbx,%rax,8)
	movupd	%xmm1, 24(%rbx,%rax,8)
	movupd	%xmm1, 40(%rbx,%rax,8)
	movupd	%xmm1, 56(%rbx,%rax,8)
	movupd	%xmm1, 72(%rbx,%rax,8)
	movupd	%xmm1, 88(%rbx,%rax,8)
	movupd	%xmm1, 104(%rbx,%rax,8)
	movupd	%xmm1, 120(%rbx,%rax,8)
	addq	$16, %rax
	addq	$-4, %rcx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(,%rax,8), %rdx
	orq	$8, %rdx
	movupd	%xmm1, (%rbx,%rdx)
	movupd	%xmm1, 16(%rbx,%rdx)
	addq	$4, %rax
	decq	%rcx
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm0, (%rbx,%rax,8)
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_fill_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_samples
_fill_samples:                          ; @fill_samples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.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
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w23, #0
	scvtf	d0, w3
	fmov	d1, #1.00000000
	fdiv	d8, d1, d0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	scvtf	d0, w8
	mov	x8, #140737488355328
	movk	x8, #16507, lsl #48
	fmov	d1, x8
	fmul	d9, d0, d1
	ldr	d0, [x4]
	mov	w24, w2
	sub	x25, x24, #1
	and	x26, x25, #0xfffffffffffffff8
	orr	x8, x26, #0x1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x28, x0, #40
	sbfiz	x27, x20, #3, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x27
	ldr	d0, [x19]
	fadd	d0, d8, d0
	str	d0, [x19]
	add	w23, w23, #1
	add	x28, x28, x27
	cmp	w23, w21
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	fmul	d0, d9, d0
	bl	_sin
                                        ; kill: def $d0 killed $d0 def $q0
	str	d0, [x22]
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x25, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	dup.2d	v1, v0[0]
	mov	x8, x28
	mov	x9, x26
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q1, q1, [x8, #-32]
	stp	q1, q1, [x8], #64
	subs	x9, x9, #8
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x25, x26
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	d0, [x22, x8, lsl #3]
	add	x8, x8, #1
	cmp	x24, x8
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_fill_samples
.subsections_via_symbols
