// File: /workspace/github_cpp_makefile_star2_O3/sundale[P]gcode/rs274ngc/interp_cycles.cc
// Function: Interp::convert_cycle_wu(int, block_struct*, setup_struct*)
int Interp::convert_cycle_wu(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; //save current path-following tolerance, to restore it lateron

  plane = CANON_PLANE_UW;
  if (settings->motion_mode != motion) {
    CHKS((block->v_flag == OFF),
        _readers[(int)'v']? NCE_V_VALUE_UNSPECIFIED_IN_UW_PLANE_CANNED_CYCLE: _("G18.1 canned cycle is not possible on a machine without V axis"));
  }
  block->v_number =
    block->v_flag == ON ? block->v_number : settings->cycle_cc;
  old_cc = settings->v_current;

  if (settings->distance_mode == MODE_ABSOLUTE) {
    aa_increment = 0.0;
    bb_increment = 0.0;
    r = block->r_number;
    cc = block->v_number;
    aa = block->w_flag == ON ? block->w_number : settings->w_current;
    bb = block->u_flag == ON ? block->u_number : settings->u_current;
  } else if (settings->distance_mode == MODE_INCREMENTAL) {
    if (block->w_flag == ON) aa_increment = block->w_number;
    if (block->u_flag == ON) bb_increment = block->u_number;
    r = (block->r_number + old_cc);
    cc = (r + block->v_number); /* [NCMS, page 98] */
    aa = settings->w_current;
    bb = settings->u_current;
  } else
    ERS(NCE_BUG_DISTANCE_MODE_NOT_G90_OR_G91);
  CHKS((r < cc), NCE_R_LESS_THAN_V_IN_CYCLE_IN_UW_PLANE);

  if (old_cc < r) {
    STRAIGHT_TRAVERSE(block->line_number, settings->current_x, settings->current_y, settings->current_z,
                      settings->AA_current, settings->BB_current, settings->CC_current,
                      settings->u_current, r, 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_UW, 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_UW, 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_UW, 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_UW, 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_UW, aa, bb, clear_cc, cc,
                                  settings->spindle_turning,
                                  settings->speed_feed_mode)) break;
  case G_85:
    CYCLE_MACRO(convert_cycle_g85(block, CANON_PLANE_UW, 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_UW, 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) {
      j = (cc + j);             /* j always absolute in function call below */
    }
    CYCLE_MACRO(convert_cycle_g87(block, CANON_PLANE_UW, aa, (aa + k), bb,
                                  (bb + i), r, clear_cc, j, 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_UW, 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_UW, 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->w_current = aa;     /* CYCLE_MACRO updates aa and bb */
  settings->u_current = bb;
  settings->v_current = clear_cc;
  settings->cycle_cc = block->v_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 $0x88, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r13d
movq %rdi, %r12
movb 0x250(%rdx), %al
cmpl %esi, 0x1798(%rcx)
je 0x2252e
testb %al, %al
movb $0x1, %al
je 0x2283e
leaq 0x258(%r14), %r15
leaq 0x628(%rbx), %rcx
testb $0x1, %al
cmovneq %r15, %rcx
movsd (%rcx), %xmm1
movsd %xmm1, 0x258(%r14)
movsd 0x68(%rbx), %xmm2
movl 0x668(%rbx), %eax
cmpl $0x1, %eax
je 0x225b1
testl %eax, %eax
jne 0x22835
movsd 0x230(%r14), %xmm7
leaq 0x268(%r14), %rcx
leaq 0x80(%rbx), %rax
cmpb $0x0, 0x260(%r14)
cmovneq %rcx, %rax
leaq 0x248(%r14), %rdx
leaq 0x50(%rbx), %rcx
cmpb $0x0, 0x244(%r14)
cmovneq %rdx, %rcx
xorpd %xmm0, %xmm0
movsd %xmm0, -0x70(%rbp)
movsd %xmm0, -0x68(%rbp)
jmp 0x2260b
xorpd %xmm0, %xmm0
movsd %xmm0, -0x70(%rbp)
cmpb $0x1, 0x260(%r14)
movsd %xmm0, -0x68(%rbp)
jne 0x225d7
movsd 0x268(%r14), %xmm0
movsd %xmm0, -0x68(%rbp)
cmpb $0x1, 0x244(%r14)
jne 0x225ef
movsd 0x248(%r14), %xmm0
movsd %xmm0, -0x70(%rbp)
movsd 0x230(%r14), %xmm7
addsd %xmm2, %xmm7
addsd %xmm7, %xmm1
leaq 0x80(%rbx), %rax
leaq 0x50(%rbx), %rcx
ucomisd %xmm7, %xmm1
jbe 0x2261d
leaq 0x14f04(%rip), %rdi     # 0x3751c
jmp 0x22859
movsd %xmm1, -0x80(%rbp)
movsd (%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd (%rcx), %xmm0
movsd %xmm0, -0x30(%rbp)
ucomisd %xmm2, %xmm7
movsd %xmm7, -0x60(%rbp)
jbe 0x2268f
movl 0x1d0(%r14), %edi
movsd 0x600(%rbx), %xmm0
movsd 0x608(%rbx), %xmm1
movsd 0x610(%rbx), %xmm2
movsd 0x8(%rbx), %xmm3
movsd 0x20(%rbx), %xmm4
movsd 0x38(%rbx), %xmm5
movsd 0x50(%rbx), %xmm6
movsd 0x80(%rbx), %xmm8
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movapd %xmm7, %xmm2
movq %r12, -0x58(%rbp)
cmpl $0x0, 0xc6a8(%rbx)
movapd %xmm7, %xmm0
je 0x226a4
movapd %xmm2, %xmm0
movsd %xmm2, -0x40(%rbp)
movsd %xmm0, -0x50(%rbp)
callq 0xa1e0
movl %eax, %r12d
callq 0xb5b0
movsd %xmm0, -0xa0(%rbp)
cmpl $0x2, %r12d
je 0x226d7
xorpd %xmm0, %xmm0
movl $0x2, %edi
callq 0xa0d0
cmpl $0x351, %r13d           # imm = 0x351
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
movsd -0x40(%rbp), %xmm7
jg 0x228b8
cmpl $0x333, %r13d           # imm = 0x333
jle 0x22925
cmpl $0x334, %r13d           # imm = 0x334
je 0x22d1b
cmpl $0x33e, %r13d           # imm = 0x33E
je 0x22f55
cmpl $0x348, %r13d           # imm = 0x348
jne 0x22fc1
movl %r12d, -0x44(%rbp)
movq %r15, -0x78(%rbp)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x238bd
incl %r12d
movq 0x1e816(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x227b6
jnp 0x227fe
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm6
cmpl $0x2, 0xc6cc(%rbx)
jne 0x23906
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movapd %xmm6, %xmm8
movapd %xmm0, %xmm6
jge 0x2274a
jmp 0x238bd
leaq 0x1487d(%rip), %rdi     # 0x370b9
jmp 0x22859
cmpq $0x0, 0x768(%r12)
leaq 0x14c8f(%rip), %rax     # 0x374dd
leaq 0x14c5b(%rip), %rdi     # 0x374b0
cmoveq %rax, %rdi
callq 0xa1f0
movq %r12, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xa850
movq 0x1e6ee(%rip), %rbx     # 0x40f60
leaq 0xc6d0(%rbx), %rdi
leaq 0x1434a(%rip), %rsi     # 0x36bca
movl $0x50, %edx
callq 0xa8a0
movw $0x0, 0xc71f(%rbx)
movl $0x1, 0xd670(%rbx)
movl $0x5, %r13d
movl %r13d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x365, %r13d           # imm = 0x365
jle 0x22ae9
cmpl $0x366, %r13d           # imm = 0x366
je 0x22d54
cmpl $0x370, %r13d           # imm = 0x370
je 0x22f8b
cmpl $0x37a, %r13d           # imm = 0x37A
jne 0x22fc1
cmpl $0x37a, 0x1798(%rbx)    # imm = 0x37A
movsd 0x210(%r14), %xmm0
je 0x233e9
ucomisd 0x10f63(%rip), %xmm0    # 0x33870
jne 0x233e9
jp 0x233e9
leaq 0x1490c(%rip), %rdi     # 0x3722c
jmp 0x22fc8
cmpl $0x2da, %r13d           # imm = 0x2DA
je 0x22b38
cmpl $0x32a, %r13d           # imm = 0x32A
jne 0x22fc1
movl %r12d, -0x44(%rbp)
movq %r15, -0x78(%rbp)
movl 0x1c8(%r14), %r15d
testl %r15d, %r15d
jle 0x238bd
incl %r15d
movq 0x1e5ff(%rip), %r12     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x229d3
jnp 0x22a21
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
movsd -0x80(%rbp), %xmm7
callq 0xa6d0
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
movsd -0x50(%rbp), %xmm7
callq 0xa8d0
decl %r15d
movsd -0x50(%rbp), %xmm7
cmpl $0x1, %r15d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jg 0x22961
jmp 0x238bd
cmpl $0x352, %r13d           # imm = 0x352
je 0x22b71
cmpl $0x35c, %r13d           # imm = 0x35C
jne 0x22fc1
cmpl $0x35c, 0x1798(%rbx)    # imm = 0x35C
movsd 0x210(%r14), %xmm0
je 0x22fd6
ucomisd 0x10d50(%rip), %xmm0    # 0x33870
jne 0x22fd6
jp 0x22fd6
leaq 0x1466b(%rip), %rdi     # 0x3719e
jmp 0x22fc8
cmpl $0x2da, 0x1798(%rbx)    # imm = 0x2DA
movsd 0x220(%r14), %xmm0
je 0x23135
ucomisd 0x10d17(%rip), %xmm0    # 0x33870
jne 0x23135
jp 0x23135
leaq 0x14602(%rip), %rdi     # 0x3716e
jmp 0x22fc8
movl %r12d, -0x44(%rbp)
movq %r15, -0x78(%rbp)
movl 0x1c8(%r14), %r15d
testl %r15d, %r15d
jle 0x238bd
incl %r15d
movq 0x1e3cd(%rip), %r12     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x22c05
jnp 0x22c53
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
movsd -0x80(%rbp), %xmm7
callq 0xa6d0
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
movsd -0x50(%rbp), %xmm7
callq 0xa6d0
decl %r15d
movsd -0x50(%rbp), %xmm7
cmpl $0x1, %r15d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jg 0x22b93
jmp 0x238bd
cmpl $0x334, 0x1798(%rbx)    # imm = 0x334
movsd 0x210(%r14), %xmm0
je 0x23297
ucomisd 0x10b34(%rip), %xmm0    # 0x33870
jne 0x23297
jp 0x23297
leaq 0x143fc(%rip), %rdi     # 0x3714b
jmp 0x22fc8
cmpl $0x366, 0x1798(%rbx)    # imm = 0x366
movb 0x198(%r14), %dl
jne 0x2387d
movb 0x1a8(%r14), %cl
movb 0x1b8(%r14), %al
leaq 0x1a0(%r14), %rsi
leaq 0x630(%rbx), %rdi
testb $0x1, %dl
cmovneq %rsi, %rdi
movsd (%rdi), %xmm0
leaq 0x1b0(%r14), %rdx
leaq 0x638(%rbx), %rsi
testb $0x1, %cl
cmovneq %rdx, %rsi
movsd (%rsi), %xmm1
leaq 0x1c0(%r14), %rcx
leaq 0x640(%rbx), %rdx
testb $0x1, %al
cmovneq %rcx, %rdx
movsd (%rdx), %xmm2
movsd %xmm0, -0x88(%rbp)
movsd %xmm0, 0x630(%rbx)
movsd %xmm1, 0x638(%rbx)
movsd %xmm2, -0x98(%rbp)
movsd %xmm2, 0x640(%rbx)
cmpl $0x1, 0x668(%rbx)
movl %r12d, -0x44(%rbp)
jne 0x22dfd
addsd -0x80(%rbp), %xmm1
movq %r15, -0x78(%rbp)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x238bd
movsd %xmm1, -0x90(%rbp)
incl %r12d
movq 0x1e13d(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x22e8f
jnp 0x22edc
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x98(%rbp), %xmm1
movsd -0x38(%rbp), %xmm0
addsd %xmm0, %xmm1
movsd -0x88(%rbp), %xmm3
movsd -0x30(%rbp), %xmm2
addsd %xmm2, %xmm3
movl 0xc6cc(%rbx), %ecx
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x6, %edx
movapd %xmm7, %xmm4
movsd -0x50(%rbp), %xmm5
movsd -0x90(%rbp), %xmm6
movsd -0x80(%rbp), %xmm7
callq 0xaac0
testl %eax, %eax
jne 0x2380f
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jge 0x22e23
jmp 0x238bd
cmpl $0x33e, 0x1798(%rbx)    # imm = 0x33E
movsd 0x220(%r14), %xmm0
je 0x23540
ucomisd 0x108fa(%rip), %xmm0    # 0x33870
jne 0x23540
jp 0x23540
leaq 0x141fd(%rip), %rdi     # 0x37186
jmp 0x22fc8
cmpl $0x370, 0x1798(%rbx)    # imm = 0x370
movsd 0x210(%r14), %xmm0
je 0x236a7
ucomisd 0x108c4(%rip), %xmm0    # 0x33870
jne 0x236a7
jp 0x236a7
leaq 0x1424a(%rip), %rdi     # 0x37209
jmp 0x22fc8
leaq 0x14287(%rip), %rdi     # 0x3724f
callq 0xa1f0
movq -0x58(%rbp), %rdi
jmp 0x22861
movl %r12d, -0x44(%rbp)
ucomisd 0x1088e(%rip), %xmm0    # 0x33870
jne 0x22fee
jp 0x22fee
movsd 0x650(%rbx), %xmm0
movq %r15, -0x78(%rbp)
movsd %xmm0, 0x210(%r14)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x23876
leaq 0x210(%r14), %rax
movq %rax, -0x88(%rbp)
incl %r12d
movq 0x1df3d(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x2308f
jnp 0x230d7
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd 0x210(%r14), %xmm4
movl 0xc6cc(%rbx), %ecx
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x50(%rbp), %xmm2
movsd -0x80(%rbp), %xmm3
callq 0xb620
testl %eax, %eax
jne 0x2380f
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jge 0x23023
jmp 0x237f8
movl %r12d, -0x44(%rbp)
ucomisd 0x1072f(%rip), %xmm0    # 0x33870
jne 0x2314d
jp 0x2314d
movsd 0x658(%rbx), %xmm0
movq %r15, -0x78(%rbp)
movsd %xmm0, 0x220(%r14)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x238b3
leaq 0x220(%r14), %rax
movq %rax, -0x88(%rbp)
incl %r12d
movq 0x1ddde(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x231ee
jnp 0x2323b
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd 0x220(%r14), %xmm5
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movapd %xmm7, %xmm2
movsd -0x50(%rbp), %xmm3
movsd -0x80(%rbp), %xmm4
callq 0xb350
testl %eax, %eax
jne 0x2380f
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jge 0x23182
jmp 0x2369d
movq %r15, -0x78(%rbp)
ucomisd 0x105cd(%rip), %xmm0    # 0x33870
jne 0x232af
jp 0x232af
movsd 0x650(%rbx), %xmm0
movl %r12d, -0x44(%rbp)
movsd %xmm0, 0x210(%r14)
movl 0x1c8(%r14), %r15d
testl %r15d, %r15d
jle 0x23876
leaq 0x210(%r14), %r13
incl %r15d
movq 0x1dc83(%rip), %r12     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x2334f
jnp 0x2339d
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd 0x210(%r14), %xmm4
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x50(%rbp), %xmm2
movsd -0x80(%rbp), %xmm3
callq 0xa2b0
decl %r15d
movsd -0x50(%rbp), %xmm7
cmpl $0x1, %r15d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jg 0x232dd
jmp 0x23536
movq %r15, -0x78(%rbp)
ucomisd 0x1047b(%rip), %xmm0    # 0x33870
jne 0x23401
jp 0x23401
movsd 0x650(%rbx), %xmm0
movl %r12d, -0x44(%rbp)
movsd %xmm0, 0x210(%r14)
movl 0x1c8(%r14), %r15d
testl %r15d, %r15d
jle 0x23876
leaq 0x210(%r14), %r13
incl %r15d
movq 0x1db31(%rip), %r12     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x234a1
jnp 0x234ef
movl 0x1d0(%r14), %edi
movsd 0x600(%r12), %xmm0
movsd 0x608(%r12), %xmm1
movsd 0x610(%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x20(%r12), %xmm4
movsd 0x38(%r12), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd 0x210(%r14), %xmm4
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x50(%rbp), %xmm2
movsd -0x80(%rbp), %xmm3
callq 0xb500
decl %r15d
movsd -0x50(%rbp), %xmm7
cmpl $0x1, %r15d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jg 0x2342f
movl $0x650, %eax            # imm = 0x650
jmp 0x23804
movl %r12d, -0x44(%rbp)
ucomisd 0x10324(%rip), %xmm0    # 0x33870
jne 0x23558
jp 0x23558
movsd 0x658(%rbx), %xmm0
movq %r15, -0x78(%rbp)
movsd %xmm0, 0x220(%r14)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x238b3
leaq 0x220(%r14), %rax
movq %rax, -0x88(%rbp)
incl %r12d
movq 0x1d9d3(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x235f9
jnp 0x23646
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd 0x220(%r14), %xmm5
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movapd %xmm7, %xmm2
movsd -0x50(%rbp), %xmm3
movsd -0x80(%rbp), %xmm4
callq 0xb220
testl %eax, %eax
jne 0x2380f
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jge 0x2358d
movl $0x658, %eax            # imm = 0x658
jmp 0x237fd
movl %r12d, -0x44(%rbp)
ucomisd 0x101bd(%rip), %xmm0    # 0x33870
jne 0x236bf
jp 0x236bf
movsd 0x650(%rbx), %xmm0
movq %r15, -0x78(%rbp)
movsd %xmm0, 0x210(%r14)
movl 0x1c8(%r14), %r12d
testl %r12d, %r12d
jle 0x23876
leaq 0x210(%r14), %rax
movq %rax, -0x88(%rbp)
incl %r12d
movq 0x1d86c(%rip), %r15     # 0x40f60
movsd %xmm7, -0x40(%rbp)
addsd -0x68(%rbp), %xmm8
movsd %xmm8, -0x38(%rbp)
addsd -0x70(%rbp), %xmm6
movsd %xmm6, -0x30(%rbp)
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd %xmm8, (%rsp)
callq 0xa8d0
movsd -0x60(%rbp), %xmm7
movsd -0x40(%rbp), %xmm0
ucomisd %xmm7, %xmm0
jne 0x23760
jnp 0x237a8
movl 0x1d0(%r14), %edi
movsd 0x600(%r15), %xmm0
movsd 0x608(%r15), %xmm1
movsd 0x610(%r15), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x20(%r15), %xmm4
movsd 0x38(%r15), %xmm5
movsd -0x38(%rbp), %xmm6
movsd %xmm6, (%rsp)
movsd -0x30(%rbp), %xmm6
callq 0xa8d0
movsd 0x210(%r14), %xmm3
movl 0xc6cc(%rbx), %ecx
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x6, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd -0x80(%rbp), %xmm2
callq 0xae90
testl %eax, %eax
jne 0x2380f
decl %r12d
movsd -0x50(%rbp), %xmm7
cmpl $0x2, %r12d
movsd -0x38(%rbp), %xmm8
movsd -0x30(%rbp), %xmm6
jge 0x236f4
movl $0x650, %eax            # imm = 0x650
movq -0x88(%rbp), %r13
movsd (%r13), %xmm0
jmp 0x238b8
movl %eax, %r13d
movslq 0xd670(%r15), %rax
cmpq $0x30, %rax
jg 0x228a3
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
leaq (%r15,%rax), %rdi
addq $0xc6d0, %rdi           # imm = 0xC6D0
leaq 0x1338d(%rip), %rsi     # 0x36bca
movl $0x50, %edx
callq 0xa8a0
movslq 0xd670(%r15), %rax
leaq (%rax,%rax,4), %rcx
shlq $0x4, %rcx
xorl %edx, %edx
movb %dl, 0xc71f(%r15,%rcx)
incl %eax
movl %eax, 0xd670(%r15)
movb %dl, 0xc720(%r15,%rcx)
jmp 0x228a3
movl $0x650, %eax            # imm = 0x650
jmp 0x238b8
testb %dl, %dl
je 0x23972
cmpb $0x0, 0x1a8(%r14)
je 0x2397e
movb $0x1, %al
cmpb $0x0, 0x1b8(%r14)
movb $0x1, %cl
movb $0x1, %dl
jne 0x22d79
leaq 0x13943(%rip), %rdi     # 0x371f1
jmp 0x22fc8
movl $0x658, %eax            # imm = 0x658
movsd %xmm0, (%rbx,%rax)
xorl %r13d, %r13d
movsd %xmm8, 0x80(%rbx)
movsd %xmm6, 0x50(%rbx)
movsd -0x50(%rbp), %xmm0
movsd %xmm0, 0x68(%rbx)
movq -0x78(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x628(%rbx)
movl -0x44(%rbp), %edi
cmpl $0x2, %edi
je 0x228a3
movsd -0xa0(%rbp), %xmm0
callq 0xa0d0
jmp 0x228a3
leaq 0x13415(%rip), %rdi     # 0x36d22
callq 0xa1f0
movq -0x58(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xa850
leaq 0xc6d0(%r15), %rdi
leaq 0x13419(%rip), %rsi     # 0x36d47
movl $0x50, %edx
callq 0xa8a0
movb $0x0, 0xc71f(%r15)
leaq 0xc720(%r15), %rdi
leaq 0x1327c(%rip), %rsi     # 0x36bca
movl $0x50, %edx
callq 0xa8a0
movw $0x0, 0xc76f(%r15)
movl $0x2, 0xd670(%r15)
jmp 0x2289d
leaq 0x13848(%rip), %rdi     # 0x371c1
jmp 0x22fc8
leaq 0x13854(%rip), %rdi     # 0x371d9
jmp 0x22fc8
nop