#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float ModulatedBuzz(float, float const, float const);
void PhonemeUU(float t, float *frame) {
  int c;
  for (c = 0; c < 24; ++c) {
    frame[c] = 0.0f;
  }
  const float kDuration = 0.06f;
  const float kModulationHz = 30.0f;
  frame[2] = ModulatedBuzz(t, kDuration, kModulationHz);
  frame[3] = frame[2];
  frame[6] = ModulatedBuzz(t - 0.06f, kDuration, kModulationHz);
  frame[7] = frame[6];
  frame[10] = ModulatedBuzz(t - 0.12f, kDuration, kModulationHz);
  frame[11] = frame[10];
  frame[14] = ModulatedBuzz(t - 0.18f, kDuration, kModulationHz);
  frame[15] = frame[14];
}


x86 assembly (clang, -O0):
<PhonemeUU>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x18,-0x14(%rbp)
jge    1150 <PhonemeUU+0x40>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1128 <PhonemeUU+0x18>
movss  0xea8(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe9f(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xe89(%rip),%xmm1
movss  0xe85(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0xc(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xe54(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe48(%rip),%xmm1
movss  0xe44(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movss  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x1c(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xe1f(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe07(%rip),%xmm1
movss  0xe03(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movss  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x2c(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xdda(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xdc6(%rip),%xmm1
movss  0xdc2(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movss  0x38(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x3c(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PhonemeUU>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movss  %xmm0,0xc(%rsp)
xorps  %xmm1,%xmm1
movups %xmm1,0x50(%rdi)
movups %xmm1,0x40(%rdi)
movups %xmm1,0x30(%rdi)
movups %xmm1,0x20(%rdi)
movups %xmm1,0x10(%rdi)
movups %xmm1,(%rdi)
movss  0xec0(%rip),%xmm1
movss  0xebc(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x8(%rbx)
movss  %xmm0,0xc(%rbx)
movss  0xea9(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe93(%rip),%xmm1
movss  0xe8f(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x18(%rbx)
movss  %xmm0,0x1c(%rbx)
movss  0xe80(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe66(%rip),%xmm1
movss  0xe62(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x28(%rbx)
movss  %xmm0,0x2c(%rbx)
movss  0xc(%rsp),%xmm0
addss  0xe51(%rip),%xmm0
movss  0xe39(%rip),%xmm1
movss  0xe35(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x38(%rbx)
movss  %xmm0,0x3c(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @PhonemeUU(float %0, float* %1) {
%3 = alloca float
%4 = alloca float*
%5 = alloca i32
%6 = alloca float
%7 = alloca float
store float %0, float* %3
store float* %1, float** %4
store i32 0, i32* %5
br label %8
8: ; preds = %16, %2
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 24
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load float*, float** %4
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds float, float* %12, i64 %14
store float 0.000000e+00, float* %15
br label %16
16: ; preds = %11
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %8
19: ; preds = %8
store float 0x3FAEB851E0000000, float* %6
store float 3.000000e+01, float* %7
%20 = load float, float* %3
%21 = call float @ModulatedBuzz(float %20, float 0x3FAEB851E0000000, float 3.000000e+01)
%22 = load float*, float** %4
%23 = getelementptr inbounds float, float* %22, i64 2
store float %21, float* %23
%24 = load float*, float** %4
%25 = getelementptr inbounds float, float* %24, i64 2
%26 = load float, float* %25
%27 = load float*, float** %4
%28 = getelementptr inbounds float, float* %27, i64 3
store float %26, float* %28
%29 = load float, float* %3
%30 = fsub float %29, 0x3FAEB851E0000000
%31 = call float @ModulatedBuzz(float %30, float 0x3FAEB851E0000000, float 3.000000e+01)
%32 = load float*, float** %4
%33 = getelementptr inbounds float, float* %32, i64 6
store float %31, float* %33
%34 = load float*, float** %4
%35 = getelementptr inbounds float, float* %34, i64 6
%36 = load float, float* %35
%37 = load float*, float** %4
%38 = getelementptr inbounds float, float* %37, i64 7
store float %36, float* %38
%39 = load float, float* %3
%40 = fsub float %39, 0x3FBEB851E0000000
%41 = call float @ModulatedBuzz(float %40, float 0x3FAEB851E0000000, float 3.000000e+01)
%42 = load float*, float** %4
%43 = getelementptr inbounds float, float* %42, i64 10
store float %41, float* %43
%44 = load float*, float** %4
%45 = getelementptr inbounds float, float* %44, i64 10
%46 = load float, float* %45
%47 = load float*, float** %4
%48 = getelementptr inbounds float, float* %47, i64 11
store float %46, float* %48
%49 = load float, float* %3
%50 = fsub float %49, 0x3FC70A3D80000000
%51 = call float @ModulatedBuzz(float %50, float 0x3FAEB851E0000000, float 3.000000e+01)
%52 = load float*, float** %4
%53 = getelementptr inbounds float, float* %52, i64 14
store float %51, float* %53
%54 = load float*, float** %4
%55 = getelementptr inbounds float, float* %54, i64 14
%56 = load float, float* %55
%57 = load float*, float** %4
%58 = getelementptr inbounds float, float* %57, i64 15
store float %56, float* %58
ret void
}

LLVM IR (-O2):
define void @PhonemeUU(float %0, float* nocapture writeonly %1) {
%3 = bitcast float* %1 to i8*
%4 = tail call float @ModulatedBuzz(float %0, float 0x3FAEB851E0000000, float 3.000000e+01)
%5 = getelementptr inbounds float, float* %1, i64 2
store float %4, float* %5
%6 = getelementptr inbounds float, float* %1, i64 3
store float %4, float* %6
%7 = fadd float %0, 0xBFAEB851E0000000
%8 = tail call float @ModulatedBuzz(float %7, float 0x3FAEB851E0000000, float 3.000000e+01)
%9 = getelementptr inbounds float, float* %1, i64 6
store float %8, float* %9
%10 = getelementptr inbounds float, float* %1, i64 7
store float %8, float* %10
%11 = fadd float %0, 0xBFBEB851E0000000
%12 = tail call float @ModulatedBuzz(float %11, float 0x3FAEB851E0000000, float 3.000000e+01)
%13 = getelementptr inbounds float, float* %1, i64 10
store float %12, float* %13
%14 = getelementptr inbounds float, float* %1, i64 11
store float %12, float* %14
%15 = fadd float %0, 0xBFC70A3D80000000
%16 = tail call float @ModulatedBuzz(float %15, float 0x3FAEB851E0000000, float 3.000000e+01)
%17 = getelementptr inbounds float, float* %1, i64 14
store float %16, float* %17
%18 = getelementptr inbounds float, float* %1, i64 15
store float %16, float* %18
ret void
}