// File: /workspace/github_cpp_makefile_star2_O1/sundale[P]gcode/rs274ngc/interp_convert.cc
// Function: Interp::convert_axis_offsets(int, block_struct*, setup_struct*)
int Interp::convert_axis_offsets(int g_code,     //!< g_code being executed (must be in G_92 series)
                                block_pointer block,    //!< pointer to a block of RS274/NGC instructions  
                                setup_pointer settings) //!< pointer to machine settings                   
{
  double *pars;                 /* short name for settings->parameters            */

  CHKS((settings->cutter_comp_side != OFF),      /* not "== ON" */
      NCE_CANNOT_CHANGE_AXIS_OFFSETS_WITH_CUTTER_RADIUS_COMP);
  CHKS((block->a_flag && settings->a_axis_wrapped && (block->a_number <= -360.0 || block->a_number >= 360.0)), (_("Invalid absolute position %5.2f for wrapped rotary axis %c")), block->a_number, 'A');
  CHKS((block->b_flag && settings->b_axis_wrapped && (block->b_number <= -360.0 || block->b_number >= 360.0)), (_("Invalid absolute position %5.2f for wrapped rotary axis %c")), block->b_number, 'B');
  CHKS((block->c_flag && settings->c_axis_wrapped && (block->c_number <= -360.0 || block->c_number >= 360.0)), (_("Invalid absolute position %5.2f for wrapped rotary axis %c")), block->c_number, 'C');
  pars = settings->parameters;
  if (g_code == G_92) {
    pars[5210] = 1.0;
    if (block->x_flag == ON) {
      settings->axis_offset_x =
        (settings->current_x + settings->axis_offset_x - block->x_number);
      settings->current_x = block->x_number;
    }

    if (block->y_flag == ON) {
      settings->axis_offset_y =
        (settings->current_y + settings->axis_offset_y - block->y_number);
      settings->current_y = block->y_number;
    }

    if (block->z_flag == ON) {
      settings->axis_offset_z =
        (settings->current_z + settings->axis_offset_z - block->z_number);
      settings->current_z = block->z_number;
    }
    if (block->a_flag == ON) {
      settings->AA_axis_offset = (settings->AA_current +
                                  settings->AA_axis_offset - block->a_number);
      settings->AA_current = block->a_number;
    }
    if (block->b_flag == ON) {
      settings->BB_axis_offset = (settings->BB_current +
                                  settings->BB_axis_offset - block->b_number);
      settings->BB_current = block->b_number;
    }
    if (block->c_flag == ON) {
      settings->CC_axis_offset = (settings->CC_current +
                                  settings->CC_axis_offset - block->c_number);
      settings->CC_current = block->c_number;
    }
    if (block->u_flag == ON) {
      settings->u_axis_offset = (settings->u_current +
                                 settings->u_axis_offset - block->u_number);
      settings->u_current = block->u_number;
    }
    if (block->v_flag == ON) {
      settings->v_axis_offset = (settings->v_current +
                                 settings->v_axis_offset - block->v_number);
      settings->v_current = block->v_number;
    }
    if (block->w_flag == ON) {
      settings->w_axis_offset = (settings->w_current +
                                 settings->w_axis_offset - block->w_number);
      settings->w_current = block->w_number;
    }

    SET_ORIGIN_OFFSETS(settings->origin_offset_x + settings->axis_offset_x,
                       settings->origin_offset_y + settings->axis_offset_y,
                       settings->origin_offset_z + settings->axis_offset_z,
                       (settings->AA_origin_offset +
                        settings->AA_axis_offset),
                       (settings->BB_origin_offset +
                        settings->BB_axis_offset),
                       (settings->CC_origin_offset +
                        settings->CC_axis_offset),
                       (settings->u_origin_offset +
                        settings->u_axis_offset),
                       (settings->v_origin_offset +
                        settings->v_axis_offset),
                       (settings->w_origin_offset +
                        settings->w_axis_offset));
    
    pars[5211] = PROGRAM_TO_USER_LEN(settings->axis_offset_x);
    pars[5212] = PROGRAM_TO_USER_LEN(settings->axis_offset_y);
    pars[5213] = PROGRAM_TO_USER_LEN(settings->axis_offset_z);
    pars[5214] = PROGRAM_TO_USER_ANG(settings->AA_axis_offset);
    pars[5215] = PROGRAM_TO_USER_ANG(settings->BB_axis_offset);
    pars[5216] = PROGRAM_TO_USER_ANG(settings->CC_axis_offset);
    pars[5217] = PROGRAM_TO_USER_LEN(settings->u_axis_offset);
    pars[5218] = PROGRAM_TO_USER_LEN(settings->v_axis_offset);
    pars[5219] = PROGRAM_TO_USER_LEN(settings->w_axis_offset);
  } else if ((g_code == G_92_1) || (g_code == G_92_2)) {
    pars[5210] = 0.0;
    settings->current_x = settings->current_x + settings->axis_offset_x;
    settings->current_y = settings->current_y + settings->axis_offset_y;
    settings->current_z = settings->current_z + settings->axis_offset_z;
    settings->AA_current = (settings->AA_current + settings->AA_axis_offset);
    settings->BB_current = (settings->BB_current + settings->BB_axis_offset);
    settings->CC_current = (settings->CC_current + settings->CC_axis_offset);
    settings->u_current = (settings->u_current + settings->u_axis_offset);
    settings->v_current = (settings->v_current + settings->v_axis_offset);
    settings->w_current = (settings->w_current + settings->w_axis_offset);
    SET_ORIGIN_OFFSETS(settings->origin_offset_x,
                       settings->origin_offset_y, settings->origin_offset_z,
                       settings->AA_origin_offset,
                       settings->BB_origin_offset,
                       settings->CC_origin_offset,
                       settings->u_origin_offset,
                       settings->v_origin_offset,
                       settings->w_origin_offset);
    settings->axis_offset_x = 0.0;
    settings->axis_offset_y = 0.0;
    settings->axis_offset_z = 0.0;
    settings->AA_axis_offset = 0.0;
    settings->BB_axis_offset = 0.0;
    settings->CC_axis_offset = 0.0;
    settings->u_axis_offset = 0.0;
    settings->v_axis_offset = 0.0;
    settings->w_axis_offset = 0.0;
    if (g_code == G_92_1) {
      pars[5211] = 0.0;
      pars[5212] = 0.0;
      pars[5213] = 0.0;
      pars[5214] = 0.0;
      pars[5215] = 0.0;
      pars[5216] = 0.0;
      pars[5217] = 0.0;
      pars[5218] = 0.0;
      pars[5219] = 0.0;
    }
  } else if (g_code == G_92_3) {
    pars[5210] = 1.0;
    settings->current_x =
      settings->current_x + settings->axis_offset_x - USER_TO_PROGRAM_LEN(pars[5211]);
    settings->current_y =
      settings->current_y + settings->axis_offset_y - USER_TO_PROGRAM_LEN(pars[5212]);
    settings->current_z =
      settings->current_z + settings->axis_offset_z - USER_TO_PROGRAM_LEN(pars[5213]);
    settings->AA_current =
      settings->AA_current + settings->AA_axis_offset - USER_TO_PROGRAM_ANG(pars[5214]);
    settings->BB_current =
      settings->BB_current + settings->BB_axis_offset - USER_TO_PROGRAM_ANG(pars[5215]);
    settings->CC_current =
      settings->CC_current + settings->CC_axis_offset - USER_TO_PROGRAM_ANG(pars[5216]);
    settings->u_current =
      settings->u_current + settings->u_axis_offset - USER_TO_PROGRAM_LEN(pars[5217]);
    settings->v_current =
      settings->v_current + settings->v_axis_offset - USER_TO_PROGRAM_LEN(pars[5218]);
    settings->w_current =
      settings->w_current + settings->w_axis_offset - USER_TO_PROGRAM_LEN(pars[5219]);

    settings->axis_offset_x = USER_TO_PROGRAM_LEN(pars[5211]);
    settings->axis_offset_y = USER_TO_PROGRAM_LEN(pars[5212]);
    settings->axis_offset_z = USER_TO_PROGRAM_LEN(pars[5213]);
    settings->AA_axis_offset = USER_TO_PROGRAM_ANG(pars[5214]);
    settings->BB_axis_offset = USER_TO_PROGRAM_ANG(pars[5215]);
    settings->CC_axis_offset = USER_TO_PROGRAM_ANG(pars[5216]);
    settings->u_axis_offset = USER_TO_PROGRAM_LEN(pars[5217]);
    settings->v_axis_offset = USER_TO_PROGRAM_LEN(pars[5218]);
    settings->w_axis_offset = USER_TO_PROGRAM_LEN(pars[5219]);
    SET_ORIGIN_OFFSETS(settings->origin_offset_x + settings->axis_offset_x,
                       settings->origin_offset_y + settings->axis_offset_y,
                       settings->origin_offset_z + settings->axis_offset_z,
                       (settings->AA_origin_offset +
                        settings->AA_axis_offset),
                       (settings->BB_origin_offset +
                        settings->BB_axis_offset),
                       (settings->CC_origin_offset +
                        settings->CC_axis_offset),
                       (settings->u_origin_offset +
                        settings->u_axis_offset),
                       (settings->v_origin_offset +
                        settings->v_axis_offset),
                       (settings->w_origin_offset +
                        settings->w_axis_offset));

  } else
    ERS(NCE_BUG_CODE_NOT_IN_G92_SERIES);

  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r12
cmpl $0x0, 0x624(%rcx)
je 0xf5ce
leaq 0x28e08(%rip), %rdi     # 0x38372
callq 0xa1f0
movq %r12, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xa850
movq 0x349dd(%rip), %rbx     # 0x43f60
movl $0x0, 0xd670(%rbx)
leaq 0xc6d0(%rbx), %rdi
leaq 0x27c98(%rip), %rsi     # 0x37233
movl $0x50, %edx
callq 0xa8a0
movw $0x0, 0xc71f(%rbx)
movl $0x1, 0xd670(%rbx)
movl $0x5, %r14d
movl %r14d, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movb (%rdx), %al
cmpb $0x1, %al
jne 0xf602
cmpl $0x0, 0x1e6cc(%rbx)
je 0xf602
movsd 0x8(%r14), %xmm0
andpd 0x25a2c(%rip), %xmm0    # 0x35020
ucomisd 0x278bc(%rip), %xmm0    # 0x36eb8
jae 0xfc1f
movb 0x10(%r14), %cl
cmpb $0x1, %cl
jne 0xf630
cmpl $0x0, 0x1e6d0(%rbx)
je 0xf630
movsd 0x18(%r14), %xmm0
andpd 0x259fe(%rip), %xmm0    # 0x35020
ucomisd 0x2788e(%rip), %xmm0    # 0x36eb8
jae 0x10276
movb 0x20(%r14), %dl
cmpb $0x1, %dl
jne 0xf65e
cmpl $0x0, 0x1e6d4(%rbx)
je 0xf65e
movsd 0x28(%r14), %xmm0
andpd 0x259d0(%rip), %xmm0    # 0x35020
ucomisd 0x27860(%rip), %xmm0    # 0x36eb8
jae 0x10295
cmpl $0x398, %r15d           # imm = 0x398
jne 0xfab2
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, 0xba90(%rbx)
cmpb $0x1, 0x270(%r14)
jne 0xf6b3
movsd 0x600(%rbx), %xmm0
addsd 0x118(%rbx), %xmm0
movsd 0x278(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x118(%rbx)
movsd %xmm1, 0x600(%rbx)
cmpb $0x1, 0x280(%r14)
jne 0xf6ea
movsd 0x608(%rbx), %xmm0
addsd 0x120(%rbx), %xmm0
movsd 0x288(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x120(%rbx)
movsd %xmm1, 0x608(%rbx)
cmpb $0x1, 0x290(%r14)
jne 0xf721
movsd 0x610(%rbx), %xmm0
addsd 0x128(%rbx), %xmm0
movsd 0x298(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x128(%rbx)
movsd %xmm1, 0x610(%rbx)
testb %al, %al
je 0xf741
movsd 0x8(%rbx), %xmm0
addsd (%rbx), %xmm0
movsd 0x8(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%rbx)
movsd %xmm1, 0x8(%rbx)
testb %cl, %cl
je 0xf763
movsd 0x20(%rbx), %xmm0
addsd 0x18(%rbx), %xmm0
movsd 0x18(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rbx)
movsd %xmm1, 0x20(%rbx)
testb %dl, %dl
je 0xf785
movsd 0x38(%rbx), %xmm0
addsd 0x30(%rbx), %xmm0
movsd 0x28(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rbx)
movsd %xmm1, 0x38(%rbx)
cmpb $0x1, 0x244(%r14)
jne 0xf7b0
movsd 0x50(%rbx), %xmm0
addsd 0x48(%rbx), %xmm0
movsd 0x248(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rbx)
movsd %xmm1, 0x50(%rbx)
cmpb $0x1, 0x250(%r14)
jne 0xf7db
movsd 0x68(%rbx), %xmm0
addsd 0x60(%rbx), %xmm0
movsd 0x258(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x60(%rbx)
movsd %xmm1, 0x68(%rbx)
cmpb $0x1, 0x260(%r14)
jne 0xf80c
movsd 0x80(%rbx), %xmm0
addsd 0x78(%rbx), %xmm0
movsd 0x268(%r14), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rbx)
movsd %xmm1, 0x80(%rbx)
movsd 0x17a0(%rbx), %xmm0
addsd 0x118(%rbx), %xmm0
movsd 0x17a8(%rbx), %xmm1
addsd 0x120(%rbx), %xmm1
movsd 0x17b0(%rbx), %xmm2
addsd 0x128(%rbx), %xmm2
movsd 0x10(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
addsd (%rbx), %xmm3
addsd 0x18(%rbx), %xmm4
movsd 0x40(%rbx), %xmm5
addsd 0x30(%rbx), %xmm5
movsd 0x58(%rbx), %xmm6
addsd 0x48(%rbx), %xmm6
movsd 0x70(%rbx), %xmm7
addsd 0x60(%rbx), %xmm7
movsd 0x88(%rbx), %xmm8
addsd 0x78(%rbx), %xmm8
movsd %xmm8, (%rsp)
callq 0xa510
movq 0x346d2(%rip), %r14     # 0x43f60
movl 0x1690(%r14), %eax
movsd 0x27623(%rip), %xmm0    # 0x36ec0
movsd %xmm0, -0x40(%rbp)
cmpl $0x3, %eax
je 0xf8af
movsd 0x275f1(%rip), %xmm0    # 0x36ea0
movsd 0x27611(%rip), %xmm1    # 0x36ec8
movsd %xmm1, -0x38(%rbp)
cmpl $0x1, %eax
je 0xf8c5
movapd %xmm0, %xmm1
mulsd 0x118(%rbx), %xmm1
movsd %xmm1, -0x28(%rbp)
callq 0xa990
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xba98(%rbx)
movl 0x1690(%r14), %eax
movsd 0x275cd(%rip), %xmm0    # 0x36ec0
cmpl $0x3, %eax
je 0xf900
movsd 0x275a0(%rip), %xmm0    # 0x36ea0
movsd 0x275c0(%rip), %xmm1    # 0x36ec8
cmpl $0x1, %eax
je 0xf911
movapd %xmm0, %xmm1
mulsd 0x120(%rbx), %xmm1
movsd %xmm1, -0x28(%rbp)
callq 0xa990
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbaa0(%rbx)
movl 0x1690(%r14), %eax
movsd 0x27581(%rip), %xmm0    # 0x36ec0
cmpl $0x3, %eax
je 0xf94c
movsd 0x27554(%rip), %xmm0    # 0x36ea0
movsd 0x27574(%rip), %xmm1    # 0x36ec8
cmpl $0x1, %eax
je 0xf95d
movapd %xmm0, %xmm1
mulsd 0x128(%rbx), %xmm1
movsd %xmm1, -0x28(%rbp)
callq 0xa990
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbaa8(%rbx)
movsd (%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbab0(%rbx)
movsd 0x18(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbab8(%rbx)
movsd 0x30(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbac0(%rbx)
movl 0x1690(%r14), %eax
movsd 0x274e2(%rip), %xmm0    # 0x36ec0
cmpl $0x3, %eax
je 0xf9eb
movsd 0x274b5(%rip), %xmm0    # 0x36ea0
movsd 0x274d5(%rip), %xmm1    # 0x36ec8
cmpl $0x1, %eax
je 0xf9fc
movapd %xmm0, %xmm1
mulsd 0x48(%rbx), %xmm1
movsd %xmm1, -0x28(%rbp)
callq 0xa990
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbac8(%rbx)
movl 0x1690(%r14), %eax
movsd 0x27499(%rip), %xmm0    # 0x36ec0
cmpl $0x3, %eax
je 0xfa34
movsd 0x2746c(%rip), %xmm0    # 0x36ea0
movsd 0x2748c(%rip), %xmm1    # 0x36ec8
cmpl $0x1, %eax
je 0xfa45
movapd %xmm0, %xmm1
mulsd 0x60(%rbx), %xmm1
movsd %xmm1, -0x28(%rbp)
callq 0xa990
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, 0xbad0(%rbx)
movl 0x1690(%r14), %eax
cmpl $0x3, %eax
je 0xfa7a
movsd 0x2742b(%rip), %xmm0    # 0x36ea0
movsd %xmm0, -0x40(%rbp)
cmpl $0x1, %eax
je 0xfa89
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
mulsd 0x78(%rbx), %xmm0
movsd %xmm0, -0x38(%rbp)
callq 0xa990
mulsd -0x38(%rbp), %xmm0
movsd %xmm0, 0xbad8(%rbx)
xorl %r14d, %r14d
jmp 0xf5be
leal -0x399(%r15), %eax
cmpl $0x1, %eax
ja 0xfc41
xorl %r14d, %r14d
movq %r14, 0xba90(%rbx)
movsd 0x600(%rbx), %xmm0
addsd 0x118(%rbx), %xmm0
movsd %xmm0, 0x600(%rbx)
movsd 0x608(%rbx), %xmm0
addsd 0x120(%rbx), %xmm0
movsd %xmm0, 0x608(%rbx)
movsd 0x610(%rbx), %xmm0
addsd 0x128(%rbx), %xmm0
movsd %xmm0, 0x610(%rbx)
movsd 0x8(%rbx), %xmm0
movsd 0x20(%rbx), %xmm1
addsd (%rbx), %xmm0
movsd %xmm0, 0x8(%rbx)
addsd 0x18(%rbx), %xmm1
movsd %xmm1, 0x20(%rbx)
movsd 0x38(%rbx), %xmm0
addsd 0x30(%rbx), %xmm0
movsd %xmm0, 0x38(%rbx)
movsd 0x50(%rbx), %xmm0
addsd 0x48(%rbx), %xmm0
movsd %xmm0, 0x50(%rbx)
movsd 0x68(%rbx), %xmm0
addsd 0x60(%rbx), %xmm0
movsd %xmm0, 0x68(%rbx)
movsd 0x80(%rbx), %xmm0
addsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x80(%rbx)
movsd 0x17a0(%rbx), %xmm0
movsd 0x17a8(%rbx), %xmm1
movsd 0x17b0(%rbx), %xmm2
movsd 0x10(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
movsd 0x40(%rbx), %xmm5
movsd 0x58(%rbx), %xmm6
movsd 0x70(%rbx), %xmm7
movsd 0x88(%rbx), %xmm8
movsd %xmm8, (%rsp)
callq 0xa510
movq %r14, (%rbx)
movq %r14, 0x18(%rbx)
movq %r14, 0x30(%rbx)
movq %r14, 0x48(%rbx)
movq %r14, 0x60(%rbx)
movq %r14, 0x78(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x118(%rbx)
movq %r14, 0x128(%rbx)
cmpl $0x399, %r15d           # imm = 0x399
jne 0xf5be
movupd %xmm0, 0xbac8(%rbx)
movupd %xmm0, 0xbab8(%rbx)
movupd %xmm0, 0xbaa8(%rbx)
movupd %xmm0, 0xba98(%rbx)
movq $0x0, 0xbad8(%rbx)
jmp 0xf5be
leaq 0x2877f(%rip), %rdi     # 0x383a5
callq 0xa1f0
movsd 0x8(%r14), %xmm0
movq %r12, %rdi
movq %rax, %rsi
movl $0x41, %edx
jmp 0x102b2
cmpl $0x39b, %r15d           # imm = 0x39B
jne 0x102be
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0xba90(%rbx)
movsd 0x600(%rbx), %xmm0
addsd 0x118(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xba98(%rbx), %xmm0
movsd %xmm0, -0x38(%rbp)
callq 0xa990
movq 0x342d3(%rip), %r14     # 0x43f60
movl 0x1690(%r14), %eax
movsd 0x27224(%rip), %xmm1    # 0x36ec0
movsd %xmm1, -0x40(%rbp)
cmpl $0x3, %eax
je 0xfcae
movsd 0x271f2(%rip), %xmm1    # 0x36ea0
movsd -0x38(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x27209(%rip), %xmm0    # 0x36ec8
movsd %xmm0, -0x38(%rbp)
cmpl $0x1, %eax
je 0xfccd
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x600(%rbx)
movsd 0x608(%rbx), %xmm0
addsd 0x120(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbaa0(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x271a8(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xfd25
movsd 0x2717b(%rip), %xmm1    # 0x36ea0
movsd -0x30(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x27192(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xfd3f
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x608(%rbx)
movsd 0x610(%rbx), %xmm0
addsd 0x128(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbaa8(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x27136(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xfd97
movsd 0x27109(%rip), %xmm1    # 0x36ea0
movsd -0x30(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x27120(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xfdb1
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x610(%rbx)
movsd 0x8(%rbx), %xmm0
addsd (%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbab0(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xaf60
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rbx)
movsd 0x20(%rbx), %xmm0
addsd 0x18(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbab8(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xaf60
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rbx)
movsd 0x38(%rbx), %xmm0
addsd 0x30(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbac0(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xaf60
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rbx)
movsd 0x50(%rbx), %xmm0
addsd 0x48(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbac8(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x27023(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xfeaa
movsd 0x26ff6(%rip), %xmm1    # 0x36ea0
movsd -0x30(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x2700d(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xfec4
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x50(%rbx)
movsd 0x68(%rbx), %xmm0
addsd 0x60(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbad0(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26fba(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xff13
movsd 0x26f8d(%rip), %xmm1    # 0x36ea0
movsd -0x30(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26fa4(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xff2d
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x68(%rbx)
movsd 0x80(%rbx), %xmm0
addsd 0x78(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd 0xbad8(%rbx), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26f4e(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xff7f
movsd 0x26f21(%rip), %xmm1    # 0x36ea0
movsd -0x30(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26f38(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xff99
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, 0x80(%rbx)
movsd 0xba98(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26ef1(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0xffdc
movsd 0x26ec4(%rip), %xmm1    # 0x36ea0
movsd -0x28(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26edb(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0xfff6
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x118(%rbx)
movsd 0xbaa0(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26e9d(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0x10030
movsd 0x26e70(%rip), %xmm1    # 0x36ea0
movsd -0x28(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26e87(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0x1004a
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x120(%rbx)
movsd 0xbaa8(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26e49(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0x10084
movsd 0x26e1c(%rip), %xmm1    # 0x36ea0
movsd -0x28(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26e33(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0x1009e
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x128(%rbx)
movsd 0xbab0(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
movsd -0x28(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movsd 0xbab8(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
movsd -0x28(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rbx)
movsd 0xbac0(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xaf60
movsd -0x28(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rbx)
movsd 0xbac8(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26d96(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0x10137
movsd 0x26d69(%rip), %xmm1    # 0x36ea0
movsd -0x28(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26d80(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0x10151
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x48(%rbx)
movsd 0xbad0(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
movsd 0x26d45(%rip), %xmm1    # 0x36ec0
cmpl $0x3, %eax
je 0x10188
movsd 0x26d18(%rip), %xmm1    # 0x36ea0
movsd -0x28(%rbp), %xmm2
divsd %xmm0, %xmm2
movsd 0x26d2f(%rip), %xmm0    # 0x36ec8
cmpl $0x1, %eax
je 0x101a2
movapd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x60(%rbx)
movsd 0xbad8(%rbx), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0xa990
movl 0x1690(%r14), %eax
cmpl $0x3, %eax
je 0x101d6
movsd 0x26ccf(%rip), %xmm1    # 0x36ea0
movsd %xmm1, -0x40(%rbp)
movsd -0x28(%rbp), %xmm8
divsd %xmm0, %xmm8
cmpl $0x1, %eax
je 0x101f0
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
divsd -0x38(%rbp), %xmm8
movsd %xmm8, 0x78(%rbx)
movsd 0x17a0(%rbx), %xmm0
addsd 0x118(%rbx), %xmm0
movsd 0x17a8(%rbx), %xmm1
addsd 0x120(%rbx), %xmm1
movsd 0x17b0(%rbx), %xmm2
addsd 0x128(%rbx), %xmm2
movsd 0x10(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
addsd (%rbx), %xmm3
addsd 0x18(%rbx), %xmm4
movsd 0x40(%rbx), %xmm5
addsd 0x30(%rbx), %xmm5
movsd 0x58(%rbx), %xmm6
addsd 0x48(%rbx), %xmm6
movsd 0x70(%rbx), %xmm7
addsd 0x60(%rbx), %xmm7
addsd 0x88(%rbx), %xmm8
movsd %xmm8, (%rsp)
callq 0xa510
jmp 0xfaaa
leaq 0x28128(%rip), %rdi     # 0x383a5
callq 0xa1f0
movsd 0x18(%r14), %xmm0
movq %r12, %rdi
movq %rax, %rsi
movl $0x42, %edx
jmp 0x102b2
leaq 0x28109(%rip), %rdi     # 0x383a5
callq 0xa1f0
movsd 0x28(%r14), %xmm0
movq %r12, %rdi
movq %rax, %rsi
movl $0x43, %edx
movb $0x1, %al
callq 0xa850
jmp 0xf57c
leaq 0x2811b(%rip), %rdi     # 0x383e0
jmp 0xf56a