#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 PhonemeOO(float t, float *frame) {
  int c;
  for (c = 0; c < 24; ++c) {
    frame[c] = 0.0f;
  }
  const float kDuration = 0.0667f;
  const float kModulationHz = 30.0f;
  frame[2] = ModulatedBuzz(t - 0.3333f, kDuration, kModulationHz);
  frame[3] = frame[2];
  frame[6] = ModulatedBuzz(t - 0.2666f, kDuration, kModulationHz);
  frame[7] = frame[6];
  frame[10] = ModulatedBuzz(t - 0.2f, kDuration, kModulationHz);
  frame[11] = frame[10];
  frame[14] = ModulatedBuzz(t - 0.1333f, kDuration, kModulationHz);
  frame[15] = frame[14];
  frame[18] = ModulatedBuzz(t - 0.0666f, kDuration, kModulationHz);
  frame[19] = frame[18];
  frame[22] = ModulatedBuzz(t, kDuration, kModulationHz);
  frame[23] = frame[22];
}


x86 assembly (clang, -O0):
<PhonemeOO>:
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 <PhonemeOO+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 <PhonemeOO+0x18>
movss  0xea8(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe9f(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xea1(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe7d(%rip),%xmm1
movss  0xe79(%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  0xe5c(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe3c(%rip),%xmm1
movss  0xe38(%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  0xe17(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xdfb(%rip),%xmm1
movss  0xdf7(%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  0xdd2(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xdba(%rip),%xmm1
movss  0xdb6(%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)
movss  -0x4(%rbp),%xmm0
movss  0xd8d(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xd79(%rip),%xmm1
movss  0xd75(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movss  0x48(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4c(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xd44(%rip),%xmm1
movss  0xd40(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x58(%rax)
mov    -0x10(%rbp),%rax
movss  0x58(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x5c(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PhonemeOO>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movaps %xmm0,%xmm1
movss  %xmm0,0xc(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x50(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm0,0x30(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm0,0x10(%rdi)
movups %xmm0,(%rdi)
movss  0xebd(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xeb5(%rip),%xmm1
movss  0xeb1(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x8(%rbx)
movss  %xmm0,0xc(%rbx)
movss  0xe9e(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe88(%rip),%xmm1
movss  0xe84(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x18(%rbx)
movss  %xmm0,0x1c(%rbx)
movss  0xe75(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe5b(%rip),%xmm1
movss  0xe57(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x28(%rbx)
movss  %xmm0,0x2c(%rbx)
movss  0xe4c(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe2e(%rip),%xmm1
movss  0xe2a(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x38(%rbx)
movss  %xmm0,0x3c(%rbx)
movss  0xe23(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe01(%rip),%xmm1
movss  0xdfd(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x48(%rbx)
movss  %xmm0,0x4c(%rbx)
movss  0xc(%rsp),%xmm0
movss  0xddc(%rip),%xmm1
movss  0xdd8(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x58(%rbx)
movss  %xmm0,0x5c(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @PhonemeOO(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 0x3FB1134040000000, float* %6
store float 3.000000e+01, float* %7
%20 = load float, float* %3
%21 = fsub float %20, 0x3FD554C980000000
%22 = call float @ModulatedBuzz(float %21, float 0x3FB1134040000000, float 3.000000e+01)
%23 = load float*, float** %4
%24 = getelementptr inbounds float, float* %23, i64 2
store float %22, float* %24
%25 = load float*, float** %4
%26 = getelementptr inbounds float, float* %25, i64 2
%27 = load float, float* %26
%28 = load float*, float** %4
%29 = getelementptr inbounds float, float* %28, i64 3
store float %27, float* %29
%30 = load float, float* %3
%31 = fsub float %30, 0x3FD10FF980000000
%32 = call float @ModulatedBuzz(float %31, float 0x3FB1134040000000, float 3.000000e+01)
%33 = load float*, float** %4
%34 = getelementptr inbounds float, float* %33, i64 6
store float %32, float* %34
%35 = load float*, float** %4
%36 = getelementptr inbounds float, float* %35, i64 6
%37 = load float, float* %36
%38 = load float*, float** %4
%39 = getelementptr inbounds float, float* %38, i64 7
store float %37, float* %39
%40 = load float, float* %3
%41 = fsub float %40, 0x3FC99999A0000000
%42 = call float @ModulatedBuzz(float %41, float 0x3FB1134040000000, float 3.000000e+01)
%43 = load float*, float** %4
%44 = getelementptr inbounds float, float* %43, i64 10
store float %42, float* %44
%45 = load float*, float** %4
%46 = getelementptr inbounds float, float* %45, i64 10
%47 = load float, float* %46
%48 = load float*, float** %4
%49 = getelementptr inbounds float, float* %48, i64 11
store float %47, float* %49
%50 = load float, float* %3
%51 = fsub float %50, 0x3FC10FF980000000
%52 = call float @ModulatedBuzz(float %51, float 0x3FB1134040000000, float 3.000000e+01)
%53 = load float*, float** %4
%54 = getelementptr inbounds float, float* %53, i64 14
store float %52, float* %54
%55 = load float*, float** %4
%56 = getelementptr inbounds float, float* %55, i64 14
%57 = load float, float* %56
%58 = load float*, float** %4
%59 = getelementptr inbounds float, float* %58, i64 15
store float %57, float* %59
%60 = load float, float* %3
%61 = fsub float %60, 0x3FB10CB2A0000000
%62 = call float @ModulatedBuzz(float %61, float 0x3FB1134040000000, float 3.000000e+01)
%63 = load float*, float** %4
%64 = getelementptr inbounds float, float* %63, i64 18
store float %62, float* %64
%65 = load float*, float** %4
%66 = getelementptr inbounds float, float* %65, i64 18
%67 = load float, float* %66
%68 = load float*, float** %4
%69 = getelementptr inbounds float, float* %68, i64 19
store float %67, float* %69
%70 = load float, float* %3
%71 = call float @ModulatedBuzz(float %70, float 0x3FB1134040000000, float 3.000000e+01)
%72 = load float*, float** %4
%73 = getelementptr inbounds float, float* %72, i64 22
store float %71, float* %73
%74 = load float*, float** %4
%75 = getelementptr inbounds float, float* %74, i64 22
%76 = load float, float* %75
%77 = load float*, float** %4
%78 = getelementptr inbounds float, float* %77, i64 23
store float %76, float* %78
ret void
}

LLVM IR (-O2):
define void @PhonemeOO(float %0, float* nocapture writeonly %1) {
%3 = bitcast float* %1 to i8*
%4 = fadd float %0, 0xBFD554C980000000
%5 = tail call float @ModulatedBuzz(float %4, float 0x3FB1134040000000, float 3.000000e+01)
%6 = getelementptr inbounds float, float* %1, i64 2
store float %5, float* %6
%7 = getelementptr inbounds float, float* %1, i64 3
store float %5, float* %7
%8 = fadd float %0, 0xBFD10FF980000000
%9 = tail call float @ModulatedBuzz(float %8, float 0x3FB1134040000000, float 3.000000e+01)
%10 = getelementptr inbounds float, float* %1, i64 6
store float %9, float* %10
%11 = getelementptr inbounds float, float* %1, i64 7
store float %9, float* %11
%12 = fadd float %0, 0xBFC99999A0000000
%13 = tail call float @ModulatedBuzz(float %12, float 0x3FB1134040000000, float 3.000000e+01)
%14 = getelementptr inbounds float, float* %1, i64 10
store float %13, float* %14
%15 = getelementptr inbounds float, float* %1, i64 11
store float %13, float* %15
%16 = fadd float %0, 0xBFC10FF980000000
%17 = tail call float @ModulatedBuzz(float %16, float 0x3FB1134040000000, float 3.000000e+01)
%18 = getelementptr inbounds float, float* %1, i64 14
store float %17, float* %18
%19 = getelementptr inbounds float, float* %1, i64 15
store float %17, float* %19
%20 = fadd float %0, 0xBFB10CB2A0000000
%21 = tail call float @ModulatedBuzz(float %20, float 0x3FB1134040000000, float 3.000000e+01)
%22 = getelementptr inbounds float, float* %1, i64 18
store float %21, float* %22
%23 = getelementptr inbounds float, float* %1, i64 19
store float %21, float* %23
%24 = tail call float @ModulatedBuzz(float %0, float 0x3FB1134040000000, float 3.000000e+01)
%25 = getelementptr inbounds float, float* %1, i64 22
store float %24, float* %25
%26 = getelementptr inbounds float, float* %1, i64 23
store float %24, float* %26
ret void
}