// File: sundale[P]gcode/rs274ngc/interp_convert.cc
// Function: Interp::convert_tool_length_offset(int, block_struct*, setup_struct*)
int Interp::convert_tool_length_offset(int g_code,       //!< g_code being executed (must be G_43 or G_49)
                                      block_pointer block,      //!< pointer to a block of RS274/NGC instructions
                                      setup_pointer settings)   //!< pointer to machine settings                 
{
  int index;
  EmcPose tool_offset;
  ZERO_EMC_POSE(tool_offset);

  CHKS((settings->cutter_comp_side != OFF),
       (_("Cannot change tool offset with cutter radius compensation on")));
  if (g_code == G_49) {
    index = 0;
  } else if (g_code == G_43) {
    if(block->h_flag == ON) {
        CHP((find_tool_pocket(settings, block->h_number, &index)));
    } else if (settings->toolchange_flag) {
        // we haven't loaded the tool and swapped pockets quite yet
        index = settings->current_pocket;
    } else {
        // tool change is done so pockets are swapped
        index = 0;
    }

    tool_offset.tran.x = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.tran.x);
    tool_offset.tran.y = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.tran.y);
    tool_offset.tran.z = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.tran.z);
    tool_offset.a = USER_TO_PROGRAM_ANG(settings->tool_table[index].offset.a);
    tool_offset.b = USER_TO_PROGRAM_ANG(settings->tool_table[index].offset.b);
    tool_offset.c = USER_TO_PROGRAM_ANG(settings->tool_table[index].offset.c);
    tool_offset.u = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.u);
    tool_offset.v = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.v);
    tool_offset.w = USER_TO_PROGRAM_LEN(settings->tool_table[index].offset.w);
  } else if (g_code == G_43_1) {
    tool_offset = settings->tool_offset;
    index = -1;
    if(block->x_flag == ON) tool_offset.tran.x = block->x_number;
    if(block->y_flag == ON) tool_offset.tran.y = block->y_number;
    if(block->z_flag == ON) tool_offset.tran.z = block->z_number;
    if(block->a_flag == ON) tool_offset.a = block->a_number;
    if(block->b_flag == ON) tool_offset.b = block->b_number;
    if(block->c_flag == ON) tool_offset.c = block->c_number;
    if(block->u_flag == ON) tool_offset.u = block->u_number;
    if(block->v_flag == ON) tool_offset.v = block->v_number;
    if(block->w_flag == ON) tool_offset.w = block->w_number;
  } else {
    ERS("BUG: Code not G43, G43.1, or G49");
  }
  USE_TOOL_LENGTH_OFFSET(tool_offset);

  settings->current_x += settings->tool_offset.tran.x - tool_offset.tran.x;
  settings->current_y += settings->tool_offset.tran.y - tool_offset.tran.y;
  settings->current_z += settings->tool_offset.tran.z - tool_offset.tran.z;
  settings->AA_current += settings->tool_offset.a - tool_offset.a;
  settings->BB_current += settings->tool_offset.b - tool_offset.b;
  settings->CC_current += settings->tool_offset.c - tool_offset.c;
  settings->u_current += settings->tool_offset.u - tool_offset.u;
  settings->v_current += settings->tool_offset.v - tool_offset.v;
  settings->w_current += settings->tool_offset.w - tool_offset.w;

  settings->tool_offset = tool_offset;
  settings->tool_offset_index = index;
  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x78(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x70(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x68(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x48(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x38(%rbp)
jmp 0x233bf
movq -0x28(%rbp), %rax
cmpl $0x0, 0x624(%rax)
je 0x234a8
jmp 0x233d2
leaq 0x58018(%rip), %rdi     # 0x7b3f1
callq 0x10380
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x63b6a(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x63b59(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x63b4b(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x58004(%rip), %rsi     # 0x7b42e
movl $0x50, %edx
callq 0x10840
movq 0x63b25(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x63b17(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x63aff(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x63aef(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x63ae2(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x63ad4(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x23f5e
jmp 0x234aa
cmpl $0x1ea, -0x14(%rbp)     # imm = 0x1EA
jne 0x234bf
movl $0x0, -0x2c(%rbp)
jmp 0x23daf
cmpl $0x1ae, -0x14(%rbp)     # imm = 0x1AE
jne 0x23b6f
movq -0x20(%rbp), %rax
movb 0x190(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x235d2
jmp 0x234e6
movq -0xd0(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
movl 0x194(%rax), %edx
leaq -0x2c(%rbp), %rcx
callq 0x10f70
movl %eax, -0x7c(%rbp)
cmpl $0x0, -0x7c(%rbp)
je 0x235ce
jmp 0x23513
movq 0x63a46(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x235c3
movq 0x63a32(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x63a24(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x57edd(%rip), %rsi     # 0x7b42e
movl $0x50, %edx
callq 0x10840
movq 0x639fe(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x639f0(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x639d8(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x639c8(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x639bb(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x639ad(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl -0x7c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23f5e
jmp 0x235d0
jmp 0x235f7
movq -0x28(%rbp), %rax
testb $0x1, 0xc682(%rax)
je 0x235ee
movq -0x28(%rbp), %rax
movl 0x5fc(%rax), %eax
movl %eax, -0x2c(%rbp)
jmp 0x235f5
movl $0x0, -0x2c(%rbp)
jmp 0x235f7
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0xe0(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0xe0(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0xd8(%rbp)
movq 0x63924(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x23657
movsd 0x557fb(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0xe8(%rbp)
jmp 0x236a9
movq 0x63902(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x557d4(%rip), %xmm0    # 0x78e40
movsd 0x5579c(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0xf8(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0xf0(%rbp)
je 0x23699
movsd -0xf8(%rbp), %xmm0
movsd %xmm0, -0xf0(%rbp)
movsd -0xf0(%rbp), %xmm0
movsd %xmm0, -0xe8(%rbp)
movsd -0xd8(%rbp), %xmm0
movsd -0xe8(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x78(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
movsd %xmm0, -0x108(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0x108(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x100(%rbp)
movq 0x63859(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x23722
movsd 0x55730(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0x110(%rbp)
jmp 0x23774
movq 0x63837(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x55709(%rip), %xmm0    # 0x78e40
movsd 0x556d1(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0x120(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0x118(%rbp)
je 0x23764
movsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x118(%rbp)
movsd -0x118(%rbp), %xmm0
movsd %xmm0, -0x110(%rbp)
movsd -0x100(%rbp), %xmm0
movsd -0x110(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x70(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x18(%rax), %xmm0
movsd %xmm0, -0x130(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0x130(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x128(%rbp)
movq 0x6378e(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x237ed
movsd 0x55665(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0x138(%rbp)
jmp 0x2383f
movq 0x6376c(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x5563e(%rip), %xmm0    # 0x78e40
movsd 0x55606(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0x148(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0x140(%rbp)
je 0x2382f
movsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x140(%rbp)
movsd -0x140(%rbp), %xmm0
movsd %xmm0, -0x138(%rbp)
movsd -0x128(%rbp), %xmm0
movsd -0x138(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x20(%rax), %xmm0
movsd %xmm0, -0x170(%rbp)
callq 0x11920
movaps %xmm0, %xmm1
movsd -0x170(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, -0x168(%rbp)
callq 0x11920
movaps %xmm0, %xmm1
movsd -0x168(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x30(%rax), %xmm0
movsd %xmm0, -0x160(%rbp)
callq 0x11920
movaps %xmm0, %xmm1
movsd -0x160(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x38(%rax), %xmm0
movsd %xmm0, -0x158(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0x158(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x150(%rbp)
movq 0x63612(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x23969
movsd 0x554e9(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0x178(%rbp)
jmp 0x239bb
movq 0x635f0(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x554c2(%rip), %xmm0    # 0x78e40
movsd 0x5548a(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0x188(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0x180(%rbp)
je 0x239ab
movsd -0x188(%rbp), %xmm0
movsd %xmm0, -0x180(%rbp)
movsd -0x180(%rbp), %xmm0
movsd %xmm0, -0x178(%rbp)
movsd -0x150(%rbp), %xmm0
movsd -0x178(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x40(%rax), %xmm0
movsd %xmm0, -0x198(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0x198(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x190(%rbp)
movq 0x63547(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x23a34
movsd 0x5541e(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0x1a0(%rbp)
jmp 0x23a86
movq 0x63525(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x553f7(%rip), %xmm0    # 0x78e40
movsd 0x553bf(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0x1b0(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0x1a8(%rbp)
je 0x23a76
movsd -0x1b0(%rbp), %xmm0
movsd %xmm0, -0x1a8(%rbp)
movsd -0x1a8(%rbp), %xmm0
movsd %xmm0, -0x1a0(%rbp)
movsd -0x190(%rbp), %xmm0
movsd -0x1a0(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x28(%rbp), %rax
addq $0xd6c8, %rax           # imm = 0xD6C8
movslq -0x2c(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movsd 0x48(%rax), %xmm0
movsd %xmm0, -0x1c0(%rbp)
callq 0x11030
movaps %xmm0, %xmm1
movsd -0x1c0(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x1b8(%rbp)
movq 0x6347c(%rip), %rax     # 0x86f60
cmpl $0x1, 0x1690(%rax)
jne 0x23aff
movsd 0x55353(%rip), %xmm0    # 0x78e48
movsd %xmm0, -0x1c8(%rbp)
jmp 0x23b51
movq 0x6345a(%rip), %rax     # 0x86f60
movl 0x1690(%rax), %eax
movsd 0x5532c(%rip), %xmm0    # 0x78e40
movsd 0x552f4(%rip), %xmm1    # 0x78e10
movsd %xmm1, -0x1d8(%rbp)
cmpl $0x3, %eax
movsd %xmm0, -0x1d0(%rbp)
je 0x23b41
movsd -0x1d8(%rbp), %xmm0
movsd %xmm0, -0x1d0(%rbp)
movsd -0x1d0(%rbp), %xmm0
movsd %xmm0, -0x1c8(%rbp)
movsd -0x1b8(%rbp), %xmm0
movsd -0x1c8(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
jmp 0x23dad
cmpl $0x1af, -0x14(%rbp)     # imm = 0x1AF
jne 0x23cdb
movq -0x28(%rbp), %rsi
addq $0xd678, %rsi           # imm = 0xD678
leaq -0x78(%rbp), %rdi
movl $0x48, %edx
callq 0x10e60
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movb 0x270(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23bc1
movq -0x20(%rbp), %rax
movsd 0x278(%rax), %xmm0
movsd %xmm0, -0x78(%rbp)
movq -0x20(%rbp), %rax
movb 0x280(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23be6
movq -0x20(%rbp), %rax
movsd 0x288(%rax), %xmm0
movsd %xmm0, -0x70(%rbp)
movq -0x20(%rbp), %rax
movb 0x290(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23c0b
movq -0x20(%rbp), %rax
movsd 0x298(%rax), %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x20(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23c29
movq -0x20(%rbp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x20(%rbp), %rax
movb 0x10(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23c48
movq -0x20(%rbp), %rax
movsd 0x18(%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x20(%rbp), %rax
movb 0x20(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23c67
movq -0x20(%rbp), %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x20(%rbp), %rax
movb 0x244(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23c8c
movq -0x20(%rbp), %rax
movsd 0x248(%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
movq -0x20(%rbp), %rax
movb 0x250(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23cb1
movq -0x20(%rbp), %rax
movsd 0x258(%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x20(%rbp), %rax
movb 0x260(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x23cd6
movq -0x20(%rbp), %rax
movsd 0x268(%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
jmp 0x23dab
jmp 0x23cdd
movq -0xd0(%rbp), %rdi
leaq 0x5778d(%rip), %rsi     # 0x7b478
movb $0x0, %al
callq 0x10df0
movq 0x63267(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x63256(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x63248(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x57701(%rip), %rsi     # 0x7b42e
movl $0x50, %edx
callq 0x10840
movq 0x63222(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x63214(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x631fc(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x631ec(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x631df(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x631d1(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x23f5e
jmp 0x23dad
jmp 0x23daf
leaq -0xc8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movl $0x48, %edx
callq 0x10e60
movq -0x88(%rbp), %rcx
movq %rsp, %rax
movq %rcx, 0x40(%rax)
movups -0xc8(%rbp), %xmm0
movups -0xb8(%rbp), %xmm1
movups -0xa8(%rbp), %xmm2
movups -0x98(%rbp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x11f90
movq -0x28(%rbp), %rax
movsd 0xd678(%rax), %xmm0
subsd -0x78(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x600(%rax), %xmm0
movsd %xmm0, 0x600(%rax)
movq -0x28(%rbp), %rax
movsd 0xd680(%rax), %xmm0
subsd -0x70(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x608(%rax), %xmm0
movsd %xmm0, 0x608(%rax)
movq -0x28(%rbp), %rax
movsd 0xd688(%rax), %xmm0
subsd -0x68(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x610(%rax), %xmm0
movsd %xmm0, 0x610(%rax)
movq -0x28(%rbp), %rax
movsd 0xd690(%rax), %xmm0
subsd -0x60(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x8(%rax), %xmm0
movsd %xmm0, 0x8(%rax)
movq -0x28(%rbp), %rax
movsd 0xd698(%rax), %xmm0
subsd -0x58(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x20(%rax), %xmm0
movsd %xmm0, 0x20(%rax)
movq -0x28(%rbp), %rax
movsd 0xd6a0(%rax), %xmm0
subsd -0x50(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x38(%rax), %xmm0
movsd %xmm0, 0x38(%rax)
movq -0x28(%rbp), %rax
movsd 0xd6a8(%rax), %xmm0
subsd -0x48(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x50(%rax), %xmm0
movsd %xmm0, 0x50(%rax)
movq -0x28(%rbp), %rax
movsd 0xd6b0(%rax), %xmm0
subsd -0x40(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x68(%rax), %xmm0
movsd %xmm0, 0x68(%rax)
movq -0x28(%rbp), %rax
movsd 0xd6b8(%rax), %xmm0
subsd -0x38(%rbp), %xmm0
movq -0x28(%rbp), %rax
addsd 0x80(%rax), %xmm0
movsd %xmm0, 0x80(%rax)
movq -0x28(%rbp), %rdi
addq $0xd678, %rdi           # imm = 0xD678
leaq -0x78(%rbp), %rsi
movl $0x48, %edx
callq 0x10e60
movl -0x2c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x168c(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
nopw (%rax,%rax)