	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_samples
_generate_samples:                      ## @generate_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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	je	LBB0_22
## %bb.1:
	leal	1024(%r8), %r10d
	cmpl	$1024, %r8d                     ## imm = 0x400
	movl	$2048, %r9d                     ## imm = 0x800
	cmovgel	%r9d, %r10d
	testl	%r10d, %r10d
	jle	LBB0_2
## %bb.3:
	subl	%r8d, %r9d
	movl	%r10d, %r14d
	cmpl	$8, %r10d
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
LBB0_16:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r14b
	je	LBB0_18
## %bb.17:
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	addl	%ecx, %r9d
	movslq	%r9d, %rdx
	mulss	(%rdi,%rdx,4), %xmm0
	movss	%xmm0, (%rdi,%rcx,4)
	orq	$1, %rcx
LBB0_18:
	negq	%r14
	cmpq	%r14, %rax
	je	LBB0_21
## %bb.19:
	leaq	1(%rcx), %rax
	subl	%r8d, %ecx
	addl	$2048, %ecx                     ## imm = 0x800
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movslq	%ecx, %rcx
	mulss	(%rdi,%rcx,4), %xmm0
	movss	%xmm0, -4(%rdi,%rax,4)
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	leal	1(%rcx), %edx
	movslq	%edx, %rdx
	mulss	(%rdi,%rdx,4), %xmm0
	movss	%xmm0, (%rdi,%rax,4)
	leaq	(%r14,%rax), %rdx
	addq	$2, %rdx
	addq	$2, %rax
	addl	$2, %ecx
	cmpq	$1, %rdx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	movq	$0, 8(%rsi)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r10d, %r10d
LBB0_21:
	movl	%r10d, %eax
	leaq	(%rdi,%rax,4), %rdi
	shll	$2, %r10d
	movl	$8192, %edx                     ## imm = 0x2000
	subl	%r10d, %edx
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_5:
	leaq	-1(%r14), %rax
	movl	$2048, %edx                     ## imm = 0x800
	subl	%r8d, %edx
	leal	(%rax,%rdx), %ebx
	xorl	%ecx, %ecx
	cmpl	%edx, %ebx
	jl	LBB0_16
## %bb.6:
	shrq	$32, %rax
	jne	LBB0_16
## %bb.7:
	leaq	(%rdi,%r14,4), %rcx
	leaq	4(%rsi), %rax
	leaq	8(%rsi), %rdx
	movl	$2048, %ebx                     ## imm = 0x800
	subl	%r8d, %ebx
	movslq	%ebx, %rbx
	leaq	(%rdi,%rbx,4), %r11
	addq	%r14, %rbx
	leaq	(%rdi,%rbx,4), %rbx
	cmpq	%rdi, %rdx
	seta	%r15b
	cmpq	%rcx, %rax
	setb	%dl
	cmpq	%rdi, %rbx
	seta	%al
	cmpq	%rcx, %r11
	setb	%bl
	xorl	%ecx, %ecx
	testb	%dl, %r15b
	jne	LBB0_16
## %bb.8:
	andb	%bl, %al
	jne	LBB0_16
## %bb.9:
	movl	%r14d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r11, %r15
	andq	$-2, %r15
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movl	$2056, %edx                     ## imm = 0x808
	subl	%r8d, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-8(%rdx), %ebx
	movslq	%ebx, %rbx
	movups	(%rdi,%rbx,4), %xmm1
	movups	16(%rdi,%rbx,4), %xmm2
	mulps	%xmm0, %xmm1
	mulps	%xmm0, %xmm2
	movups	%xmm1, (%rdi,%rax,4)
	movups	%xmm2, 16(%rdi,%rax,4)
	movslq	%edx, %rdx
	movups	(%rdi,%rdx,4), %xmm1
	movups	16(%rdi,%rdx,4), %xmm2
	mulps	%xmm0, %xmm1
	mulps	%xmm0, %xmm2
	movups	%xmm1, 32(%rdi,%rax,4)
	movups	%xmm2, 48(%rdi,%rax,4)
	addq	$16, %rax
	addl	$16, %edx
	addq	$-2, %r15
	jne	LBB0_12
## %bb.13:
	testb	$1, %r11b
	je	LBB0_15
LBB0_14:
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	(%r9,%rax), %edx
	movslq	%edx, %rdx
	movups	(%rdi,%rdx,4), %xmm1
	movups	16(%rdi,%rdx,4), %xmm2
	mulps	%xmm0, %xmm1
	mulps	%xmm0, %xmm2
	movups	%xmm1, (%rdi,%rax,4)
	movups	%xmm2, 16(%rdi,%rax,4)
LBB0_15:
	cmpq	%r14, %rcx
	jne	LBB0_16
	jmp	LBB0_21
LBB0_10:
	xorl	%eax, %eax
	testb	$1, %r11b
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_generate_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_samples
_generate_samples:                      ; @generate_samples
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cbz	w9, LBB0_7
; %bb.1:
	add	w8, w9, #1024
	mov	w10, #2048
	cmp	w9, #1024
	csel	w8, w8, w10, lt
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	cmp	w8, #16
	b.lo	LBB0_4
; %bb.3:
	sub	x10, x8, #1
	mov	w11, #2048
	sub	w11, w11, w9
	add	w12, w11, w10
	cmp	w12, w11
	lsr	x10, x10, #32
	ccmp	x10, #0, #0, ge
	b.eq	LBB0_10
LBB0_4:
	mov	x10, #0
LBB0_5:
	add	x11, x0, x10, lsl #2
	sub	w9, w10, w9
	add	w9, w9, #2048
	sub	x10, x8, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x0, w9, sxtw #2]
	ldr	s1, [x1, #4]
	fmul	s0, s1, s0
	str	s0, [x11], #4
	add	w9, w9, #1
	subs	x10, x10, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
	str	xzr, [x1, #8]
	ret
LBB0_8:
	mov	w8, #0
LBB0_9:
	add	x0, x0, w8, uxtw #2
	mov	w9, #8192
	sub	w2, w9, w8, lsl #2
	mov	w1, #0
	b	_memset
LBB0_10:
	mov	x10, #0
	add	x13, x0, x8, lsl #2
	add	x14, x1, #4
	add	x15, x1, #8
	add	x12, x0, w11, sxtw #2
	add	x16, x8, w11, sxtw
	add	x16, x0, x16, lsl #2
	cmp	x16, x0
	ccmp	x12, x13, #2, hi
	cset	w12, lo
	cmp	x14, x13
	ccmp	x15, x0, #0, lo
	b.hi	LBB0_5
; %bb.11:
	tbnz	w12, #0, LBB0_5
; %bb.12:
	and	x10, x8, #0xfffffff0
	add	x12, x1, #4
	ld1r.4s	{ v0 }, [x12]
	add	x12, x0, #32
	mov	x13, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x0, w11, sxtw #2
	ldp	q1, q2, [x14]
	ldp	q3, q4, [x14, #32]
	fmul.4s	v1, v0, v1
	fmul.4s	v2, v0, v2
	fmul.4s	v3, v0, v3
	fmul.4s	v4, v0, v4
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	add	w11, w11, #16
	subs	x13, x13, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x10, x8
	b.eq	LBB0_9
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_generate_samples
.subsections_via_symbols
