#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 */
int /*<<< orphan*/ PlayTone(int, int);
int /*<<< orphan*/ wait1Msec(int);
void DarudeSandstorm() {
  PlayTone(1481, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(1481, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(1481, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(1481, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(1481, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(1481, 41);
  wait1Msec(450);
  return;
}


x86 assembly (clang, -O0):
<DarudeSandstorm>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DarudeSandstorm>:
push   %rax
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x5c9,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
pop    %rax
jmp    1040 <wait1Msec@plt>

LLVM IR (-O0):
define void @DarudeSandstorm() {
%1 = call i32 @PlayTone(i32 1481, i32 27)
%2 = call i32 @wait1Msec(i32 300)
%3 = call i32 @PlayTone(i32 0, i32 14)
%4 = call i32 @wait1Msec(i32 150)
%5 = call i32 @PlayTone(i32 1481, i32 27)
%6 = call i32 @wait1Msec(i32 300)
%7 = call i32 @PlayTone(i32 0, i32 14)
%8 = call i32 @wait1Msec(i32 150)
%9 = call i32 @PlayTone(i32 1481, i32 27)
%10 = call i32 @wait1Msec(i32 300)
%11 = call i32 @PlayTone(i32 0, i32 14)
%12 = call i32 @wait1Msec(i32 150)
%13 = call i32 @PlayTone(i32 1481, i32 27)
%14 = call i32 @wait1Msec(i32 300)
%15 = call i32 @PlayTone(i32 0, i32 14)
%16 = call i32 @wait1Msec(i32 150)
%17 = call i32 @PlayTone(i32 1481, i32 27)
%18 = call i32 @wait1Msec(i32 300)
%19 = call i32 @PlayTone(i32 0, i32 14)
%20 = call i32 @wait1Msec(i32 150)
%21 = call i32 @PlayTone(i32 1481, i32 41)
%22 = call i32 @wait1Msec(i32 450)
ret void
}

LLVM IR (-O2):
define void @DarudeSandstorm() {
%1 = tail call i32 @PlayTone(i32 1481, i32 27)
%2 = tail call i32 @wait1Msec(i32 300)
%3 = tail call i32 @PlayTone(i32 0, i32 14)
%4 = tail call i32 @wait1Msec(i32 150)
%5 = tail call i32 @PlayTone(i32 1481, i32 27)
%6 = tail call i32 @wait1Msec(i32 300)
%7 = tail call i32 @PlayTone(i32 0, i32 14)
%8 = tail call i32 @wait1Msec(i32 150)
%9 = tail call i32 @PlayTone(i32 1481, i32 27)
%10 = tail call i32 @wait1Msec(i32 300)
%11 = tail call i32 @PlayTone(i32 0, i32 14)
%12 = tail call i32 @wait1Msec(i32 150)
%13 = tail call i32 @PlayTone(i32 1481, i32 27)
%14 = tail call i32 @wait1Msec(i32 300)
%15 = tail call i32 @PlayTone(i32 0, i32 14)
%16 = tail call i32 @wait1Msec(i32 150)
%17 = tail call i32 @PlayTone(i32 1481, i32 27)
%18 = tail call i32 @wait1Msec(i32 300)
%19 = tail call i32 @PlayTone(i32 0, i32 14)
%20 = tail call i32 @wait1Msec(i32 150)
%21 = tail call i32 @PlayTone(i32 1481, i32 41)
%22 = tail call i32 @wait1Msec(i32 450)
ret void
}