// File: /workspace/github_c_makefile_star2_O0/hyc[P]trek73c/trekx.c
// Function: TrekInit
void TrekInit()
{
  register int I, J, K;
  int FORLIM;
  double Junk;
  Object *WITH;
  Srec *WITH1;
  int FORLIM1;
  WINDOW *Twin, *subwin();
  boolean Intro, Ok;
  char *Trash, *Temp, *Temp2, c;

  clear();
  mvaddstr(0,31,"*** Star Trek ***");
  mvaddstr(2,29,"Version 1.01 - curses:");
  refresh();
  mvaddstr(3,10,
	 "\"Novice\" has 60 seconds for response, otherwise 10 seconds.");
  
  mvaddstr(6,0,"Captain: My last name is ");
  do {
    move(6,25);
    clrtoeol();
    mygetstr(stdscr,scrstr,true);
     J = strlen(scrstr);
  } while (J <= 1);
  Name=Namebuf;
  strncpy(Name,scrstr,20);

  cheat = false;
  if (Name[0] == '*' || Name[0] == '!') {
    if (Name[0] == '!')
	cheat = true;
    Name++;
    J--;
    Intro = false;
  } else
    Intro = true;
  for (I = 0; I < J; I++) {
    if (isupper(Name[I]))
      Name[I] = tolower(Name[I]);
  }
  if (!strcmp(Name, "novice"))
    Timer = 59;
  else
    Timer = 10;
  Name[0] = toupper(Name[0]);

  mvaddstr(8,0, Name);
  addstr(": My sex is ");
  mygetstr(stdscr,scrstr,true);
  scrstr[0] = toupper(scrstr[0]);
  if (scrstr[0] == 'M')
    Title = Male;
  else if (scrstr[0] == 'F')
    Title = Female;
  else
    Title = Slurs[_randint(5)];
  do {
    Ok = true;
    move(9,3);
    addstr("I'm expecting [1-9] enemy vessels: ");
    clrtobot();
    mygetstr(stdscr,scrstr,true);
    I=atoi(scrstr);
    if (I < 1 || I > 9) {
      Ok = false;
      sprintf(scrstr,"Uhura: %s, Starfleet Command reports that it can only\n",
	     Title);
      mvaddstr(11,0,scrstr);
      addstr("   be from 1 to 9.\n\n");
      refresh();

      Delay(500L);

      addstr(Name);
      addstr(": Correct, Lieutenant - just testing your attention.");
      refresh();
      getch();
    }
  } while (!Ok);
  Enemies = I;
  Vessels = Enemies + 1;
  ObjCount = Vessels;
  for (I = 0; I < 4; I++)
    Ct[I] = 0;
  Win = 0;
  for (I = 0; I < 100; I++)
    Objects[I] = NULL;
  FORLIM = Vessels;
  for (I = 0; I < FORLIM; I++) {
    Objects[I] = (Object *)Malloc(sizeof(Object));
    WITH = Objects[I];
    WITH->Act_Spd = 0.0;
    WITH->Des_Spd = 0.0;
    WITH->Act_Crs = 0.0;
    WITH->Des_Crs = 0.0;
    WITH->Fuel = 150.0;
    WITH->Tim_Del = 0.0;
    WITH->Prx_Del = 0.0;
    WITH->XPos = 0.0;
    WITH->YPos = 0.0;
    WITH->Trgt = 0;
    WITH->ObTyp = I;
  }
  for (I = 0; I < 10; I++)
    Shps[I] = I;
  for (I = 1; I < 9; I++) {
    J = _randint(10 - I) + I;
    K = Shps[I];
    Shps[I] = Shps[J];
    Shps[J] = K;
  }
  FORLIM = Vessels;
  for (I = 1; I < FORLIM; I++)
    Snams[I] = Badguys[Shps[I]-1];
  Snams[0] = Feds[_randint(12)];

  for (I = 1; I < FORLIM; I++)
    Objects[I]->ObTyp = Shps[I];
  Enemy = EnemNms[_randint(5)];
  Capt = Captains[_randint(10)];
  Twin = subwin(stdscr, 0, 0, 0, 7);
  scrollok(Twin,TRUE);

  clear();
  refresh();
  if (Intro) {
    mvwaddstr(Twin,1,6,"Space, the final frontier.");
    mvwaddstr(Twin,2,6,"These are the voyages of the Starship ** ");
    waddstr(Twin,Snams[0]);
    waddstr(Twin," **.");
    mvwaddstr(Twin,3,6,"Its five year mission: To explore strange new worlds,");
    mvwaddstr(Twin,4,6,"to seek out new life and new civilizations,");
    mvwaddstr(Twin,5,6,"to boldly go where no man has gone before!");
    mvwaddstr(Twin,7,24,"S T A R   T R E K");
    wmove(Twin,8,0);
    wrefresh(Twin);
    Delay(3000);

    Junk = (_randint(50) + 50) * 100 + _randint(1000) / 10.0;
    sprintf(scrstr,"\nCaptain's Log, stardate %6.1f\n\n", Junk);
    waddstr(Twin, scrstr);

    J = 0;
    FORLIM = _randint(20);
    for (I = 0; I <= FORLIM;) {
      if (Missions[J][0] == ' ')
	 I++;
      J++;
    }
    Temp = Missions[J-1];
    sprintf(scrstr,"  %s\n", Temp);
    waddstr(Twin, scrstr);
    do {
      Temp = Missions[J];
      J++;
      if (Temp[0] != ' ') {        
	sprintf(scrstr,"   %s\n", Temp);
        waddstr(Twin,scrstr);
      }
    } while (Temp[0] != ' ');
    c="a23456789"[Enemies - 1];
    if (Enemies > 1)
      Trash = "s";
    else
      Trash = "";
    wrefresh(Twin);
    Delay(2000);
    sprintf(scrstr,"\nSulu: %s, I'm picking up %c vessel%s on interception\n",
	   Title, c, Trash);
    waddstr(Twin,scrstr);
    sprintf(scrstr,"   course%s with the %s.\n\n", Trash, Snams[0]);
    waddstr(Twin,scrstr);
    wrefresh(Twin);
    Delay(1500);
    if (Enemies > 1) {
      Temp = "them";
      Temp2 = "";
    } else {
      Temp = "it";
      Temp2 = "a ";
    }
    sprintf(scrstr,"Spock: Sensors identify %s as %s%s battle\n", Temp, Temp2,
	 Enemy);
    waddstr(Twin,scrstr);
    sprintf(scrstr,"   cruiser%s, probably under the command of Captain %s.\n",
	   Trash, Capt);
    waddstr(Twin,scrstr);
    wrefresh(Twin);
    Delay(1000);
    sprintf(scrstr,"\n%s: Sound General Quarters, Lieutenant!\n", Name);
    waddstr(Twin,scrstr);
    wrefresh(Twin);
    Delay(1000);
    sprintf(scrstr,"\nUhura: Aye, %s!\n", Title);
    waddstr(Twin,scrstr);
    wrefresh(Twin);
    Delay(1000);
  }
  sprintf(scrstr,"\nComputer: The %ss are attacking the %s with the\n",
	 Enemy, Snams[0]);
  waddstr(Twin,scrstr);
  waddstr(Twin,"  ");
  FORLIM = Vessels;
  for (I = 1; I < FORLIM; I++) {
    if (I == 7)
      waddstr(Twin,"\n  ");
    waddch(Twin,' ');
    waddstr(Twin,Snams[I]);
    if (I != Enemies) {
      if (Enemies > 2)
	waddch(Twin,',');
      if (I == Vessels - 2)
	waddstr(Twin," and the");
    }
  }
  waddstr(Twin,".\n\n\n[Press a key to continue]");
  wrefresh(Twin);
  getch();
  for (I = 0; I < 10; I++)
    Ships[I] = NULL;
  FORLIM = Vessels;
  for (I = 0; I < FORLIM; I++) {
    Ships[I] = (Srec *)Malloc(sizeof(Srec));
    WITH1 = Ships[I];
    WITH1->Weff = 0.75;
    WITH1->Fcap = 200;
    WITH1->Regen = 10.0;
    FORLIM1 = Phasers;
    for (J = 0; J < FORLIM1; J++) {
      WITH1->PChrg[J] = 10.0;
      WITH1->PCrts[J] = 10.0;
      WITH1->Pstat[J] = 0;
    }
    WITH1->Pstat[Phasers] = 10;
    WITH1->Pstat[Phasers + 1] = 100;
    WITH1->Pdepl[0] = 90.0;
    WITH1->Pdepl[1] = 0.0;
    WITH1->Pdepl[2] = 0.0;
    WITH1->Pdepl[3] = 270.0;
    for (J = 0; J < 6; J++) {
      WITH1->Tstat[J] = 0;
      WITH1->Tengy[J] = 0;
    }
    WITH1->Tstat[Tubes] = 12;
    WITH1->Tstat[Tubes + 1] = 10;
    WITH1->Tstat[Tubes + 2] = 200;
    WITH1->TDepl[0] = 120.0;
    WITH1->TDepl[1] = 60.0;
    WITH1->TDepl[2] = 0.0;
    WITH1->TDepl[3] = 0.0;
    WITH1->TDepl[4] = 300.0;
    WITH1->TDepl[5] = 240.0;
    for (CC = Comp; (long)CC <= (long)Engn; CC = (Damages)((long)CC + 1))
      WITH1->Dmge[(long)CC] = false;
    for (J = 0; J < 4; J++) {
      WITH1->Sdrns[J] = 1.0;
      WITH1->Seff[J] = 100.0;
    }
    WITH1->Crew = 350;
  }
  WITH1 = Ships[0];
  WITH1->Fcap = 250;
  WITH1->Crew = 450;
  WITH1->Weff = 1.0;
  FORLIM = Vessels;
  for (I = 0; I < FORLIM; I++) {
    WITH = Objects[I];
    WITH->Act_Spd = 1.0;
    WITH->Des_Spd = 1.0;
    WITH->Act_Crs = _randint(360);
    WITH->Des_Crs = WITH->Act_Crs;
    WITH->Trgt = 0;
    WITH->Tim_Del = 1.0;
    WITH->Prx_Del = 0.0;
    J = _randint(500) + 4300;
    Junk = _randint(360) * M_PI / 180.0;
    WITH->XPos = J * cos(Junk);
    WITH->YPos = -J * sin(Junk);
  }
  WITH = Objects[0];
  WITH->Act_Crs = 0.0;
  WITH->Des_Crs = 0.0;
  WITH->Tim_Del = 0.0;
  WITH->Fuel = 200.0;
  WITH->XPos = 0.0;
  WITH->YPos = 0.0;
  delwin(Twin);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x12846(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2050
movq 0x12837(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1f, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x27c7
jmp 0x27e2
movq 0x1281a(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd45a(%rip), %rsi      # 0xfc32
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x127ff(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x2, %esi
movl $0x1d, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2802
jmp 0x281d
movq 0x127df(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd431(%rip), %rsi      # 0xfc44
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x127c4(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2180
movq 0x127b5(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x3, %esi
movl $0xa, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x284c
jmp 0x2867
movq 0x12795(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd3fe(%rip), %rsi      # 0xfc5b
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x1277a(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x6, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2884
jmp 0x289f
movq 0x1275d(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd402(%rip), %rsi      # 0xfc97
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x12742(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x6, %esi
movl $0x19, %edx
callq 0x21d0
movq 0x12729(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2210
movq 0x1271a(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0x12bc8(%rip), %rsi     # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x12bb7(%rip), %rdi     # 0x154a0
callq 0x2140
movl %eax, -0x8(%rbp)
cmpl $0x1, -0x8(%rbp)
jle 0x289f
leaq 0x12ca2(%rip), %rax     # 0x155a0
movq %rax, 0x12cb3(%rip)     # 0x155b8
movq 0x12cac(%rip), %rdi     # 0x155b8
leaq 0x12b8d(%rip), %rsi     # 0x154a0
movl $0x14, %edx
callq 0x2260
movb $0x0, 0x12c9c(%rip)     # 0x155c0
movq 0x12c8d(%rip), %rax     # 0x155b8
movsbl (%rax), %eax
cmpl $0x2a, %eax
je 0x2942
movq 0x12c7e(%rip), %rax     # 0x155b8
movsbl (%rax), %eax
cmpl $0x21, %eax
jne 0x2979
movq 0x12c6f(%rip), %rax     # 0x155b8
movsbl (%rax), %eax
cmpl $0x21, %eax
jne 0x2958
movb $0x1, 0x12c68(%rip)     # 0x155c0
movq 0x12c59(%rip), %rax     # 0x155b8
addq $0x1, %rax
movq %rax, 0x12c4e(%rip)     # 0x155b8
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
movb $0x0, -0x39(%rbp)
jmp 0x297d
movb $0x1, -0x39(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x29e5
callq 0x2160
movq (%rax), %rax
movq 0x12c1d(%rip), %rcx     # 0x155b8
movslq -0x4(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x29d8
movq 0x12bfd(%rip), %rax     # 0x155b8
movslq -0x4(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x2230
movb %al, %dl
movq 0x12be7(%rip), %rax     # 0x155b8
movslq -0x4(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x29da
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2984
movq 0x12bcc(%rip), %rdi     # 0x155b8
leaq 0xd2be(%rip), %rsi      # 0xfcb1
callq 0x2220
cmpl $0x0, %eax
jne 0x2a06
movb $0x3b, 0x12bbd(%rip)    # 0x155c1
jmp 0x2a0d
movb $0xa, 0x12bb4(%rip)     # 0x155c1
movq 0x12ba4(%rip), %rax     # 0x155b8
movsbl (%rax), %edi
callq 0x20b0
movb %al, %cl
movq 0x12b93(%rip), %rax     # 0x155b8
movb %cl, (%rax)
movq 0x125ba(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2a44
jmp 0x2a5f
movq 0x1259d(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movq 0x12b63(%rip), %rsi     # 0x155b8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x12582(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd248(%rip), %rsi      # 0xfcb8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x12567(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0x12a15(%rip), %rsi     # 0x154a0
movl $0x1, %edx
callq 0x24a0
movsbl 0x12a04(%rip), %edi     # 0x154a0
callq 0x20b0
movb %al, 0x129f9(%rip)      # 0x154a0
movsbl 0x129f2(%rip), %eax     # 0x154a0
cmpl $0x4d, %eax
jne 0x2ac3
movq 0x12726(%rip), %rax     # 0x151e0
movq %rax, 0x12b07(%rip)     # 0x155c8
jmp 0x2b00
movsbl 0x129d6(%rip), %eax     # 0x154a0
cmpl $0x46, %eax
jne 0x2adf
movq 0x12712(%rip), %rax     # 0x151e8
movq %rax, 0x12aeb(%rip)     # 0x155c8
jmp 0x2afe
movl $0x5, %edi
callq 0x2480
movslq %eax, %rcx
leaq 0x127dd(%rip), %rax     # 0x152d0
movq (%rax,%rcx,8), %rax
movq %rax, 0x12aca(%rip)     # 0x155c8
jmp 0x2b00
jmp 0x2b02
movb $0x1, -0x3a(%rbp)
movq 0x124db(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0x9, %esi
movl $0x3, %edx
callq 0x21d0
movq 0x124c2(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd195(%rip), %rsi      # 0xfcc5
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x124a7(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x22b0
movq 0x12498(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0x12946(%rip), %rsi     # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x12935(%rip), %rdi     # 0x154a0
callq 0x21c0
movl %eax, -0x4(%rbp)
cmpl $0x1, -0x4(%rbp)
jl 0x2b83
cmpl $0x9, -0x4(%rbp)
jle 0x2c63
movb $0x0, -0x3a(%rbp)
movq 0x12a3a(%rip), %rdx     # 0x155c8
leaq 0x1290b(%rip), %rdi     # 0x154a0
leaq 0xd14d(%rip), %rsi      # 0xfce9
movb $0x0, %al
callq 0x2190
movq 0x1243e(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movl $0xb, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2bc0
jmp 0x2bdb
movq 0x12421(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0x128cf(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x12406(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd134(%rip), %rsi      # 0xfd20
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x123eb(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2180
movl $0x1f4, %edi            # imm = 0x1F4
callq 0x2420
movq 0x123d2(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
movq 0x12998(%rip), %rsi     # 0x155b8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x123b7(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
leaq 0xd0fa(%rip), %rsi      # 0xfd35
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x1239c(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2180
movq 0x1238d(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x22f0
jmp 0x2c65
cmpb $0x0, -0x3a(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2b02
movl -0x4(%rbp), %eax
movb %al, 0x12951(%rip)      # 0x155d0
movzbl 0x1294a(%rip), %eax     # 0x155d0
addl $0x1, %eax
movb %al, 0x12942(%rip)      # 0x155d1
movb 0x1293c(%rip), %al      # 0x155d1
movb %al, 0x12937(%rip)      # 0x155d2
movl $0x0, -0x4(%rbp)
cmpl $0x4, -0x4(%rbp)
jge 0x2cc2
movslq -0x4(%rbp), %rcx
leaq 0x12920(%rip), %rax     # 0x155d3
movb $0x0, (%rax,%rcx)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2ca2
movb $0x0, 0x1290e(%rip)     # 0x155d7
movl $0x0, -0x4(%rbp)
cmpl $0x64, -0x4(%rbp)
jge 0x2cf4
movslq -0x4(%rbp), %rcx
leaq 0x128ff(%rip), %rax     # 0x155e0
movq $0x0, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2cd0
movzbl 0x128d6(%rip), %eax     # 0x155d1
movl %eax, -0x10(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x2dd6
movl $0x50, %edi
callq 0x20e0
movq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x128b7(%rip), %rax     # 0x155e0
movq %rdx, (%rax,%rcx,8)
movslq -0x4(%rbp), %rcx
leaq 0x128a8(%rip), %rax     # 0x155e0
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x10(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rax)
movq -0x20(%rbp), %rax
movsd 0xc2f5(%rip), %xmm0     # 0xf070
movsd %xmm0, 0x20(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rax)
movq -0x20(%rbp), %rax
movw $0x0, 0x48(%rax)
movl -0x4(%rbp), %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x4a(%rax)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2d05
movl $0x0, -0x4(%rbp)
cmpl $0xa, -0x4(%rbp)
jge 0x2e03
movl -0x4(%rbp), %eax
movw %ax, %dx
movslq -0x4(%rbp), %rcx
leaq 0x12b0c(%rip), %rax     # 0x15900
movw %dx, (%rax,%rcx,2)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2ddd
movl $0x1, -0x4(%rbp)
cmpl $0x9, -0x4(%rbp)
jge 0x2e73
movl $0xa, %edi
subl -0x4(%rbp), %edi
callq 0x2480
addl -0x4(%rbp), %eax
movl %eax, -0x8(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x12ad2(%rip), %rax     # 0x15900
movswl (%rax,%rcx,2), %eax
movl %eax, -0xc(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x12ac0(%rip), %rax     # 0x15900
movw (%rax,%rcx,2), %dx
movslq -0x4(%rbp), %rcx
leaq 0x12ab1(%rip), %rax     # 0x15900
movw %dx, (%rax,%rcx,2)
movl -0xc(%rbp), %eax
movw %ax, %dx
movslq -0x8(%rbp), %rcx
leaq 0x12a9c(%rip), %rax     # 0x15900
movw %dx, (%rax,%rcx,2)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2e0a
movzbl 0x12757(%rip), %eax     # 0x155d1
movl %eax, -0x10(%rbp)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x2ec6
movslq -0x4(%rbp), %rcx
leaq 0x12a69(%rip), %rax     # 0x15900
movswl (%rax,%rcx,2), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x12348(%rip), %rax     # 0x151f0
movq (%rax,%rcx,8), %rdx
movslq -0x4(%rbp), %rcx
leaq 0x12a69(%rip), %rax     # 0x15920
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2e84
movl $0xc, %edi
callq 0x2480
movslq %eax, %rcx
leaq 0x12366(%rip), %rax     # 0x15240
movq (%rax,%rcx,8), %rax
movq %rax, 0x12a3b(%rip)     # 0x15920
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x2f21
movslq -0x4(%rbp), %rcx
leaq 0x12a01(%rip), %rax     # 0x15900
movw (%rax,%rcx,2), %cx
movslq -0x4(%rbp), %rdx
leaq 0x126d2(%rip), %rax     # 0x155e0
movq (%rax,%rdx,8), %rax
movw %cx, 0x4a(%rax)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2eec
movl $0x5, %edi
callq 0x2480
movslq %eax, %rcx
leaq 0x1236b(%rip), %rax     # 0x152a0
movq (%rax,%rcx,8), %rax
movq %rax, 0x12a30(%rip)     # 0x15970
movl $0xa, %edi
callq 0x2480
movslq %eax, %rcx
leaq 0x123ac(%rip), %rax     # 0x15300
movq (%rax,%rcx,8), %rax
movq %rax, 0x12a19(%rip)     # 0x15978
movq 0x12082(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
xorl %ecx, %ecx
movl $0x7, %r8d
movl %ecx, %esi
movl %ecx, %edx
callq 0x2310
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x2250
movq 0x12055(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2050
movq 0x12046(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x2180
cmpb $0x0, -0x39(%rbp)
je 0x3498
movq -0x38(%rbp), %rdi
movl $0x1, %esi
movl $0x6, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2fce
jmp 0x2fe3
movq -0x38(%rbp), %rdi
leaq 0xcd91(%rip), %rsi      # 0xfd6a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x2, %esi
movl $0x6, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x2ffd
jmp 0x3012
movq -0x38(%rbp), %rdi
leaq 0xcd7d(%rip), %rsi      # 0xfd85
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movq 0x12903(%rip), %rsi     # 0x15920
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
leaq 0xcd7d(%rip), %rsi      # 0xfdaf
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x3, %esi
movl $0x6, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x3056
jmp 0x306b
movq -0x38(%rbp), %rdi
leaq 0xcd53(%rip), %rsi      # 0xfdb4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x4, %esi
movl $0x6, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x3085
jmp 0x309a
movq -0x38(%rbp), %rdi
leaq 0xcd5a(%rip), %rsi      # 0xfdea
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x5, %esi
movl $0x6, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x30b4
jmp 0x30c9
movq -0x38(%rbp), %rdi
leaq 0xcd57(%rip), %rsi      # 0xfe16
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x7, %esi
movl $0x18, %edx
callq 0x21d0
cmpl $-0x1, %eax
jne 0x30e3
jmp 0x30f8
movq -0x38(%rbp), %rdi
leaq 0xcd53(%rip), %rsi      # 0xfe41
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x21d0
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0xbb8, %edi            # imm = 0xBB8
callq 0x2420
movl $0x32, %edi
callq 0x2480
addl $0x32, %eax
imull $0x64, %eax, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x68(%rbp)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2480
movsd -0x68(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
movsd 0xbeb9(%rip), %xmm2     # 0xf008
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movsd -0x18(%rbp), %xmm0
leaq 0x12338(%rip), %rdi     # 0x154a0
leaq 0xcce4(%rip), %rsi      # 0xfe53
movb $0x1, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x1231f(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl $0x0, -0x8(%rbp)
movl $0x14, %edi
callq 0x2480
movl %eax, -0x10(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jg 0x31d9
movslq -0x8(%rbp), %rcx
leaq 0x12197(%rip), %rax     # 0x15350
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x31ce
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x31a6
movl -0x8(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x12167(%rip), %rax     # 0x15350
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdx
leaq 0x122a4(%rip), %rdi     # 0x154a0
leaq 0xcc72(%rip), %rsi      # 0xfe75
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x1228b(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movslq -0x8(%rbp), %rcx
leaq 0x12126(%rip), %rax     # 0x15350
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x3275
movq -0x50(%rbp), %rdx
leaq 0x1224e(%rip), %rdi     # 0x154a0
leaq 0xcc1b(%rip), %rsi      # 0xfe74
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x12235(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x3277
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x321f
movzbl 0x12346(%rip), %eax     # 0x155d0
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xcbe4(%rip), %rax      # 0xfe7b
movb (%rax,%rcx), %al
movb %al, -0x59(%rbp)
movzbl 0x1232c(%rip), %eax     # 0x155d0
cmpl $0x1, %eax
jle 0x32b6
leaq 0xcdcb(%rip), %rax      # 0x1007b
movq %rax, -0x48(%rbp)
jmp 0x32c1
leaq 0xca77(%rip), %rax      # 0xfd34
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0x7d0, %edi            # imm = 0x7D0
callq 0x2420
movq 0x122ed(%rip), %rdx     # 0x155c8
movsbl -0x59(%rbp), %ecx
movq -0x48(%rbp), %r8
leaq 0x121b6(%rip), %rdi     # 0x154a0
leaq 0xcb94(%rip), %rsi      # 0xfe85
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x1219d(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x48(%rbp), %rdx
movq 0x12608(%rip), %rcx     # 0x15920
leaq 0x12181(%rip), %rdi     # 0x154a0
leaq 0xcb96(%rip), %rsi      # 0xfebc
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x12168(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0x5dc, %edi            # imm = 0x5DC
callq 0x2420
movzbl 0x12274(%rip), %eax     # 0x155d0
cmpl $0x1, %eax
jle 0x3379
leaq 0xcb6f(%rip), %rax      # 0xfed7
movq %rax, -0x50(%rbp)
leaq 0xc9c1(%rip), %rax      # 0xfd34
movq %rax, -0x58(%rbp)
jmp 0x338f
leaq 0xd6de(%rip), %rax      # 0x10a5e
movq %rax, -0x50(%rbp)
leaq 0xcb51(%rip), %rax      # 0xfedc
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq 0x125d2(%rip), %r8      # 0x15970
leaq 0x120fb(%rip), %rdi     # 0x154a0
leaq 0xcb33(%rip), %rsi      # 0xfedf
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x120e2(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x48(%rbp), %rdx
movq 0x125a5(%rip), %rcx     # 0x15978
leaq 0x120c6(%rip), %rdi     # 0x154a0
leaq 0xcb29(%rip), %rsi      # 0xff0a
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x120ad(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2420
movq 0x121a1(%rip), %rdx     # 0x155b8
leaq 0x12082(%rip), %rdi     # 0x154a0
leaq 0xcb1e(%rip), %rsi      # 0xff43
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x12069(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2420
movq 0x1216d(%rip), %rdx     # 0x155c8
leaq 0x1203e(%rip), %rdi     # 0x154a0
leaq 0xcb04(%rip), %rsi      # 0xff6d
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x12025(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
callq 0x2180
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2420
movq 0x124d1(%rip), %rdx     # 0x15970
movq 0x1247a(%rip), %rcx     # 0x15920
leaq 0x11ff3(%rip), %rdi     # 0x154a0
leaq 0xcacb(%rip), %rsi      # 0xff7f
movb $0x0, %al
callq 0x2190
movq -0x38(%rbp), %rdi
leaq 0x11fda(%rip), %rsi     # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
leaq 0xcad7(%rip), %rsi      # 0xffb2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movzbl 0x120e5(%rip), %eax     # 0x155d1
movl %eax, -0x10(%rbp)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x35a8
cmpl $0x7, -0x4(%rbp)
jne 0x351d
movq -0x38(%rbp), %rdi
leaq 0xca9e(%rip), %rsi      # 0xffb1
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
movl $0x20, %esi
callq 0x2150
movq -0x38(%rbp), %rdi
movslq -0x4(%rbp), %rcx
leaq 0x123e6(%rip), %rax     # 0x15920
movq (%rax,%rcx,8), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl -0x4(%rbp), %eax
movzbl 0x1207e(%rip), %ecx     # 0x155d0
cmpl %ecx, %eax
je 0x3598
movzbl 0x12073(%rip), %eax     # 0x155d0
cmpl $0x2, %eax
jle 0x3570
movq -0x38(%rbp), %rdi
movl $0x2c, %esi
callq 0x2150
movl -0x4(%rbp), %eax
movzbl 0x12057(%rip), %ecx     # 0x155d1
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x3596
movq -0x38(%rbp), %rdi
leaq 0xca29(%rip), %rsi      # 0xffb5
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x3598
jmp 0x359a
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x34f6
movq -0x38(%rbp), %rdi
leaq 0xca0b(%rip), %rsi      # 0xffbe
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x38(%rbp), %rdi
callq 0x2180
movq 0x11a1b(%rip), %rax     # 0x14fe8
movq (%rax), %rdi
callq 0x22f0
movl $0x0, -0x4(%rbp)
cmpl $0xa, -0x4(%rbp)
jge 0x3600
movslq -0x4(%rbp), %rcx
leaq 0x12393(%rip), %rax     # 0x15980
movq $0x0, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x35dc
movzbl 0x11fca(%rip), %eax     # 0x155d1
movl %eax, -0x10(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x38d2
movl $0x128, %edi            # imm = 0x128
callq 0x20e0
movq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x1234b(%rip), %rax     # 0x15980
movq %rdx, (%rax,%rcx,8)
movslq -0x4(%rbp), %rcx
leaq 0x1233c(%rip), %rax     # 0x15980
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movsd 0xb9d8(%rip), %xmm0     # 0xf030
movsd %xmm0, 0x8(%rax)
movq -0x28(%rbp), %rax
movb $-0x38, 0x18(%rax)
movq -0x28(%rbp), %rax
movsd 0xb997(%rip), %xmm0     # 0xf008
movsd %xmm0, (%rax)
movzbl 0x11b34(%rip), %eax     # 0x151b0
movl %eax, -0x2c(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x36d7
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0xb96a(%rip), %xmm0     # 0xf008
movsd %xmm0, 0x20(%rax,%rcx,8)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0xb954(%rip), %xmm0     # 0xf008
movsd %xmm0, 0x40(%rax,%rcx,8)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movw $0x0, 0xd2(%rax,%rcx,2)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x3686
movq -0x28(%rbp), %rax
movzbl 0x11ace(%rip), %ecx     # 0x151b0
movw $0xa, 0xd2(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movzbl 0x11ab9(%rip), %ecx     # 0x151b0
addl $0x1, %ecx
movslq %ecx, %rcx
movw $0x64, 0xd2(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movsd 0xb92d(%rip), %xmm0     # 0xf040
movsd %xmm0, 0x60(%rax)
movq -0x28(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x68(%rax)
movq -0x28(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x70(%rax)
movq -0x28(%rbp), %rax
movsd 0xb8fc(%rip), %xmm0     # 0xf038
movsd %xmm0, 0x78(%rax)
movl $0x0, -0x8(%rbp)
cmpl $0x6, -0x8(%rbp)
jge 0x377d
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movw $0x0, 0x110(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movw $0x0, 0xc6(%rax,%rcx,2)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x3748
movq -0x28(%rbp), %rax
movzbl 0x11a29(%rip), %ecx     # 0x151b1
movw $0xc, 0x110(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movzbl 0x11a14(%rip), %ecx     # 0x151b1
addl $0x1, %ecx
movslq %ecx, %rcx
movw $0xa, 0x110(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movzbl 0x119f9(%rip), %ecx     # 0x151b1
addl $0x2, %ecx
movslq %ecx, %rcx
movw $0xc8, 0x110(%rax,%rcx,2)
movq -0x28(%rbp), %rax
movsd 0xb88c(%rip), %xmm0     # 0xf060
movsd %xmm0, 0xe0(%rax)
movq -0x28(%rbp), %rax
movsd 0xb870(%rip), %xmm0     # 0xf058
movsd %xmm0, 0xe8(%rax)
movq -0x28(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0xf0(%rax)
movq -0x28(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0xf8(%rax)
movq -0x28(%rbp), %rax
movsd 0xb836(%rip), %xmm0     # 0xf050
movsd %xmm0, 0x100(%rax)
movq -0x28(%rbp), %rax
movsd 0xb81a(%rip), %xmm0     # 0xf048
movsd %xmm0, 0x108(%rax)
movl $0x0, 0x12190(%rip)     # 0x159d0
movl 0x1218a(%rip), %eax     # 0x159d0
cmpq $0x4, %rax
jg 0x3870
movq -0x28(%rbp), %rax
movl 0x1217a(%rip), %ecx     # 0x159d0
movb $0x0, 0xc0(%rax,%rcx)
movl 0x1216c(%rip), %eax     # 0x159d0
addq $0x1, %rax
movl %eax, 0x12162(%rip)     # 0x159d0
jmp 0x3840
movl $0x0, -0x8(%rbp)
cmpl $0x4, -0x8(%rbp)
jge 0x38ba
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0xb783(%rip), %xmm0     # 0xf010
movsd %xmm0, 0x80(%rax,%rcx,8)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0xb7c2(%rip), %xmm0     # 0xf068
movsd %xmm0, 0xa0(%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x3877
movq -0x28(%rbp), %rax
movw $0x15e, 0x1a(%rax)      # imm = 0x15E
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x3611
movq 0x120a7(%rip), %rax     # 0x15980
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movb $-0x6, 0x18(%rax)
movq -0x28(%rbp), %rax
movw $0x1c2, 0x1a(%rax)      # imm = 0x1C2
movq -0x28(%rbp), %rax
movsd 0xb715(%rip), %xmm0     # 0xf010
movsd %xmm0, 0x8(%rax)
movzbl 0x11cca(%rip), %eax     # 0x155d1
movl %eax, -0x10(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x3a42
movslq -0x4(%rbp), %rcx
leaq 0x11cb8(%rip), %rax     # 0x155e0
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsd 0xb6d4(%rip), %xmm0     # 0xf010
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rax
movsd 0xb6c4(%rip), %xmm0     # 0xf010
movsd %xmm0, 0x8(%rax)
movl $0x168, %edi            # imm = 0x168
callq 0x2480
cvtsi2sd %eax, %xmm0
movq -0x20(%rbp), %rax
movsd %xmm0, 0x10(%rax)
movq -0x20(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x20(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movq -0x20(%rbp), %rax
movw $0x0, 0x48(%rax)
movq -0x20(%rbp), %rax
movsd 0xb680(%rip), %xmm0     # 0xf010
movsd %xmm0, 0x30(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rax)
movl $0x1f4, %edi            # imm = 0x1F4
callq 0x2480
addl $0x10cc, %eax           # imm = 0x10CC
movl %eax, -0x8(%rbp)
movl $0x168, %edi            # imm = 0x168
callq 0x2480
cvtsi2sd %eax, %xmm0
movsd 0xb65f(%rip), %xmm1     # 0xf028
mulsd %xmm1, %xmm0
movsd 0xb64b(%rip), %xmm1     # 0xf020
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
cvtsi2sdl -0x8(%rbp), %xmm0
movsd %xmm0, -0x78(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x20f0
movaps %xmm0, %xmm1
movsd -0x78(%rbp), %xmm0
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
movsd %xmm0, 0x38(%rax)
xorl %eax, %eax
subl -0x8(%rbp), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x70(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x2300
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
movsd %xmm0, 0x40(%rax)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x3911
movq 0x11b97(%rip), %rax     # 0x155e0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x10(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rax)
movq -0x20(%rbp), %rax
movsd 0xb59b(%rip), %xmm0     # 0xf018
movsd %xmm0, 0x20(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rax)
movq -0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rax)
movq -0x38(%rbp), %rdi
callq 0x21b0
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)