#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 PhonemeAY(float t, float *frame) {
  int c;
  for (c = 0; c < 24; ++c) {
    frame[c] = 0.0f;
  }
  const float kDuration = 0.05f;
  const float kModulationHz = 30.0f;
  frame[8] = ModulatedBuzz(t, kDuration, kModulationHz);
  frame[9] = ModulatedBuzz(t - 0.3495f, kDuration, kModulationHz);
  frame[12] = ModulatedBuzz(t - 0.05f, kDuration, kModulationHz);
  frame[13] = ModulatedBuzz(t - 0.3f, kDuration, kModulationHz);
  frame[16] = ModulatedBuzz(t - 0.1f, kDuration, kModulationHz);
  frame[17] = ModulatedBuzz(t - 0.25f, kDuration, kModulationHz);
  frame[20] = ModulatedBuzz(t - 0.15f, kDuration, kModulationHz);
  frame[21] = ModulatedBuzz(t - 0.2f, kDuration, kModulationHz);
}


x86 assembly (clang, -O0):
<PhonemeAY>:
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 <PhonemeAY+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 <PhonemeAY+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,0x20(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xe82(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe5a(%rip),%xmm1
movss  0xe56(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x24(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xe37(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe2b(%rip),%xmm1
movss  0xe27(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x30(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xe20(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xdfc(%rip),%xmm1
movss  0xdf8(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x34(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xded(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xdcd(%rip),%xmm1
movss  0xdc9(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x40(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xdba(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xd9e(%rip),%xmm1
movss  0xd9a(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x44(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xd87(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xd6f(%rip),%xmm1
movss  0xd6b(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x50(%rax)
movss  -0x4(%rbp),%xmm0
movss  0xd54(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xd40(%rip),%xmm1
movss  0xd3c(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x54(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PhonemeAY>:
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,0x20(%rbx)
movss  0xeae(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe98(%rip),%xmm1
movss  0xe94(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x24(%rbx)
movss  0xe8a(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe70(%rip),%xmm1
movss  0xe6c(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x30(%rbx)
movss  0xe66(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe48(%rip),%xmm1
movss  0xe44(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x34(%rbx)
movss  0xe42(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xe20(%rip),%xmm1
movss  0xe1c(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x40(%rbx)
movss  0xe1e(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xdf8(%rip),%xmm1
movss  0xdf4(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x44(%rbx)
movss  0xdfa(%rip),%xmm0
addss  0xc(%rsp),%xmm0
movss  0xdd0(%rip),%xmm1
movss  0xdcc(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x50(%rbx)
movss  0xc(%rsp),%xmm0
addss  0xdd0(%rip),%xmm0
movss  0xda8(%rip),%xmm1
movss  0xda4(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,0x54(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @PhonemeAY(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 0x3FA99999A0000000, float* %6
store float 3.000000e+01, float* %7
%20 = load float, float* %3
%21 = call float @ModulatedBuzz(float %20, float 0x3FA99999A0000000, float 3.000000e+01)
%22 = load float*, float** %4
%23 = getelementptr inbounds float, float* %22, i64 8
store float %21, float* %23
%24 = load float, float* %3
%25 = fsub float %24, 0x3FD65E3540000000
%26 = call float @ModulatedBuzz(float %25, float 0x3FA99999A0000000, float 3.000000e+01)
%27 = load float*, float** %4
%28 = getelementptr inbounds float, float* %27, i64 9
store float %26, float* %28
%29 = load float, float* %3
%30 = fsub float %29, 0x3FA99999A0000000
%31 = call float @ModulatedBuzz(float %30, float 0x3FA99999A0000000, float 3.000000e+01)
%32 = load float*, float** %4
%33 = getelementptr inbounds float, float* %32, i64 12
store float %31, float* %33
%34 = load float, float* %3
%35 = fsub float %34, 0x3FD3333340000000
%36 = call float @ModulatedBuzz(float %35, float 0x3FA99999A0000000, float 3.000000e+01)
%37 = load float*, float** %4
%38 = getelementptr inbounds float, float* %37, i64 13
store float %36, float* %38
%39 = load float, float* %3
%40 = fsub float %39, 0x3FB99999A0000000
%41 = call float @ModulatedBuzz(float %40, float 0x3FA99999A0000000, float 3.000000e+01)
%42 = load float*, float** %4
%43 = getelementptr inbounds float, float* %42, i64 16
store float %41, float* %43
%44 = load float, float* %3
%45 = fsub float %44, 2.500000e-01
%46 = call float @ModulatedBuzz(float %45, float 0x3FA99999A0000000, float 3.000000e+01)
%47 = load float*, float** %4
%48 = getelementptr inbounds float, float* %47, i64 17
store float %46, float* %48
%49 = load float, float* %3
%50 = fsub float %49, 0x3FC3333340000000
%51 = call float @ModulatedBuzz(float %50, float 0x3FA99999A0000000, float 3.000000e+01)
%52 = load float*, float** %4
%53 = getelementptr inbounds float, float* %52, i64 20
store float %51, float* %53
%54 = load float, float* %3
%55 = fsub float %54, 0x3FC99999A0000000
%56 = call float @ModulatedBuzz(float %55, float 0x3FA99999A0000000, float 3.000000e+01)
%57 = load float*, float** %4
%58 = getelementptr inbounds float, float* %57, i64 21
store float %56, float* %58
ret void
}

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