// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/Parser.cpp
// Function: Parser::ParseFullstateMsg(char*)
void Parser::ParseFullstateMsg(char *msg) {
  //(fullstate 336 (pmode goal_l) (vmode high narrow) (count 0 0 313 0 1 290 8
  //743) (arm (movable 0) (expires 0) (target 0 0) (count 0)) (score 1 0)
  //((b) 52.6578 -4.41664 0 0)
  //((p l 1 g 8) -47.5 0 0 0 -66.8915 -80 (stamina 8000 0.829636 1 130600))
  //((p l 2 4) -25 -13 7.7863e-25 4.77769e-24 151.664 34 (stamina 8000 0.974746
  //1 123249))
  //((p l 3 12) -5.00073 -8.01793 -1.54512e-19 -8.12881e-18 -25.8413 -66
  //(stamina 7621.08 0.985774 1 111028))
  //...
  //((p r 11 14) 0.385 -7.01275e-12 -1.15337e-23 -8.33192e-24 46.129 0 (stamina
  //8000 0.933173 1 124249)))

  int time = parser::get_int(&msg);

  if (time != mpObserver->CurrentTime().T()) {
    mpObserver->SetCurrentTime(Time(time, mpObserver->CurrentTime().S()));
  }

  parser::get_word(&msg);
  parser::get_next_word(&msg); // skip 'pmode'

  parser::get_word(&msg);

  {
    static char buffer[MAX_MESSAGE];
    char *end = msg;

    while (*end != ')')
      end++;
    int n = end - msg;
    strncpy(buffer, msg, n * sizeof(char));
    buffer[n] = '\0';

    ParsePlayMode(buffer);

    msg = end;
  }

  parser::get_next_word(&msg); // skip 'vmode'
  parser::get_next_word(&msg); // skip not used view quality

  ViewWidth view_width = VW_None;
  switch (msg[1]) {
  case 'o':
    view_width = VW_Normal;
    break; /* normal */
  case 'a':
    view_width = VW_Narrow;
    break; /* narrow */
  case 'i':
    view_width = VW_Wide;
    break; /* wide   */
  default:
    PARSE_ERROR("Unknown view quality");
    break;
  }

  int kicks = parser::get_int(&msg);
  int dashes = parser::get_int(&msg);
  int turns = parser::get_int(&msg);
  int catchs = parser::get_int(&msg);
  int moves = parser::get_int(&msg);
  int turn_necks = parser::get_int(&msg);
  int change_views = parser::get_int(&msg);
  int says = parser::get_int(&msg);

  int arm_movable_ban = parser::get_int(&msg); // 直到下次手臂能动的剩余周期数
  int arm_expires = parser::get_int(&msg); // 直到手臂动作失效剩余的周期数
  double arm_target_dist = parser::get_double(&msg); // 指向的目标的距离
  AngleDeg arm_target_dir = parser::get_double(&msg); // 指向的目标的方向
  int arm_count = parser::get_int(&msg);              // point count

  mpObserver->SetSensePartialBody(
      view_width,

      kicks, dashes, turns, says, turn_necks, catchs, moves, change_views,

      arm_movable_ban, arm_expires, arm_target_dist, arm_target_dir, arm_count,

      mpObserver->CurrentTime());

  for (int i = 1; i <= TEAMSIZE; ++i) {
    mpObserver->Teammate_Fullstate(i).SetIsAlive(false);
    mpObserver->Opponent_Fullstate(i).SetIsAlive(false);
  }

  msg = strstr(msg, "((");

  while (msg != 0) {                           // 直到没有object为止
    msg += 2;                                  // 跳过 ((
    ObjType obj = ParseObjType_Fullstate(msg); // 获得object的类型
    msg = strchr(msg, ')');
    ObjProperty_Fullstate prop =
        ParseObjProperty_Fullstate(msg + 1); // 获得object的属性

    switch (obj.type) {
    case OBJ_Ball:
      mpObserver->Ball_Fullstate().UpdatePos(Vector(prop.x, prop.y), 0, 1.0);
      mpObserver->Ball_Fullstate().UpdateVel(Vector(prop.vx, prop.vy), 0, 1.0);
      break;
    case OBJ_Player:
      if (obj.side == mpObserver->OurSide()) {
        mpObserver->Teammate_Fullstate(obj.num).UpdatePlayerType(
            obj.player_type);
        mpObserver->Teammate_Fullstate(obj.num).SetIsAlive(true);
        mpObserver->Teammate_Fullstate(obj.num).UpdatePos(
            Vector(prop.x, prop.y), 0, 1.0);
        mpObserver->Teammate_Fullstate(obj.num).UpdateVel(
            Vector(prop.vx, prop.vy), 0, 1.0);
        mpObserver->Teammate_Fullstate(obj.num).UpdateBodyDir(prop.body_dir, 0,
                                                              1.0);
        mpObserver->Teammate_Fullstate(obj.num).UpdateNeckDir(prop.head_dir, 0,
                                                              1.0);
        mpObserver->Teammate_Fullstate(obj.num).UpdateStamina(prop.stamina);
        mpObserver->Teammate_Fullstate(obj.num).UpdateEffort(prop.effort);
        mpObserver->Teammate_Fullstate(obj.num).UpdateRecovery(prop.recovery);
        mpObserver->Teammate_Fullstate(obj.num).UpdateCapacity(prop.capacity);
        mpObserver->Teammate_Fullstate(obj.num).UpdateCardType(prop.card_type);

        if (prop.pointing) {
          mpObserver->Teammate_Fullstate(obj.num).UpdateArmPoint(
              prop.point_dir, 0, 1.0, 0.0, 0, 0);
          // TODO:
          // 这个接口不好，因为是看不到dist，ban等信息的，这些要自己算然后维护
        }
        if (prop.tackling) {
          if (mpObserver->Teammate_Fullstate(obj.num).GetTackleBan() == 0) {
            mpObserver->Teammate_Fullstate(obj.num).UpdateTackleBan(
                ServerParam::instance().tackleCycles() - 1);
          }
        } else {
          mpObserver->Teammate_Fullstate(obj.num).UpdateTackleBan(0);
        }
        if (prop.lying) {
          if (mpObserver->Teammate_Fullstate(obj.num).GetFoulChargedCycle() ==
              0) {
            mpObserver->Teammate_Fullstate(obj.num).UpdateFoulChargedCycle(
                ServerParam::instance().foulCycles() - 1);
          }
        } else {
          mpObserver->Teammate_Fullstate(obj.num).UpdateFoulChargedCycle(0);
        }
      } else {
        mpObserver->Opponent_Fullstate(obj.num).UpdatePlayerType(
            obj.player_type);
        mpObserver->Opponent_Fullstate(obj.num).SetIsAlive(true);
        mpObserver->Opponent_Fullstate(obj.num).UpdatePos(
            Vector(prop.x, prop.y), 0, 1.0);
        mpObserver->Opponent_Fullstate(obj.num).UpdateVel(
            Vector(prop.vx, prop.vy), 0, 1.0);
        mpObserver->Opponent_Fullstate(obj.num).UpdateBodyDir(prop.body_dir, 0,
                                                              1.0);
        mpObserver->Opponent_Fullstate(obj.num).UpdateNeckDir(prop.head_dir, 0,
                                                              1.0);
        mpObserver->Opponent_Fullstate(obj.num).UpdateStamina(prop.stamina);
        mpObserver->Opponent_Fullstate(obj.num).UpdateEffort(prop.effort);
        mpObserver->Opponent_Fullstate(obj.num).UpdateRecovery(prop.recovery);
        mpObserver->Opponent_Fullstate(obj.num).UpdateCapacity(prop.capacity);
        mpObserver->Opponent_Fullstate(obj.num).UpdateCardType(prop.card_type);

        if (prop.pointing) {
          mpObserver->Opponent_Fullstate(obj.num).UpdateArmPoint(
              prop.point_dir, 0, 1.0, 0.0, 0, 0);
          // TODO:
          // 这个接口不好，因为是看不到dist，ban等信息的，这些要自己算然后维护
        }
        if (prop.tackling) {
          if (mpObserver->Opponent_Fullstate(obj.num).GetTackleBan() == 0) {
            mpObserver->Opponent_Fullstate(obj.num).UpdateTackleBan(
                ServerParam::instance().tackleCycles() - 1);
          }
        } else {
          mpObserver->Opponent_Fullstate(obj.num).UpdateTackleBan(0);
        }
        if (prop.lying) {
          if (mpObserver->Opponent_Fullstate(obj.num).GetFoulChargedCycle() ==
              0) {
            mpObserver->Opponent_Fullstate(obj.num).UpdateFoulChargedCycle(
                ServerParam::instance().foulCycles() - 1);
          }
        } else {
          mpObserver->Opponent_Fullstate(obj.num).UpdateFoulChargedCycle(0);
        }
      }
      break;
    default:
      break;
    }
    msg = strstr(msg, "(("); // 下一个object
  }

  mpObserver->mReceiveFullstateMsg = true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, -0x30(%rbp)
movb (%rsi), %cl
movsbl %cl, %edx
addl $-0x30, %edx
movabsq $0x680000000001, %r13   # imm = 0x680000000001
cmpl $0xa, %edx
jb 0x413a9
movq -0x30(%rbp), %rdx
cmpb $0x2e, %cl
ja 0x41391
movzbl %cl, %ecx
btq %rcx, %r13
jb 0x413a5
movb 0x1(%rax), %cl
incq %rax
movsbl %cl, %esi
addl $-0x30, %esi
movq %rax, %rdx
cmpl $0xa, %esi
jae 0x41383
movq %rdx, -0x30(%rbp)
leaq -0x30(%rbp), %rsi
movq %rax, %rdi
movl $0xa, %edx
callq 0x9680
movq 0x10(%rbx), %rcx
cmpl %eax, 0xc(%rcx)
je 0x413d3
movl 0x10(%rcx), %edx
shlq $0x20, %rdx
movl %eax, %eax
orq %rdx, %rax
movq %rax, 0xc(%rcx)
movq -0x30(%rbp), %r15
movsbl (%r15), %r14d
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x41409
testl %eax, %eax
jne 0x41409
movsbl 0x1(%r15), %r14d
incq %r15
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x41405
testl %eax, %eax
je 0x413ec
movq %r15, -0x30(%rbp)
movq -0x30(%rbp), %r15
movb (%r15), %r14b
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
je 0x41435
movb 0x1(%r15), %r14b
incq %r15
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
jne 0x4141d
movq %r15, -0x30(%rbp)
testb %r14b, %r14b
je 0x41459
incq %r15
movq %r15, -0x30(%rbp)
movsbl (%r15), %r14d
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x41459
incq %r15
testl %eax, %eax
je 0x4143d
movq -0x30(%rbp), %r15
movsbl (%r15), %r14d
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x4148f
testl %eax, %eax
jne 0x4148f
movsbl 0x1(%r15), %r14d
incq %r15
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x4148b
testl %eax, %eax
je 0x41472
movq %r15, -0x30(%rbp)
movq -0x30(%rbp), %rsi
leaq -0x1(%rsi), %r12
movabsq $-0x100000000, %r14     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r14
cmpb $0x29, 0x1(%r12)
leaq 0x1(%r12), %r12
jne 0x414ab
sarq $0x20, %r14
leaq 0x31728a(%rip), %r15    # 0x358750
movq %r15, %rdi
movq %r14, %rdx
callq 0x9270
movb $0x0, (%r14,%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4280a
movq %r12, -0x30(%rbp)
movb (%r12), %r14b
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
je 0x4150f
movb 0x1(%r12), %r14b
incq %r12
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
jne 0x414f6
movq %r12, -0x30(%rbp)
testb %r14b, %r14b
je 0x41534
incq %r12
movq %r12, -0x30(%rbp)
movsbl (%r12), %r14d
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x41534
incq %r12
testl %eax, %eax
je 0x41517
movq -0x30(%rbp), %r15
movb (%r15), %r14b
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
je 0x41560
movb 0x1(%r15), %r14b
incq %r15
movsbl %r14b, %edi
callq 0x97c0
testl %eax, %eax
jne 0x41548
movq %r15, -0x30(%rbp)
testb %r14b, %r14b
je 0x41584
incq %r15
movq %r15, -0x30(%rbp)
movsbl (%r15), %r14d
movl %r14d, %edi
callq 0x97c0
testl %r14d, %r14d
je 0x41584
incq %r15
testl %eax, %eax
je 0x41568
movq -0x30(%rbp), %rdi
movzbl 0x1(%rdi), %eax
cmpl $0x61, %eax
je 0x415ab
cmpl $0x69, %eax
je 0x415a4
xorl %esi, %esi
cmpl $0x6f, %eax
jne 0x415b0
movl $0x2, %esi
jmp 0x415b0
movl $0x3, %esi
jmp 0x415b0
movl $0x1, %esi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
movl %esi, -0x44(%rbp)
jb 0x415e9
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x415d1
movzbl %al, %eax
btq %rax, %r13
jb 0x415e5
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x415c4
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0x118(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4163a
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41622
movzbl %al, %eax
btq %rax, %r13
jb 0x41636
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41615
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0x110(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4168b
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41673
movzbl %al, %eax
btq %rax, %r13
jb 0x41687
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41666
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0x108(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x416dc
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x416c4
movzbl %al, %eax
btq %rax, %r13
jb 0x416d8
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x416b7
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0x100(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4172d
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41715
movzbl %al, %eax
btq %rax, %r13
jb 0x41729
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41708
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0xf8(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4177e
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41766
movzbl %al, %eax
btq %rax, %r13
jb 0x4177a
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41759
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0xf0(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x417cf
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x417b7
movzbl %al, %eax
btq %rax, %r13
jb 0x417cb
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x417aa
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, -0xe8(%rbp)
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x41820
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41808
movzbl %al, %eax
btq %rax, %r13
jb 0x4181c
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x417fb
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, %r15
movq (%r14), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4186d
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x41855
movzbl %al, %eax
btq %rax, %r13
jb 0x41869
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41848
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r12
movq %r12, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, %r14
movq (%r12), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x418bb
movq -0x30(%rbp), %rcx
cmpb $0x2e, %al
ja 0x418a3
movzbl %al, %eax
btq %rax, %r13
jb 0x418b7
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41896
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r13
movq %r13, %rsi
movl $0xa, %edx
callq 0x9680
movq %rax, %r12
movq (%r13), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x41913
movq -0x30(%rbp), %rcx
movabsq $0x680000000001, %rsi   # imm = 0x680000000001
cmpb $0x2e, %al
ja 0x418fb
movzbl %al, %eax
btq %rax, %rsi
jb 0x4190f
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x418ee
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r13
movq %r13, %rsi
callq 0x93a0
movsd %xmm0, -0xe0(%rbp)
movq (%r13), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x4196b
movq -0x30(%rbp), %rcx
movabsq $0x680000000001, %rsi   # imm = 0x680000000001
cmpb $0x2e, %al
ja 0x41953
movzbl %al, %eax
btq %rax, %rsi
jb 0x41967
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x41946
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %r13
movq %r13, %rsi
callq 0x93a0
movsd %xmm0, -0xd8(%rbp)
movq (%r13), %rdi
movb (%rdi), %al
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x419c3
movq -0x30(%rbp), %rcx
movabsq $0x680000000001, %rsi   # imm = 0x680000000001
cmpb $0x2e, %al
ja 0x419ab
movzbl %al, %eax
btq %rax, %rsi
jb 0x419bf
movb 0x1(%rdi), %al
incq %rdi
movsbl %al, %edx
addl $-0x30, %edx
movq %rdi, %rcx
cmpl $0xa, %edx
jae 0x4199e
movq %rcx, -0x30(%rbp)
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x9680
movq 0x10(%rbx), %rdi
movl -0x44(%rbp), %esi
movq -0x118(%rbp), %rdx
movq -0x110(%rbp), %rcx
movq -0x108(%rbp), %r8
movl %r15d, %r9d
movsd -0xe0(%rbp), %xmm0
movsd -0xd8(%rbp), %xmm1
pushq 0xc(%rdi)
pushq %rax
pushq %r12
pushq %r14
pushq -0xe8(%rbp)
pushq -0xf8(%rbp)
pushq -0x100(%rbp)
pushq -0xf0(%rbp)
callq 0x3cdb2
addq $0x40, %rsp
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x10(%rbx), %r15
leaq (%r15,%r13), %r14
addq $0x35e8, %r14           # imm = 0x35E8
movb %r12b, 0x112(%r14)
leaq 0x35f0(%r15,%r13), %rsi
movl 0x10(%rsi), %edx
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0xf682
addq %r13, %r15
addq $0x3618, %r15           # imm = 0x3618
movl 0x10(%r15), %edx
xorpd %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
callq 0xf64c
movq %r12, 0x78(%r15)
movq %r12, 0x90(%r15)
movq 0x10(%rbx), %r15
leaq (%r15,%r13), %r14
addq $0x4610, %r14           # imm = 0x4610
movb %r12b, 0x112(%r14)
leaq 0x4618(%r15,%r13), %rsi
movl 0x10(%rsi), %edx
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0xf682
addq %r13, %r15
addq $0x4640, %r15           # imm = 0x4640
movl 0x10(%r15), %edx
xorpd %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
callq 0xf64c
movq %r12, 0x78(%r15)
movq %r12, 0x90(%r15)
addq $0x178, %r13            # imm = 0x178
cmpq $0x1028, %r13           # imm = 0x1028
jne 0x41a2f
movq -0x30(%rbp), %rdi
leaq 0x2af03(%rip), %rsi     # 0x6c9fb
callq 0x9140
movq %rax, %r14
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x4218f
leaq -0x5c(%rbp), %r13
leaq -0xd0(%rbp), %r12
addq $0x2, %r14
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x42e8c
movq %r14, %rdi
movl $0x29, %esi
callq 0x91e0
movq %rax, %r14
leaq 0x1(%rax), %rdx
movq %r12, %rdi
callq 0x42f08
movl -0x5c(%rbp), %eax
cmpl $0x4, %eax
je 0x41bb2
cmpl $0x1, %eax
jne 0x42174
movq 0x10(%rbx), %rdi
movl $0x3570, %eax           # imm = 0x3570
addq %rax, %rdi
movups -0xd0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %r15
movq %r15, %rsi
xorl %edx, %edx
movsd 0x294d9(%rip), %xmm0    # 0x6b058
callq 0xf682
movq 0x10(%rbx), %rdi
movl $0x3570, %eax           # imm = 0x3570
addq %rax, %rdi
movups -0xc0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
movq %r15, %rsi
xorl %edx, %edx
movsd 0x294b0(%rip), %xmm0    # 0x6b058
callq 0xf64c
jmp 0x42174
movb -0x50(%rbp), %cl
movq 0x10(%rbx), %rax
cmpb 0x29(%rax), %cl
jne 0x41cfb
movslq -0x4c(%rbp), %r15
imulq $0x178, %r15, %rdx      # imm = 0x178
movl -0x48(%rbp), %ecx
cmpl %ecx, 0x3584(%rdx,%rax)
je 0x41c3d
leaq (%rdx,%rax), %r13
addq $0x3470, %r13           # imm = 0x3470
movl %ecx, 0x114(%r13)
callq 0x450ba
movq 0x5c38(%rax), %rax
movslq 0x114(%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movsd %xmm0, 0x58(%r13)
callq 0x450ba
movq 0x5c38(%rax), %rax
movslq 0x114(%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3098(%rax,%rcx), %xmm0
movsd %xmm0, 0x60(%r13)
decq %r15
movq 0x10(%rbx), %rax
imulq $0x178, %r15, %r15      # imm = 0x178
movl $0x35e8, %r13d          # imm = 0x35E8
leaq (%rax,%r13), %rdi
addq %r15, %rdi
movb $0x1, 0x36fa(%rax,%r15)
movups -0xd0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %r12
movq %r12, %rsi
xorl %edx, %edx
movsd 0x293db(%rip), %xmm0    # 0x6b058
callq 0xf682
movq 0x10(%rbx), %rdi
addq %r15, %rdi
addq %r13, %rdi
movups -0xc0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
movq %r12, %rsi
xorl %edx, %edx
movsd 0x293b4(%rip), %xmm0    # 0x6b058
callq 0xf64c
movq 0x10(%rbx), %r13
addq %r15, %r13
movsd -0xb0(%rbp), %xmm0
movsd 0x293a0(%rip), %xmm1    # 0x6b060
ucomisd %xmm0, %xmm1
jbe 0x41e34
movsd 0x2939e(%rip), %xmm2    # 0x6b070
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movsd 0x29364(%rip), %xmm3    # 0x6b048
movsd 0x2937c(%rip), %xmm4    # 0x6b068
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x41cec
jmp 0x41e66
movslq -0x4c(%rbp), %r15
imulq $0x178, %r15, %rdx      # imm = 0x178
movl -0x48(%rbp), %ecx
cmpl %ecx, 0x45ac(%rdx,%rax)
je 0x41d76
leaq (%rdx,%rax), %r13
addq $0x4498, %r13           # imm = 0x4498
movl %ecx, 0x114(%r13)
callq 0x450ba
movq 0x5c38(%rax), %rax
movslq 0x114(%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movsd %xmm0, 0x58(%r13)
callq 0x450ba
movq 0x5c38(%rax), %rax
movslq 0x114(%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3098(%rax,%rcx), %xmm0
movsd %xmm0, 0x60(%r13)
decq %r15
movq 0x10(%rbx), %rax
imulq $0x178, %r15, %r15      # imm = 0x178
movl $0x4610, %r13d          # imm = 0x4610
leaq (%rax,%r13), %rdi
addq %r15, %rdi
movb $0x1, 0x4722(%rax,%r15)
movups -0xd0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %r12
movq %r12, %rsi
xorl %edx, %edx
movsd 0x292a2(%rip), %xmm0    # 0x6b058
callq 0xf682
movq 0x10(%rbx), %rdi
addq %r15, %rdi
addq %r13, %rdi
movups -0xc0(%rbp), %xmm0
movups %xmm0, -0x40(%rbp)
movq %r12, %rsi
xorl %edx, %edx
movsd 0x2927b(%rip), %xmm0    # 0x6b058
callq 0xf64c
movq 0x10(%rbx), %r13
addq %r15, %r13
movsd -0xb0(%rbp), %xmm0
movsd 0x29267(%rip), %xmm1    # 0x6b060
ucomisd %xmm0, %xmm1
jbe 0x41fb5
movsd 0x29265(%rip), %xmm2    # 0x6b070
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movsd 0x2922b(%rip), %xmm3    # 0x6b048
movsd 0x29243(%rip), %xmm4    # 0x6b068
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x41e25
jmp 0x41fe7
movsd 0x2920c(%rip), %xmm3    # 0x6b048
ucomisd %xmm3, %xmm0
movsd 0x29228(%rip), %xmm2    # 0x6b070
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movsd 0x2920e(%rip), %xmm4    # 0x6b068
jb 0x41e66
addsd %xmm4, %xmm0
ucomisd %xmm3, %xmm0
jae 0x41e5c
movl $0x35e8, %eax           # imm = 0x35E8
addq %rax, %r13
movsd %xmm0, 0xb0(%r13)
movl $0x0, 0xb8(%r13)
movq %rdx, 0xc0(%r13)
movsd -0xa8(%rbp), %xmm0
ucomisd %xmm0, %xmm1
jbe 0x41f99
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x41e9b
movsd %xmm0, 0x98(%r13)
movl $0x0, 0xa0(%r13)
movq %rdx, 0xa8(%r13)
movsd -0x88(%rbp), %xmm0
movsd %xmm0, 0x78(%r13)
movsd -0x80(%rbp), %xmm0
movsd %xmm0, 0x80(%r13)
movsd -0x78(%rbp), %xmm0
movsd %xmm0, 0x90(%r13)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, 0x88(%r13)
movl -0x64(%rbp), %eax
movl 0x170(%r13), %ecx
testl %ecx, %ecx
je 0x41f10
cmpl $0x2, %eax
jne 0x41f17
cmpl $0x1, %ecx
jne 0x41f17
movl %eax, 0x170(%r13)
cmpb $0x1, -0xa0(%rbp)
jne 0x41f60
movsd -0x90(%rbp), %xmm0
ucomisd %xmm0, %xmm1
jbe 0x41fa9
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x41f2e
xorpd %xmm1, %xmm1
movupd %xmm1, 0xd0(%r13)
movsd %xmm0, 0xe0(%r13)
movl $0x0, 0xe8(%r13)
movq %rdx, 0xf0(%r13)
xorl %eax, %eax
cmpb $0x1, -0x68(%rbp)
jne 0x41f7f
cmpl $0x0, 0xc8(%r13)
jne 0x41f86
callq 0x4a75c
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%r13)
movq 0x10(%rbx), %rax
addq %rax, %r15
addq $0x370c, %r15           # imm = 0x370C
jmp 0x42119
ucomisd %xmm3, %xmm0
jb 0x41ea5
addsd %xmm4, %xmm0
jmp 0x41f99
ucomisd %xmm3, %xmm0
jb 0x41f38
addsd %xmm4, %xmm0
jmp 0x41fa9
movsd 0x2908b(%rip), %xmm3    # 0x6b048
ucomisd %xmm3, %xmm0
movsd 0x290a7(%rip), %xmm2    # 0x6b070
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movsd 0x2908d(%rip), %xmm4    # 0x6b068
jb 0x41fe7
addsd %xmm4, %xmm0
ucomisd %xmm3, %xmm0
jae 0x41fdd
movl $0x4610, %eax           # imm = 0x4610
addq %rax, %r13
movsd %xmm0, 0xb0(%r13)
movl $0x0, 0xb8(%r13)
movq %rdx, 0xc0(%r13)
movsd -0xa8(%rbp), %xmm0
ucomisd %xmm0, %xmm1
jbe 0x42142
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x4201c
movsd %xmm0, 0x98(%r13)
movl $0x0, 0xa0(%r13)
movq %rdx, 0xa8(%r13)
movsd -0x88(%rbp), %xmm0
movsd %xmm0, 0x78(%r13)
movsd -0x80(%rbp), %xmm0
movsd %xmm0, 0x80(%r13)
movsd -0x78(%rbp), %xmm0
movsd %xmm0, 0x90(%r13)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, 0x88(%r13)
movl -0x64(%rbp), %eax
movl 0x170(%r13), %ecx
testl %ecx, %ecx
je 0x42091
cmpl $0x2, %eax
jne 0x42098
cmpl $0x1, %ecx
jne 0x42098
movl %eax, 0x170(%r13)
cmpb $0x1, -0xa0(%rbp)
jne 0x420e5
movsd -0x90(%rbp), %xmm0
ucomisd %xmm0, %xmm1
jbe 0x42152
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x420b3
xorpd %xmm1, %xmm1
movupd %xmm1, 0xd0(%r13)
movsd %xmm0, 0xe0(%r13)
movl $0x0, 0xe8(%r13)
movq %rdx, 0xf0(%r13)
xorl %eax, %eax
cmpb $0x1, -0x68(%rbp)
jne 0x42104
cmpl $0x0, 0xc8(%r13)
jne 0x4210b
callq 0x4a75c
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%r13)
movq 0x10(%rbx), %rax
addq %rax, %r15
addq $0x4734, %r15           # imm = 0x4734
cmpb $0x1, -0x67(%rbp)
jne 0x42162
cmpl $0x0, (%r15)
leaq -0x5c(%rbp), %r13
leaq -0xd0(%rbp), %r12
jne 0x42174
callq 0x4a75c
movl 0x33e8(%rax), %eax
decl %eax
movl %eax, (%r15)
jmp 0x42174
ucomisd %xmm3, %xmm0
jb 0x42026
addsd %xmm4, %xmm0
jmp 0x42142
ucomisd %xmm3, %xmm0
jb 0x420bd
addsd %xmm4, %xmm0
jmp 0x42152
movl $0x0, (%r15)
leaq -0x5c(%rbp), %r13
leaq -0xd0(%rbp), %r12
movq %r14, %rdi
leaq 0x2a87d(%rip), %rsi     # 0x6c9fb
callq 0x9140
movq %rax, %r14
testq %rax, %rax
jne 0x41b18
movq %r14, -0x30(%rbp)
movq 0x10(%rbx), %rax
movb $0x1, 0x8(%rax)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop