#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, float);
void PhonemeZH(float t, float *frame) {
  const float buzz = ModulatedBuzz(t, 0.4f, 8.0f);
  int c;
  for (c = 0; c < 24; ++c) {
    frame[c] = (c == 2 || c == 3 || c == 6 || c == 7) ? buzz : 0.0f;
  }
}


x86 assembly (clang, -O0):
<PhonemeZH>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xed2(%rip),%xmm1
movss  0xece(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x18,-0x18(%rbp)
jge    11b5 <PhonemeZH+0xa5>
cmpl   $0x2,-0x18(%rbp)
je     1179 <PhonemeZH+0x69>
cmpl   $0x3,-0x18(%rbp)
je     1179 <PhonemeZH+0x69>
cmpl   $0x6,-0x18(%rbp)
je     1179 <PhonemeZH+0x69>
cmpl   $0x7,-0x18(%rbp)
jne    1188 <PhonemeZH+0x78>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    1195 <PhonemeZH+0x85>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    1195 <PhonemeZH+0x85>
movss  -0x1c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1147 <PhonemeZH+0x37>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PhonemeZH>:
push   %rbx
mov    %rdi,%rbx
movss  0xee4(%rip),%xmm1
movss  0xee0(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movq   $0x0,(%rbx)
movss  %xmm0,0x8(%rbx)
movss  %xmm0,0xc(%rbx)
movq   $0x0,0x10(%rbx)
movss  %xmm0,0x18(%rbx)
movss  %xmm0,0x1c(%rbx)
xorps  %xmm0,%xmm0
movups %xmm0,0x20(%rbx)
movups %xmm0,0x30(%rbx)
movups %xmm0,0x40(%rbx)
movups %xmm0,0x50(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @PhonemeZH(float %0, float* %1) {
%3 = alloca float
%4 = alloca float*
%5 = alloca float
%6 = alloca i32
store float %0, float* %3
store float* %1, float** %4
%7 = load float, float* %3
%8 = call float @ModulatedBuzz(float %7, float 0x3FD99999A0000000, float 8.000000e+00)
store float %8, float* %5
store i32 0, i32* %6
br label %9
9: ; preds = %33, %2
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 24
br i1 %11, label %12, label %36
12: ; preds = %9
%13 = load i32, i32* %6
%14 = icmp eq i32 %13, 2
br i1 %14, label %24, label %15
15: ; preds = %12
%16 = load i32, i32* %6
%17 = icmp eq i32 %16, 3
br i1 %17, label %24, label %18
18: ; preds = %15
%19 = load i32, i32* %6
%20 = icmp eq i32 %19, 6
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 7
br i1 %23, label %24, label %26
24: ; preds = %21, %18, %15, %12
%25 = load float, float* %5
br label %27
26: ; preds = %21
br label %27
27: ; preds = %26, %24
%28 = phi float [ %25, %24 ], [ 0.000000e+00, %26 ]
%29 = load float*, float** %4
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, float* %29, i64 %31
store float %28, float* %32
br label %33
33: ; preds = %27
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %9
36: ; preds = %9
ret void
}

LLVM IR (-O2):
define void @PhonemeZH(float %0, float* nocapture writeonly %1) {
%3 = tail call float @ModulatedBuzz(float %0, float 0x3FD99999A0000000, float 8.000000e+00)
store float 0.000000e+00, float* %1
%4 = getelementptr inbounds float, float* %1, i64 1
store float 0.000000e+00, float* %4
%5 = getelementptr inbounds float, float* %1, i64 2
store float %3, float* %5
%6 = getelementptr inbounds float, float* %1, i64 3
store float %3, float* %6
%7 = getelementptr inbounds float, float* %1, i64 4
store float 0.000000e+00, float* %7
%8 = getelementptr inbounds float, float* %1, i64 5
store float 0.000000e+00, float* %8
%9 = getelementptr inbounds float, float* %1, i64 6
store float %3, float* %9
%10 = getelementptr inbounds float, float* %1, i64 7
store float %3, float* %10
%11 = getelementptr inbounds float, float* %1, i64 8
%12 = bitcast float* %11 to i8*
ret void
}