// File: /workspace/github_c_makefile_star2_O0/radforddc[P]icpc_siggen/icpc_fieldgen_opt.c
// Function: grid_init
int grid_init(MJD_Siggen_Setup *setup) {
  float  grid = setup->xtal_grid;
  int    L  = lrint(setup->xtal_length/grid)+3;
  int    R  = lrint(setup->xtal_radius/grid)+3;
  int    i, j;
  float  r, z;


  /* first malloc arrays in setup */
  if ((setup->impurity   = malloc(L * sizeof(*setup->impurity)))   == NULL ||
      (setup->eps        = malloc(L * sizeof(*setup->eps)))        == NULL ||
      (setup->eps_dr     = malloc(L * sizeof(*setup->eps_dr)))     == NULL ||
      (setup->eps_dz     = malloc(L * sizeof(*setup->eps_dz)))     == NULL ||
      (setup->v[0]       = malloc(L * sizeof(*setup->v[0])))       == NULL ||
      (setup->v[1]       = malloc(L * sizeof(*setup->v[1])))       == NULL ||
      (setup->dr[0]      = malloc(L * sizeof(*setup->dr[0])))      == NULL ||
      (setup->dr[1]      = malloc(L * sizeof(*setup->dr[1])))      == NULL ||
      (setup->dz[0]      = malloc(L * sizeof(*setup->dz[0])))      == NULL ||
      (setup->dz[1]      = malloc(L * sizeof(*setup->dz[1])))      == NULL ||
      (setup->undepleted = malloc(R * sizeof(*setup->undepleted))) == NULL ||
      (setup->s1         = malloc(R * sizeof(*setup->s1)))         == NULL ||
      (setup->s2         = malloc(R * sizeof(*setup->s2)))         == NULL ||
      (setup->vsave      = malloc(L * sizeof(*setup->vsave)))      == NULL ||
      (setup->point_type = malloc(L * sizeof(*setup->point_type))) == NULL) {
    printf("malloc failed\n");
    return -1;
  }
  /* start from i=1 so that i=0 can be used for reflection symmetry around r=0 or z=0 */
  for (i = 1; i < L; i++) {
    if ((setup->impurity[i]   = malloc(R * sizeof(**setup->impurity)))   == NULL ||
        (setup->v[0][i]       = malloc(R * sizeof(**setup->v[0])))       == NULL ||
	(setup->v[1][i]       = malloc(R * sizeof(**setup->v[1])))       == NULL ||
        (setup->dr[0][i]      = malloc(R * sizeof(**setup->dr[0])))      == NULL ||
	(setup->dr[1][i]      = malloc(R * sizeof(**setup->dr[1])))      == NULL ||
        (setup->dz[0][i]      = malloc(R * sizeof(**setup->dz[0])))      == NULL ||
	(setup->dz[1][i]      = malloc(R * sizeof(**setup->dz[1])))      == NULL ||
	(setup->vsave[i]      = malloc(R * sizeof(**setup->vsave)))      == NULL ||
	(setup->point_type[i] = malloc(R * sizeof(**setup->point_type))) == NULL) {
      printf("malloc failed\n");
      return -1;
    }
  }
  for (i = 1; i < L; i++) {
    if ((setup->eps[i]        = malloc(R * sizeof(**setup->eps)))    == NULL ||
        (setup->eps_dr[i]     = malloc(R * sizeof(**setup->eps_dr))) == NULL ||
        (setup->eps_dz[i]     = malloc(R * sizeof(**setup->eps_dz))) == NULL) {
      printf("malloc failed\n");
      return -1;
    }
    for (j = 0; j < R; j++)
      setup->eps[i][j] = setup->eps_dz[i][j] = setup->eps_dr[i][j] = 16.0;
  }
  for (j = 0; j < R; j++) {
    if ((setup->undepleted[j] = malloc(L * sizeof(**setup->undepleted))) == NULL) {
      printf("malloc failed\n");
      return -1;
    }
    memset(setup->undepleted[j], ' ', L);
  }

  /* set up reflection symmetry around r=0 or z=0 */
  setup->impurity[0]   = malloc(R * sizeof(**setup->impurity));
  setup->v[0][0]   = setup->v[0][2];
  setup->v[1][0]   = setup->v[1][2];
  setup->eps[0]    = setup->eps[1];
  setup->eps_dr[0] = setup->eps_dr[1];
  setup->eps_dz[0] = setup->eps_dz[1];
  setup->point_type[0] = setup->point_type[1];

  /* ------------------------------------------------------------ */
  /* weighting values for the relaxation alg. as a function of r
     in the following we divide areas and volumes by pi
     r_bin   rmax  A_top A_outside A_inside  volume  total_surf  out/top  tot/vol
     0     1/2    1/4      1         0       1/4      1.5         4        6  << special case
     1     3/2      2      3         1        2        8        3/2        4
     2     5/2      4      5         3        4       16        5/4        4
     3     7/2      6      7         5        6       24        7/6        4
     r   r+0.5     2r    2r+1      2r-1      2r       8r     (2r+1)/2r     4
     = 1+0.5/r
  */
  setup->s1[1] = 4.0;
  setup->s2[1] = 0.0;
  for (i=2; i<R; i++) {
    setup->s1[i] = 1.0 + 0.5 / (double) (i-1);   //  for r+1
    setup->s2[i] = 1.0 - 0.5 / (double) (i-1);   //  for r-1
  }
  setup->s2[1] = setup->s1[1]; // special case for reflection symm at r=0

  for (i = 1; i < L; i++) {
    for (j = 0; j < R; j++) {
      setup->dr[0][i][j] = setup->s2[j];   //  for r-1
      setup->dr[1][i][j] = setup->s1[j];   //  for r+1
      setup->dz[0][i][j] = 1;       //  for z-1
      setup->dz[1][i][j] = 1;       //  for z+1
    }
  }

  /* set up pixel point types for boundary conditions etc */
  float  d, g = 0.05 * grid, lith  = setup->Li_thickness;
  cyl_pt pt, pt1, pt2, pt3, pt4;

  setup->rmax = setup->xtal_radius - lith;
  setup->zmax = setup->xtal_length - lith;
  setup->hole_radius += lith;
  setup->hole_bullet_radius += lith;
  setup->bottom_taper_length += 0.71*lith; // add top tapers?

  for (i = 1; i < L; i++) {
    pt.z = pt3.z = pt4.z = (i-1) * grid;
    pt1.z = pt.z + g;
    pt2.z = pt.z - g;
    for (j = 1; j < R; j++) {
      pt.r = pt1.r = pt2.r = (j-1) * grid;
      pt3.r = pt.r + g;
      pt4.r = pt.r - g;
      setup->point_type[i][j] = INSIDE;

      /* see if pixel is ouside (or very nearly outside) the detector bulk */
      if (i == 1 || (pt.r >= setup->wrap_around_radius && pt.z - g < lith) ||
          outside_detector_cyl(pt1, setup) || outside_detector_cyl(pt2, setup) ||
          outside_detector_cyl(pt3, setup) || outside_detector_cyl(pt4, setup)) {

        /* check for inside ditch
           boundary condition at Ge-vacuum interface:
           epsilon0 * E_vac = espilon_Ge * E_Ge  */
        if (setup->ditch_depth > 0 && pt.z < setup->ditch_depth + grid &&
            pt.r <= setup->wrap_around_radius &&
            pt.r >= setup->wrap_around_radius - setup->ditch_thickness) {
          setup->point_type[i][j] = DITCH;
          setup->eps[i][j] = setup->eps_dz[i][j] = setup->eps_dr[i][j] = 1.0;

          /* check for inside (point) contact */
        } else if (pt.z < setup->pc_length + g && pt.r < setup->pc_radius+g) {
          setup->point_type[i][j] = PC;

        /* check for passivated area  */
        } else if (i == 1 && pt.r < setup->wrap_around_radius &&      // BEGE/ICPC
                   pt.r < setup->rmax - setup->bottom_taper_length) { // PPC
          setup->point_type[i][j] = PASSIVE;

        /* only remaining surface is HV contact */
        } else  {
          setup->point_type[i][j] = HVC;
        }
      }
    }
  }

  /* find the pixels next to the contact surfaces */
  cyl_pt dp1, dp2, dp3, dp4;
  dp1.z = dp3.r = grid;
  dp2.z = dp4.r = -grid;
  dp1.r = dp2.r = dp3.z = dp4.z = 0;
  for (i = 2; i < L-1; i++) {
    pt.z = (i-1) * grid;
    for (j = 1; j < R; j++) {
      pt.r = (j-1) * grid;
      if (setup->point_type[i][j] == INSIDE &&
          (setup->point_type[i+1][j] < INSIDE || setup->point_type[i-1][j] < INSIDE ||
           setup->point_type[i][j+1] < INSIDE || (j > 1 && setup->point_type[i][j-1] < INSIDE))) {
        setup->point_type[i][j] = CONTACT_EDGE;
        /* find distance to contact surface */
        if (setup->point_type[i+1][j] < INSIDE && (d = dist_from_contact(pt, dp1, setup)) > 0)
          setup->dz[1][i][j] = 1.0/d;
        if (setup->point_type[i-1][j] < INSIDE && (d = dist_from_contact(pt, dp2, setup)) > 0)
          setup->dz[0][i][j] = 1.0/d;
        else if (setup->point_type[i-1][j] < INSIDE &&
                 pt.r >= setup->wrap_around_radius && pt.z - grid < lith)
          setup->dz[0][i][j] = grid/(pt.z - lith);
        if (setup->point_type[i][j+1] < INSIDE && (d = dist_from_contact(pt, dp3, setup)) > 0)
          setup->dr[1][i][j] = setup->s1[j] * 1.0/d;
        if (j > 1 && setup->point_type[i][j-1] < INSIDE &&
            (d = dist_from_contact(pt, dp4, setup)) > 0)
          setup->dr[0][i][j] = setup->s2[j] * 1.0/d;
      }
    }
  }
  setup->hole_radius -= lith;
  setup->hole_bullet_radius -= lith;
  setup->bottom_taper_length -= 0.71*lith;

  /* for pixels adjacent to the ditch, set point_type to DITCH_EDGE
     and for z=0, set flag for passivated surface */
  for (i = 1; i < L; i++) {
    for (j = 1; j < R; j++) {
      setup->eps_dr[i][j-1] = (setup->eps[i][j-1] + setup->eps[i][j]) / 2.0f;
      setup->eps_dz[i-1][j] = (setup->eps[i-1][j] + setup->eps[i][j]) / 2.0f;
      if (setup->point_type[i][j] == INSIDE &&
          (setup->point_type[i-1][j] == DITCH ||
           setup->point_type[i][j-1] == DITCH ||
           setup->point_type[i][j+1] == DITCH)) setup->point_type[i][j] = DITCH_EDGE;
    }
    setup->eps_dr[i][0] = setup->eps_dr[i][1];
  }

  /* set up impurity array */
  double *imp_z, imp_ra = 0, imp_rm = 1;
  double e_over_E = 11.310; // e/epsilon; for 1 mm2, charge units 1e10 e/cm3, espilon = 16*epsilon0
  /* malloc local array */
  if ((imp_z  = malloc(L * sizeof(*imp_z))) == NULL) {
    printf("malloc failed\n");
    return -1;
  }

  if (setup->rho_z_spe[0] == 0) {
    for (i = 1; i < L; i++) {
      z = (i-1) * grid;
      imp_z[i] = e_over_E * grid*grid / 4.0 *
                 (setup->impurity_z0 +
                  setup->impurity_gradient * z * 0.1 +
                  setup->impurity_quadratic *
                  (1.0 - SQ(z - setup->xtal_length/2.0) / SQ(setup->xtal_length/2.0)));
    }
  } else if (setup->rho_z_spe[(int) setup->xtal_length] == 0) {
    printf("Error: Impurity profile spectrum is too short? rho[xtal_len = %d] = 0\n", (int) setup->xtal_length);
    return -1;
  } else {
    for (i = 1; i < L; i++)
      imp_z[i] = e_over_E * grid*grid / 4.0 * setup->rho_z_spe[(int) ((i-1) * grid)];
  }
  for (j = 1; j < R; j++) {
    r = (j-1) * grid;
    if (setup->impurity_rpower > 0.1) {
      imp_ra = setup->impurity_radial_add * e_over_E * grid*grid / 4.0 *
        pow((double) r / setup->xtal_radius, setup->impurity_rpower);
      imp_rm = 1.0 + (setup->impurity_radial_mult - 1.0f) *
        pow((double) r / setup->xtal_radius, setup->impurity_rpower);
    }
    for (i = 1; i < L; i++)  setup->impurity[i][j] = imp_z[i] * imp_rm + imp_ra;
    if (setup->point_type[1][j] == PASSIVE) {
      setup->impurity[1][j] += setup->impurity_surface * e_over_E * grid/4.0;
    }
    /* reduce charge volume for CONTACT_EDGE pixels */
    for (i = 1; i < L; i++) {
      if (setup->point_type[i][j] == CONTACT_EDGE) {
        setup->impurity[i][j] /=
          SQ(setup->dz[1][i][j]*setup->dz[0][i][j] * setup->dr[1][i][j]*setup->dr[0][i][j]);
      }
    }
  }
           
  /* free local and no-longer-needed arrays */
  free(imp_z);
  for (i = 1; i < L; i++) free(setup->eps[i]);
  free(setup->eps);

  return 0;   
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movss 0x54(%rax), %xmm0
movss %xmm0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm0
divss -0x14(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x10f0
addq $0x3, %rax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm0
divss -0x14(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x10f0
addq $0x3, %rax
movl %eax, -0x1c(%rbp)
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x408(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x3f0(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x3f8(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x400(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x3e0(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x3e8(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x1450(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x1458(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x1460(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x1468(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x438(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x418(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x420(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x428(%rcx)
cmpq $0x0, %rax
je 0x3743
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq %rax, 0x430(%rcx)
cmpq $0x0, %rax
jne 0x375d
leaq 0xa93d(%rip), %rdi      # 0xe087
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x3904
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x408(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x3e0(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x3e8(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x1450(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x1458(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x1460(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x1468(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x428(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x38da
movslq -0x1c(%rbp), %rdi
shlq $0x0, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x430(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x38f4
leaq 0xa7a6(%rip), %rdi      # 0xe087
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
jmp 0x38f6
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3764
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x3a39
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x3f0(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x3989
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x3f8(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
je 0x3989
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x400(%rcx), %rcx
movslq -0x20(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x39a3
leaq 0xa6f7(%rip), %rdi      # 0xe087
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3a29
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x96af(%rip), %xmm0     # 0xd080
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x968b(%rip), %xmm0     # 0xd080
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x9667(%rip), %xmm0     # 0xd080
movsd %xmm0, (%rax,%rcx,8)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x39aa
jmp 0x3a2b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x390b
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3ab4
movslq -0x18(%rbp), %rdi
shlq $0x0, %rdi
callq 0x1150
movq -0x10(%rbp), %rcx
movq 0x438(%rcx), %rcx
movslq -0x24(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x3a88
leaq 0xa612(%rip), %rdi      # 0xe087
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
movq -0x10(%rbp), %rax
movq 0x438(%rax), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x18(%rbp), %rdx
movl $0x20, %esi
callq 0x1100
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3a40
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq 0x408(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x3e0(%rax), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x3e0(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x3e8(%rax), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x3e8(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rax
movsd 0x94fd(%rip), %xmm0     # 0xd090
movsd %xmm0, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax)
movl $0x2, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3c31
movl -0x20(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd 0x94bc(%rip), %xmm1     # 0xd088
divsd %xmm0, %xmm1
movsd 0x9490(%rip), %xmm0     # 0xd068
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rax
movslq -0x20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd 0x9486(%rip), %xmm1     # 0xd088
divsd %xmm0, %xmm1
movsd 0x945a(%rip), %xmm0     # 0xd068
subsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
movslq -0x20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3bb2
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
movsd %xmm0, 0x8(%rax)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x3d3d
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3d2d
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x1450(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x1458(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x1460(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x9372(%rip), %xmm0     # 0xd068
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x1468(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x934e(%rip), %xmm0     # 0xd068
movsd %xmm0, (%rax,%rcx,8)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3c6b
jmp 0x3d2f
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3c58
movss -0x14(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x9352(%rip), %xmm0     # 0xd0a0
mulsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
movq -0x10(%rbp), %rax
movss 0x4c(%rax), %xmm0
movss %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm0
subss -0x38(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0x3b4(%rax)
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm0
subss -0x38(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0x3c0(%rax)
movss -0x38(%rbp), %xmm0
movq -0x10(%rbp), %rax
addss 0x28(%rax), %xmm0
movss %xmm0, 0x28(%rax)
movss -0x38(%rbp), %xmm0
movq -0x10(%rbp), %rax
addss 0x48(%rax), %xmm0
movss %xmm0, 0x48(%rax)
movss -0x38(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x20(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
movsd 0x92b7(%rip), %xmm2     # 0xd098
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x417d
movl -0x20(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x6c(%rbp)
movss %xmm0, -0x60(%rbp)
movss %xmm0, -0x3c(%rbp)
movss -0x3c(%rbp), %xmm0
addss -0x34(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
movss -0x3c(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss %xmm0, -0x54(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x416d
movl -0x24(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x5c(%rbp)
movss %xmm0, -0x50(%rbp)
movss %xmm0, -0x44(%rbp)
movss -0x44(%rbp), %xmm0
addss -0x34(%rbp), %xmm0
movss %xmm0, -0x68(%rbp)
movss -0x44(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss %xmm0, -0x74(%rbp)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x2, (%rax,%rcx)
cmpl $0x1, -0x20(%rbp)
je 0x3fa6
movss -0x44(%rbp), %xmm0
movq -0x10(%rbp), %rax
ucomiss 0x14(%rax), %xmm0
jb 0x3edc
movss -0x3c(%rbp), %xmm1
subss -0x34(%rbp), %xmm1
movss -0x38(%rbp), %xmm0
ucomiss %xmm1, %xmm0
ja 0x3fa6
movq -0x10(%rbp), %rdi
movl -0x48(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movsd -0x88(%rbp), %xmm0
movss -0x80(%rbp), %xmm1
callq 0xbd00
cmpl $0x0, %eax
jne 0x3fa6
movq -0x10(%rbp), %rdi
movl -0x54(%rbp), %eax
movl %eax, -0x90(%rbp)
movq -0x5c(%rbp), %rax
movq %rax, -0x98(%rbp)
movsd -0x98(%rbp), %xmm0
movss -0x90(%rbp), %xmm1
callq 0xbd00
cmpl $0x0, %eax
jne 0x3fa6
movq -0x10(%rbp), %rdi
movl -0x60(%rbp), %eax
movl %eax, -0xa0(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0xa8(%rbp)
movsd -0xa8(%rbp), %xmm0
movss -0xa0(%rbp), %xmm1
callq 0xbd00
cmpl $0x0, %eax
jne 0x3fa6
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x74(%rbp), %rax
movq %rax, -0xb8(%rbp)
movsd -0xb8(%rbp), %xmm0
movss -0xb0(%rbp), %xmm1
callq 0xbd00
cmpl $0x0, %eax
je 0x415d
movq -0x10(%rbp), %rax
movss 0x18(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x409a
movss -0x3c(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x18(%rax), %xmm0
addss -0x14(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x409a
movss -0x44(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x14(%rax), %xmm0
ucomiss %xmm1, %xmm0
jb 0x409a
movss -0x44(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss 0x14(%rax), %xmm1
movq -0x10(%rbp), %rax
subss 0x1c(%rax), %xmm1
ucomiss %xmm1, %xmm0
jb 0x409a
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x5, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x9020(%rip), %xmm0     # 0xd068
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x8ffc(%rip), %xmm0     # 0xd068
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd 0x8fd8(%rip), %xmm0     # 0xd068
movsd %xmm0, (%rax,%rcx,8)
jmp 0x415b
movss -0x3c(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0xc(%rax), %xmm0
addss -0x34(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x40e7
movss -0x44(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x10(%rax), %xmm0
addss -0x34(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x40e7
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x4159
cmpl $0x1, -0x20(%rbp)
jne 0x413c
movss -0x44(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x14(%rax), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x413c
movss -0x44(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x3b4(%rax), %xmm0
movq -0x10(%rbp), %rax
subss 0x20(%rax), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x413c
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x3, (%rax,%rcx)
jmp 0x4157
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x1, (%rax,%rcx)
jmp 0x4159
jmp 0x415b
jmp 0x415d
jmp 0x415f
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3e48
jmp 0x416f
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3df9
movss -0x14(%rbp), %xmm0
movss %xmm0, -0xdc(%rbp)
movss %xmm0, -0xbc(%rbp)
movss -0x14(%rbp), %xmm0
movd %xmm0, %eax
xorl $0x80000000, %eax       # imm = 0x80000000
movd %eax, %xmm0
movss %xmm0, -0xe8(%rbp)
movss %xmm0, -0xc8(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xe0(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xd4(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xd0(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xc4(%rbp)
movl $0x2, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x46df
movl -0x20(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x3c(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x46cf
movl -0x24(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jne 0x46bf
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jl 0x42f9
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jl 0x42f9
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jl 0x42f9
cmpl $0x1, -0x24(%rbp)
jle 0x46bf
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x46bf
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x7, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x43d2
movq -0x10(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, -0xf0(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0xf8(%rbp)
movsd -0xf8(%rbp), %xmm0
movss -0xf0(%rbp), %xmm1
movl -0xbc(%rbp), %eax
movl %eax, -0x100(%rbp)
movq -0xc4(%rbp), %rax
movq %rax, -0x108(%rbp)
movsd -0x108(%rbp), %xmm2
movss -0x100(%rbp), %xmm3
callq 0x67f0
movss %xmm0, -0x30(%rbp)
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x43d2
movss -0x30(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x8cb6(%rip), %xmm0     # 0xd068
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x1468(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x4492
movq -0x10(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, -0x110(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x118(%rbp)
movsd -0x118(%rbp), %xmm0
movss -0x110(%rbp), %xmm1
movl -0xc8(%rbp), %eax
movl %eax, -0x120(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x128(%rbp)
movsd -0x128(%rbp), %xmm2
movss -0x120(%rbp), %xmm3
callq 0x67f0
movss %xmm0, -0x30(%rbp)
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x4492
movss -0x30(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x8bf8(%rip), %xmm0     # 0xd068
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x1460(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x450f
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x450d
movss -0x44(%rbp), %xmm0
movq -0x10(%rbp), %rax
ucomiss 0x14(%rax), %xmm0
jb 0x450d
movss -0x3c(%rbp), %xmm1
subss -0x14(%rbp), %xmm1
movss -0x38(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x450d
movss -0x14(%rbp), %xmm0
movss -0x3c(%rbp), %xmm1
subss -0x38(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movq 0x1460(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x450f
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x45e1
movq -0x10(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, -0x130(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x138(%rbp)
movsd -0x138(%rbp), %xmm0
movss -0x130(%rbp), %xmm1
movl -0xd4(%rbp), %eax
movl %eax, -0x140(%rbp)
movq -0xdc(%rbp), %rax
movq %rax, -0x148(%rbp)
movsd -0x148(%rbp), %xmm2
movss -0x140(%rbp), %xmm3
callq 0x67f0
movss %xmm0, -0x30(%rbp)
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x45e1
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rax
movslq -0x24(%rbp), %rcx
movsd 0x8ab5(%rip), %xmm0     # 0xd068
mulsd (%rax,%rcx,8), %xmm0
movss -0x30(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x1458(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
cmpl $0x1, -0x24(%rbp)
jle 0x46bd
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jge 0x46bd
movq -0x10(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, -0x150(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x158(%rbp)
movsd -0x158(%rbp), %xmm0
movss -0x150(%rbp), %xmm1
movl -0xe0(%rbp), %eax
movl %eax, -0x160(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x168(%rbp)
movsd -0x168(%rbp), %xmm2
movss -0x160(%rbp), %xmm3
callq 0x67f0
movss %xmm0, -0x30(%rbp)
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x46bd
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
movslq -0x24(%rbp), %rcx
movsd 0x89d9(%rip), %xmm0     # 0xd068
mulsd (%rax,%rcx,8), %xmm0
movss -0x30(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x1450(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x46bf
jmp 0x46c1
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x4213
jmp 0x46d1
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x41e7
movss -0x38(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x28(%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x28(%rax)
movss -0x38(%rbp), %xmm1
movq -0x10(%rbp), %rax
movss 0x48(%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x48(%rax)
movss -0x38(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x20(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
movsd 0x897d(%rip), %xmm2     # 0xd0a8
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4931
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x48f4
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd 0x88a1(%rip), %xmm1     # 0xd048
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd 0x8837(%rip), %xmm1     # 0xd048
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jne 0x48e4
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5, %eax
je 0x48c9
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5, %eax
je 0x48c9
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5, %eax
jne 0x48e4
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb $0x6, (%rax,%rcx)
jmp 0x48e6
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x4756
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
movq 0x3f8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4743
xorps %xmm0, %xmm0
movsd %xmm0, -0x178(%rbp)
movsd 0x8724(%rip), %xmm0     # 0xd068
movsd %xmm0, -0x180(%rbp)
movsd 0x875c(%rip), %xmm0     # 0xd0b0
movsd %xmm0, -0x188(%rbp)
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
callq 0x1150
movq %rax, -0x170(%rbp)
cmpq $0x0, %rax
jne 0x4990
leaq 0x970a(%rip), %rdi      # 0xe087
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
movq -0x10(%rbp), %rax
movss 0x44c(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x4b04
jp 0x4b04
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4aff
movl -0x20(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movsd -0x188(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd 0x8691(%rip), %xmm1     # 0xd090
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movss 0x58(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
movq -0x10(%rbp), %rax
movss 0x5c(%rax), %xmm2
mulss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
movsd 0x8626(%rip), %xmm3     # 0xd050
mulsd %xmm3, %xmm2
addsd %xmm1, %xmm2
movq -0x10(%rbp), %rax
movss 0x60(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
movss -0x2c(%rbp), %xmm3
cvtss2sd %xmm3, %xmm4
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm3
cvtss2sd %xmm3, %xmm3
movsd 0x85eb(%rip), %xmm5     # 0xd048
divsd %xmm5, %xmm3
subsd %xmm3, %xmm4
movss -0x2c(%rbp), %xmm3
cvtss2sd %xmm3, %xmm3
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm5
cvtss2sd %xmm5, %xmm5
movsd 0x85c5(%rip), %xmm6     # 0xd048
divsd %xmm6, %xmm5
subsd %xmm5, %xmm3
mulsd %xmm3, %xmm4
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm3
cvtss2sd %xmm3, %xmm3
movsd 0x85a4(%rip), %xmm5     # 0xd048
divsd %xmm5, %xmm3
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm5
cvtss2sd %xmm5, %xmm5
movsd 0x858b(%rip), %xmm6     # 0xd048
divsd %xmm6, %xmm5
mulsd %xmm5, %xmm3
divsd %xmm3, %xmm4
movsd 0x8597(%rip), %xmm3     # 0xd068
subsd %xmm4, %xmm3
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq -0x170(%rbp), %rax
movslq -0x20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x49b5
jmp 0x4bd1
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
cvttss2si 0x4(%rcx), %ecx
movslq %ecx, %rcx
movss 0x44c(%rax,%rcx,4), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x4b4a
jp 0x4b4a
movq -0x10(%rbp), %rax
cvttss2si 0x4(%rax), %esi
leaq 0x955f(%rip), %rdi      # 0xe096
movb $0x0, %al
callq 0x10e0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4f87
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4bcd
movsd -0x188(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd 0x850d(%rip), %xmm1     # 0xd090
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
cvtsi2ss %ecx, %xmm1
mulss -0x14(%rbp), %xmm1
cvttss2si %xmm1, %ecx
movslq %ecx, %rcx
movss 0x44c(%rax,%rcx,4), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movq -0x170(%rbp), %rax
movslq -0x20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4b51
jmp 0x4bcf
jmp 0x4bd1
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x4f32
movl -0x24(%rbp), %eax
subl $0x1, %eax
cvtsi2ss %eax, %xmm0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x28(%rbp)
movq -0x10(%rbp), %rax
movss 0x70(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x8443(%rip), %xmm1     # 0xd050
ucomisd %xmm1, %xmm0
jbe 0x4d0d
movq -0x10(%rbp), %rax
movss 0x68(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
mulsd -0x188(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd 0x8442(%rip), %xmm1     # 0xd090
divsd %xmm1, %xmm0
movsd %xmm0, -0x198(%rbp)
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movss 0x70(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x10a0
movaps %xmm0, %xmm1
movsd -0x198(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x178(%rbp)
movq -0x10(%rbp), %rax
movss 0x6c(%rax), %xmm0
movss 0x8482(%rip), %xmm1     # 0xd130
subss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x190(%rbp)
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movss 0x70(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x10a0
movaps %xmm0, %xmm1
movsd -0x190(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd 0x8367(%rip), %xmm1     # 0xd068
addsd %xmm1, %xmm0
movsd %xmm0, -0x180(%rbp)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4d6b
movq -0x170(%rbp), %rax
movslq -0x20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd -0x180(%rbp), %xmm2
movsd -0x178(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x408(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4d14
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3, %eax
jne 0x4dd2
movq -0x10(%rbp), %rax
movss 0x64(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
mulsd -0x188(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd 0x82df(%rip), %xmm1     # 0xd090
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x408(%rax), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4f22
movq -0x10(%rbp), %rax
movq 0x430(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7, %eax
jne 0x4f12
movq -0x10(%rbp), %rax
movq 0x1468(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x10(%rbp), %rax
movq 0x1460(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm1
movq -0x10(%rbp), %rax
movq 0x1458(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm1
movq -0x10(%rbp), %rax
movq 0x1450(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm1
movq -0x10(%rbp), %rax
movq 0x1468(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x1460(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x1458(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x1450(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
mulsd %xmm0, %xmm1
movq -0x10(%rbp), %rax
movq 0x408(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x4f14
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4dd9
jmp 0x4f24
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x4bd8
movq -0x170(%rbp), %rdi
callq 0x1030
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4f70
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1030
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4f45
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rdi
callq 0x1030
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopw %cs:(%rax,%rax)