// File: /workspace/github_cpp_makefile_star2_O2/sundale[P]gcode/rs274ngc/interp_cycles.cc
// Function: Interp::convert_cycle_xy(int, block_struct*, setup_struct*)
int Interp::convert_cycle_xy(int motion, //!< a g-code between G_81 and G_89, a canned cycle
                            block_pointer block,        //!< pointer to a block of RS274 instructions      
                            setup_pointer settings)     //!< pointer to machine settings                   
{
  double aa;
  double aa_increment=0.;
  double bb;
  double bb_increment=0.;
  double cc;
  double clear_cc;
  double i;
  double j;
  double k;
  double old_cc;
  double radius_increment = 0.;
  double theta_increment = 0.;
  CANON_PLANE plane;
  double r;
  int repeat;
  CANON_MOTION_MODE save_mode;
  double save_tolerance;

  plane = CANON_PLANE_XY;
  if (settings->motion_mode != motion) {
    CHKS((block->z_flag == OFF),
        _readers[(int)'z']? NCE_Z_VALUE_UNSPECIFIED_IN_XY_PLANE_CANNED_CYCLE: _("G17 canned cycle is not possible on a machine without Z axis"));
  }
  block->z_number =
    block->z_flag == ON ? block->z_number : settings->cycle_cc;
  old_cc = settings->current_z;

  if (settings->distance_mode == MODE_ABSOLUTE) {
    double radius, theta;
    aa_increment = 0.0;
    bb_increment = 0.0;
    r = block->r_number;
    cc = block->z_number;
    if(block->radius_flag)
        radius = block->radius;
    else
        radius = hypot(settings->current_y, settings->current_x);
    if(block->theta_flag)
        theta = D2R(block->theta);
    else
        theta = atan2(settings->current_y, settings->current_x);
    if(block->radius_flag || block->theta_flag) {
        aa = radius * cos(theta);
        bb = radius * sin(theta);
    } else {
        aa = block->x_flag == ON ? block->x_number : settings->current_x;
        bb = block->y_flag == ON ? block->y_number : settings->current_y;
    }
  } else if (settings->distance_mode == MODE_INCREMENTAL) {
    if (block->x_flag) aa_increment = block->x_number;
    if (block->y_flag) bb_increment = block->y_number;
    if (block->radius_flag) radius_increment = block->radius;
    if (block->theta_flag) theta_increment = D2R(block->theta);
    r = (block->r_number + old_cc);
    cc = (r + block->z_number); /* [NCMS, page 98] */
    aa = settings->current_x;
    bb = settings->current_y;
  } else
    ERS(NCE_BUG_DISTANCE_MODE_NOT_G90_OR_G91);
  CHKS((r < cc), NCE_R_LESS_THAN_Z_IN_CYCLE_IN_XY_PLANE);

  if (old_cc < r) {
    STRAIGHT_TRAVERSE(block->line_number, settings->current_x, settings->current_y, r,
                      settings->AA_current, settings->BB_current, settings->CC_current, 
                      settings->u_current, settings->v_current, settings->w_current);
    old_cc = r;
  }
  clear_cc = (settings->retract_mode == R_PLANE) ? r : old_cc;

  save_mode = GET_EXTERNAL_MOTION_CONTROL_MODE();
  save_tolerance = GET_EXTERNAL_MOTION_CONTROL_TOLERANCE();
  if (save_mode != CANON_EXACT_PATH)
    SET_MOTION_CONTROL_MODE(CANON_EXACT_PATH, 0);

  switch (motion) {
  case G_81:
      CYCLE_MACRO(convert_cycle_g81(block, CANON_PLANE_XY, aa, bb, clear_cc, cc))
      break;
  case G_82:
    CHKS(((settings->motion_mode != G_82) && (block->p_number == -1.0)),
        NCE_DWELL_TIME_P_WORD_MISSING_WITH_G82);
    block->p_number =
      block->p_number == -1.0 ? settings->cycle_p : block->p_number;
    CYCLE_MACRO(convert_cycle_g82(block, CANON_PLANE_XY, aa, bb, clear_cc, cc,
                                  block->p_number))
      settings->cycle_p = block->p_number;
    break;
  case G_73:
    CHKS(((settings->motion_mode != G_73) && (block->q_number == -1.0)),
        NCE_Q_WORD_MISSING_WITH_G73);
    block->q_number =
      block->q_number == -1.0 ? settings->cycle_q : block->q_number;
    CYCLE_MACRO(convert_cycle_g73(block, CANON_PLANE_XY, aa, bb, r, clear_cc, cc,
                                  block->q_number))
      settings->cycle_q = block->q_number;
    break;
  case G_83:
    CHKS(((settings->motion_mode != G_83) && (block->q_number == -1.0)),
        NCE_Q_WORD_MISSING_WITH_G83);
    block->q_number =
      block->q_number == -1.0 ? settings->cycle_q : block->q_number;
    CYCLE_MACRO(convert_cycle_g83(block, CANON_PLANE_XY, aa, bb, r, clear_cc, cc,
                                  block->q_number))
      settings->cycle_q = block->q_number;
    break;
  case G_84:
      CYCLE_MACRO(convert_cycle_g84(block, CANON_PLANE_XY, aa, bb, clear_cc, cc,
                                  settings->spindle_turning,
                                  settings->speed_feed_mode)) break;
  case G_85:
      CYCLE_MACRO(convert_cycle_g85(block, CANON_PLANE_XY, aa, bb, clear_cc, cc))
      break;
  case G_86:
    CHKS(((settings->motion_mode != G_86) && (block->p_number == -1.0)),
        NCE_DWELL_TIME_P_WORD_MISSING_WITH_G86);
    block->p_number =
      block->p_number == -1.0 ? settings->cycle_p : block->p_number;
    CYCLE_MACRO(convert_cycle_g86(block, CANON_PLANE_XY, aa, bb, clear_cc, cc,
                                  block->p_number,
                                  settings->spindle_turning)) settings->
      cycle_p = block->p_number;
    break;
  case G_87:
    if (settings->motion_mode != G_87) {
      CHKS((block->i_flag == OFF), NCE_I_WORD_MISSING_WITH_G87);
      CHKS((block->j_flag == OFF), NCE_J_WORD_MISSING_WITH_G87);
      CHKS((block->k_flag == OFF), NCE_K_WORD_MISSING_WITH_G87);
    }
    i = block->i_flag == ON ? block->i_number : settings->cycle_i;
    j = block->j_flag == ON ? block->j_number : settings->cycle_j;
    k = block->k_flag == ON ? block->k_number : settings->cycle_k;
    settings->cycle_i = i;
    settings->cycle_j = j;
    settings->cycle_k = k;
    if (settings->distance_mode == MODE_INCREMENTAL) {
      k = (cc + k);             /* k always absolute in function call below */
    }
    CYCLE_MACRO(convert_cycle_g87(block, CANON_PLANE_XY, aa, (aa + i), bb,
                                  (bb + j), r, clear_cc, k, cc,
                                  settings->spindle_turning)) break;
  case G_88:
    CHKS(((settings->motion_mode != G_88) && (block->p_number == -1.0)),
        NCE_DWELL_TIME_P_WORD_MISSING_WITH_G88);
    block->p_number =
      block->p_number == -1.0 ? settings->cycle_p : block->p_number;
    CYCLE_MACRO(convert_cycle_g88(block, CANON_PLANE_XY, aa, bb, cc,
                                  block->p_number,
                                  settings->spindle_turning)) settings->
      cycle_p = block->p_number;
    break;
  case G_89:
    CHKS(((settings->motion_mode != G_89) && (block->p_number == -1.0)),
        NCE_DWELL_TIME_P_WORD_MISSING_WITH_G89);
    block->p_number =
      block->p_number == -1.0 ? settings->cycle_p : block->p_number;
    CYCLE_MACRO(convert_cycle_g89(block, CANON_PLANE_XY, aa, bb, clear_cc, cc,
                                  block->p_number))
      settings->cycle_p = block->p_number;
    break;
  default:
    ERS(NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);
  }
  settings->current_x = aa;     /* CYCLE_MACRO updates aa and bb */
  settings->current_y = bb;
  settings->current_z = clear_cc;
  settings->cycle_cc = block->z_number;

  if (save_mode != CANON_EXACT_PATH)
    SET_MOTION_CONTROL_MODE(save_mode, save_tolerance);

  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %r13d
movq %rdi, %rbx
movb 0x290(%rdx), %al
cmpl %esi, 0x1798(%rcx)
je 0x1b412
testb %al, %al
movb $0x1, %al
je 0x1b549
leaq 0x298(%r15), %r12
leaq 0x628(%r14), %rcx
testb $0x1, %al
cmovneq %r12, %rcx
movsd (%rcx), %xmm3
movsd %xmm3, 0x298(%r15)
movsd 0x610(%r14), %xmm1
movl 0x668(%r14), %eax
cmpl $0x1, %eax
je 0x1b484
testl %eax, %eax
jne 0x1b53d
movsd 0x230(%r15), %xmm2
cmpl $0x0, 0x2a0(%r15)
movsd %xmm2, -0x70(%rbp)
movsd %xmm3, -0x68(%rbp)
movsd %xmm1, -0x48(%rbp)
je 0x1b568
movsd 0x2a8(%r15), %xmm0
jmp 0x1b58e
xorpd %xmm0, %xmm0
movsd %xmm0, -0x80(%rbp)
cmpb $0x1, 0x270(%r15)
movsd %xmm0, -0x78(%rbp)
jne 0x1b4aa
movsd 0x278(%r15), %xmm0
movsd %xmm0, -0x78(%rbp)
cmpb $0x1, 0x280(%r15)
jne 0x1b4c2
movsd 0x288(%r15), %xmm0
movsd %xmm0, -0x80(%rbp)
xorpd %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
cmpl $0x0, 0x2a0(%r15)
movsd %xmm0, -0x58(%rbp)
je 0x1b4e8
movsd 0x2a8(%r15), %xmm0
movsd %xmm0, -0x58(%rbp)
cmpl $0x0, 0x2b0(%r15)
je 0x1b510
movsd 0x2b8(%r15), %xmm0
mulsd 0x149d5(%rip), %xmm0    # 0x2fed8
divsd 0x149d5(%rip), %xmm0    # 0x2fee0
movsd %xmm0, -0x50(%rbp)
movsd 0x230(%r15), %xmm2
addsd %xmm1, %xmm2
addsd %xmm2, %xmm3
movsd 0x600(%r14), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd 0x608(%r14), %xmm4
jmp 0x1b644
leaq 0x17b75(%rip), %rdi     # 0x330b9
jmp 0x1cd72
cmpq $0x0, 0x7a8(%rbx)
leaq 0x17b24(%rip), %rax     # 0x3307c
leaq 0x17af0(%rip), %rdi     # 0x3304f
cmoveq %rax, %rdi
jmp 0x1cd72
movsd 0x600(%r14), %xmm1
movsd 0x608(%r14), %xmm0
callq 0xb2c0
movsd -0x48(%rbp), %xmm1
movsd -0x68(%rbp), %xmm3
movsd -0x70(%rbp), %xmm2
movsd %xmm0, -0x30(%rbp)
cmpl $0x0, 0x2b0(%r15)
je 0x1b5b8
movsd 0x2b8(%r15), %xmm0
mulsd 0x1492a(%rip), %xmm0    # 0x2fed8
divsd 0x1492a(%rip), %xmm0    # 0x2fee0
jmp 0x1b5de
movsd 0x600(%r14), %xmm1
movsd 0x608(%r14), %xmm0
callq 0xb110
movsd -0x48(%rbp), %xmm1
movsd -0x68(%rbp), %xmm3
movsd -0x70(%rbp), %xmm2
cmpl $0x0, 0x2a0(%r15)
jne 0x1b5f6
cmpl $0x0, 0x2b0(%r15)
je 0x1b95c
movsd %xmm0, -0x60(%rbp)
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x60(%rbp), %xmm0
callq 0xb200
movsd -0x48(%rbp), %xmm1
movsd -0x68(%rbp), %xmm3
movsd -0x70(%rbp), %xmm2
movapd %xmm0, %xmm4
mulsd -0x30(%rbp), %xmm4
xorpd %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
movsd %xmm0, -0x58(%rbp)
movsd %xmm0, -0x80(%rbp)
movsd %xmm0, -0x78(%rbp)
ucomisd %xmm2, %xmm3
jbe 0x1b656
leaq 0x17a89(%rip), %rdi     # 0x330da
jmp 0x1cd72
movq %r12, -0x98(%rbp)
movsd %xmm4, -0x30(%rbp)
movsd %xmm3, -0x68(%rbp)
ucomisd %xmm1, %xmm2
movsd %xmm2, -0x70(%rbp)
jbe 0x1b6c6
movl 0x1d0(%r15), %edi
movsd 0x600(%r14), %xmm0
movsd 0x608(%r14), %xmm1
movsd 0x8(%r14), %xmm3
movsd 0x20(%r14), %xmm4
movsd 0x38(%r14), %xmm5
movsd 0x50(%r14), %xmm6
movsd 0x68(%r14), %xmm7
movsd 0x80(%r14), %xmm8
movsd %xmm8, (%rsp)
callq 0xb970
movsd -0x70(%rbp), %xmm2
movapd %xmm2, %xmm1
movq %r14, %rax
movq %rbx, %r14
movq %rax, %r12
cmpl $0x0, 0xc6a8(%rax)
movsd %xmm2, -0x60(%rbp)
je 0x1b6e2
movsd %xmm1, -0x60(%rbp)
movsd %xmm1, -0x48(%rbp)
callq 0xb210
movl %eax, %ebx
callq 0xc720
movsd %xmm0, -0xb0(%rbp)
movl %ebx, -0x84(%rbp)
cmpl $0x2, %ebx
je 0x1b712
pushq $0x2
popq %rdi
xorpd %xmm0, %xmm0
callq 0xb0e0
cmpl $0x2da, %r13d           # imm = 0x2DA
movq %r14, %rbx
je 0x1c096
cmpl $0x37a, %r13d           # imm = 0x37A
movq %r12, %r14
movsd -0x68(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
je 0x1b9dc
cmpl $0x334, %r13d           # imm = 0x334
je 0x1c0de
cmpl $0x33e, %r13d           # imm = 0x33E
je 0x1bcf5
cmpl $0x348, %r13d           # imm = 0x348
je 0x1beeb
cmpl $0x352, %r13d           # imm = 0x352
je 0x1bd3b
cmpl $0x35c, %r13d           # imm = 0x35C
je 0x1b9a2
cmpl $0x366, %r13d           # imm = 0x366
je 0x1ba50
cmpl $0x370, %r13d           # imm = 0x370
je 0x1ba16
cmpl $0x32a, %r13d           # imm = 0x32A
jne 0x1bd2f
movl 0x1c8(%r15), %r13d
xorpd %xmm2, %xmm2
pushq $0x1
popq %r12
testl %r13d, %r13d
jle 0x1cde9
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1b7dd
jnp 0x1b848
ucomisd %xmm2, %xmm3
jne 0x1b7f1
jp 0x1b7f1
ucomisd %xmm2, %xmm1
jne 0x1b7f1
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1b855
jnp 0x1b8cd
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1b86e
jp 0x1b86e
ucomisd %xmm2, %xmm1
jne 0x1b86e
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1b8d2
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r12d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1b905
jnp 0x1b91a
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm2
movsd -0x68(%rbp), %xmm3
callq 0xb330
decl %r13d
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
jmp 0x1b7b8
leaq 0x278(%r15), %rax
leaq 0x600(%r14), %rcx
cmpb $0x0, 0x270(%r15)
cmovneq %rax, %rcx
movsd (%rcx), %xmm0
movsd %xmm0, -0x38(%rbp)
leaq 0x288(%r15), %rax
cmpb $0x0, 0x280(%r15)
leaq 0x608(%r14), %rcx
cmovneq %rax, %rcx
movsd (%rcx), %xmm4
jmp 0x1b62c
cmpl $0x35c, 0x1798(%r14) # imm = 0x35C
movsd 0x210(%r15), %xmm0
je 0x1c118
ucomisd 0x13eac(%rip), %xmm0    # 0x2f870
jne 0x1c118
jp 0x1c118
leaq 0x177c7(%rip), %rdi     # 0x3319e
jmp 0x1cd72
cmpl $0x37a, 0x1798(%r14) # imm = 0x37A
movsd 0x210(%r15), %xmm0
je 0x1c318
ucomisd 0x13e72(%rip), %xmm0    # 0x2f870
jne 0x1c318
jp 0x1c318
leaq 0x1781b(%rip), %rdi     # 0x3322c
jmp 0x1cd72
cmpl $0x370, 0x1798(%r14) # imm = 0x370
movsd 0x210(%r15), %xmm0
je 0x1c4fd
ucomisd 0x13e38(%rip), %xmm0    # 0x2f870
jne 0x1c4fd
jp 0x1c4fd
leaq 0x177be(%rip), %rdi     # 0x33209
jmp 0x1cd72
cmpl $0x366, 0x1798(%r14) # imm = 0x366
movb 0x198(%r15), %dl
jne 0x1c8f6
movb 0x1a8(%r15), %cl
movb 0x1b8(%r15), %al
leaq 0x1a0(%r15), %rsi
leaq 0x630(%r14), %rdi
testb $0x1, %dl
cmovneq %rsi, %rdi
movsd (%rdi), %xmm2
leaq 0x1b0(%r15), %rdx
leaq 0x638(%r14), %rsi
testb $0x1, %cl
cmovneq %rdx, %rsi
movsd (%rsi), %xmm4
leaq 0x1c0(%r15), %rcx
leaq 0x640(%r14), %rdx
testb $0x1, %al
cmovneq %rcx, %rdx
movsd (%rdx), %xmm5
movsd %xmm2, -0x90(%rbp)
movsd %xmm2, 0x630(%r14)
movsd %xmm4, -0xa8(%rbp)
movsd %xmm4, 0x638(%r14)
movsd %xmm5, 0x640(%r14)
cmpl $0x1, 0x668(%r14)
jne 0x1baf9
addsd %xmm0, %xmm5
movsd %xmm5, -0xa0(%rbp)
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cde9
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1bb37
jnp 0x1bba8
ucomisd %xmm2, %xmm3
pushq $0x1
popq %r13
jne 0x1bb4f
jp 0x1bb4f
ucomisd %xmm2, %xmm1
jne 0x1bb4f
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1bbac
pushq $0x1
popq %r13
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1bbb9
jnp 0x1bc31
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1bbd2
jp 0x1bbd2
ucomisd %xmm2, %xmm1
jne 0x1bbd2
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1bc36
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm4
movsd -0x48(%rbp), %xmm0
ucomisd %xmm4, %xmm0
jne 0x1bc69
jnp 0x1bc87
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movapd %xmm4, %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm4
movsd -0x90(%rbp), %xmm1
movsd -0x38(%rbp), %xmm0
addsd %xmm0, %xmm1
movsd -0xa8(%rbp), %xmm3
movsd -0x30(%rbp), %xmm2
addsd %xmm2, %xmm3
movl 0xc6cc(%r14), %ecx
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
movsd -0x60(%rbp), %xmm5
movsd -0xa0(%rbp), %xmm6
movsd -0x68(%rbp), %xmm7
callq 0xbb90
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1bb0f
jmp 0x1cb25
cmpl $0x33e, 0x1798(%r14) # imm = 0x33E
movsd 0x220(%r15), %xmm0
je 0x1c6f8
ucomisd 0x13b59(%rip), %xmm0    # 0x2f870
jne 0x1c6f8
jp 0x1c6f8
leaq 0x1745c(%rip), %rdi     # 0x33186
jmp 0x1cd72
leaq 0x17519(%rip), %rdi     # 0x3324f
jmp 0x1cd72
movl 0x1c8(%r15), %r13d
xorpd %xmm2, %xmm2
pushq $0x1
popq %r12
testl %r13d, %r13d
jle 0x1cde9
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1bd6f
jnp 0x1bdda
ucomisd %xmm2, %xmm3
jne 0x1bd83
jp 0x1bd83
ucomisd %xmm2, %xmm1
jne 0x1bd83
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1bde7
jnp 0x1be5f
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1be00
jp 0x1be00
ucomisd %xmm2, %xmm1
jne 0x1be00
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1be64
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r12d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1be97
jnp 0x1beac
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm2
movsd -0x68(%rbp), %xmm3
callq 0xc2f0
decl %r13d
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
jmp 0x1bd4a
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cde9
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1bf21
jnp 0x1bf8c
ucomisd %xmm2, %xmm3
jne 0x1bf35
jp 0x1bf35
ucomisd %xmm2, %xmm1
jne 0x1bf35
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x68(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x68(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x68(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
pushq $0x1
popq %r13
jne 0x1bf9d
jnp 0x1c015
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1bfb6
jp 0x1bfb6
ucomisd %xmm2, %xmm1
jne 0x1bfb6
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x68(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x68(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x68(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c01a
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c04d
jnp 0x1c062
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movl 0xc6cc(%r14), %ecx
movq %rbx, %rdi
callq 0xbe00
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1bef9
jmp 0x1cb25
movq %r12, %r14
cmpl $0x2da, 0x1798(%r12) # imm = 0x2DA
movsd 0x220(%r15), %xmm0
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
je 0x1c92c
ucomisd 0x137aa(%rip), %xmm0    # 0x2f870
jne 0x1c92c
jp 0x1c92c
leaq 0x17095(%rip), %rdi     # 0x3316e
jmp 0x1cd72
cmpl $0x334, 0x1798(%r14) # imm = 0x334
movsd 0x210(%r15), %xmm0
je 0x1cb86
ucomisd 0x13770(%rip), %xmm0    # 0x2f870
jne 0x1cb86
jp 0x1cb86
leaq 0x17038(%rip), %rdi     # 0x3314b
jmp 0x1cd72
ucomisd 0x13750(%rip), %xmm0    # 0x2f870
jne 0x1c12d
jp 0x1c12d
movsd 0x650(%r14), %xmm0
leaq 0x210(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x210(%r15)
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cdcc
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1c17a
jnp 0x1c1eb
ucomisd %xmm2, %xmm3
pushq $0x1
popq %r13
jne 0x1c192
jp 0x1c192
ucomisd %xmm2, %xmm1
jne 0x1c192
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c1ef
pushq $0x1
popq %r13
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c1fc
jnp 0x1c274
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1c215
jp 0x1c215
ucomisd %xmm2, %xmm1
jne 0x1c215
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c279
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c2ac
jnp 0x1c2c1
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd 0x210(%r15), %xmm4
movl 0xc6cc(%r14), %ecx
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm2
movsd -0x68(%rbp), %xmm3
callq 0xc790
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1c152
jmp 0x1cb25
ucomisd 0x13550(%rip), %xmm0    # 0x2f870
jne 0x1c32d
jp 0x1c32d
movsd 0x650(%r14), %xmm0
leaq 0x210(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x210(%r15)
movl 0x1c8(%r15), %r13d
xorpd %xmm2, %xmm2
pushq $0x1
popq %r12
testl %r13d, %r13d
jle 0x1cdcc
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1c378
jnp 0x1c3e3
ucomisd %xmm2, %xmm3
jne 0x1c38c
jp 0x1c38c
ucomisd %xmm2, %xmm1
jne 0x1c38c
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c3f0
jnp 0x1c468
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1c409
jp 0x1c409
ucomisd %xmm2, %xmm1
jne 0x1c409
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c46d
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r12d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c4a0
jnp 0x1c4b5
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd 0x210(%r15), %xmm4
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm2
movsd -0x68(%rbp), %xmm3
callq 0xc670
decl %r13d
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
jmp 0x1c353
ucomisd 0x1336b(%rip), %xmm0    # 0x2f870
jne 0x1c512
jp 0x1c512
movsd 0x650(%r14), %xmm0
leaq 0x210(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x210(%r15)
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cdcc
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1c55f
jnp 0x1c5d0
ucomisd %xmm2, %xmm3
pushq $0x1
popq %r13
jne 0x1c577
jp 0x1c577
ucomisd %xmm2, %xmm1
jne 0x1c577
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c5d4
pushq $0x1
popq %r13
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c5e1
jnp 0x1c659
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1c5fa
jp 0x1c5fa
ucomisd %xmm2, %xmm1
jne 0x1c5fa
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c65e
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c691
jnp 0x1c6a6
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd 0x210(%r15), %xmm3
movl 0xc6cc(%r14), %ecx
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x68(%rbp), %xmm2
callq 0xbfb0
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1c537
jmp 0x1cb25
ucomisd 0x13170(%rip), %xmm0    # 0x2f870
jne 0x1c70d
jp 0x1c70d
movsd 0x658(%r14), %xmm0
leaq 0x220(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x220(%r15)
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cdd3
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1c75a
jnp 0x1c7cb
ucomisd %xmm2, %xmm3
pushq $0x1
popq %r13
jne 0x1c772
jp 0x1c772
ucomisd %xmm2, %xmm1
jne 0x1c772
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c7cf
pushq $0x1
popq %r13
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c7dc
jnp 0x1c854
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1c7f5
jp 0x1c7f5
ucomisd %xmm2, %xmm1
jne 0x1c7f5
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1c859
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1c88c
jnp 0x1c8a6
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd 0x220(%r15), %xmm5
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm3
movsd -0x68(%rbp), %xmm4
callq 0xc380
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1c732
jmp 0x1cb25
testb %dl, %dl
je 0x1ce3d
cmpb $0x0, 0x1a8(%r15)
je 0x1ce49
movb $0x1, %al
cmpb $0x0, 0x1b8(%r15)
movb $0x1, %cl
movb $0x1, %dl
jne 0x1ba76
leaq 0x168ca(%rip), %rdi     # 0x331f1
jmp 0x1cd72
ucomisd 0x12f3c(%rip), %xmm0    # 0x2f870
jne 0x1c941
jp 0x1c941
movsd 0x658(%r14), %xmm0
leaq 0x220(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x220(%r15)
movl 0x1c8(%r15), %r12d
incl %r12d
xorpd %xmm2, %xmm2
decl %r12d
testl %r12d, %r12d
jle 0x1cdd3
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1c98e
jnp 0x1c9ff
ucomisd %xmm2, %xmm3
pushq $0x1
popq %r13
jne 0x1c9a6
jp 0x1c9a6
ucomisd %xmm2, %xmm1
jne 0x1c9a6
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1ca03
pushq $0x1
popq %r13
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1ca10
jnp 0x1ca88
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1ca29
jp 0x1ca29
ucomisd %xmm2, %xmm1
jne 0x1ca29
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1ca8d
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r13d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1cac0
jnp 0x1cada
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd 0x220(%r15), %xmm5
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm3
movsd -0x68(%rbp), %xmm4
callq 0xc4b0
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
testl %eax, %eax
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
je 0x1c966
movl %eax, %r13d
movq 0x20431(%rip), %rbx     # 0x3cf60
movslq 0xd670(%rbx), %rax
cmpq $0x30, %rax
jg 0x1cdb7
imulq $0x50, %rax, %rax
leaq (%rbx,%rax), %rdi
addq $0xc6d0, %rdi           # imm = 0xC6D0
leaq 0x15edf(%rip), %rsi     # 0x32a35
pushq $0x50
popq %rdx
callq 0xb940
movslq 0xd670(%rbx), %rax
imulq $0x50, %rax, %rcx
xorl %edx, %edx
movb %dl, 0xc71f(%rbx,%rcx)
incl %eax
movl %eax, 0xd670(%rbx)
movb %dl, 0xc720(%rbx,%rcx)
jmp 0x1cdb7
ucomisd 0x12ce2(%rip), %xmm0    # 0x2f870
jne 0x1cb9b
jp 0x1cb9b
movsd 0x650(%r14), %xmm0
leaq 0x210(%r15), %rax
movq %rax, -0x90(%rbp)
movsd %xmm0, 0x210(%r15)
movl 0x1c8(%r15), %r13d
xorpd %xmm2, %xmm2
pushq $0x1
popq %r12
testl %r13d, %r13d
jle 0x1cdcc
movsd -0x58(%rbp), %xmm0
ucomisd %xmm2, %xmm0
addsd -0x78(%rbp), %xmm1
addsd -0x80(%rbp), %xmm3
movsd %xmm1, -0x38(%rbp)
jne 0x1cbe6
jnp 0x1cc51
ucomisd %xmm2, %xmm3
jne 0x1cbfa
jp 0x1cbfa
ucomisd %xmm2, %xmm1
jne 0x1cbfa
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm3, -0x30(%rbp)
callq 0xb110
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
xorpd %xmm2, %xmm2
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
movsd -0x50(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1cc5e
jnp 0x1ccd6
ucomisd %xmm2, %xmm3
movsd -0x38(%rbp), %xmm1
jne 0x1cc77
jp 0x1cc77
ucomisd %xmm2, %xmm1
jne 0x1cc77
jnp 0x1cd6b
movapd %xmm3, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm3, -0x30(%rbp)
callq 0xb110
addsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0xb2c0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xc6c0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
callq 0xb200
movsd -0x38(%rbp), %xmm1
movapd %xmm0, %xmm3
mulsd -0x30(%rbp), %xmm3
jmp 0x1ccdb
movsd -0x38(%rbp), %xmm1
movsd %xmm3, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movq %r15, %rsi
movl %r12d, %edx
movaps %xmm1, %xmm0
movapd %xmm3, %xmm1
movsd -0x48(%rbp), %xmm2
callq 0xc270
movsd -0x70(%rbp), %xmm2
movsd -0x48(%rbp), %xmm0
ucomisd %xmm2, %xmm0
jne 0x1cd0e
jnp 0x1cd23
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0xc270
movsd 0x210(%r15), %xmm4
movq %r15, %rsi
movl %r12d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x60(%rbp), %xmm2
movsd -0x68(%rbp), %xmm3
callq 0xb2e0
decl %r13d
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm3
xorpd %xmm2, %xmm2
jmp 0x1cbc1
leaq 0x1638b(%rip), %rdi     # 0x330fd
callq 0xb220
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xb8e0
movq 0x201d5(%rip), %rbx     # 0x3cf60
leaq 0xc6d0(%rbx), %rdi
leaq 0x15c9c(%rip), %rsi     # 0x32a35
pushq $0x50
popq %rdx
callq 0xb940
andw $0x0, 0xc71f(%rbx)
movl $0x1, 0xd670(%rbx)
pushq $0x5
popq %r13
movl %r13d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x650, %eax            # imm = 0x650
jmp 0x1cdd8
movl $0x658, %eax            # imm = 0x658
movq -0x90(%rbp), %rcx
movsd (%rcx), %xmm0
movsd %xmm0, (%r14,%rax)
movq -0x98(%rbp), %rax
movl -0x84(%rbp), %edi
xorl %r13d, %r13d
movsd %xmm1, 0x600(%r14)
movsd %xmm3, 0x608(%r14)
movsd -0x60(%rbp), %xmm0
movsd %xmm0, 0x610(%r14)
movsd (%rax), %xmm0
movsd %xmm0, 0x628(%r14)
cmpl $0x2, %edi
je 0x1cdb7
movsd -0xb0(%rbp), %xmm0
callq 0xb0e0
jmp 0x1cdb7
leaq 0x1637d(%rip), %rdi     # 0x331c1
jmp 0x1cd72
leaq 0x16389(%rip), %rdi     # 0x331d9
jmp 0x1cd72
nop