// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
movss 0x4(%rdi), %xmm0
movss 0x54(%rdi), %xmm1
movaps %xmm1, 0x60(%rsp)
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r12
leal 0x3(%rax), %ebp
movss 0x8(%rbx), %xmm0
divss 0x60(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r13
movslq %ebp, %r14
leaq (,%r14,8), %r15
movq %r15, %rdi
callq 0x1180
movq %rax, 0x408(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x3f0(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x3f8(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x400(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x3e0(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x3e8(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x1450(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x1458(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x1460(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x1468(%rbx)
testq %rax, %rax
je 0x3b80
leal 0x3(%r13), %eax
movl %eax, 0xc(%rsp)
cltq
movq %rax, 0x40(%rsp)
leaq (,%rax,8), %rdi
movq %rdi, 0x20(%rsp)
callq 0x1180
movq %rax, 0x438(%rbx)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq %rax, 0x418(%rbx)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq %rax, 0x420(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x428(%rbx)
testq %rax, %rax
je 0x3b80
movq %r15, %rdi
callq 0x1180
movq %rax, 0x430(%rbx)
testq %rax, %rax
je 0x3b80
cmpl $0x2, %ebp
jl 0x2d06
leaq -0x1(%r14), %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x408(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x3e0(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x3e8(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x1450(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x1458(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x1460(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x1468(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x428(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x40(%rsp), %rdi
callq 0x1180
movq 0x430(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, 0x8(%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x10(%rsp), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
cmpq %rcx, 0x50(%rsp)
jne 0x2baa
cmpl $0x2, %ebp
movq 0x20(%rsp), %rax
jl 0x2df1
movl 0xc(%rsp), %ecx
movq %rcx, 0x40(%rsp)
movl $0x1, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, %rdi
callq 0x1180
movq 0x3f0(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x3f8(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x10(%rsp), %r8
movq 0x400(%rbx), %rcx
movq %rax, (%rcx,%r8,8)
testq %rax, %rax
je 0x3b80
cmpl $0x0, 0xc(%rsp)
movq 0x40(%rsp), %rdi
movabsq $0x4030000000000000, %r9 # imm = 0x4030000000000000
jle 0x2ddb
movq 0x3f0(%rbx), %rdx
movq 0x3f8(%rbx), %rax
movq (%rax,%r8,8), %rax
movq 0x400(%rbx), %rcx
movq (%rcx,%r8,8), %rcx
movq (%rdx,%r8,8), %rdx
xorl %esi, %esi
movq %r9, (%rax,%rsi,8)
movq %r9, (%rcx,%rsi,8)
movq %r9, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rdi
jne 0x2dc7
incq %r8
movq %r8, 0x10(%rsp)
cmpq %r14, %r8
movq 0x20(%rsp), %rax
jne 0x2d27
cmpl $0x0, 0xc(%rsp)
jle 0x2e5c
movl 0xc(%rsp), %eax
movq %rax, 0x40(%rsp)
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
callq 0x1180
movq 0x438(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
testq %rax, %rax
je 0x3b80
movq 0x438(%rbx), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0x1110
movq 0x10(%rsp), %rax
incq %rax
movq %rax, 0x10(%rsp)
cmpq %rax, 0x40(%rsp)
jne 0x2e0a
movq 0x20(%rsp), %rdi
callq 0x1180
movq 0x408(%rbx), %rcx
movq %rax, (%rcx)
movq 0x3e0(%rbx), %rax
movq 0x10(%rax), %rcx
movq %rcx, (%rax)
movq 0x3e8(%rbx), %rax
movq 0x10(%rax), %rcx
movq %rcx, (%rax)
movq 0x3f0(%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, (%rax)
movq 0x3f8(%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, (%rax)
movq 0x400(%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, (%rax)
movq 0x430(%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, (%rax)
movq 0x418(%rbx), %rax
movabsq $0x4010000000000000, %rcx # imm = 0x4010000000000000
movq %rcx, 0x8(%rax)
movq 0x420(%rbx), %rcx
movq $0x0, 0x8(%rcx)
cmpl $0x7ffffffc, %r13d      # imm = 0x7FFFFFFC
movl 0xc(%rsp), %r13d
ja 0x2f3e
movl %r13d, %edx
movl $0x2, %esi
movsd 0x6132(%rip), %xmm0     # 0x9038
movsd 0x614a(%rip), %xmm1     # 0x9058
leal -0x1(%rsi), %edi
xorps %xmm2, %xmm2
cvtsi2sd %edi, %xmm2
movapd %xmm0, %xmm3
divsd %xmm2, %xmm3
movapd %xmm1, %xmm2
subsd %xmm3, %xmm2
addsd %xmm1, %xmm3
movsd %xmm3, (%rax,%rsi,8)
movsd %xmm2, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x2f0e
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x8(%rcx)
cmpl $0x2, %ebp
movaps 0x60(%rsp), %xmm4
jl 0x2fcd
movl %r13d, %edx
movl $0x1, %esi
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
testl %r13d, %r13d
jle 0x2fc0
movq 0x1450(%rbx), %r8
movq 0x1458(%rbx), %r9
movq (%r8,%rsi,8), %r8
movq (%r9,%rsi,8), %r9
movq 0x1460(%rbx), %r10
movq (%r10,%rsi,8), %r10
movq 0x1468(%rbx), %r11
movq (%r11,%rsi,8), %r11
xorl %r13d, %r13d
movsd (%rcx,%r13,8), %xmm0
movsd %xmm0, (%r8,%r13,8)
movsd (%rax,%r13,8), %xmm0
movsd %xmm0, (%r9,%r13,8)
movq %rdi, (%r10,%r13,8)
movq %rdi, (%r11,%r13,8)
incq %r13
cmpq %r13, %rdx
jne 0x2f98
incq %rsi
cmpq %r14, %rsi
movl 0xc(%rsp), %r13d
jne 0x2f64
xorps %xmm0, %xmm0
cvtss2sd %xmm4, %xmm0
movsd %xmm0, 0x80(%rsp)
movss 0x4c(%rbx), %xmm2
movss 0x4(%rbx), %xmm0
movss 0x8(%rbx), %xmm1
subss %xmm2, %xmm1
movss %xmm1, 0x3b4(%rbx)
subss %xmm2, %xmm0
movss %xmm0, 0x3c0(%rbx)
movss 0x28(%rbx), %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x28(%rbx)
movss 0x48(%rbx), %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x48(%rbx)
xorps %xmm0, %xmm0
cvtss2sd 0x20(%rbx), %xmm0
movss %xmm2, 0x3c(%rsp)
cvtss2sd %xmm2, %xmm2
movsd 0x604e(%rip), %xmm1     # 0x9088
movsd %xmm2, 0xc0(%rsp)
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, 0x20(%rbx)
cmpl $0x2, %ebp
jl 0x33ff
movsd 0x6018(%rip), %xmm0     # 0x9080
mulsd 0x80(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
movl %r13d, %ecx
decq %rcx
movl $0x1, %edx
xorps %xmm2, %xmm2
movss %xmm1, 0x34(%rsp)
movq %rcx, 0x88(%rsp)
cmpl $0x2, %r13d
jl 0x33ee
leal -0x1(%rdx), %eax
xorps %xmm9, %xmm9
cvtsi2ss %eax, %xmm9
mulss %xmm4, %xmm9
movaps %xmm9, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xac(%rsp)
movaps %xmm9, %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x38(%rsp)
xorl %r13d, %r13d
movq %rdx, 0x78(%rsp)
movss %xmm9, 0x70(%rsp)
xorps %xmm10, %xmm10
cvtsi2ss %r13d, %xmm10
mulss %xmm4, %xmm10
movss %xmm10, %xmm6           # xmm6 = xmm10[0],xmm6[1,2,3]
movss %xmm10, %xmm3           # xmm3 = xmm10[0],xmm3[1,2,3]
movaps %xmm10, %xmm0
addss %xmm1, %xmm0
movss %xmm0, %xmm7            # xmm7 = xmm0[0],xmm7[1,2,3]
movaps %xmm10, %xmm0
subss %xmm1, %xmm0
movss %xmm0, %xmm8            # xmm8 = xmm0[0],xmm8[1,2,3]
movq 0x430(%rbx), %rax
movq (%rax,%rdx,8), %rax
movb $0x2, 0x1(%rax,%r13)
cmpq $0x1, %rdx
je 0x32e7
ucomiss 0x14(%rbx), %xmm10
jb 0x3141
movss 0x3c(%rsp), %xmm0
ucomiss 0x38(%rsp), %xmm0
ja 0x32e7
movaps %xmm3, %xmm0
movss 0xac(%rsp), %xmm1
movq %rbx, %rdi
movaps %xmm5, 0x20(%rsp)
movaps %xmm3, 0x10(%rsp)
movaps %xmm6, 0x40(%rsp)
movaps %xmm7, 0x50(%rsp)
movaps %xmm8, 0xb0(%rsp)
movaps %xmm10, 0x90(%rsp)
callq 0x7f7c
movaps 0x90(%rsp), %xmm10
movss 0x70(%rsp), %xmm9
movaps 0xb0(%rsp), %xmm8
movaps 0x50(%rsp), %xmm7
movaps 0x40(%rsp), %xmm6
movaps 0x10(%rsp), %xmm3
xorps %xmm2, %xmm2
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rcx
movss 0x34(%rsp), %xmm1
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
testl %eax, %eax
jne 0x32e7
movaps %xmm6, %xmm0
movss 0x38(%rsp), %xmm1
movq %rbx, %rdi
callq 0x7f7c
movaps 0x90(%rsp), %xmm10
movss 0x70(%rsp), %xmm9
movaps 0xb0(%rsp), %xmm8
movaps 0x50(%rsp), %xmm7
movaps 0x40(%rsp), %xmm6
movaps 0x10(%rsp), %xmm3
xorps %xmm2, %xmm2
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rcx
movss 0x34(%rsp), %xmm1
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
testl %eax, %eax
jne 0x32e7
movaps %xmm7, %xmm0
movaps %xmm9, %xmm1
movq %rbx, %rdi
callq 0x7f7c
movaps 0x90(%rsp), %xmm10
movss 0x70(%rsp), %xmm9
movaps 0xb0(%rsp), %xmm8
movaps 0x50(%rsp), %xmm7
movaps 0x40(%rsp), %xmm6
movaps 0x10(%rsp), %xmm3
xorps %xmm2, %xmm2
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rcx
movss 0x34(%rsp), %xmm1
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
testl %eax, %eax
jne 0x32e7
movaps %xmm8, %xmm0
movaps %xmm9, %xmm1
movq %rbx, %rdi
callq 0x7f7c
movaps 0x90(%rsp), %xmm10
movss 0x70(%rsp), %xmm9
movaps 0xb0(%rsp), %xmm8
movaps 0x50(%rsp), %xmm7
movaps 0x40(%rsp), %xmm6
movaps 0x10(%rsp), %xmm3
xorps %xmm2, %xmm2
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rcx
movss 0x34(%rsp), %xmm1
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
testl %eax, %eax
je 0x338e
movss 0x18(%rbx), %xmm0
ucomiss %xmm2, %xmm0
jbe 0x3315
addss %xmm4, %xmm0
ucomiss %xmm9, %xmm0
jbe 0x3315
movss 0x14(%rbx), %xmm0
ucomiss %xmm10, %xmm0
jb 0x3315
subss 0x1c(%rbx), %xmm0
ucomiss %xmm0, %xmm10
jae 0x33a1
movss 0xc(%rbx), %xmm0
addss %xmm1, %xmm0
ucomiss %xmm9, %xmm0
jbe 0x3346
movss 0x10(%rbx), %xmm0
addss %xmm1, %xmm0
ucomiss %xmm10, %xmm0
jbe 0x3346
movq 0x430(%rbx), %rax
movq (%rax,%rdx,8), %rax
movb $0x0, 0x1(%rax,%r13)
jmp 0x338e
cmpq $0x1, %rdx
jne 0x337d
movss 0x14(%rbx), %xmm0
ucomiss %xmm10, %xmm0
jbe 0x337d
movss 0x3b4(%rbx), %xmm0
subss 0x20(%rbx), %xmm0
ucomiss %xmm10, %xmm0
jbe 0x337d
movq 0x430(%rbx), %rax
movq (%rax,%rdx,8), %rax
movb $0x3, 0x1(%rax,%r13)
jmp 0x338e
movq 0x430(%rbx), %rax
movq (%rax,%rdx,8), %rax
movb $0x1, 0x1(%rax,%r13)
movss %xmm10, %xmm5           # xmm5 = xmm10[0],xmm5[1,2,3]
incq %r13
cmpq %r13, %rcx
jne 0x30dd
jmp 0x33ee
movq 0x430(%rbx), %rax
movq (%rax,%rdx,8), %rax
movb $0x5, 0x1(%rax,%r13)
movq 0x3f8(%rbx), %rax
movq (%rax,%rdx,8), %rax
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, 0x8(%rax,%r13,8)
movq 0x400(%rbx), %rax
movq (%rax,%rdx,8), %rax
movq %rsi, 0x8(%rax,%r13,8)
movq 0x3f0(%rbx), %rax
movq (%rax,%rdx,8), %rax
movq %rsi, 0x8(%rax,%r13,8)
jmp 0x338e
incq %rdx
cmpq %r14, %rdx
movl 0xc(%rsp), %r13d
jne 0x3094
addl $0x2, %r12d
cmpl $0x3, %r12d
jl 0x370b
movaps 0x5d1c(%rip), %xmm0     # 0x9130
xorps %xmm4, %xmm0
movaps %xmm0, 0x90(%rsp)
movl %r12d, %eax
movq %rax, 0x70(%rsp)
movl %r13d, %eax
decq %rax
movq %rax, 0x40(%rsp)
movl $0x2, %r12d
cmpl $0x2, %r13d
jl 0x36f8
leal -0x1(%r12), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm4, %xmm0
movaps %xmm0, %xmm1
subss %xmm4, %xmm1
movss %xmm1, 0x38(%rsp)
movss %xmm0, 0x50(%rsp)
subss 0x3c(%rsp), %xmm0
movaps %xmm4, %xmm1
divss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
xorl %esi, %esi
movq %rsi, %r13
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
incq %rsi
mulss %xmm4, %xmm0
movss %xmm0, %xmm5            # xmm5 = xmm0[0],xmm5[1,2,3]
movq 0x430(%rbx), %rcx
movq (%rcx,%r12,8), %rax
cmpb $0x2, 0x1(%rax,%r13)
jne 0x36ed
movq 0x8(%rcx,%r12,8), %rdx
cmpb $0x2, 0x1(%rdx,%r13)
jl 0x34d4
movq -0x8(%rcx,%r12,8), %rcx
cmpb $0x2, 0x1(%rcx,%r13)
jl 0x34d4
cmpb $0x2, 0x2(%rax,%r13)
jge 0x36dc
movaps %xmm0, 0xb0(%rsp)
movb $0x7, 0x1(%rax,%r13)
movq 0x430(%rbx), %rax
movq 0x8(%rax,%r12,8), %rax
cmpb $0x1, 0x1(%rax,%r13)
movaps %xmm5, 0x20(%rsp)
movq %rsi, 0x10(%rsp)
jg 0x3551
xorps %xmm2, %xmm2
movaps %xmm5, %xmm0
movss 0x50(%rsp), %xmm1
movaps %xmm4, %xmm3
movq %rbx, %rdi
callq 0x574d
movq 0x10(%rsp), %rsi
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
ucomiss 0x5bf3(%rip), %xmm0     # 0x9120
jbe 0x3551
cvtss2sd %xmm0, %xmm0
movsd 0x5b1d(%rip), %xmm1     # 0x9058
divsd %xmm0, %xmm1
movq 0x1468(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd %xmm1, 0x8(%rax,%r13,8)
movq 0x430(%rbx), %rax
movq -0x8(%rax,%r12,8), %rax
cmpb $0x1, 0x1(%rax,%r13)
jg 0x35af
xorps %xmm2, %xmm2
movaps %xmm5, %xmm0
movss 0x50(%rsp), %xmm1
movapd 0x90(%rsp), %xmm3
movq %rbx, %rdi
callq 0x574d
movq 0x10(%rsp), %rsi
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
ucomiss 0x5b88(%rip), %xmm0     # 0x9120
jbe 0x35af
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
movsd 0x5aaf(%rip), %xmm0     # 0x9058
divsd %xmm1, %xmm0
jmp 0x35e4
movq 0x430(%rbx), %rax
movq -0x8(%rax,%r12,8), %rax
cmpb $0x1, 0x1(%rax,%r13)
jg 0x35f6
movaps 0xb0(%rsp), %xmm0
ucomiss 0x14(%rbx), %xmm0
jb 0x35f6
movss 0x3c(%rsp), %xmm0
ucomiss 0x38(%rsp), %xmm0
movsd 0x78(%rsp), %xmm0
jbe 0x35f6
movq 0x1460(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, 0x8(%rax,%r13,8)
movq 0x430(%rbx), %rax
movq (%rax,%r12,8), %rax
cmpb $0x1, 0x2(%rax,%r13)
jg 0x3661
xorpd %xmm3, %xmm3
movaps %xmm5, %xmm0
movss 0x50(%rsp), %xmm1
movaps %xmm4, %xmm2
movq %rbx, %rdi
callq 0x574d
movq 0x10(%rsp), %rsi
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
ucomiss 0x5ae9(%rip), %xmm0     # 0x9120
jbe 0x3661
movq 0x418(%rbx), %rax
movsd 0x8(%rax,%r13,8), %xmm1
cvtss2sd %xmm0, %xmm0
divsd %xmm0, %xmm1
movq 0x1458(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd %xmm1, 0x8(%rax,%r13,8)
cmpq $0x2, %rsi
jb 0x36ed
movq 0x430(%rbx), %rax
movq (%rax,%r12,8), %rax
cmpb $0x1, (%rax,%r13)
jg 0x36ed
xorpd %xmm3, %xmm3
movaps %xmm5, %xmm0
movss 0x50(%rsp), %xmm1
movaps 0x90(%rsp), %xmm2
movq %rbx, %rdi
callq 0x574d
movq 0x10(%rsp), %rsi
movaps 0x20(%rsp), %xmm5
movaps 0x60(%rsp), %xmm4
ucomiss 0x5a70(%rip), %xmm0     # 0x9120
jbe 0x36ed
movq 0x420(%rbx), %rax
movsd 0x8(%rax,%r13,8), %xmm1
cvtss2sd %xmm0, %xmm0
divsd %xmm0, %xmm1
movq 0x1450(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd %xmm1, 0x8(%rax,%r13,8)
jmp 0x36ed
cmpq $0x2, %rsi
jb 0x36ed
cmpb $0x1, (%rax,%r13)
jle 0x34d4
cmpq %rsi, 0x40(%rsp)
jne 0x3481
incq %r12
cmpq 0x70(%rsp), %r12
movl 0xc(%rsp), %r13d
jne 0x3438
movss 0x28(%rbx), %xmm0
movss 0x48(%rbx), %xmm1
movss 0x3c(%rsp), %xmm2
subss %xmm2, %xmm0
movss %xmm0, 0x28(%rbx)
subss %xmm2, %xmm1
movss %xmm1, 0x48(%rbx)
xorps %xmm0, %xmm0
cvtss2sd 0x20(%rbx), %xmm0
movsd 0xc0(%rsp), %xmm1
mulsd 0x594a(%rip), %xmm1     # 0x9090
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, 0x20(%rbx)
cmpl $0x2, %ebp
jl 0x382c
movl %r13d, %eax
decq %rax
movl $0x1, %ecx
movsd 0x58c6(%rip), %xmm0     # 0x9038
cmpl $0x2, %r13d
jl 0x380c
xorl %edx, %edx
movq 0x3f0(%rbx), %rsi
movq (%rsi,%rcx,8), %rdi
movsd (%rdi,%rdx,8), %xmm1
addsd 0x8(%rdi,%rdx,8), %xmm1
movq 0x3f8(%rbx), %r8
mulsd %xmm0, %xmm1
movq (%r8,%rcx,8), %r8
movsd %xmm1, (%r8,%rdx,8)
movq -0x8(%rsi,%rcx,8), %rsi
movsd 0x8(%rsi,%rdx,8), %xmm1
addsd 0x8(%rdi,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movq 0x400(%rbx), %rsi
movq -0x8(%rsi,%rcx,8), %rsi
movsd %xmm1, 0x8(%rsi,%rdx,8)
movq 0x430(%rbx), %rdi
movq (%rdi,%rcx,8), %rsi
cmpb $0x2, 0x1(%rsi,%rdx)
jne 0x3800
movq -0x8(%rdi,%rcx,8), %rdi
cmpb $0x5, 0x1(%rdi,%rdx)
je 0x37fb
cmpb $0x5, (%rsi,%rdx)
je 0x37fb
cmpb $0x5, 0x2(%rsi,%rdx)
jne 0x3800
movb $0x6, 0x1(%rsi,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x377e
movq 0x3f8(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
movsd 0x8(%rdx), %xmm1
movsd %xmm1, (%rdx)
incq %rcx
cmpq %r14, %rcx
jne 0x3772
movq %r15, %rdi
callq 0x1180
testq %rax, %rax
je 0x3b80
movq %rax, %r15
movss 0x44c(%rbx), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jne 0x3ba3
jp 0x3ba3
cmpl $0x2, %ebp
movaps 0x60(%rsp), %xmm11
jl 0x392f
movsd 0x5827(%rip), %xmm0     # 0x9098
movsd 0x80(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd 0x5816(%rip), %xmm0     # 0x90a0
xorps %xmm1, %xmm1
cvtss2sd 0x58(%rbx), %xmm1
movss 0x5c(%rbx), %xmm2
xorps %xmm3, %xmm3
cvtss2sd 0x60(%rbx), %xmm3
xorps %xmm4, %xmm4
cvtss2sd 0x4(%rbx), %xmm4
mulsd 0x5789(%rip), %xmm4     # 0x9038
movapd %xmm4, %xmm5
mulsd %xmm4, %xmm5
leaq -0x1(%r14), %rax
xorl %ecx, %ecx
movsd 0x5763(%rip), %xmm6     # 0x9028
movsd 0x578b(%rip), %xmm7     # 0x9058
xorps %xmm8, %xmm8
cvtsi2ss %ecx, %xmm8
mulss %xmm11, %xmm8
xorps %xmm9, %xmm9
cvtss2sd %xmm8, %xmm9
mulss %xmm2, %xmm8
cvtss2sd %xmm8, %xmm8
mulsd %xmm6, %xmm8
addsd %xmm1, %xmm8
subsd %xmm4, %xmm9
mulsd %xmm9, %xmm9
divsd %xmm5, %xmm9
movapd %xmm7, %xmm10
subsd %xmm9, %xmm10
mulsd %xmm3, %xmm10
addsd %xmm8, %xmm10
mulsd %xmm0, %xmm10
movsd %xmm10, 0x8(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x38cd
cmpl $0x2, %r13d
jl 0x3b45
movl %r13d, %esi
movl %ebp, %r13d
xorps %xmm6, %xmm6
movsd 0x570e(%rip), %xmm0     # 0x9058
movl $0x1, %r12d
movsd 0x56d0(%rip), %xmm3     # 0x9028
movsd 0x5738(%rip), %xmm4     # 0x9098
movsd 0x5738(%rip), %xmm5     # 0x90a0
movq %rsi, 0x50(%rsp)
xorps %xmm1, %xmm1
cvtss2sd 0x70(%rbx), %xmm1
ucomisd %xmm3, %xmm1
jbe 0x3a46
leal -0x1(%r12), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0x60(%rsp), %xmm0
xorps %xmm3, %xmm3
cvtss2sd 0x68(%rbx), %xmm3
mulsd %xmm4, %xmm3
movsd 0x80(%rsp), %xmm2
mulsd %xmm2, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm5, %xmm3
movsd %xmm3, 0x10(%rsp)
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
xorps %xmm2, %xmm2
cvtss2sd 0x8(%rbx), %xmm2
divsd %xmm2, %xmm0
callq 0x10b0
mulsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movss 0x6c(%rbx), %xmm0
addss 0x5730(%rip), %xmm0     # 0x911c
xorps %xmm1, %xmm1
cvtss2sd 0x8(%rbx), %xmm1
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x20(%rsp), %xmm0
divsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x70(%rbx), %xmm1
callq 0x10b0
movsd 0x10(%rsp), %xmm6
movsd 0x567d(%rip), %xmm5     # 0x90a0
movsd 0x566d(%rip), %xmm4     # 0x9098
movsd 0x55f5(%rip), %xmm3     # 0x9028
movq 0x50(%rsp), %rsi
mulsd 0x40(%rsp), %xmm0
addsd 0x5612(%rip), %xmm0     # 0x9058
cmpl $0x2, %ebp
jl 0x3a77
movq 0x408(%rbx), %rax
movl $0x1, %ecx
movsd (%r15,%rcx,8), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm6, %xmm1
movq (%rax,%rcx,8), %rdx
movsd %xmm1, (%rdx,%r12,8)
incq %rcx
cmpq %rcx, %r13
jne 0x3a57
movq 0x430(%rbx), %rax
movq 0x8(%rax), %rcx
cmpb $0x3, (%rcx,%r12)
jne 0x3ab9
xorps %xmm1, %xmm1
cvtss2sd 0x64(%rbx), %xmm1
mulsd %xmm4, %xmm1
mulsd 0x80(%rsp), %xmm1
mulsd %xmm5, %xmm1
movq 0x408(%rbx), %rcx
movq 0x8(%rcx), %rcx
addsd (%rcx,%r12,8), %xmm1
movsd %xmm1, (%rcx,%r12,8)
cmpl $0x2, %ebp
jl 0x3b39
movl $0x1, %ecx
movq (%rax,%rcx,8), %rdx
cmpb $0x7, (%rdx,%r12)
jne 0x3b31
movq 0x1468(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
movsd (%rdx,%r12,8), %xmm1
movq 0x1460(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
mulsd (%rdx,%r12,8), %xmm1
movq 0x1458(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
mulsd (%rdx,%r12,8), %xmm1
movq 0x1450(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
mulsd (%rdx,%r12,8), %xmm1
mulsd %xmm1, %xmm1
movq 0x408(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
movsd (%rdx,%r12,8), %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%rdx,%r12,8)
incq %rcx
cmpq %rcx, %r13
jne 0x3ac3
incq %r12
cmpq %rsi, %r12
jne 0x396d
movq %r15, %rdi
callq 0x1030
cmpl $0x2, %ebp
jl 0x3b70
movl $0x1, %r15d
movq 0x3f0(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x1030
incq %r15
cmpq %r15, %r14
jne 0x3b58
movq 0x3f0(%rbx), %rdi
callq 0x1030
xorl %eax, %eax
jmp 0x3b91
leaq 0x64c8(%rip), %rdi      # 0xa04f
callq 0x1070
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cvttss2si 0x4(%rbx), %esi
movslq %esi, %rax
movss 0x44c(%rbx,%rax,4), %xmm1
ucomiss %xmm0, %xmm1
jne 0x3bcb
jp 0x3bcb
leaq 0x63ab(%rip), %rdi      # 0x9f6d
xorl %eax, %eax
callq 0x10f0
jmp 0x3b8c
cmpl $0x2, %ebp
movaps 0x60(%rsp), %xmm2
movl 0xc(%rsp), %r13d
jl 0x392f
movsd 0x54b2(%rip), %xmm0     # 0x9098
movsd 0x80(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd 0x54a1(%rip), %xmm0     # 0x90a0
leaq -0x1(%r14), %rax
xorl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
cvttss2si %xmm1, %edx
movslq %edx, %rdx
xorps %xmm1, %xmm1
cvtss2sd 0x44c(%rbx,%rdx,4), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x3c05
jmp 0x392f