// File: /workspace/github_cpp_makefile_star2_O3/harry830622[P]floorplanner/src/floorplanner.cpp
// Function: Floorplanner::SA()
void Floorplanner::SA() {
  const double initial_uphill_probability = 0.99;
  const double r = 0.75;
  const double initial_temperature =
      average_uphill_cost_ / (-1 * log(initial_uphill_probability));
  const int num_perturbations =
      database_.num_macros() * database_.num_macros() * 3;
  const double frozen_temperature = initial_temperature / 1.0e50;
  const double frozen_acceptance_rate = 0.01;
  const double alpha = alpha_;
  const double beta = (1 - alpha);
  const double adaptive_alpha_base = alpha / 4.0;
  const double adaptive_beta_base = beta / 4.0;

  if (is_drawing_) {
    drawing_ = Json::object();
    drawing_["config"] = {{"initialTemperature", initial_temperature},
                          {"r", r},
                          {"numPerturbations", num_perturbations}};
    drawing_["iterations"] = Json::array();
  }

  Floorplan floorplan(best_floorplan_);
  floorplan.Pack(database_);

  if (is_drawing_) {
    drawing_["initialFloorplan"] = floorplan.drawing();
  }

  double adaptive_alpha = adaptive_alpha_base;
  double adaptive_beta = adaptive_beta_base;
  double best_cost = ComputeCost(floorplan, adaptive_alpha, adaptive_beta);
  double last_cost = best_cost;
  double temperature = initial_temperature;
  int nth_iteration = 0;
  while (temperature > frozen_temperature) {
    ++nth_iteration;

    int num_accepted_floorplans = 0;
    int num_feasible_floorplans = 0;

    if (is_drawing_) {
      Json iteration = Json::object();
      iteration["temperature"] = temperature;
      iteration["floorplans"] = Json::array();
      drawing_["iterations"].push_back(iteration);
    }

    for (int i = 0; i < num_perturbations; ++i) {
      Floorplan new_floorplan(floorplan);
      new_floorplan.Perturb(database_);
      new_floorplan.Pack(database_);

      const double cost =
          ComputeCost(new_floorplan, adaptive_alpha, adaptive_beta);
      const double delta_cost = cost - last_cost;
      if (delta_cost < 0) {
        ++num_accepted_floorplans;
        floorplan = new_floorplan;
        last_cost = cost;

        const double outline_width = database_.outline_width();
        const double outline_height = database_.outline_height();
        if (floorplan.width() <= outline_width &&
            floorplan.height() <= outline_height) {
          ++num_feasible_floorplans;
          if (cost < best_cost) {
            best_floorplan_ = floorplan;
            best_cost = cost;
          }
        }

        if (is_drawing_) {
          Json floorplan_drawing = floorplan.drawing();
          floorplan_drawing["isAccepted"] = true;
          floorplan_drawing["cost"] = cost;
          Json& iteration = drawing_["iterations"].back();
          iteration["floorplans"].push_back(floorplan_drawing);
        }
      } else {
        const double p = exp(-1 * delta_cost / temperature);
        if (rand() / static_cast<double>(RAND_MAX) < p) {
          ++num_accepted_floorplans;
          floorplan = new_floorplan;
          last_cost = cost;

          if (is_drawing_) {
            Json floorplan_drawing = floorplan.drawing();
            floorplan_drawing["isAccepted"] = true;
            floorplan_drawing["cost"] = cost;
            Json& iteration = drawing_["iterations"].back();
            iteration["floorplans"].push_back(floorplan_drawing);
          }
        } else {
          if (is_drawing_) {
            Json new_floorplan_drawing = new_floorplan.drawing();
            new_floorplan_drawing["isAccepted"] = false;
            new_floorplan_drawing["cost"] = cost;
            Json& iteration = drawing_["iterations"].back();
            iteration["floorplans"].push_back(new_floorplan_drawing);
          }
        }
      }
    }

    if (is_verbose_) {
      cout << "  nth_iteration: " << nth_iteration << endl;
      cout << "    temperature: " << temperature << endl;
      cout << "    num_accepted_floorplans: " << num_accepted_floorplans
           << endl;
      cout << "    num_feasible_floorplans: " << num_feasible_floorplans
           << endl;
      cout << "    num_perturbations: " << num_perturbations << endl;
      cout << "    adaptive_alpha: " << adaptive_alpha
           << "\tadaptive_beta: " << adaptive_beta << endl;
      cout << "    Best area: " << best_floorplan_.area()
           << "\tBest wirelength: " << best_floorplan_.wirelength() << endl;
    }

    if (num_accepted_floorplans / static_cast<double>(num_perturbations) <
        frozen_acceptance_rate) {
      break;
    }

    adaptive_alpha =
        adaptive_alpha_base +
        (alpha - adaptive_alpha_base) *
            (num_feasible_floorplans / static_cast<double>(num_perturbations));
    adaptive_beta =
        adaptive_beta_base +
        (beta - adaptive_beta_base) *
            (num_feasible_floorplans / static_cast<double>(num_perturbations));

    temperature *= r;

    if (is_drawing_) {
      Json& iteration = drawing_["iterations"].back();
      iteration["numFeasibleFloorplans"] = num_feasible_floorplans;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movq %rdi, %rbx
movsd 0x68(%rdi), %xmm0
divsd 0xfd41(%rip), %xmm0     # 0x217b0
movsd %xmm0, 0x10(%rsp)
movq (%rdi), %rdi
callq 0x8a44
movl %eax, %ebp
movq (%rbx), %rdi
callq 0x8a44
imull %ebp, %eax
leal (%rax,%rax,2), %ebp
movsd 0x8(%rbx), %xmm0
movapd %xmm0, 0x110(%rsp)
cmpb $0x1, 0x31(%rbx)
movl %ebp, 0x24(%rsp)
jne 0x11dd5
leaq 0x358(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xe11c
leaq 0x118(%rbx), %r15
movq %r14, %rdi
callq 0xe5c8
movb 0x118(%rbx), %al
movb (%r14), %cl
movb %cl, 0x118(%rbx)
movb %al, (%r14)
movq 0x120(%rbx), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0x120(%rbx)
movq %rax, 0x8(%r14)
movq %r15, %rdi
callq 0xe5c8
movq %r14, %rdi
callq 0xe0aa
leaq 0x238(%rsp), %rdi
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
leaq 0xfd11(%rip), %rsi      # 0x21837
callq 0x1518f
leaq 0x238(%rsp), %r12
movq %r12, %rdi
callq 0xe5c8
leaq 0x248(%rsp), %r14
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
callq 0x103ca
movq %r14, %rdi
callq 0xe5c8
leaq 0x140(%rsp), %r14
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe11c
leaq 0x150(%rsp), %r14
leaq 0x38(%rsp), %rdi
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
leaq 0xfb3a(%rip), %rsi      # 0x216e1
callq 0x10337
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0xe5c8
leaq 0x48(%rsp), %r13
movb $0x0, (%r13)
movq $0x0, 0x8(%r13)
movsd 0xfbed(%rip), %xmm0     # 0x217c0
movq %r13, %rdi
callq 0x103ca
movq %r13, %rdi
callq 0xe5c8
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe11c
leaq 0x160(%rsp), %r14
leaq 0x338(%rsp), %rdi
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
leaq 0xfc2a(%rip), %rsi      # 0x2184a
callq 0x15222
leaq 0x338(%rsp), %r12
movq %r12, %rdi
callq 0xe5c8
leaq 0x348(%rsp), %r13
movslq 0x24(%rsp), %rax
movb $0x5, (%r13)
movq %rax, 0x8(%r13)
movq %r13, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe5c8
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe11c
leaq 0x328(%rsp), %rdi
leaq 0x140(%rsp), %rsi
movl $0x3, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe11c
leaq 0xfbb9(%rip), %rsi      # 0x2185b
movq %r15, %rdi
callq 0xe258
movq %rax, %r12
leaq 0x328(%rsp), %r14
movq %r14, %rdi
callq 0xe5c8
movb (%r12), %al
movb (%r14), %cl
movb %cl, (%r12)
movb %al, (%r14)
movq 0x8(%r12), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r14)
movq %r12, %rdi
callq 0xe5c8
movq %r14, %rdi
callq 0xe0aa
movl $0x20, %r14d
leaq (%rsp,%r14), %rdi
addq $0x140, %rdi            # imm = 0x140
callq 0xe0aa
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x11cf3
movl $0x10, %r14d
movl 0x24(%rsp), %ebp
leaq (%rsp,%r14), %rdi
addq $0x338, %rdi            # imm = 0x338
callq 0xe0aa
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x11d17
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x38, %rdi
callq 0xe0aa
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x11d37
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x238, %rdi            # imm = 0x238
callq 0xe0aa
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x11d54
leaq 0x318(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0xe11c
leaq 0xfad4(%rip), %rsi      # 0x21862
movq %r15, %rdi
callq 0xe258
movq %rax, %r14
leaq 0x318(%rsp), %r15
movq %r15, %rdi
callq 0xe5c8
movb (%r14), %al
movb (%r15), %cl
movb %cl, (%r14)
movb %al, (%r15)
movq 0x8(%r14), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%r14)
movq %rax, 0x8(%r15)
movq %r14, %rdi
callq 0xe5c8
movq %r15, %rdi
callq 0xe0aa
leaq 0x70(%rbx), %rsi
leaq 0x140(%rsp), %r14
movq %r14, %rdi
movq %rsi, 0x68(%rsp)
callq 0x148ec
movq (%rbx), %rsi
movq %r14, %rdi
callq 0xba40
cmpb $0x1, 0x31(%rbx)
jne 0x11e6e
leaq 0x140(%rsp), %rdi
callq 0xaf56
leaq 0x308(%rsp), %rdi
movq %rax, %rsi
callq 0xf35c
leaq 0x118(%rbx), %rdi
leaq 0xfa43(%rip), %rsi      # 0x2186d
callq 0xe258
movq %rax, %r14
leaq 0x308(%rsp), %r15
movq %r15, %rdi
callq 0xe5c8
movb (%r14), %al
movb (%r15), %cl
movb %cl, (%r14)
movb %al, (%r15)
movq 0x8(%r14), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%r14)
movq %rax, 0x8(%r15)
movq %r14, %rdi
callq 0xe5c8
movq %r15, %rdi
callq 0xe0aa
movsd 0xf91a(%rip), %xmm0     # 0x21790
movapd 0x110(%rsp), %xmm1
subsd %xmm1, %xmm0
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movapd 0xf951(%rip), %xmm0     # 0x217e0
movapd %xmm1, 0x110(%rsp)
mulpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
leaq 0x140(%rsp), %rsi
movq %rbx, %rdi
movapd %xmm0, 0x2e0(%rsp)
callq 0x10c42
movsd %xmm0, 0x18(%rsp)
movsd 0x10(%rsp), %xmm0
movapd %xmm0, %xmm1
divsd 0xf8e3(%rip), %xmm1     # 0x217b8
movsd %xmm1, 0x208(%rsp)
ucomisd %xmm1, %xmm0
jbe 0x12dee
leaq 0x118(%rbx), %rax
movq %rax, 0x28(%rsp)
movl $0x80, %ecx
leaq 0x140(%rsp), %rax
leaq (%rax,%rcx), %rdx
movq %rdx, 0x78(%rsp)
leaq 0x238(%rsp), %r12
addq %r12, %rcx
movq %rcx, 0x138(%rsp)
movl $0x98, %ecx
leaq (%r12,%rcx), %rdx
movq %rdx, 0x88(%rsp)
addq %rcx, %rax
movq %rax, 0x70(%rsp)
addq %rbx, %rcx
movq %rcx, 0x230(%rsp)
leaq 0xb0(%rbx), %rax
movq %rax, 0x228(%rsp)
leaq 0xc8(%rbx), %rax
movq %rax, 0x220(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, 0x128(%rsp)
movapd 0x110(%rsp), %xmm0
movapd 0x2e0(%rsp), %xmm1
subpd %xmm1, %xmm0
movapd %xmm0, 0x110(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x130(%rsp)
movapd %xmm1, 0x1f0(%rsp)
leaq 0xf0(%rbx), %rax
movq %rax, 0x218(%rsp)
leaq 0x108(%rbx), %rax
movq %rax, 0x210(%rsp)
leaq 0x58(%rsp), %r13
leaq 0x38(%rsp), %r14
movl $0x0, 0x34(%rsp)
cmpb $0x1, 0x31(%rbx)
jne 0x120fd
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xe11c
movb $0x0, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movq %r13, %rdi
movsd 0x10(%rsp), %xmm0
callq 0x103ca
movq %r13, %rdi
callq 0xe5c8
movq %r12, %rdi
leaq 0xf85c(%rip), %rsi      # 0x2187e
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0x58(%rsp), %cl
movb %cl, (%r15)
movb %al, 0x58(%rsp)
movq 0x8(%r15), %rax
movq 0x60(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x60(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
leaq 0x100(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0xe11c
movq %r12, %rdi
leaq 0xff65(%rip), %rsi      # 0x21fea
callq 0xe258
movq %rax, %r15
leaq 0x100(%rsp), %r13
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0x100(%rsp), %cl
movb %cl, (%r15)
movb %al, 0x100(%rsp)
movq 0x8(%r15), %rax
movq 0x108(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x108(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movq 0x28(%rsp), %rdi
leaq 0xf77d(%rip), %rsi      # 0x21862
callq 0xe258
movq %rax, %rdi
movq %r12, %rsi
callq 0x14a4e
movq %r12, %rdi
callq 0xe0aa
movapd 0x1f0(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
movapd %xmm0, 0x2f0(%rsp)
testl %ebp, %ebp
jle 0x129fd
xorl %r13d, %r13d
movl %ebp, %r12d
movl $0x0, 0x4(%rsp)
leaq 0x238(%rsp), %r15
movq %r15, %rdi
leaq 0x140(%rsp), %rsi
callq 0x148ec
movq (%rbx), %rsi
movq %r15, %rdi
callq 0xafba
movq (%rbx), %rsi
movq %r15, %rdi
callq 0xba40
movq %rbx, %rdi
movq %r15, %rsi
movapd 0x1f0(%rsp), %xmm0
movapd 0x2f0(%rsp), %xmm1
callq 0x10c42
movsd %xmm0, 0x8(%rsp)
subsd 0x18(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x1252d
movupd 0x238(%rsp), %xmm0
movupd 0x248(%rsp), %xmm1
movapd %xmm0, 0x140(%rsp)
movapd %xmm1, 0x150(%rsp)
movl 0x258(%rsp), %eax
movl %eax, 0x160(%rsp)
leaq 0x168(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x150a0
leaq 0x180(%rsp), %rdi
leaq 0x278(%rsp), %rsi
callq 0x14dbe
leaq 0x198(%rsp), %rdi
leaq 0x290(%rsp), %rsi
callq 0x14ea2
movq 0x78(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x14f5c
movq %r14, %rdi
movq 0x88(%rsp), %rsi
callq 0xf35c
movq %r14, %rdi
callq 0xe5c8
movb 0x1d8(%rsp), %al
movb 0x38(%rsp), %cl
movb %cl, 0x1d8(%rsp)
movb %al, 0x38(%rsp)
movq 0x1e0(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x1e0(%rsp)
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rdi
callq 0xe5c8
movq %r14, %rdi
callq 0xe0aa
movq (%rbx), %rdi
callq 0x89fe
movsd %xmm0, 0x18(%rsp)
movq (%rbx), %rdi
callq 0x8a04
movsd %xmm0, 0x80(%rsp)
leaq 0x140(%rsp), %rdi
callq 0xaf68
movsd 0x18(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x123c3
leaq 0x140(%rsp), %rdi
callq 0xaf6e
movsd 0x80(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x123c3
incl 0x4(%rsp)
movsd 0x130(%rsp), %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x123c3
movapd 0x140(%rsp), %xmm0
movapd 0x150(%rsp), %xmm1
movq 0x68(%rsp), %rax
movupd %xmm1, 0x10(%rax)
movupd %xmm0, (%rax)
movl 0x160(%rsp), %eax
movl %eax, 0x90(%rbx)
movq 0x230(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x150a0
movq 0x228(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x14dbe
movq 0x220(%rsp), %rdi
leaq 0x198(%rsp), %rsi
callq 0x14ea2
movq 0x218(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x14f5c
movq %r14, %rdi
movq 0x70(%rsp), %rsi
callq 0xf35c
movq %r14, %rdi
callq 0xe5c8
movb 0x108(%rbx), %al
movb 0x38(%rsp), %cl
movb %cl, 0x108(%rbx)
movb %al, 0x38(%rsp)
movq 0x110(%rbx), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x110(%rbx)
movq %rax, 0x40(%rsp)
movq 0x210(%rsp), %rdi
callq 0xe5c8
movq %r14, %rdi
callq 0xe0aa
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x130(%rsp)
incl %r13d
cmpb $0x1, 0x31(%rbx)
jne 0x127cb
movl %r13d, %ebp
leaq 0x140(%rsp), %rdi
callq 0xaf56
movq %r14, %rdi
movq %rax, %rsi
callq 0xf35c
movb $0x4, 0xf0(%rsp)
movq $0x1, 0xf8(%rsp)
leaq 0xf0(%rsp), %r13
movq %r13, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xf469(%rip), %rsi      # 0x2188a
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xf0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xf0(%rsp)
movq 0x8(%r15), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xf8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movb $0x0, 0xe0(%rsp)
movq $0x0, 0xe8(%rsp)
leaq 0xe0(%rsp), %r13
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x103ca
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xf3ec(%rip), %rsi      # 0x21895
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xe0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xe0(%rsp)
movq 0x8(%r15), %rax
movq 0xe8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xe8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movq 0x28(%rsp), %rdi
leaq 0xf361(%rip), %rsi      # 0x21862
callq 0xe258
movq %rax, %rdi
callq 0x14b6c
movq %rax, %rdi
leaq 0xfad2(%rip), %rsi      # 0x21fea
callq 0xe258
movq %rax, %rdi
movq %r14, %rsi
callq 0x14a4e
jmp 0x127b2
xorpd 0xf2bb(%rip), %xmm0     # 0x217f0
divsd 0x10(%rsp), %xmm0
callq 0x6660
movsd %xmm0, 0x80(%rsp)
callq 0x6100
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0xf26b(%rip), %xmm0     # 0x217c8
movsd 0x80(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x127dc
movupd 0x238(%rsp), %xmm0
movupd 0x248(%rsp), %xmm1
movapd %xmm0, 0x140(%rsp)
movapd %xmm1, 0x150(%rsp)
movl 0x258(%rsp), %eax
movl %eax, 0x160(%rsp)
leaq 0x168(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x150a0
leaq 0x180(%rsp), %rdi
leaq 0x278(%rsp), %rsi
callq 0x14dbe
leaq 0x198(%rsp), %rdi
leaq 0x290(%rsp), %rsi
callq 0x14ea2
movq 0x78(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x14f5c
movq %r14, %rdi
movq 0x88(%rsp), %rsi
callq 0xf35c
incl %r13d
movq %r14, %rdi
callq 0xe5c8
movb 0x1d8(%rsp), %al
movb 0x38(%rsp), %cl
movb %cl, 0x1d8(%rsp)
movb %al, 0x38(%rsp)
movq 0x1e0(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x1e0(%rsp)
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rdi
callq 0xe5c8
movq %r14, %rdi
callq 0xe0aa
cmpb $0x1, 0x31(%rbx)
jne 0x127cb
movl %r13d, %ebp
leaq 0x140(%rsp), %rdi
callq 0xaf56
movq %r14, %rdi
movq %rax, %rsi
callq 0xf35c
movb $0x4, 0xd0(%rsp)
movq $0x1, 0xd8(%rsp)
leaq 0xd0(%rsp), %r13
movq %r13, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xf1df(%rip), %rsi      # 0x2188a
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xd0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xd0(%rsp)
movq 0x8(%r15), %rax
movq 0xd8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xd8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movb $0x0, 0xc0(%rsp)
movq $0x0, 0xc8(%rsp)
leaq 0xc0(%rsp), %r13
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x103ca
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xf162(%rip), %rsi      # 0x21895
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xc0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xc0(%rsp)
movq 0x8(%r15), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xc8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movq 0x28(%rsp), %rdi
leaq 0xf0d7(%rip), %rsi      # 0x21862
callq 0xe258
movq %rax, %rdi
callq 0x14b6c
movq %rax, %rdi
leaq 0xf848(%rip), %rsi      # 0x21fea
callq 0xe258
movq %rax, %rdi
movq %r14, %rsi
callq 0x14a4e
movq %r14, %rdi
callq 0xe0aa
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
jmp 0x12946
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
jmp 0x12949
cmpb $0x1, 0x31(%rbx)
jne 0x12949
movl %r13d, %ebp
leaq 0x238(%rsp), %rdi
callq 0xaf56
movq %r14, %rdi
movq %rax, %rsi
callq 0xf35c
movb $0x4, 0xb0(%rsp)
movq $0x0, 0xb8(%rsp)
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xf053(%rip), %rsi      # 0x2188a
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xb0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xb0(%rsp)
movq 0x8(%r15), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xb8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movb $0x0, 0xa0(%rsp)
movq $0x0, 0xa8(%rsp)
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x103ca
movq %r13, %rdi
callq 0xe5c8
movq %r14, %rdi
leaq 0xefd6(%rip), %rsi      # 0x21895
callq 0xe258
movq %rax, %r15
movq %r13, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0xa0(%rsp), %cl
movb %cl, (%r15)
movb %al, 0xa0(%rsp)
movq 0x8(%r15), %rax
movq 0xa8(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0xa8(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r13, %rdi
callq 0xe0aa
movq 0x28(%rsp), %rdi
leaq 0xef4b(%rip), %rsi      # 0x21862
callq 0xe258
movq %rax, %rdi
callq 0x14b6c
movq %rax, %rdi
leaq 0xf6bc(%rip), %rsi      # 0x21fea
callq 0xe258
movq %rax, %rdi
movq %r14, %rsi
callq 0x14a4e
movq %r14, %rdi
callq 0xe0aa
movl %ebp, %r13d
movq 0x88(%rsp), %rdi
callq 0xe0aa
movq 0x2b8(%rsp), %rdi
testq %rdi, %rdi
je 0x12973
movq 0x2c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
movq 0x290(%rsp), %rdi
testq %rdi, %rdi
je 0x129b8
movq 0x2b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
xorl %eax, %eax
movq %rax, 0x290(%rsp)
movl %eax, 0x298(%rsp)
movq %rax, 0x2a0(%rsp)
movl %eax, 0x2a8(%rsp)
movq %rax, 0x2b0(%rsp)
movq 0x278(%rsp), %rdi
testq %rdi, %rdi
je 0x129d5
movq 0x288(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
movq 0x260(%rsp), %rdi
testq %rdi, %rdi
je 0x129f2
movq 0x270(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
decl %r12d
jne 0x12129
jmp 0x12a08
movl $0x0, 0x4(%rsp)
xorl %r13d, %r13d
incl 0x34(%rsp)
cmpb $0x0, 0x30(%rbx)
movl 0x24(%rsp), %ebp
je 0x12cb3
movl $0x11, %edx
movq 0x1a57a(%rip), %rdi     # 0x2cfa0
leaq 0xee6d(%rip), %rsi      # 0x2189a
callq 0x63f0
movq 0x1a567(%rip), %rdi     # 0x2cfa0
movl 0x34(%rsp), %esi
callq 0x6620
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0x11, %edx
movq 0x1a528(%rip), %rdi     # 0x2cfa0
leaq 0xee2d(%rip), %rsi      # 0x218ac
callq 0x63f0
movq 0x1a515(%rip), %rdi     # 0x2cfa0
movsd 0x10(%rsp), %xmm0
callq 0x6580
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0x1d, %edx
movq 0x1a4d4(%rip), %rdi     # 0x2cfa0
leaq 0xedeb(%rip), %rsi      # 0x218be
callq 0x63f0
movq 0x1a4c1(%rip), %rdi     # 0x2cfa0
movl %r13d, %esi
callq 0x6620
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0x1d, %edx
movq 0x1a483(%rip), %rdi     # 0x2cfa0
leaq 0xedb8(%rip), %rsi      # 0x218dc
callq 0x63f0
movq 0x1a470(%rip), %rdi     # 0x2cfa0
movl 0x4(%rsp), %esi
callq 0x6620
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0x17, %edx
movq 0x1a431(%rip), %rdi     # 0x2cfa0
leaq 0xed84(%rip), %rsi      # 0x218fa
callq 0x63f0
movq 0x1a41e(%rip), %rdi     # 0x2cfa0
movl %ebp, %esi
callq 0x6620
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0x14, %edx
movq 0x1a3e1(%rip), %rdi     # 0x2cfa0
leaq 0xed4c(%rip), %rsi      # 0x21912
callq 0x63f0
movq 0x1a3ce(%rip), %rdi     # 0x2cfa0
movapd 0x1f0(%rsp), %xmm0
callq 0x6580
movq %rax, %r15
movl $0x10, %edx
movq %rax, %rdi
leaq 0xed35(%rip), %rsi      # 0x21927
callq 0x63f0
movq %r15, %rdi
movapd 0x2f0(%rsp), %xmm0
callq 0x6580
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
movl $0xf, %edx
movq 0x1a362(%rip), %rdi     # 0x2cfa0
leaq 0xecf3(%rip), %rsi      # 0x21938
callq 0x63f0
movq 0x68(%rsp), %rdi
callq 0xaf74
movq 0x1a345(%rip), %rdi     # 0x2cfa0
callq 0x6580
movq %rax, %r15
movl $0x12, %edx
movq %rax, %rdi
leaq 0xecd6(%rip), %rsi      # 0x21948
callq 0x63f0
movq 0x68(%rsp), %rdi
callq 0xaf80
movq %r15, %rdi
callq 0x6580
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6370
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6270
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
divsd 0x128(%rsp), %xmm0
movsd 0xeb04(%rip), %xmm1     # 0x217d0
ucomisd %xmm0, %xmm1
leaq 0x58(%rsp), %r13
leaq 0x238(%rsp), %r12
ja 0x12dee
movsd 0x10(%rsp), %xmm0
mulsd 0xeacf(%rip), %xmm0     # 0x217c0
movsd %xmm0, 0x10(%rsp)
cmpb $0x1, 0x31(%rbx)
jne 0x12da8
movq 0x28(%rsp), %rdi
leaq 0xeb55(%rip), %rsi      # 0x21862
callq 0xe258
movq %rax, %rdi
callq 0x14b6c
movq %rax, %r15
movslq 0x4(%rsp), %rax
movb $0x5, 0x90(%rsp)
movq %rax, 0x98(%rsp)
leaq 0x90(%rsp), %r12
movq %r12, %rdi
callq 0xe5c8
movq %r12, %rdi
callq 0xe5c8
movq %r15, %rdi
leaq 0xec07(%rip), %rsi      # 0x2195b
callq 0xe258
movq %rax, %r15
movq %r12, %rdi
callq 0xe5c8
movb (%r15), %al
movb 0x90(%rsp), %cl
movb %cl, (%r15)
movb %al, 0x90(%rsp)
movq 0x8(%r15), %rax
movq 0x98(%rsp), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x98(%rsp)
movq %r15, %rdi
callq 0xe5c8
movq %r12, %rdi
callq 0xe0aa
leaq 0x238(%rsp), %r12
xorps %xmm0, %xmm0
cvtsi2sdl 0x4(%rsp), %xmm0
divsd 0x128(%rsp), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd 0x110(%rsp), %xmm0
addpd 0x2e0(%rsp), %xmm0
movapd %xmm0, 0x1f0(%rsp)
movsd 0x10(%rsp), %xmm0
ucomisd 0x208(%rsp), %xmm0
ja 0x11fd6
leaq 0x1d8(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0aa
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x12e17
movq 0x1d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0x12e5c
movq 0x1b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
xorl %eax, %eax
movq %rax, 0x198(%rsp)
movl %eax, 0x1a0(%rsp)
movq %rax, 0x1a8(%rsp)
movl %eax, 0x1b0(%rsp)
movq %rax, 0x1b8(%rsp)
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x12e79
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0x12e96
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x6390
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x318(%rsp), %rdi
callq 0xe0aa
jmp 0x130a2
movq %rax, %rbx
leaq 0x308(%rsp), %rdi
jmp 0x12ffe
movq %rax, %rbx
leaq 0x328(%rsp), %rdi
callq 0xe0aa
jmp 0x12ee2
movq %rax, %rbx
movl $0x20, %r15d
leaq (%rsp,%r15), %rdi
addq $0x140, %rdi            # imm = 0x140
callq 0xe0aa
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x12ee8
xorl %ebp, %ebp
jmp 0x12f0c
movq %rax, %rbx
movb $0x1, %bpl
movl $0x10, %r15d
leaq (%rsp,%r15), %rdi
addq $0x338, %rdi            # imm = 0x338
callq 0xe0aa
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x12f12
jmp 0x12f36
jmp 0x12f30
movq %rax, %rbx
movb $0x1, %bpl
movl $0x10, %r15d
leaq (%rsp,%r15), %rdi
addq $0x38, %rdi
callq 0xe0aa
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x12f3c
jmp 0x12f5d
jmp 0x12f57
movq %rax, %rbx
movb $0x1, %bpl
movl $0x10, %r15d
leaq (%rsp,%r15), %rdi
addq $0x238, %rdi            # imm = 0x238
callq 0xe0aa
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x12f63
leaq 0x140(%rsp), %r15
cmpq %r14, %r15
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x130a2
addq $-0x10, %r14
movq %r14, %rdi
callq 0xe0aa
cmpq %r15, %r14
jne 0x12f98
jmp 0x130a2
movq %rax, %rbx
jmp 0x130a2
jmp 0x1307a
jmp 0x1307a
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
jmp 0x12ffe
jmp 0x1307a
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
jmp 0x12fe7
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xe0aa
jmp 0x12ff6
jmp 0x1307a
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
callq 0xe0aa
jmp 0x13095
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
jmp 0x13058
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
jmp 0x13058
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x13058
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
jmp 0x13058
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x13058
jmp 0x13085
jmp 0x13085
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0xe0aa
jmp 0x1306a
jmp 0x13085
jmp 0x13085
jmp 0x13067
jmp 0x13067
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xe0aa
jmp 0x13088
jmp 0x1307a
jmp 0x13085
movq %rax, %rbx
jmp 0x13095
jmp 0x13085
jmp 0x13085
jmp 0x13085
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
callq 0x149e4
leaq 0x140(%rsp), %rdi
callq 0x149e4
movq %rbx, %rdi
callq 0x6640