#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 surprise() {
  PlayTone(783, 27);
  wait1Msec(300);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(988, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(988, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(880, 41);
  wait1Msec(450);
  PlayTone(0, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(783, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(784, 27);
  wait1Msec(300);
  PlayTone(987, 14);
  wait1Msec(150);
  PlayTone(880, 41);
  wait1Msec(450);
  PlayTone(783, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 54);
  wait1Msec(600);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(987, 27);
  wait1Msec(300);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(783, 41);
  wait1Msec(450);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(783, 27);
  wait1Msec(300);
  PlayTone(880, 54);
  wait1Msec(600);
  PlayTone(784, 81);
  wait1Msec(900);
  PlayTone(0, 27);
  wait1Msec(300);
  PlayTone(783, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(988, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(988, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(880, 41);
  wait1Msec(450);
  PlayTone(0, 27);
  wait1Msec(300);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(783, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(1175, 54);
  wait1Msec(600);
  PlayTone(987, 27);
  wait1Msec(300);
  PlayTone(784, 41);
  wait1Msec(450);
  PlayTone(987, 14);
  wait1Msec(150);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(783, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 14);
  wait1Msec(150);
  PlayTone(880, 14);
  wait1Msec(150);
  PlayTone(784, 54);
  wait1Msec(600);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(987, 27);
  wait1Msec(300);
  PlayTone(880, 27);
  wait1Msec(300);
  PlayTone(783, 41);
  wait1Msec(450);
  PlayTone(0, 14);
  wait1Msec(150);
  PlayTone(783, 27);
  wait1Msec(300);
  PlayTone(880, 54);
  wait1Msec(600);
  PlayTone(784, 54);
  wait1Msec(600);
  return;
}


x86 assembly (clang, -O0):
<surprise>:
push   %rbp
mov    %rsp,%rbp
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x3dc,%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    $0x3dc,%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    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%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    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%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    $0x370,%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    $0x310,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x51,%esi
call   1030 <PlayTone@plt>
mov    $0x384,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x3dc,%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    $0x3dc,%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    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%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    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x497,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<surprise>:
push   %rax
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x3dc,%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    $0x3dc,%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    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%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    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%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    $0x370,%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    $0x310,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x51,%esi
call   1030 <PlayTone@plt>
mov    $0x384,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x3dc,%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    $0x3dc,%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    $0x370,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%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    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x497,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x3db,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x29,%esi
call   1030 <PlayTone@plt>
mov    $0x1c2,%edi
call   1040 <wait1Msec@plt>
xor    %edi,%edi
mov    $0xe,%esi
call   1030 <PlayTone@plt>
mov    $0x96,%edi
call   1040 <wait1Msec@plt>
mov    $0x30f,%edi
mov    $0x1b,%esi
call   1030 <PlayTone@plt>
mov    $0x12c,%edi
call   1040 <wait1Msec@plt>
mov    $0x370,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
call   1040 <wait1Msec@plt>
mov    $0x310,%edi
mov    $0x36,%esi
call   1030 <PlayTone@plt>
mov    $0x258,%edi
pop    %rax
jmp    1040 <wait1Msec@plt>

LLVM IR (-O0):
define void @surprise() {
%1 = call i32 @PlayTone(i32 783, i32 27)
%2 = call i32 @wait1Msec(i32 300)
%3 = call i32 @PlayTone(i32 880, i32 27)
%4 = call i32 @wait1Msec(i32 300)
%5 = call i32 @PlayTone(i32 784, i32 14)
%6 = call i32 @wait1Msec(i32 150)
%7 = call i32 @PlayTone(i32 880, i32 14)
%8 = call i32 @wait1Msec(i32 150)
%9 = call i32 @PlayTone(i32 988, 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 988, 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 880, i32 41)
%18 = call i32 @wait1Msec(i32 450)
%19 = call i32 @PlayTone(i32 0, i32 27)
%20 = call i32 @wait1Msec(i32 300)
%21 = call i32 @PlayTone(i32 0, i32 14)
%22 = call i32 @wait1Msec(i32 150)
%23 = call i32 @PlayTone(i32 783, i32 14)
%24 = call i32 @wait1Msec(i32 150)
%25 = call i32 @PlayTone(i32 880, i32 14)
%26 = call i32 @wait1Msec(i32 150)
%27 = call i32 @PlayTone(i32 784, i32 14)
%28 = call i32 @wait1Msec(i32 150)
%29 = call i32 @PlayTone(i32 880, i32 14)
%30 = call i32 @wait1Msec(i32 150)
%31 = call i32 @PlayTone(i32 880, i32 27)
%32 = call i32 @wait1Msec(i32 300)
%33 = call i32 @PlayTone(i32 0, i32 14)
%34 = call i32 @wait1Msec(i32 150)
%35 = call i32 @PlayTone(i32 880, i32 27)
%36 = call i32 @wait1Msec(i32 300)
%37 = call i32 @PlayTone(i32 0, i32 14)
%38 = call i32 @wait1Msec(i32 150)
%39 = call i32 @PlayTone(i32 784, i32 27)
%40 = call i32 @wait1Msec(i32 300)
%41 = call i32 @PlayTone(i32 987, i32 14)
%42 = call i32 @wait1Msec(i32 150)
%43 = call i32 @PlayTone(i32 880, i32 41)
%44 = call i32 @wait1Msec(i32 450)
%45 = call i32 @PlayTone(i32 783, i32 14)
%46 = call i32 @wait1Msec(i32 150)
%47 = call i32 @PlayTone(i32 880, i32 14)
%48 = call i32 @wait1Msec(i32 150)
%49 = call i32 @PlayTone(i32 784, i32 14)
%50 = call i32 @wait1Msec(i32 150)
%51 = call i32 @PlayTone(i32 880, i32 14)
%52 = call i32 @wait1Msec(i32 150)
%53 = call i32 @PlayTone(i32 784, i32 54)
%54 = call i32 @wait1Msec(i32 600)
%55 = call i32 @PlayTone(i32 880, i32 27)
%56 = call i32 @wait1Msec(i32 300)
%57 = call i32 @PlayTone(i32 987, i32 27)
%58 = call i32 @wait1Msec(i32 300)
%59 = call i32 @PlayTone(i32 880, i32 27)
%60 = call i32 @wait1Msec(i32 300)
%61 = call i32 @PlayTone(i32 783, i32 41)
%62 = call i32 @wait1Msec(i32 450)
%63 = call i32 @PlayTone(i32 0, i32 14)
%64 = call i32 @wait1Msec(i32 150)
%65 = call i32 @PlayTone(i32 783, i32 27)
%66 = call i32 @wait1Msec(i32 300)
%67 = call i32 @PlayTone(i32 880, i32 54)
%68 = call i32 @wait1Msec(i32 600)
%69 = call i32 @PlayTone(i32 784, i32 81)
%70 = call i32 @wait1Msec(i32 900)
%71 = call i32 @PlayTone(i32 0, i32 27)
%72 = call i32 @wait1Msec(i32 300)
%73 = call i32 @PlayTone(i32 783, i32 14)
%74 = call i32 @wait1Msec(i32 150)
%75 = call i32 @PlayTone(i32 880, i32 14)
%76 = call i32 @wait1Msec(i32 150)
%77 = call i32 @PlayTone(i32 784, i32 14)
%78 = call i32 @wait1Msec(i32 150)
%79 = call i32 @PlayTone(i32 880, i32 14)
%80 = call i32 @wait1Msec(i32 150)
%81 = call i32 @PlayTone(i32 988, i32 27)
%82 = call i32 @wait1Msec(i32 300)
%83 = call i32 @PlayTone(i32 0, i32 14)
%84 = call i32 @wait1Msec(i32 150)
%85 = call i32 @PlayTone(i32 988, i32 27)
%86 = call i32 @wait1Msec(i32 300)
%87 = call i32 @PlayTone(i32 0, i32 14)
%88 = call i32 @wait1Msec(i32 150)
%89 = call i32 @PlayTone(i32 880, i32 41)
%90 = call i32 @wait1Msec(i32 450)
%91 = call i32 @PlayTone(i32 0, i32 27)
%92 = call i32 @wait1Msec(i32 300)
%93 = call i32 @PlayTone(i32 0, i32 14)
%94 = call i32 @wait1Msec(i32 150)
%95 = call i32 @PlayTone(i32 783, i32 14)
%96 = call i32 @wait1Msec(i32 150)
%97 = call i32 @PlayTone(i32 880, i32 14)
%98 = call i32 @wait1Msec(i32 150)
%99 = call i32 @PlayTone(i32 784, i32 14)
%100 = call i32 @wait1Msec(i32 150)
%101 = call i32 @PlayTone(i32 880, i32 14)
%102 = call i32 @wait1Msec(i32 150)
%103 = call i32 @PlayTone(i32 1175, i32 54)
%104 = call i32 @wait1Msec(i32 600)
%105 = call i32 @PlayTone(i32 987, i32 27)
%106 = call i32 @wait1Msec(i32 300)
%107 = call i32 @PlayTone(i32 784, i32 41)
%108 = call i32 @wait1Msec(i32 450)
%109 = call i32 @PlayTone(i32 987, i32 14)
%110 = call i32 @wait1Msec(i32 150)
%111 = call i32 @PlayTone(i32 880, i32 27)
%112 = call i32 @wait1Msec(i32 300)
%113 = call i32 @PlayTone(i32 783, i32 14)
%114 = call i32 @wait1Msec(i32 150)
%115 = call i32 @PlayTone(i32 880, i32 14)
%116 = call i32 @wait1Msec(i32 150)
%117 = call i32 @PlayTone(i32 784, i32 14)
%118 = call i32 @wait1Msec(i32 150)
%119 = call i32 @PlayTone(i32 880, i32 14)
%120 = call i32 @wait1Msec(i32 150)
%121 = call i32 @PlayTone(i32 784, i32 54)
%122 = call i32 @wait1Msec(i32 600)
%123 = call i32 @PlayTone(i32 880, i32 27)
%124 = call i32 @wait1Msec(i32 300)
%125 = call i32 @PlayTone(i32 987, i32 27)
%126 = call i32 @wait1Msec(i32 300)
%127 = call i32 @PlayTone(i32 880, i32 27)
%128 = call i32 @wait1Msec(i32 300)
%129 = call i32 @PlayTone(i32 783, i32 41)
%130 = call i32 @wait1Msec(i32 450)
%131 = call i32 @PlayTone(i32 0, i32 14)
%132 = call i32 @wait1Msec(i32 150)
%133 = call i32 @PlayTone(i32 783, i32 27)
%134 = call i32 @wait1Msec(i32 300)
%135 = call i32 @PlayTone(i32 880, i32 54)
%136 = call i32 @wait1Msec(i32 600)
%137 = call i32 @PlayTone(i32 784, i32 54)
%138 = call i32 @wait1Msec(i32 600)
ret void
}

LLVM IR (-O2):
define void @surprise() {
%1 = tail call i32 @PlayTone(i32 783, i32 27)
%2 = tail call i32 @wait1Msec(i32 300)
%3 = tail call i32 @PlayTone(i32 880, i32 27)
%4 = tail call i32 @wait1Msec(i32 300)
%5 = tail call i32 @PlayTone(i32 784, i32 14)
%6 = tail call i32 @wait1Msec(i32 150)
%7 = tail call i32 @PlayTone(i32 880, i32 14)
%8 = tail call i32 @wait1Msec(i32 150)
%9 = tail call i32 @PlayTone(i32 988, 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 988, 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 880, i32 41)
%18 = tail call i32 @wait1Msec(i32 450)
%19 = tail call i32 @PlayTone(i32 0, i32 27)
%20 = tail call i32 @wait1Msec(i32 300)
%21 = tail call i32 @PlayTone(i32 0, i32 14)
%22 = tail call i32 @wait1Msec(i32 150)
%23 = tail call i32 @PlayTone(i32 783, i32 14)
%24 = tail call i32 @wait1Msec(i32 150)
%25 = tail call i32 @PlayTone(i32 880, i32 14)
%26 = tail call i32 @wait1Msec(i32 150)
%27 = tail call i32 @PlayTone(i32 784, i32 14)
%28 = tail call i32 @wait1Msec(i32 150)
%29 = tail call i32 @PlayTone(i32 880, i32 14)
%30 = tail call i32 @wait1Msec(i32 150)
%31 = tail call i32 @PlayTone(i32 880, i32 27)
%32 = tail call i32 @wait1Msec(i32 300)
%33 = tail call i32 @PlayTone(i32 0, i32 14)
%34 = tail call i32 @wait1Msec(i32 150)
%35 = tail call i32 @PlayTone(i32 880, i32 27)
%36 = tail call i32 @wait1Msec(i32 300)
%37 = tail call i32 @PlayTone(i32 0, i32 14)
%38 = tail call i32 @wait1Msec(i32 150)
%39 = tail call i32 @PlayTone(i32 784, i32 27)
%40 = tail call i32 @wait1Msec(i32 300)
%41 = tail call i32 @PlayTone(i32 987, i32 14)
%42 = tail call i32 @wait1Msec(i32 150)
%43 = tail call i32 @PlayTone(i32 880, i32 41)
%44 = tail call i32 @wait1Msec(i32 450)
%45 = tail call i32 @PlayTone(i32 783, i32 14)
%46 = tail call i32 @wait1Msec(i32 150)
%47 = tail call i32 @PlayTone(i32 880, i32 14)
%48 = tail call i32 @wait1Msec(i32 150)
%49 = tail call i32 @PlayTone(i32 784, i32 14)
%50 = tail call i32 @wait1Msec(i32 150)
%51 = tail call i32 @PlayTone(i32 880, i32 14)
%52 = tail call i32 @wait1Msec(i32 150)
%53 = tail call i32 @PlayTone(i32 784, i32 54)
%54 = tail call i32 @wait1Msec(i32 600)
%55 = tail call i32 @PlayTone(i32 880, i32 27)
%56 = tail call i32 @wait1Msec(i32 300)
%57 = tail call i32 @PlayTone(i32 987, i32 27)
%58 = tail call i32 @wait1Msec(i32 300)
%59 = tail call i32 @PlayTone(i32 880, i32 27)
%60 = tail call i32 @wait1Msec(i32 300)
%61 = tail call i32 @PlayTone(i32 783, i32 41)
%62 = tail call i32 @wait1Msec(i32 450)
%63 = tail call i32 @PlayTone(i32 0, i32 14)
%64 = tail call i32 @wait1Msec(i32 150)
%65 = tail call i32 @PlayTone(i32 783, i32 27)
%66 = tail call i32 @wait1Msec(i32 300)
%67 = tail call i32 @PlayTone(i32 880, i32 54)
%68 = tail call i32 @wait1Msec(i32 600)
%69 = tail call i32 @PlayTone(i32 784, i32 81)
%70 = tail call i32 @wait1Msec(i32 900)
%71 = tail call i32 @PlayTone(i32 0, i32 27)
%72 = tail call i32 @wait1Msec(i32 300)
%73 = tail call i32 @PlayTone(i32 783, i32 14)
%74 = tail call i32 @wait1Msec(i32 150)
%75 = tail call i32 @PlayTone(i32 880, i32 14)
%76 = tail call i32 @wait1Msec(i32 150)
%77 = tail call i32 @PlayTone(i32 784, i32 14)
%78 = tail call i32 @wait1Msec(i32 150)
%79 = tail call i32 @PlayTone(i32 880, i32 14)
%80 = tail call i32 @wait1Msec(i32 150)
%81 = tail call i32 @PlayTone(i32 988, i32 27)
%82 = tail call i32 @wait1Msec(i32 300)
%83 = tail call i32 @PlayTone(i32 0, i32 14)
%84 = tail call i32 @wait1Msec(i32 150)
%85 = tail call i32 @PlayTone(i32 988, i32 27)
%86 = tail call i32 @wait1Msec(i32 300)
%87 = tail call i32 @PlayTone(i32 0, i32 14)
%88 = tail call i32 @wait1Msec(i32 150)
%89 = tail call i32 @PlayTone(i32 880, i32 41)
%90 = tail call i32 @wait1Msec(i32 450)
%91 = tail call i32 @PlayTone(i32 0, i32 27)
%92 = tail call i32 @wait1Msec(i32 300)
%93 = tail call i32 @PlayTone(i32 0, i32 14)
%94 = tail call i32 @wait1Msec(i32 150)
%95 = tail call i32 @PlayTone(i32 783, i32 14)
%96 = tail call i32 @wait1Msec(i32 150)
%97 = tail call i32 @PlayTone(i32 880, i32 14)
%98 = tail call i32 @wait1Msec(i32 150)
%99 = tail call i32 @PlayTone(i32 784, i32 14)
%100 = tail call i32 @wait1Msec(i32 150)
%101 = tail call i32 @PlayTone(i32 880, i32 14)
%102 = tail call i32 @wait1Msec(i32 150)
%103 = tail call i32 @PlayTone(i32 1175, i32 54)
%104 = tail call i32 @wait1Msec(i32 600)
%105 = tail call i32 @PlayTone(i32 987, i32 27)
%106 = tail call i32 @wait1Msec(i32 300)
%107 = tail call i32 @PlayTone(i32 784, i32 41)
%108 = tail call i32 @wait1Msec(i32 450)
%109 = tail call i32 @PlayTone(i32 987, i32 14)
%110 = tail call i32 @wait1Msec(i32 150)
%111 = tail call i32 @PlayTone(i32 880, i32 27)
%112 = tail call i32 @wait1Msec(i32 300)
%113 = tail call i32 @PlayTone(i32 783, i32 14)
%114 = tail call i32 @wait1Msec(i32 150)
%115 = tail call i32 @PlayTone(i32 880, i32 14)
%116 = tail call i32 @wait1Msec(i32 150)
%117 = tail call i32 @PlayTone(i32 784, i32 14)
%118 = tail call i32 @wait1Msec(i32 150)
%119 = tail call i32 @PlayTone(i32 880, i32 14)
%120 = tail call i32 @wait1Msec(i32 150)
%121 = tail call i32 @PlayTone(i32 784, i32 54)
%122 = tail call i32 @wait1Msec(i32 600)
%123 = tail call i32 @PlayTone(i32 880, i32 27)
%124 = tail call i32 @wait1Msec(i32 300)
%125 = tail call i32 @PlayTone(i32 987, i32 27)
%126 = tail call i32 @wait1Msec(i32 300)
%127 = tail call i32 @PlayTone(i32 880, i32 27)
%128 = tail call i32 @wait1Msec(i32 300)
%129 = tail call i32 @PlayTone(i32 783, i32 41)
%130 = tail call i32 @wait1Msec(i32 450)
%131 = tail call i32 @PlayTone(i32 0, i32 14)
%132 = tail call i32 @wait1Msec(i32 150)
%133 = tail call i32 @PlayTone(i32 783, i32 27)
%134 = tail call i32 @wait1Msec(i32 300)
%135 = tail call i32 @PlayTone(i32 880, i32 54)
%136 = tail call i32 @wait1Msec(i32 600)
%137 = tail call i32 @PlayTone(i32 784, i32 54)
%138 = tail call i32 @wait1Msec(i32 600)
ret void
}