LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/imrosan[P]sql-format/./sql_format/detail/sf_detail_data.h
// Function: SqlFormat::Detail::Data<SqlFormat::Detail::InData<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, false>::format(DefaultEscapeHandler&)
virtual std::string format(EscapeHandler& escapeHandler)
    {
        const InData<T>& inData = this->GetData();
        const std::vector<T>& dataList = inData.dataList;

        std::string result = "(";

        for (size_t i = 0; i < dataList.size(); ++i)
        {
            if (i > 0)
            {
                result += ',';
            }

            DataBase* d = NewData(dataList[i]);
            result += d->format(escapeHandler);
            delete d;
        }

        result += ")";

        return result; 
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x40(%rbp)
movq %rsi, %r15
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
movq %rax, (%rdi)
leaq 0x5ca(%rip), %rsi       # 0x414c
leaq 0x5c4(%rip), %rdx       # 0x414d
movq %rdi, -0x30(%rbp)
callq 0x2ff2
movq 0x8(%r15), %rsi
cmpq %rsi, 0x10(%r15)
je 0x3c24
xorl %r14d, %r14d
leaq -0x60(%rbp), %rbx
xorl %r12d, %r12d
testq %r12, %r12
je 0x3bc1
movq -0x30(%rbp), %rdi
movl $0x2c, %esi
callq 0x2140
movq 0x8(%r15), %rsi
addq %r14, %rsi
movq %rbx, %rdi
callq 0x3c84
movq %rbx, %rdi
movq %rax, %r13
movq (%rax), %rax
movq %r13, %rsi
movq -0x40(%rbp), %rdx
callq *(%rax)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x2060
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x3c01
callq 0x2160
movq %r13, %rdi
callq 0x2160
incq %r12
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %rax, %r12
jb 0x3baa
leaq 0x51f(%rip), %rsi       # 0x414a
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x2280
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3c4f
jmp 0x3c4f
jmp 0x3c4f
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq -0x38(%rbp), %rdi
je 0x3c64
callq 0x2160
movq %r14, %rdi
callq 0x2250
movq %rax, %r14
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x3c52
callq 0x2160
jmp 0x3c52
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/../../pkgs/R2Shapes/R2Grid.h
// Function: Delta(gaps::R2Grid*, int, int)
inline RNScalar R2Grid::
GridValue(int i, int j) const
{
  // Return value at grid point
  assert((0 <= i) && (i < XResolution()));
  assert((0 <= j) && (j < YResolution()));
  return grid_values[j * grid_row_size + i];
}

// Assembly:
movq 0xb8(%rdi), %rax
movslq 0xc8(%rdi), %rcx
movl %ecx, %r8d
imull %edx, %r8d
addl %esi, %r8d
movslq %r8d, %r8
movsd (%rax,%r8,8), %xmm1
movsd 0x54113(%rip), %xmm0    # 0x59008
ucomisd %xmm0, %xmm1
jne 0x4efe
jp 0x4efe
retq
pushq %rbp
pushq %r14
pushq %rbx
movslq %esi, %rsi
movslq %edx, %rdx
leaq -0x1(%rdx), %r8
imulq %rcx, %r8
leaq (,%rsi,8), %r9
leaq (%r9,%r8,8), %r8
addq %r8, %rax
shlq $0x3, %rcx
xorpd %xmm2, %xmm2
xorl %r8d, %r8d
movq $-0x1, %r9
movsd 0x540cf(%rip), %xmm0    # 0x59008
leaq (%r9,%rdx), %r10
movq $-0x1, %r11
movl %r11d, %ebx
orl %r9d, %ebx
je 0x4f8e
movq %rsi, %rbx
addq %r11, %rbx
js 0x4f8e
testq %r10, %r10
sets %bpl
movslq 0xc0(%rdi), %r14
cmpq %r14, %rbx
setge %bl
orb %bpl, %bl
jne 0x4f8e
movslq 0xc4(%rdi), %rbx
cmpq %rbx, %r10
jge 0x4f8e
movsd (%rax,%r11,8), %xmm3
ucomisd %xmm0, %xmm3
jne 0x4f87
jnp 0x4f8e
addsd %xmm3, %xmm2
incl %r8d
incq %r11
cmpq $0x2, %r11
jne 0x4f44
incq %r9
addq %rcx, %rax
cmpq $0x2, %r9
jne 0x4f39
testl %r8d, %r8d
popq %rbx
popq %r14
popq %rbp
je 0x4efd
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
divsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/pfm2pfm.cpp
// Function: SUN3DBitshift(gaps::R2Grid*)
void SUN3DBitshift(R2Grid *grid)
{
  for (int i = 0; i < grid->NEntries(); i++) {
    unsigned int d = (unsigned int) (grid->GridValue(i) + 0.5);
    d = ((d >> 3) & 0x1FFF) | ((d & 0x7) << 13);
    grid->SetGridValue(i, d);
  }
}

// Assembly:
movslq 0xcc(%rdi), %rax
testq %rax, %rax
jle 0x59c5
movq 0xb8(%rdi), %rcx
xorl %edx, %edx
movsd 0x536a8(%rip), %xmm0    # 0x59038
movsd (%rcx,%rdx,8), %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %rsi
movl %esi, %edi
shrl $0x3, %edi
andl $0x1fff, %edi           # imm = 0x1FFF
shll $0xd, %esi
movzwl %si, %esi
orl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
movsd %xmm1, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x5990
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/pfm2pfm.cpp
// Function: Hash(gaps::R2Grid*, int)
void Hash(R2Grid *grid, int nvalues)
{
  // Get some stats
  RNInterval range = grid->Range();
  if (range.Diameter() == 0) return;
  RNScalar scale = 1.0 / range.Diameter();
  
  // Replace values with hash to value in [0:nvalues-1]
  for (int iy = 0; iy < grid->YResolution(); iy++) {
    for (int ix = 0; ix < grid->XResolution(); ix++) {
      RNScalar value = grid->GridValue(ix, iy);
      if (value == R2_GRID_UNKNOWN_VALUE) continue;
      int hash = (int) (nvalues * scale * (value - range.Min()));
      if (hash > nvalues-1) hash = nvalues-1;
      grid->SetGridValue(ix, iy, hash);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x8d70
movsd 0x8(%r15), %xmm0
subsd (%r15), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x59fd
jnp 0x5a97
movl 0xc4(%r14), %eax
testl %eax, %eax
jle 0x5a97
movsd 0x535fc(%rip), %xmm1    # 0x59010
divsd %xmm0, %xmm1
movl 0xc0(%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd %xmm1, %xmm0
leal -0x1(%rbx), %edx
xorl %esi, %esi
movsd 0x535d1(%rip), %xmm1    # 0x59008
testl %ecx, %ecx
jle 0x5a91
movslq 0xc8(%r14), %r8
movslq %esi, %rdi
imulq %r8, %rdi
shlq $0x3, %rdi
addq 0xb8(%r14), %rdi
xorl %r8d, %r8d
movsd (%rdi,%r8,8), %xmm2
ucomisd %xmm1, %xmm2
jne 0x5a65
jnp 0x5a89
subsd (%rsp), %xmm2
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %r9d
cmpl %ebx, %r9d
jl 0x5a7b
movl %edx, %r9d
xorps %xmm2, %xmm2
cvtsi2sd %r9d, %xmm2
movsd %xmm2, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x5a57
incl %esi
cmpl %eax, %esi
jne 0x5a37
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/pfm2pfm.cpp
// Function: DU(gaps::R2Grid*)
void DU(R2Grid *grid)
{
  R2Grid f(*grid);
  grid->Clear(R2_GRID_UNKNOWN_VALUE);
  for (int iy = 0; iy < grid->YResolution(); iy++) {
    for (int ix = 0; ix < grid->XResolution()-1; ix++) {
      RNScalar d0 = f.GridValue(ix, iy);
      if (RNIsZero(d0) || (d0 == R2_GRID_UNKNOWN_VALUE)) continue;
      RNScalar d1 = f.GridValue(ix+1, iy);
      if (RNIsZero(d1) || (d1 == R2_GRID_UNKNOWN_VALUE)) continue;
      grid->SetGridValue(ix, iy, d1 - d0);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8b70
movsd 0x53546(%rip), %xmm0    # 0x59008
movq %rbx, %rdi
callq 0xa294
movslq 0xc4(%rbx), %rax
testq %rax, %rax
movsd 0x5352c(%rip), %xmm6    # 0x59008
jle 0x5bca
movl 0xc0(%rbx), %ecx
leal -0x1(%rcx), %edx
movq 0xb8(%rsp), %rsi
movslq 0xc8(%rsp), %rdi
addq $0x8, %rsi
shlq $0x3, %rdi
xorl %r8d, %r8d
leaq 0x76893(%rip), %r9      # 0x7c3a0
movapd 0x5354b(%rip), %xmm0    # 0x59060
xorl %r10d, %r10d
cmpl $0x2, %ecx
jl 0x5bb7
movsd (%r9), %xmm1
xorl %r11d, %r11d
movsd -0x8(%rsi,%r11,8), %xmm2
ucomisd %xmm6, %xmm2
jne 0x5b38
jnp 0x5bab
movapd %xmm1, %xmm4
xorpd %xmm0, %xmm4
movapd %xmm2, %xmm3
cmplepd %xmm1, %xmm3
movapd %xmm4, %xmm5
cmplepd %xmm2, %xmm5
andpd %xmm3, %xmm5
movd %xmm5, %ebp
testb $0x1, %bpl
jne 0x5bab
movsd (%rsi,%r11,8), %xmm3
ucomisd %xmm6, %xmm3
jne 0x5b6e
jnp 0x5bab
movapd %xmm3, %xmm5
cmplepd %xmm1, %xmm5
cmplepd %xmm3, %xmm4
andpd %xmm5, %xmm4
movd %xmm4, %ebp
testb $0x1, %bpl
jne 0x5bab
subsd %xmm2, %xmm3
movslq 0xc8(%rbx), %r14
imulq %r8, %r14
addq 0xb8(%rbx), %r14
movsd %xmm3, (%r14,%r11,8)
movsd (%r9), %xmm1
incq %r11
cmpq %r11, %rdx
jne 0x5b29
incq %r10
addq $0x8, %r8
addq %rdi, %rsi
cmpq %rax, %r10
jne 0x5b18
movq %rsp, %rdi
callq 0x8d48
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8d48
movq %rbx, %rdi
callq 0x44c0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/pfm2pfm.cpp
// Function: DV(gaps::R2Grid*)
void DV(R2Grid *grid)
{
  R2Grid f(*grid);
  grid->Clear(R2_GRID_UNKNOWN_VALUE);
  for (int iy = 0; iy < grid->YResolution()-1; iy++) {
    for (int ix = 0; ix < grid->XResolution(); ix++) {
      RNScalar d0 = f.GridValue(ix, iy);
      if (RNIsZero(d0) || (d0 == R2_GRID_UNKNOWN_VALUE)) continue;
      RNScalar d1 = f.GridValue(ix, iy+1);
      if (RNIsZero(d1) || (d1 == R2_GRID_UNKNOWN_VALUE)) continue;
      grid->SetGridValue(ix, iy, d1 - d0);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x8b70
movsd 0x533f2(%rip), %xmm0    # 0x59008
movq %rbx, %rdi
callq 0xa294
movl 0xc4(%rbx), %eax
cmpl $0x2, %eax
movsd 0x533d9(%rip), %xmm6    # 0x59008
jl 0x5d2d
decl %eax
movl 0xc0(%rbx), %ecx
movq 0xc0(%rsp), %rdx
movslq 0xd0(%rsp), %rsi
xorl %edi, %edi
leaq 0x7674a(%rip), %r8      # 0x7c3a0
movapd 0x53402(%rip), %xmm0    # 0x59060
testl %ecx, %ecx
jle 0x5d1e
movq %rdi, %r10
imulq %rsi, %r10
leaq 0x1(%rdi), %r9
movq %r9, %r11
imulq %rsi, %r11
movsd (%r8), %xmm1
leaq (%rdx,%r10,8), %r10
leaq (%rdx,%r11,8), %r11
xorl %r14d, %r14d
movsd (%r10,%r14,8), %xmm2
ucomisd %xmm6, %xmm2
jne 0x5c96
jnp 0x5d0d
movapd %xmm1, %xmm4
xorpd %xmm0, %xmm4
movapd %xmm2, %xmm3
cmplepd %xmm1, %xmm3
movapd %xmm4, %xmm5
cmplepd %xmm2, %xmm5
andpd %xmm3, %xmm5
movd %xmm5, %ebp
testb $0x1, %bpl
jne 0x5d0d
movsd (%r11,%r14,8), %xmm3
ucomisd %xmm6, %xmm3
jne 0x5ccc
jnp 0x5d0d
movapd %xmm3, %xmm5
cmplepd %xmm1, %xmm5
cmplepd %xmm3, %xmm4
andpd %xmm5, %xmm4
movd %xmm4, %ebp
testb $0x1, %bpl
jne 0x5d0d
subsd %xmm2, %xmm3
movslq 0xc8(%rbx), %r15
imulq %rdi, %r15
shlq $0x3, %r15
addq 0xb8(%rbx), %r15
movsd %xmm3, (%r15,%r14,8)
movsd (%r8), %xmm1
incq %r14
cmpq %r14, %rcx
jne 0x5c88
movq %r9, %rdi
jmp 0x5d24
incq %rdi
movq %rdi, %r9
cmpq %rax, %r9
jne 0x5c5e
leaq 0x8(%rsp), %rdi
callq 0x8d48
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8d48
movq %rbx, %rdi
callq 0x44c0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/pfm2pfm/pfm2pfm.cpp
// Function: ReadGrid(char const*)
static R2Grid *
ReadGrid(const char *filename)
{
  // Start statistics
  RNTime start_time;
  start_time.Read();

  // Allocate a grid
  R2Grid *grid = new R2Grid();
  if (!grid) {
    RNFail("Unable to allocate grid");
    return NULL;
  }

  // Read grid
  int status = grid->Read(filename);
  if (!status) {
    RNFail("Unable to read grid file %s", filename);
    return NULL;
  }

  // Print statistics
  if (print_verbose) {
    printf("Read grid from %s\n", filename);
    printf("  Time = %.2f seconds\n", start_time.Elapsed());
    printf("  Resolution = %d %d\n", grid->XResolution(), grid->YResolution());
    printf("  Spacing = %g\n", grid->GridToWorldScaleFactor());
    printf("  Cardinality = %d\n", grid->Cardinality());
    RNInterval grid_range = grid->Range();
    printf("  Minimum = %g\n", grid_range.Min());
    printf("  Maximum = %g\n", grid_range.Max());
    printf("  L1Norm = %g\n", grid->L1Norm());
    printf("  L2Norm = %g\n", grid->L2Norm());
    fflush(stdout);
  }

  // Return success
  return grid;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x27094
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4490
movl $0xd0, %edi
callq 0x4280
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8114
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10532
testl %eax, %eax
je 0x7c5d
cmpb $0x1, 0x75eff(%rip)     # 0x7da30
jne 0x7c70
leaq 0x51aae(%rip), %rdi     # 0x595ec
movq %r14, %rsi
xorl %eax, %eax
callq 0x4050
leaq 0x8(%rsp), %rdi
callq 0x270f6
leaq 0x51aa6(%rip), %rdi     # 0x595ff
movb $0x1, %al
callq 0x4050
movl 0xc0(%rbx), %esi
movl 0xc4(%rbx), %edx
leaq 0x51aa3(%rip), %rdi     # 0x59616
xorl %eax, %eax
callq 0x4050
movsd 0xb0(%rbx), %xmm1
leaq 0x74817(%rip), %rax     # 0x7c3a0
movsd (%rax), %xmm2
movapd 0x514cb(%rip), %xmm0    # 0x59060
xorpd %xmm2, %xmm0
movsd 0x5146f(%rip), %xmm3    # 0x59010
divsd %xmm1, %xmm3
cmpnlesd %xmm1, %xmm0
movapd %xmm0, %xmm4
andpd %xmm3, %xmm4
cmpnlesd %xmm2, %xmm1
andpd %xmm3, %xmm1
andnpd %xmm1, %xmm0
orpd %xmm4, %xmm0
leaq 0x51a62(%rip), %rdi     # 0x5962c
movb $0x1, %al
callq 0x4050
movq %rbx, %rdi
callq 0x8f80
leaq 0x51a5c(%rip), %rdi     # 0x5963c
movl %eax, %esi
xorl %eax, %eax
callq 0x4050
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8d70
movsd (%r14), %xmm0
leaq 0x51a4b(%rip), %rdi     # 0x59650
movb $0x1, %al
callq 0x4050
movsd 0x8(%r14), %xmm0
leaq 0x51a47(%rip), %rdi     # 0x59660
movb $0x1, %al
callq 0x4050
movq %rbx, %rdi
callq 0x8eca
leaq 0x51a41(%rip), %rdi     # 0x59670
movb $0x1, %al
callq 0x4050
movq %rbx, %rdi
callq 0x8f1a
leaq 0x51a3a(%rip), %rdi     # 0x5967f
movb $0x1, %al
callq 0x4050
movq 0x7434d(%rip), %rax     # 0x7bfa0
movq (%rax), %rdi
callq 0x42e0
jmp 0x7c70
leaq 0x5196c(%rip), %rdi     # 0x595d0
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x29432
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movl $0xd0, %esi
movq %rbx, %rdi
callq 0x4290
movq %r14, %rdi
callq 0x44c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::RNPolynomial(gaps::RNPolynomial const&)
RNPolynomial::
RNPolynomial(const RNPolynomial& polynomial)
  :terms()
{
  // Copy polynomial terms
  terms.Resize(polynomial.NTerms());
  for (int i = 0; i < polynomial.NTerms(); i++) {
    RNPolynomialTerm *polynomial_term = polynomial.Term(i);
    RNPolynomialTerm *term = new RNPolynomialTerm(*polynomial_term);
    terms.Insert(term); 
    term->polynomial = this; 
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x27330
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x2742a
cmpl $0x0, 0xc(%r14)
jle 0x20c44
xorl %r13d, %r13d
movq (%r14), %rax
movq (%rax,%r13,8), %r12
movl $0x28, %edi
callq 0x4280
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2244e
movl 0xc(%rbx), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x273c6
movq %rbx, (%r15)
incq %r13
movslq 0xc(%r14), %rax
cmpq %rax, %r13
jl 0x20c08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x20c62
movq %rax, %r14
movl $0x28, %esi
movq %r15, %rdi
callq 0x4290
jmp 0x20c65
movq %rax, %r14
movq %rbx, %rdi
callq 0x2739a
movq %r14, %rdi
callq 0x44c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Empty()
void RNPolynomial::
Empty(void)
{
  // Delete all terms
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    delete term;
  }

  // Empty array of terms
  terms.Empty();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0xc(%rdi)
jle 0x20f7c
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x20f63
movq %r14, %rdi
callq 0x224ea
movl $0x28, %esi
movq %r14, %rdi
callq 0x4290
incq %r15
movslq 0xc(%rbx), %rax
cmpq %rax, %r15
jl 0x20f4f
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x27590
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Degree() const
RNScalar RNPolynomial::
Degree(void) const
{
  // Return highest degree of any term
  RNScalar max_degree = 0;
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    RNScalar degree = term->Degree();
    if (degree > max_degree) max_degree = degree;
  }
  return max_degree;
}

// Assembly:
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0x20fd5
movq (%rdi), %rcx
xorpd %xmm1, %xmm1
xorl %edx, %edx
movq (%rcx,%rdx,8), %rdi
movslq 0x8(%rdi), %rsi
xorpd %xmm0, %xmm0
testq %rsi, %rsi
jle 0x20fc4
movq 0x20(%rdi), %rdi
xorl %r8d, %r8d
addsd (%rdi,%r8,8), %xmm0
incq %r8
cmpq %r8, %rsi
jne 0x20fb6
maxsd %xmm1, %xmm0
incq %rdx
movapd %xmm0, %xmm1
cmpq %rax, %rdx
jne 0x20f9e
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::Degree() const
RNScalar RNPolynomialTerm::
Degree(void) const
{
  // Return degree
  RNScalar degree = 0;
  for (int i = 0; i < NVariables(); i++) degree += e[i];
  return degree;
}

// Assembly:
movslq 0x8(%rdi), %rax
testq %rax, %rax
jle 0x20ffb
movq 0x20(%rdi), %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rcx,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rax
jne 0x20fed
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::NVariables() const
static int
RNComparePolynomialTerms(const RNPolynomialTerm *term1, const RNPolynomialTerm *term1)
{
  // Check number of variables
  if (term1->NVariables() < term2->NVariables()) return -1;
  else if (term1->NVariables() > term2->NVariables()) return 1;

  // Compare variables and exponents 
  for (int i = 0; i < term1->NVariables(); i++) {
    // This assumes variables are sorted
    if (term1->Variable(i) < term2->Variable(i)) return -1;
    else if (term1->Variable(i) > term2->Variable(i)) return 1;
    if (term1->Exponent(i) < term2->Exponent(i)) return -1;
    else if (term1->Exponent(i) > term2->Exponent(i)) return 1;
  }

  // Terms have the same variables and exponents
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl 0xc(%rdi), %r13d
testq %r13, %r13
je 0x210e7
movq %rdi, %r15
leaq 0x8(%rsp), %rsi
movl $0x7fffffff, (%rsi)     # imm = 0x7FFFFFFF
leaq 0xc(%rsp), %rbx
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
movq %rbx, %rdx
callq 0x210fa
movl (%rbx), %eax
xorl %ebx, %ebx
testl %eax, %eax
js 0x210e9
movl 0x8(%rsp), %ecx
cmpl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
sete %dl
cmpl %ecx, %eax
setl %sil
orb %dl, %sil
jne 0x210e9
movl $0x1, %ebx
cmpl %ecx, %eax
je 0x210e9
incl %ecx
movl $0x2, %ebx
cmpl %ecx, %eax
je 0x210e9
leaq 0x4(,%rax,4), %r12
movq %r12, %rdi
callq 0x4030
movq %rax, %r14
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x4160
testl %r13d, %r13d
jle 0x210dd
movq (%r15), %rax
xorl %ebx, %ebx
xorl %ecx, %ecx
movq (%rax,%rcx,8), %rsi
movslq 0x8(%rsi), %rdx
testq %rdx, %rdx
jle 0x210d5
movq 0x18(%rsi), %rsi
xorl %edi, %edi
movslq (%rsi,%rdi,4), %r8
cmpl $0x1, (%r14,%r8,4)
je 0x210cd
movl $0x1, (%r14,%r8,4)
incl %ebx
incq %rdi
cmpq %rdx, %rdi
jb 0x210b8
incq %rcx
cmpq %r13, %rcx
jne 0x210a5
movq %r14, %rdi
callq 0x4360
jmp 0x210e9
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::UpdateVariableIndex(int, int&, int*, int, int*, int*, int) const
void RNPolynomial::
UpdateVariableIndex(int max_variables, int& variable_count, 
  int *variable_marks, int current_mark, 
  int *index_to_variable, int *variable_to_index,
  RNBoolean remap_variables) const
{
  // Just checking
  assert(variable_to_index || !remap_variables);

  // Update variable index for each term
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    term->UpdateVariableIndex(max_variables, variable_count, 
      variable_marks, current_mark,
      index_to_variable, variable_to_index,
      remap_variables);
  }
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
jle 0x211b2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %r12
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rdi
movq %r15, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movq %rbx, %r9
movl 0x48(%rsp), %eax
pushq %rax
pushq 0x48(%rsp)
callq 0x221ca
addq $0x10, %rsp
incq %r13
movslq 0xc(%r12), %rax
cmpq %rax, %r13
jl 0x21171
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::IsLinear() const
RNBoolean RNPolynomial::
IsLinear(void) const
{
  // Check each term
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    if (!term->IsLinear()) return FALSE;
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0x212a3
movq (%rdi), %rcx
movq %rax, %rdx
negq %rdx
movl $0x1, %edi
xorl %esi, %esi
movsd 0x37db1(%rip), %xmm0    # 0x59010
movq -0x8(%rcx,%rdi,8), %r8
movl 0x8(%r8), %r9d
testl %r9d, %r9d
je 0x21284
cmpl $0x1, %r9d
jne 0x2129b
movq 0x20(%r8), %r8
movsd (%r8), %xmm1
ucomisd %xmm0, %xmm1
jne 0x2129b
jp 0x2129b
cmpq %rax, %rdi
setae %sil
leaq (%rdx,%rdi), %r8
incq %r8
incq %rdi
cmpq $0x1, %r8
jne 0x2125f
movzbl %sil, %eax
andl $0x1, %eax
retq
movl $0x1, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::IsQuadratic() const
RNBoolean RNPolynomial::
IsQuadratic(void) const
{
  // Check each term
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    if (!term->IsQuadratic()) return FALSE;
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movslq 0xc(%rdi), %rbx
testq %rbx, %rbx
jle 0x21319
movq (%rdi), %r14
movq (%r14), %rdi
callq 0x21328
testl %eax, %eax
je 0x21320
movl $0x1, %ecx
movq %rcx, %r15
cmpq %rcx, %rbx
je 0x2130f
movq (%r14,%r15,8), %rdi
callq 0x21328
leaq 0x1(%r15), %rcx
testl %eax, %eax
jne 0x212f6
xorl %eax, %eax
cmpq %rbx, %r15
setae %al
jmp 0x21322
movl $0x1, %eax
jmp 0x21322
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::HasVariable(int) const
RNBoolean RNPolynomial::
HasVariable(int variable) const
{
  // Check terms
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    if (term->HasVariable(variable)) return TRUE;
  }

  // Not found
  return FALSE;
}

// Assembly:
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0x213d9
movq (%rdi), %rcx
movb $0x1, %dl
xorl %edi, %edi
movq (%rcx,%rdi,8), %r9
movslq 0x8(%r9), %r8
testq %r8, %r8
jle 0x213c7
movq 0x18(%r9), %r9
cmpl %esi, (%r9)
je 0x213d2
movl $0x1, %r11d
movq %r11, %r10
cmpq %r11, %r8
je 0x213c2
leaq 0x1(%r10), %r11
cmpl %esi, (%r9,%r10,4)
jne 0x213b0
cmpq %r8, %r10
jb 0x213d2
incq %rdi
cmpq %rax, %rdi
setb %dl
jne 0x21394
movzbl %dl, %eax
andl $0x1, %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::HasVariable(int) const
RNBoolean RNPolynomialTerm::
HasVariable(int variable) const
{
  // Search for variable
  for (int i = 0; i < n; i++) {
    if (v[i] == variable) return TRUE;
  }

  // Not found
  return FALSE;
}

// Assembly:
movslq 0x8(%rdi), %rcx
testq %rcx, %rcx
jle 0x21411
movq 0x18(%rdi), %rdx
movl $0x1, %eax
cmpl %esi, (%rdx)
je 0x21413
movl $0x1, %eax
movq %rax, %rdi
cmpq %rax, %rcx
je 0x21408
leaq 0x1(%rdi), %rax
cmpl %esi, (%rdx,%rdi,4)
jne 0x213f7
xorl %eax, %eax
cmpq %rcx, %rdi
setb %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Negate()
void RNPolynomial::
Negate(void)
{
  // Negate all terms
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    term->Negate();
  }
}

// Assembly:
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0x21441
movq (%rdi), %rcx
xorl %edx, %edx
movaps 0x37c37(%rip), %xmm0    # 0x59060
movq (%rcx,%rdx,8), %rsi
movsd 0x10(%rsi), %xmm1
xorps %xmm0, %xmm1
movlps %xmm1, 0x10(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x21429
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Multiply(double)
void RNPolynomial::
Multiply(RNScalar factor)
{
  // Check if factor is zero
  if (factor == 0.0) {
    // Delete all terms
    Empty();
  }
  else {
    // Multiply all terms by factor
    for (int i = 0; i < NTerms(); i++) {
      RNPolynomialTerm *term = Term(i);
      term->Multiply(factor);
    }
  }
}

// Assembly:
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x21453
jp 0x21453
jmp 0x20f3e
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0x2147b
movq (%rdi), %rcx
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movsd 0x10(%rsi), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x21461
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Add(gaps::RNPolynomial const&)
void RNPolynomial::
Add(const RNPolynomial& polynomial)
{
  // Add polynomial
  for (int i = 0; i < polynomial.NTerms(); i++) {
    RNPolynomialTerm *term = polynomial.Term(i);
    AddTerm(term->Coefficient(), term->NVariables(), term->Variables(), term->Exponents(), TRUE, TRUE);
  }
}

// Assembly:
cmpl $0x0, 0xc(%rsi)
jle 0x21506
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %rax
movsd 0x10(%rax), %xmm0
movl 0x8(%rax), %esi
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rcx
movq %r14, %rdi
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x20d48
incq %r15
movslq 0xc(%rbx), %rax
cmpq %rax, %r15
jl 0x214ca
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Subtract(gaps::RNPolynomial const&)
void RNPolynomial::
Subtract(const RNPolynomial& polynomial)
{
  // Subtract polynomial
  for (int i = 0; i < polynomial.NTerms(); i++) {
    RNPolynomialTerm *term = polynomial.Term(i);
    AddTerm(-(term->Coefficient()), term->NVariables(), term->Variables(), term->Exponents(), TRUE, TRUE);
  }
}

// Assembly:
cmpl $0x0, 0xc(%rsi)
jle 0x2155f
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %rax
movsd 0x10(%rax), %xmm0
xorps 0x37b31(%rip), %xmm0    # 0x59060
movl 0x8(%rax), %esi
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rcx
movq %r14, %rdi
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x20d48
incq %r15
movslq 0xc(%rbx), %rax
cmpq %rax, %r15
jl 0x2151c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::operator=(gaps::RNPolynomial const&)
RNPolynomial& RNPolynomial::
operator=(const RNPolynomial& polynomial)
{
  // Empty this polynomial
  Empty();

  // Copy polynomial terms
  terms.Resize(polynomial.NTerms());
  for (int i = 0; i < polynomial.NTerms(); i++) {
    RNPolynomialTerm *polynomial_term = polynomial.Term(i);
    RNPolynomialTerm *term = new RNPolynomialTerm(*polynomial_term);
    terms.Insert(term); 
    term->polynomial = this; 
  }

  // Return this
  return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x20f3e
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x2742a
cmpl $0x0, 0xc(%r14)
jle 0x21822
xorl %r13d, %r13d
movq (%r14), %rax
movq (%rax,%r13,8), %r12
movl $0x28, %edi
callq 0x4280
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2244e
movl 0xc(%rbx), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x273c6
movq %rbx, (%r15)
incq %r13
movslq 0xc(%r14), %rax
cmpq %rax, %r13
jl 0x217e6
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x4290
movq %rbx, %rdi
callq 0x44c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::Evaluate(double const*) const
RNScalar RNPolynomialTerm::
Evaluate(const RNScalar *x) const
{
  // Evaluate the term
  RNScalar result = c;
  for (int i = 0; i < NVariables(); i++) {
    int k = Variable(i);
    if (e[i] == 1.0) result *= x[k];
    else if (e[i] == 2.0) result *= x[k] *x[k];
    else if ((e[i] < 0) && RNIsZero(x[k])) result *= RN_INFINITY;
    else result *= pow(x[k], e[i]);
  }
  return result;
}

// Assembly:
movsd 0x10(%rdi), %xmm4
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x21a1a
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movsd 0x376ba(%rip), %xmm5    # 0x59010
movsd 0x38d6a(%rip), %xmm6    # 0x5a6c8
leaq 0x5aa3b(%rip), %r12     # 0x7c3a0
leaq 0x5aa44(%rip), %r13     # 0x7c3b0
movq 0x18(%r14), %rcx
movq 0x20(%r14), %rdx
movslq (%rcx,%r15,4), %rcx
movsd (%rdx,%r15,8), %xmm1
ucomisd %xmm5, %xmm1
jne 0x2198d
jp 0x2198d
movsd (%rbx,%rcx,8), %xmm0
jmp 0x219fa
ucomisd %xmm6, %xmm1
jne 0x219a0
jp 0x219a0
movsd (%rbx,%rcx,8), %xmm0
mulsd %xmm0, %xmm0
jmp 0x219fa
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
movsd (%rbx,%rcx,8), %xmm0
jbe 0x219d5
movsd (%r12), %xmm2
movapd %xmm2, %xmm3
xorpd 0x3769f(%rip), %xmm3    # 0x59060
ucomisd %xmm3, %xmm0
jb 0x219d5
ucomisd %xmm0, %xmm2
jb 0x219d5
movsd (%r13), %xmm0
jmp 0x219fa
movsd %xmm4, 0x8(%rsp)
callq 0x44b0
movsd 0x38ce0(%rip), %xmm6    # 0x5a6c8
movsd 0x37620(%rip), %xmm5    # 0x59010
movsd 0x8(%rsp), %xmm4
movl 0x8(%r14), %eax
mulsd %xmm0, %xmm4
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x2196c
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
movapd %xmm4, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::Evaluate(double const* const*) const
RNScalar RNPolynomialTerm::
Evaluate(double const* const* x) const
{
  // Evaluate the term (in format suitable for CERES)
  RNScalar result = c;
  for (int i = 0; i < NVariables(); i++) {
    int k = Variable(i);
    if (e[i] == 1.0) result *= x[k][0];
    else if (e[i] == 2.0) result *= x[k][0] * x[k][0];
    else if ((e[i] < 0) && RNIsZero(x[k][0])) result *= RN_INFINITY;
    else result *= pow(x[k][0], e[i]);
  }
  return result;
}

// Assembly:
movsd 0x10(%rdi), %xmm4
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x21b7d
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movsd 0x37560(%rip), %xmm5    # 0x59010
movsd 0x38c10(%rip), %xmm6    # 0x5a6c8
leaq 0x5a8e1(%rip), %r12     # 0x7c3a0
leaq 0x5a8ea(%rip), %r13     # 0x7c3b0
movq 0x18(%r14), %rcx
movq 0x20(%r14), %rdx
movslq (%rcx,%r15,4), %rcx
movsd (%rdx,%r15,8), %xmm1
ucomisd %xmm5, %xmm1
jne 0x21aea
jp 0x21aea
movq (%rbx,%rcx,8), %rcx
movsd (%rcx), %xmm0
jmp 0x21b5d
ucomisd %xmm6, %xmm1
jne 0x21b00
jp 0x21b00
movq (%rbx,%rcx,8), %rcx
movsd (%rcx), %xmm0
mulsd %xmm0, %xmm0
jmp 0x21b5d
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
movq (%rbx,%rcx,8), %rcx
movsd (%rcx), %xmm0
jbe 0x21b38
movsd (%r12), %xmm2
movapd %xmm2, %xmm3
xorpd 0x3753c(%rip), %xmm3    # 0x59060
ucomisd %xmm3, %xmm0
jb 0x21b38
ucomisd %xmm0, %xmm2
jb 0x21b38
movsd (%r13), %xmm0
jmp 0x21b5d
movsd %xmm4, 0x8(%rsp)
callq 0x44b0
movsd 0x38b7d(%rip), %xmm6    # 0x5a6c8
movsd 0x374bd(%rip), %xmm5    # 0x59010
movsd 0x8(%rsp), %xmm4
movl 0x8(%r14), %eax
mulsd %xmm0, %xmm4
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x21ac6
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
movapd %xmm4, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::PartialDerivative(double const*, int) const
RNScalar RNPolynomial::
PartialDerivative(const RNScalar *x, int variable) const
{
  // Return sum of term partial derivatives for variable
  RNScalar sum = 0;
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    sum += term->PartialDerivative(x, variable);
  }
  return sum;
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
jle 0x21be0
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movsd %xmm0, (%rsp)
movq (%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x21be4
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
movslq 0xc(%r15), %rax
cmpq %rax, %r12
jl 0x21b9f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::PartialDerivative(double const*, int) const
RNScalar RNPolynomialTerm::
PartialDerivative(const RNScalar *x, int variable) const
{
  // Check if has variable
  if (!HasVariable(variable)) return 0.0;

  // Evaluate the derivative with respect to variable
  RNScalar result = c;
  for (int i = 0; i < NVariables(); i++) {
    int k = Variable(i);
    if (variable == k) {
      if (e[i] == 1.0) result *= 1.0;
      else if (e[i] == 2.0) result *= 2.0 * x[k];
      else if ((e[i] < 1.0) && RNIsZero(x[k])) result *= RN_INFINITY;
      else result *= e[i] * pow(x[k], e[i] - 1.0);
    }
    else {
      if (e[i] == 1.0) result *= x[k];
      else if (e[i] == 2.0) result *= x[k] * x[k];
      else if ((e[i] < 0) && RNIsZero(x[k])) result *= RN_INFINITY;
      else result *= pow(x[k], e[i]);
    }
  }
  return result;
}

// Assembly:
movslq 0x8(%rdi), %rax
xorpd %xmm3, %xmm3
testq %rax, %rax
jle 0x21da9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x18(%rdi), %rcx
cmpl %edx, (%rcx)
je 0x21c32
movl $0x1, %esi
movq %rsi, %rdx
cmpq %rsi, %rax
je 0x21c29
leaq 0x1(%rdx), %rsi
cmpl %ebx, (%rcx,%rdx,4)
jne 0x21c18
cmpq %rax, %rdx
jae 0x21d9b
movsd 0x10(%r15), %xmm3
movslq %ebx, %r12
xorl %r13d, %r13d
movsd 0x373ca(%rip), %xmm4    # 0x59010
movsd 0x38a7a(%rip), %xmm5    # 0x5a6c8
leaq 0x5a74b(%rip), %rbp     # 0x7c3a0
movq 0x18(%r15), %rax
movq 0x20(%r15), %rcx
movslq (%rax,%r13,4), %rax
movsd (%rcx,%r13,8), %xmm6
cmpl %ebx, %eax
jne 0x21c8e
ucomisd %xmm4, %xmm6
jne 0x21c77
jnp 0x21d8b
ucomisd %xmm5, %xmm6
jne 0x21cb8
jp 0x21cb8
movsd (%r14,%r12,8), %xmm0
addsd %xmm0, %xmm0
jmp 0x21d87
ucomisd %xmm4, %xmm6
jne 0x21ca1
jp 0x21ca1
mulsd (%r14,%rax,8), %xmm3
jmp 0x21d8b
ucomisd %xmm5, %xmm6
jne 0x21ce7
jp 0x21ce7
movsd (%r14,%rax,8), %xmm0
mulsd %xmm0, %xmm0
jmp 0x21d87
ucomisd %xmm6, %xmm4
jbe 0x21d48
movsd (%r14,%r12,8), %xmm0
movsd (%rbp), %xmm1
movapd %xmm1, %xmm2
xorpd 0x37387(%rip), %xmm2    # 0x59060
ucomisd %xmm2, %xmm0
jb 0x21d4e
ucomisd %xmm0, %xmm1
jae 0x21d14
jmp 0x21d4e
xorpd %xmm0, %xmm0
ucomisd %xmm6, %xmm0
movsd (%r14,%rax,8), %xmm0
jbe 0x21d21
movsd (%rbp), %xmm1
movapd %xmm1, %xmm2
xorpd 0x37358(%rip), %xmm2    # 0x59060
ucomisd %xmm2, %xmm0
jb 0x21d21
ucomisd %xmm0, %xmm1
jb 0x21d21
leaq 0x5a695(%rip), %rax     # 0x7c3b0
mulsd (%rax), %xmm3
jmp 0x21d8b
movapd %xmm6, %xmm1
movsd %xmm3, 0x8(%rsp)
callq 0x44b0
movsd 0x38990(%rip), %xmm5    # 0x5a6c8
movsd 0x372d0(%rip), %xmm4    # 0x59010
movsd 0x8(%rsp), %xmm3
jmp 0x21d87
movsd (%r14,%r12,8), %xmm0
movapd %xmm6, %xmm1
addsd 0x37aae(%rip), %xmm1    # 0x59808
movsd %xmm3, 0x8(%rsp)
movsd %xmm6, 0x10(%rsp)
callq 0x44b0
movsd 0x38955(%rip), %xmm5    # 0x5a6c8
movsd 0x37295(%rip), %xmm4    # 0x59010
movsd 0x8(%rsp), %xmm3
mulsd 0x10(%rsp), %xmm0
mulsd %xmm0, %xmm3
incq %r13
movslq 0x8(%r15), %rax
cmpq %rax, %r13
jl 0x21c55
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movapd %xmm3, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::PartialDerivative(double const* const*, int) const
RNScalar RNPolynomial::
PartialDerivative(double const* const* x, int variable) const
{
  // Return sum of term partial derivatives for variable
  RNScalar sum = 0;
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    sum += term->PartialDerivative(x, variable);
  }
  return sum;
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
jle 0x21e0c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movsd %xmm0, (%rsp)
movq (%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x21e10
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
movslq 0xc(%r15), %rax
cmpq %rax, %r12
jl 0x21dcb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::Print(_IO_FILE*) const
void RNPolynomial::
Print(FILE *fp) const
{
  // Print polynomial
  printf("{ ");
  for (int i = 0; i < NTerms(); i++) {
    RNPolynomialTerm *term = Term(i);
    fprintf(fp, "  ");
    term->Print(fp);
  }
  printf(" }\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x386d4(%rip), %rdi     # 0x5a6d0
xorl %eax, %eax
callq 0x4050
cmpl $0x0, 0xc(%r14)
jle 0x22047
xorl %r13d, %r13d
leaq 0x38971(%rip), %r15     # 0x5a985
movq (%r14), %rax
movq (%rax,%r13,8), %r12
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4560
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2205c
incq %r13
movslq 0xc(%r14), %rax
cmpq %rax, %r13
jl 0x22014
leaq 0x3868e(%rip), %rdi     # 0x5a6dc
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4430
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::Print(_IO_FILE*) const
void RNPolynomialTerm::
Print(FILE *fp) const
{
  // Print term
  fprintf(fp, "%g ", Coefficient());
  for (int j = 0; j < NVariables(); j++) {
    fprintf(fp, "(%d^%g) ", Variable(j), Exponent(j));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movsd 0x10(%rdi), %xmm0
leaq 0x37d76(%rip), %rsi     # 0x59dec
movq %rbx, %rdi
movb $0x1, %al
callq 0x43e0
cmpl $0x0, 0x8(%r14)
jle 0x220bc
xorl %r12d, %r12d
leaq 0x38642(%rip), %r15     # 0x5a6d3
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
movl (%rax,%r12,4), %edx
movsd (%rcx,%r12,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x43e0
incq %r12
movslq 0x8(%r14), %rax
cmpq %rax, %r12
jl 0x22091
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::HasVariables(int, int const*, double const*) const
RNBoolean RNPolynomialTerm::
HasVariables(int query_n, const int *query_v, const RNScalar *query_e) const
{
  // Check if query has same number of variables
  if (n != query_n) return FALSE;

  // Compare variables and exponents 
  for (int i = 0; i < n; i++) {
    // This assumes variables are sorted
    if (v[i] != query_v[i]) return FALSE;
    if (e[i] != query_e[i]) return FALSE;
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
xorl %eax, %eax
cmpl %esi, 0x8(%rdi)
jne 0x22126
testl %esi, %esi
jle 0x22121
movq 0x18(%rdi), %r8
movl (%r8), %r9d
cmpl (%rdx), %r9d
jne 0x22126
movq 0x20(%rdi), %rax
movl %esi, %esi
movl $0x1, %r9d
xorl %edi, %edi
movsd -0x8(%rax,%r9,8), %xmm0
ucomisd -0x8(%rcx,%r9,8), %xmm0
jne 0x22119
jp 0x22119
cmpq %rsi, %r9
setae %dil
je 0x22119
movl (%r8,%r9,4), %r10d
leaq 0x1(%r9), %r11
cmpl (%rdx,%r9,4), %r10d
movq %r11, %r9
je 0x220ed
movzbl %dil, %eax
andl $0x1, %eax
retq
movl $0x1, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomial::FindTermWithVariables(int, int*, double*) const
RNPolynomialTerm *RNPolynomial::
FindTermWithVariables(int n, int *v, RNScalar *e) const
{
  // Check if query has variables
  if (n == 0) {
    // Check for constant term (must be first)
    RNPolynomialTerm *term = Term(0);
    if (term->IsConstant()) return term;
    else return NULL;
  }
  else {
    // Find matching term
    for (int i = 0; i < NTerms(); i++) {
      RNPolynomialTerm *term = Term(i);
      assert((i == 0) || (!term->IsConstant()));
      if (term->HasVariables(n, v, e)) return term;
    }
  }

  // Did not find matching term
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
testl %esi, %esi
je 0x22175
movslq 0xc(%rdi), %r12
testq %r12, %r12
jle 0x22170
movq %rdx, %r14
movl %esi, %ebp
movq (%rdi), %r13
xorl %ebx, %ebx
movq (%r13,%rbx,8), %r15
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq (%rsp), %rcx
callq 0x220c8
testl %eax, %eax
jne 0x22186
incq %rbx
cmpq %rbx, %r12
jne 0x2214e
xorl %r15d, %r15d
jmp 0x22186
movq (%rdi), %rax
movq (%rax), %rax
xorl %r15d, %r15d
cmpl $0x0, 0x8(%rax)
cmoveq %rax, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::UpdateVariableRange(int&, int&) const
void RNPolynomialTerm::
UpdateVariableRange(int& min_v, int& max_v) const
{
  // Update indices
  for (int i = 0; i < n; i++) {
    if (v[i] > max_v) max_v = v[i];
    if (v[i] < min_v) min_v = v[i];
  }
}

// Assembly:
cmpl $0x0, 0x8(%rdi)
jle 0x221c8
movq 0x18(%rdi), %rax
xorl %ecx, %ecx
movl (%rax,%rcx,4), %r8d
cmpl (%rdx), %r8d
jle 0x221b4
movl %r8d, (%rdx)
movl (%rax,%rcx,4), %r8d
cmpl (%rsi), %r8d
jge 0x221bc
movl %r8d, (%rsi)
incq %rcx
movslq 0x8(%rdi), %r8
cmpq %r8, %rcx
jl 0x221a4
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::UpdateVariableIndex(int, int&, int*, int, int*, int*, int) const
void RNPolynomialTerm::
UpdateVariableIndex(int max_variables, int& variable_count, 
  int *variable_marks, int current_mark, 
  int *index_to_variable, int *variable_to_index,
  RNBoolean remap_variables) const
{
  // Just checking
  assert(variable_to_index || !remap_variables);

  // Process each variable
  for (int i = 0; i < n; i++) {
    assert((v[i] >= 0) && (v[i] < max_variables));
    // Update index
    if (variable_marks[v[i]] != current_mark) {
      if (index_to_variable) index_to_variable[variable_count] = v[i];
      if (variable_to_index) variable_to_index[v[i]] = variable_count;
      variable_marks[v[i]] = current_mark;
      variable_count++;
    }

    // Remap variable
    if (remap_variables) {
      v[i] = variable_to_index[v[i]];
    }
  }
}

// Assembly:
cmpl $0x0, 0x8(%rdi)
jle 0x22237
pushq %rbp
pushq %r14
pushq %rbx
movl 0x28(%rsp), %eax
movq 0x20(%rsp), %rsi
movq 0x18(%rdi), %r10
xorl %r11d, %r11d
movslq (%r10,%r11,4), %rbx
cmpl %r8d, (%rcx,%rbx,4)
je 0x22218
testq %r9, %r9
je 0x221fe
movslq (%rdx), %r14
movl %ebx, (%r9,%r14,4)
movl (%r10,%r11,4), %ebx
testq %rsi, %rsi
je 0x2220f
movl (%rdx), %ebp
movslq %ebx, %rbx
movl %ebp, (%rsi,%rbx,4)
movl (%r10,%r11,4), %ebx
movslq %ebx, %rbx
movl %r8d, (%rcx,%rbx,4)
incl (%rdx)
testl %eax, %eax
je 0x22227
movslq (%r10,%r11,4), %rbx
movl (%rsi,%rbx,4), %ebx
movl %ebx, (%r10,%r11,4)
incq %r11
movslq 0x8(%rdi), %rbx
cmpq %rbx, %r11
jl 0x221e4
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::RNPolynomialTerm(gaps::RNPolynomialTerm const&)
RNPolynomialTerm::
RNPolynomialTerm(const RNPolynomialTerm& term)
  : n(term.n),
    c(term.c)
{
  // Copy stuff from term
  if (n == 0) {
#ifndef RN_POLYNOMIAL_TERM_STATIC_MEMORY
    v = NULL;
    e = NULL;
#endif
  }
  else {
#ifndef RN_POLYNOMIAL_TERM_STATIC_MEMORY
    v = new int [ n ];
    e = new RNScalar [ n ];
#endif
    for (int i = 0; i < n; i++) {
      v[i] = term.v[i];
      e[i] = term.e[i];
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
movslq 0x8(%rsi), %r13
movl %r13d, 0x8(%rdi)
movsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x10(%rdi)
testq %r13, %r13
je 0x224d8
movq %rsi, %rbx
leaq (,%r13,4), %rdi
testl %r13d, %r13d
movq $-0x1, %rax
cmovsq %rax, %rdi
leaq (,%r13,8), %r12
cmovsq %rax, %r12
callq 0x4030
movq %rax, %r15
movq %rax, 0x18(%r14)
movq %r12, %rdi
callq 0x4030
movq %rax, 0x20(%r14)
testl %r13d, %r13d
jle 0x224e0
movq 0x18(%rbx), %rcx
movq 0x20(%rbx), %rdx
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
movl %edi, (%r15,%rsi,4)
movsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rax,%rsi,8)
incq %rsi
cmpq %rsi, %r13
jne 0x224bd
jmp 0x224e0
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNPolynomial.cpp
// Function: gaps::RNPolynomialTerm::Empty()
void RNPolynomialTerm::
Empty(void)
{
  // Delete stuff
#ifndef RN_POLYNOMIAL_TERM_STATIC_MEMORY
  if (v) delete [] v;
  if (e) delete [] e;
#endif
  c = 0;
  n = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x22520
callq 0x4360
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2252e
callq 0x4360
movq $0x0, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNAlgebraic.cpp
// Function: gaps::RNAlgebraic::RNAlgebraic(gaps::RNPolynomial*)
RNAlgebraic::
RNAlgebraic(RNPolynomial *p)
  : operation(RN_ZERO_OPERATION),
    polynomial(NULL)
{
  // NOTE: THIS TAKES OVER MANAGEMENT OF MEMORY FOR POLYNOMIAL
  // SPECIFICALLY, POLYNOMIAL WILL BE DELETED WHEN ALGEBRAIC IS DECONSTRUCTED

  // Initialize operands
  operands[0] = NULL;
  operands[1] = NULL;

  // Check polynomial
  if (!p) {
    return;
  }
  else if (p->IsZero()) {
    delete p;
    return;
  }

  // Assign polynomial
  operation = RN_POLYNOMIAL_OPERATION;
  this->polynomial = p;

  // Just checking
  assert(IsValid());
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x59273(%rip), %rax     # 0x7b800
movq %rax, (%rdi)
movl $0x0, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movq $0x0, 0x20(%rdi)
testq %rsi, %rsi
je 0x225e5
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x211b4
testl %eax, %eax
je 0x225d9
movq %rbx, %rdi
callq 0x20f24
movl $0x10, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4290
movl $0x1, 0x8(%r14)
movq %rbx, 0x20(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNMath/RNAlgebraic.cpp
// Function: gaps::RNAlgebraic::RNAlgebraic(gaps::RNAlgebraic*)
RNAlgebraic::
RNAlgebraic(RNAlgebraic *algebraic)
  : operation(RN_ZERO_OPERATION),
    polynomial(NULL)
{
  // NOTE: THIS TAKES OVER MANAGEMENT OF MEMORY FOR ALGEBRAIC 
  // SPECIFICALLY, ALGEBRAIC WILL BE DELETED WHEN THIS ALGEBRAIC IS DECONSTRUCTED

  // Initialize operands
  operands[0] = NULL;
  operands[1] = NULL;

  // Check algebraic
  if (!algebraic) {
    return;
  }
  else if (algebraic->IsZero()) {
    delete algebraic;
    return;
  }

  // Copy stuff from algebraic
  operation = algebraic->operation;
  polynomial = algebraic->polynomial;
  operands[0] = algebraic->operands[0];
  operands[1] = algebraic->operands[1];

  // Delete algebraic
  algebraic->operation = RN_ZERO_OPERATION;
  algebraic->operands[0] = NULL;
  algebraic->operands[1] = NULL;
  algebraic->polynomial = NULL;
  delete algebraic;

  // Just checking
  assert(IsValid());
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x59207(%rip), %rax     # 0x7b800
movq %rax, (%rdi)
movl $0x0, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movq $0x0, 0x20(%rdi)
testq %rsi, %rsi
je 0x2266e
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x22676
testl %eax, %eax
jne 0x2265e
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r14)
movl $0x0, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq