LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: giovifazi[P]knossos-bloodbath/Game.cpp
// Function: get_player_input(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
char get_player_input(std::string allowed)
{
   // Dichiarazione e inserimento della stringa di input
   std::string input;
   std::cin >> input;

   // finche l' input non è un comando valido notifica un errore
   while(!is_command(input, allowed))
   {
      std::cout << "Comando non valido, inserire solo un carattere valido!\n";
      std::cin >> input;
   }
   
   return input[0];  // ritorna il char del comando
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x22c0
movq -0x80(%rbp), %rsi
movq 0x86e2(%rip), %rdi      # 0x13fe0
callq 0x2280
jmp 0xb905
jmp 0xb907
leaq -0x58(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x20b0
jmp 0xb916
movq -0x88(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x20b0
jmp 0xb928
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xb820
movb %al, -0x89(%rbp)
jmp 0xb93d
movb -0x89(%rbp), %al
xorb $-0x1, %al
movb %al, -0x8a(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x2100
leaq -0x58(%rbp), %rdi
callq 0x2100
movb -0x8a(%rbp), %al
testb $0x1, %al
jne 0xb969
jmp 0xb9d1
movq 0x8660(%rip), %rdi      # 0x13fd0
leaq 0x5a60(%rip), %rsi      # 0x113d7
callq 0x21a0
jmp 0xb97e
movq 0x865b(%rip), %rdi      # 0x13fe0
leaq -0x28(%rbp), %rsi
callq 0x2280
jmp 0xb990
jmp 0xb907
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xba0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xb9c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x2100
leaq -0x58(%rbp), %rdi
callq 0x2100
jmp 0xba0e
xorl %eax, %eax
movl %eax, %esi
leaq -0x28(%rbp), %rdi
callq 0x2370
movq %rax, -0x98(%rbp)
jmp 0xb9e7
movq -0x98(%rbp), %rax
movb (%rax), %al
movb %al, -0x99(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x2100
movb -0x99(%rbp), %al
addq $0xa0, %rsp
popq %rbp
retq
leaq -0x28(%rbp), %rdi
callq 0x2100
movq -0x30(%rbp), %rdi
callq 0x2320
// File: WeihuaZhu[P]hpc_prog2/./io.h
// Function: rnorm(double, double)
double rnorm(double mu, double sigma)
{
    const double epsilon = std::numeric_limits<double>::min();
    const double two_pi = 2.0*3.14159265358979323846;

    static double z0, z1;
    static bool generate;
    generate = !generate;

    if (!generate)
        return z1 * sigma + mu;

    double u1, u2;
    do
    {
        u1 = rand() * (1.0 / RAND_MAX);
        u2 = rand() * (1.0 / RAND_MAX);
    }
    while ( u1 <= epsilon );

    z0 = sqrt(-2.0 * log(u1)) * cos(two_pi * u2);
    z1 = sqrt(-2.0 * log(u1)) * sin(two_pi * u2);
    return z0 * sigma + mu;
}

// Assembly:
subq $0x48, %rsp
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x30(%rsp)
callq 0x118a0
movsd %xmm0, 0x28(%rsp)
movsd 0x3ef15(%rip), %xmm0    # 0x4f008
movsd %xmm0, 0x20(%rsp)
movb 0x5aab1(%rip), %al      # 0x6abb0
xorb $-0x1, %al
andb $0x1, %al
movb %al, 0x5aaa7(%rip)      # 0x6abb0
testb $0x1, 0x5aaa0(%rip)     # 0x6abb0
jne 0x10139
movsd 0x5aa8e(%rip), %xmm0    # 0x6aba8
movsd 0x30(%rsp), %xmm2
movsd 0x38(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x1023b
jmp 0x1013b
callq 0xe260
cvtsi2sd %eax, %xmm0
movsd 0x3eec4(%rip), %xmm1    # 0x4f010
mulsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0xe260
cvtsi2sd %eax, %xmm0
movsd 0x3eea9(%rip), %xmm1    # 0x4f010
mulsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x3ee9f(%rip), %xmm0    # 0x4f018
ucomisd 0x18(%rsp), %xmm0
jae 0x1013b
movsd 0x18(%rsp), %xmm0
callq 0xe820
movaps %xmm0, %xmm1
movsd 0x3ee89(%rip), %xmm0    # 0x4f020
mulsd %xmm1, %xmm0
callq 0xe7c0
movsd %xmm0, (%rsp)
movsd 0x3ee5b(%rip), %xmm0    # 0x4f008
mulsd 0x10(%rsp), %xmm0
callq 0xf570
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x5a9d4(%rip)    # 0x6aba0
movsd 0x18(%rsp), %xmm0
callq 0xe820
movaps %xmm0, %xmm1
movsd 0x3ee3e(%rip), %xmm0    # 0x4f020
mulsd %xmm1, %xmm0
callq 0xe7c0
movsd %xmm0, 0x8(%rsp)
movsd 0x3ee0f(%rip), %xmm0    # 0x4f008
mulsd 0x10(%rsp), %xmm0
callq 0xe1b0
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x5a98f(%rip)    # 0x6aba8
movsd 0x5a97f(%rip), %xmm0    # 0x6aba0
movsd 0x30(%rsp), %xmm2
movsd 0x38(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: WeihuaZhu[P]hpc_prog2/./io.h
// Function: randn(int, double, double)
std::vector<double> randn(int n, double mu = 0.0, double sigma = 1.0)
{
    std::vector<double> x(n);
    for (int i = 0; i < n; ++i)
    {
        x[i] = rnorm(mu, sigma);
    }
    return x;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movsd %xmm0, 0x50(%rsp)
movsd %xmm1, 0x48(%rsp)
movb $0x0, 0x47(%rsp)
movslq 0x5c(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x46(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x118b0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x118c0
jmp 0x102aa
leaq 0x46(%rsp), %rdi
callq 0x11940
movl $0x0, 0x30(%rsp)
movl 0x30(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0x1031d
movsd 0x50(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
callq 0x100d0
movq 0x18(%rsp), %rdi
movsd %xmm0, 0x8(%rsp)
movslq 0x30(%rsp), %rsi
callq 0x11950
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x102bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x46(%rsp), %rdi
callq 0x11940
jmp 0x1033d
movb $0x1, 0x47(%rsp)
testb $0x1, 0x47(%rsp)
jne 0x10333
movq 0x18(%rsp), %rdi
callq 0x11970
movq 0x10(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0xf440
nopw (%rax,%rax)
// File: WeihuaZhu[P]hpc_prog2/./io.h
// Function: diag_dom_rand(int, double)
std::vector<double> diag_dom_rand(int n, double difficulty = .5)
{
    double sigma = 100.0;
    double mu = difficulty * sigma;
    std::vector<double> A = randn(n*n, mu, sigma);
    std::vector<double> abssums(n);
    // get max row absolute sum
    double abssum_max = 0.0;
    for (int i = 0; i < n; ++i)
    {
        double abssum = 0.0;
        for (int j = 0; j < n; ++j)
        {
            abssum += std::fabs(A[i*n+j]);
        }
        if (abssum > abssum_max)
            abssum_max = abssum;
    }
    // add abssum max to abs of diagonal
    for (int i = 0; i < n; ++i)
    {
        A[i*n+i] = std::fabs(A[i*n+i]) + abssum_max;
    }
    return A;
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0xa0(%rsp)
movl %esi, 0x9c(%rsp)
movsd %xmm0, 0x90(%rsp)
movabsq $0x4059000000000000, %rax # imm = 0x4059000000000000
movq %rax, 0x88(%rsp)
movsd 0x90(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movb $0x0, 0x7f(%rsp)
movl 0x9c(%rsp), %esi
imull %esi, %esi
movsd 0x80(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
callq 0x10250
movslq 0x9c(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x118b0
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x60(%rsp), %rdi
callq 0x118c0
jmp 0x10405
leaq 0x5f(%rsp), %rdi
callq 0x11940
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
cmpl 0x9c(%rsp), %eax
jge 0x104e7
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x9c(%rsp), %eax
jge 0x104bb
movq 0x8(%rsp), %rdi
movl 0x3c(%rsp), %eax
imull 0x9c(%rsp), %eax
addl 0x2c(%rsp), %eax
movslq %eax, %rsi
callq 0x11950
movsd (%rax), %xmm0
movaps 0x3ebe9(%rip), %xmm1    # 0x4f060
pand %xmm1, %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x10442
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x5f(%rsp), %rdi
callq 0x11940
movq 0x8(%rsp), %rdi
callq 0x11970
jmp 0x10593
movsd 0x30(%rsp), %xmm0
ucomisd 0x40(%rsp), %xmm0
jbe 0x104d5
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x104d7
movl 0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3c(%rsp)
jmp 0x10420
movl $0x0, 0x28(%rsp)
movl 0x28(%rsp), %eax
cmpl 0x9c(%rsp), %eax
jge 0x10566
movq 0x8(%rsp), %rdi
movl 0x28(%rsp), %eax
imull 0x9c(%rsp), %eax
addl 0x28(%rsp), %eax
movslq %eax, %rsi
callq 0x11950
movq 0x8(%rsp), %rdi
movsd (%rax), %xmm0
movaps 0x3eb37(%rip), %xmm1    # 0x4f060
pand %xmm1, %xmm0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, (%rsp)
movl 0x28(%rsp), %eax
imull 0x9c(%rsp), %eax
addl 0x28(%rsp), %eax
movslq %eax, %rsi
callq 0x11950
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x104ef
movb $0x1, 0x7f(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x11970
testb $0x1, 0x7f(%rsp)
jne 0x10586
movq 0x8(%rsp), %rdi
callq 0x11970
movq 0x10(%rsp), %rax
addq $0xa8, %rsp
retq
movq 0x50(%rsp), %rdi
callq 0xf440
nopl (%rax)
// File: WeihuaZhu[P]hpc_prog2/mpi_tests.cpp
// Function: get_grid_comm(ompi_communicator_t**)
void get_grid_comm(MPI_Comm* grid_comm)
{
    // get comm size and rank
    int rank, p;
    MPI_Comm_size(MPI_COMM_WORLD, &p);
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);

    int q = (int)sqrt(p);
    ASSERT_EQ(q*q, p) << "Number of processors must be a perfect square.";

    // split into grid communicator
    int dims[2] = {q, q};
    int periods[2] = {0, 0};
    MPI_Cart_create(MPI_COMM_WORLD, 2, dims, periods, 0, grid_comm);
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq 0x599da(%rip), %rdi     # 0x69f90
movq %rdi, 0x18(%rsp)
leaq 0x88(%rsp), %rsi
movq %rsi, 0x20(%rsp)
callq 0xece0
movq 0x18(%rsp), %rdi
leaq 0x8c(%rsp), %rsi
callq 0xf050
movl 0x88(%rsp), %edi
callq 0x119d0
movq 0x20(%rsp), %r8
cvttsd2si %xmm0, %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
imull %eax, %eax
movl %eax, 0x6c(%rsp)
leaq 0x3ea60(%rip), %rsi     # 0x4f070
leaq 0x4211d(%rip), %rdx     # 0x52734
leaq 0x70(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0x6c(%rsp), %rcx
callq 0x119f0
movq 0x28(%rsp), %rdi
callq 0x11a40
movb %al, 0x33(%rsp)
jmp 0x1063b
movb 0x33(%rsp), %al
testb $0x1, %al
jne 0x10645
jmp 0x1065d
jmp 0x10717
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x1078a
leaq 0x50(%rsp), %rdi
callq 0x1b7b0
jmp 0x10669
leaq 0x3ea04(%rip), %rsi     # 0x4f074
leaq 0x50(%rsp), %rdi
callq 0x11a50
movq %rax, 0x10(%rsp)
jmp 0x10681
leaq 0x70(%rsp), %rdi
callq 0x11a90
movq %rax, 0x8(%rsp)
jmp 0x10692
movq 0x8(%rsp), %r8
leaq 0x3ea05(%rip), %rdx     # 0x4f0a3
leaq 0x48(%rsp), %rdi
movl $0x2, %esi
movl $0x27, %ecx
callq 0x188e0
jmp 0x106b4
movq 0x10(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x189b0
jmp 0x106c5
leaq 0x48(%rsp), %rdi
callq 0x18970
leaq 0x50(%rsp), %rdi
callq 0x11aa0
movl $0x1, 0x44(%rsp)
jmp 0x1071f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x1070b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x18970
leaq 0x50(%rsp), %rdi
callq 0x11aa0
jmp 0x1078a
movl $0x0, 0x44(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x11ab0
movl 0x44(%rsp), %eax
testl %eax, %eax
je 0x10735
jmp 0x10733
jmp 0x10782
movl 0x84(%rsp), %eax
movl %eax, 0x3c(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x40(%rsp)
leaq 0x34(%rsp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0xe510
leaq 0x3c(%rsp), %rdx
leaq 0x34(%rsp), %rcx
movq 0x90(%rsp), %r9
movq 0x5981b(%rip), %rdi     # 0x69f90
movl $0x2, %esi
xorl %r8d, %r8d
callq 0xe0f0
addq $0x98, %rsp
retq
leaq 0x70(%rsp), %rdi
callq 0x11ab0
movq 0x60(%rsp), %rdi
callq 0xf440
nop
// File: WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)
AssertionResult CmpHelperEQ(const char* expected_expression,
                            const char* actual_expression,
                            const T1& expected,
                            const T2& actual) {
#ifdef _MSC_VER
# pragma warning(push)          // Saves the current warning state.
# pragma warning(disable:4389)  // Temporarily disables warning on
                                // signed/unsigned mismatch.
#endif

  if (expected == actual) {
    return AssertionSuccess();
  }

#ifdef _MSC_VER
# pragma warning(pop)          // Restores the warning state.
#endif

  return EqFailure(expected_expression,
                   actual_expression,
                   FormatForComparisonFailureMessage(expected, actual),
                   FormatForComparisonFailureMessage(actual, expected),
                   false);
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq 0x78(%rsp), %rax
movl (%rax), %eax
movq 0x70(%rsp), %rcx
cmpl (%rcx), %eax
jne 0x17255
movq 0x10(%rsp), %rdi
callq 0x1af70
jmp 0x17304
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x50(%rsp), %rdi
callq 0x17320
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x17320
jmp 0x17298
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
xorl %r9d, %r9d
callq 0x1bf70
jmp 0x172ba
leaq 0x30(%rsp), %rdi
callq 0xf6d8
leaq 0x50(%rsp), %rdi
callq 0xf6d8
jmp 0x17304
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x172f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xf6d8
leaq 0x50(%rsp), %rdi
callq 0xf6d8
jmp 0x17311
movq 0x18(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0xf440
nopl (%rax,%rax)
// File: WeihuaZhu[P]hpc_prog2/mpi_jacobi.cpp
// Function: transpose_bcast_vector(int, double*, double*, ompi_communicator_t*)
void transpose_bcast_vector(const int n, double* col_vector, double* row_vector, MPI_Comm comm)
{
    // obtain the necessary parameters required in thie method
    int rank;
    MPI_Comm_rank(comm, &rank);
    int p;
    MPI_Comm_size(comm, &p);
    int q = sqrt(p);
    int dims[2];
    int coords[2];
    int periods[2];
    MPI_Cart_get(comm, 2, dims, periods, coords);
    MPI_Status stat;

    //first column send to diagonal processors
    int send_rec_count = block_decompose(n, q, coords[0]);
    if (coords[1] == 0) {
        MPI_Send(col_vector, send_rec_count, MPI_DOUBLE, (coords[0] * (q + 1)), 0, comm);
    }
    if (coords[0] == coords[1]) {
        MPI_Recv(row_vector, send_rec_count, MPI_DOUBLE, coords[0] * q, 0, comm, &stat);
    }

    //broadcast columnwise
    MPI_Comm n_comm;
    MPI_Comm_split(comm, coords[1], rank, &n_comm);
    MPI_Bcast(row_vector, block_decompose(n, q, coords[1]), MPI_DOUBLE, coords[1], n_comm);

    // free the useless memory
    MPI_Comm_free(&n_comm);
}

// Assembly:
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x64(%rsp), %rsi
callq 0xf050
movq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xece0
movl 0x60(%rsp), %edi
callq 0x119d0
cvttsd2si %xmm0, %eax
movl %eax, 0x5c(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x54(%rsp), %rdx
leaq 0x44(%rsp), %rcx
leaq 0x4c(%rsp), %r8
movl $0x2, %esi
callq 0xe8f0
movl 0x84(%rsp), %edi
movl 0x5c(%rsp), %esi
movl 0x4c(%rsp), %edx
callq 0x4e0e0
movl %eax, 0x24(%rsp)
cmpl $0x0, 0x50(%rsp)
jne 0x4d6e4
movq 0x78(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x4c(%rsp), %ecx
movl 0x5c(%rsp), %eax
addl $0x1, %eax
imull %eax, %ecx
movq 0x68(%rsp), %r9
movq 0x1c8cc(%rip), %rdx     # 0x69fa8
xorl %r8d, %r8d
callq 0xe330
movl 0x4c(%rsp), %eax
cmpl 0x50(%rsp), %eax
jne 0x4d71d
movq 0x70(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x4c(%rsp), %ecx
imull 0x5c(%rsp), %ecx
movq 0x68(%rsp), %r9
movq 0x1c89c(%rip), %rdx     # 0x69fa8
xorl %r8d, %r8d
leaq 0x28(%rsp), %rax
movq %rax, (%rsp)
callq 0xe860
movq 0x68(%rsp), %rdi
movl 0x50(%rsp), %esi
movl 0x64(%rsp), %edx
leaq 0x18(%rsp), %rcx
callq 0xf260
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x84(%rsp), %edi
movl 0x5c(%rsp), %esi
movl 0x50(%rsp), %edx
callq 0x4e0e0
movq 0x10(%rsp), %rdi
movl %eax, %esi
movl 0x50(%rsp), %ecx
movq 0x18(%rsp), %r8
movq 0x1c83f(%rip), %rdx     # 0x69fa8
callq 0xe160
leaq 0x18(%rsp), %rdi
callq 0xf240
addq $0x88, %rsp
retq
// File: WeihuaZhu[P]hpc_prog2/mpi_jacobi.cpp
// Function: mpi_matrix_vector_mult(int, double*, double*, double*, ompi_communicator_t*)
void mpi_matrix_vector_mult(const int n, double* A,
                            double* x, double* y, MPI_Comm comm)
{
    // distribute the array onto local processors!
    double* local_A = NULL;
    double* local_x = NULL;
    distribute_matrix(n, &A[0], &local_A, comm);
    distribute_vector(n, &x[0], &local_x, comm);

    // allocate local result space
    double* local_y = new double[block_decompose_by_dim(n, comm, 0)];
    distributed_matrix_vector_mult(n, local_A, local_x, local_y, comm);

    // gather results back to rank 0
    gather_vector(n, local_y, y, comm);
}

// Assembly:
subq $0x48, %rsp
movl %edi, 0x44(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movl 0x44(%rsp), %edi
movq 0x38(%rsp), %rsi
movq 0x20(%rsp), %rcx
leaq 0x18(%rsp), %rdx
callq 0x4d040
movl 0x44(%rsp), %edi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %rdx
callq 0x4cb70
movl 0x44(%rsp), %edi
movq 0x20(%rsp), %rsi
xorl %edx, %edx
callq 0x4e120
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xe040
movq %rax, 0x8(%rsp)
movl 0x44(%rsp), %edi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x20(%rsp), %r8
callq 0x4d780
movl 0x44(%rsp), %edi
movq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x4cde0
addq $0x48, %rsp
retq
// File: WeihuaZhu[P]hpc_prog2/mpi_jacobi.cpp
// Function: mpi_jacobi(int, double*, double*, double*, ompi_communicator_t*, int, double)
void mpi_jacobi(const int n, double* A, double* b, double* x, MPI_Comm comm,
                int max_iter, double l2_termination)
{
    // distribute the array onto local processors!
    double* local_A = NULL;
    double* local_b = NULL;
    distribute_matrix(n, &A[0], &local_A, comm);
    distribute_vector(n, &b[0], &local_b, comm);

    // allocate local result space
    double* local_x = new double[block_decompose_by_dim(n, comm, 0)];
    distributed_jacobi(n, local_A, local_b, local_x, comm, max_iter, l2_termination);

    // gather results back to rank 0
    gather_vector(n, local_x, x, comm);
}

// Assembly:
subq $0x58, %rsp
movl %edi, 0x54(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movl %r9d, 0x2c(%rsp)
movsd %xmm0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movl 0x54(%rsp), %edi
movq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rcx
leaq 0x18(%rsp), %rdx
callq 0x4d040
movl 0x54(%rsp), %edi
movq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %rdx
callq 0x4cb70
movl 0x54(%rsp), %edi
movq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0x4e120
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xe040
movq %rax, 0x8(%rsp)
movl 0x54(%rsp), %edi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x30(%rsp), %r8
movl 0x2c(%rsp), %r9d
movsd 0x20(%rsp), %xmm0
callq 0x4d990
movl 0x54(%rsp), %edi
movq 0x8(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
callq 0x4cde0
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
// File: iZhangHui[P]CppPrimer/CH14_OverloadedOperationsAndConversions/examples/newcount-size.cc
// Function: elimDups(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void elimDups(vector<string>& words)
{
    // sort words alphabetically so we can find the duplicates
    sort(words.begin(), words.end());

	// print the sorted contents
	for_each(words.begin(), words.end(), PrintString(cerr));
	cerr << endl;

    // unique reorders the input so that each word appears once in the
    // front part of the range
	// returns an iterator one past the unique range;
    auto end_unique = unique(words.begin(), words.end());

    // erase uses a vector operation to remove the nonunique elements
    words.erase(end_unique, words.end());

	// print the reduced vector
	for_each(words.begin(), words.end(), PrintString(cerr));
	cerr << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2990
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2950
movq -0x8(%rbp), %rdi
callq 0x2990
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c0
movq %rax, -0x28(%rbp)
leaq -0x30(%rbp), %rdi
movq 0xab95(%rip), %rsi      # 0xcff0
callq 0x2a50
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x29f0
movq %rax, -0x38(%rbp)
movq 0xab74(%rip), %rdi      # 0xcff0
movq 0xab35(%rip), %rsi      # 0xcfb8
callq 0x2150
movq -0x8(%rbp), %rdi
callq 0x2990
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c0
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x2a70
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2b40
movq -0x8(%rbp), %rdi
callq 0x29c0
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x2b40
movq -0x98(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x2ab0
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2990
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c0
movq %rax, -0x80(%rbp)
leaq -0x88(%rbp), %rdi
movq 0xaacb(%rip), %rsi      # 0xcff0
callq 0x2a50
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdx
callq 0x29f0
movq %rax, -0x90(%rbp)
movq 0xaaa4(%rip), %rdi      # 0xcff0
movq 0xaa65(%rip), %rsi      # 0xcfb8
callq 0x2150
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: iZhangHui[P]CppPrimer/CH14_OverloadedOperationsAndConversions/examples/newcount-size.cc
// Function: main
int main()
{
    vector<string> words;

    // copy contents of each book into a single vector
    string next_word;
    while (cin >> next_word) {
        // insert next book's contents at end of words
        words.push_back(next_word);
    }

	biggies(words, 6);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl $0x0, -0x4(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x2ce0
leaq -0x40(%rbp), %rdi
callq 0x21c0
movq 0xa730(%rip), %rdi      # 0xcfd8
leaq -0x40(%rbp), %rsi
callq 0x2190
movq %rax, -0x58(%rbp)
jmp 0x28b7
movq -0x58(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2180
movb %al, -0x59(%rbp)
jmp 0x28cf
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x28d8
jmp 0x2909
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2d00
jmp 0x28e7
jmp 0x28a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x20c0
leaq -0x20(%rbp), %rdi
callq 0x2d70
jmp 0x293b
leaq -0x20(%rbp), %rdi
movl $0x6, %esi
callq 0x2570
jmp 0x2919
movl $0x0, -0x4(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x20c0
leaq -0x20(%rbp), %rdi
callq 0x2d70
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x2200
nopw %cs:(%rax,%rax)
nop
// File: tomfunkhouser[P]gaps/apps/grd2pts/grd2pts.cpp
// Function: main
int 
main(int argc, char **argv)
{
  // Parse program arguments
  if (!ParseArgs(argc, argv)) exit(-1);

  // Read grid files
  RNArray<R3Grid *> grids;
  int status = ReadGrids(grids, grid_names);
  if (!status) exit(-1);

  // Create combined grid
  R3Grid *grid = CreateGrid(grids, sigma);
  if (!grid) exit(-1);

  // Create mask
  R3Grid *mask = CreateMask(grid, local_maxima_only);
  if (!mask) exit(-1);

  // Create points
  RNArray<Point *> *points = CreatePoints(grid, mask, npoints, min_spacing);
  if (!points) exit(-1);

  // Write points
  if (!WritePoints(*points, points_name)) exit(-1);

  // Return success 
  return 0;
}

// Assembly:
subq $0x88, %rsp
movl $0x0, 0x84(%rsp)
movl %edi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movl 0x80(%rsp), %edi
movq 0x78(%rsp), %rsi
callq 0x12ac0
cmpl $0x0, %eax
jne 0x1295e
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
leaq 0x68(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x14090
movq 0x28(%rsp), %rdi
leaq 0x166bcf(%rip), %rsi    # 0x179548
callq 0x12d70
movl %eax, 0x34(%rsp)
jmp 0x12984
movl 0x34(%rsp), %eax
movl %eax, 0x64(%rsp)
cmpl $0x0, 0x64(%rsp)
jne 0x129ba
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x140a0
jmp 0x12ab0
movsd 0x166b9e(%rip), %xmm0   # 0x179560
leaq 0x68(%rsp), %rdi
callq 0x12e70
movq %rax, 0x20(%rsp)
jmp 0x129d3
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x129ef
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
movq 0x48(%rsp), %rdi
movl 0x166b6e(%rip), %esi    # 0x179568
callq 0x133a0
movq %rax, 0x18(%rsp)
jmp 0x12a06
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x12a22
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl 0x15dace(%rip), %edx    # 0x170500
movsd 0x166b36(%rip), %xmm0   # 0x179570
callq 0x13a70
movq %rax, 0x10(%rsp)
jmp 0x12a46
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x12a62
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
movq 0x38(%rsp), %rdi
movq 0x166b0a(%rip), %rsi    # 0x179578
callq 0x12500
movl %eax, 0xc(%rsp)
jmp 0x12a79
movl 0xc(%rsp), %eax
cmpl $0x0, %eax
jne 0x12a8c
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xf600
movl $0x0, 0x84(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x140a0
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
movq 0x58(%rsp), %rdi
callq 0xf890
nopw (%rax,%rax)
// File: tomfunkhouser[P]gaps/apps/grd2pts/grd2pts.cpp
// Function: ReadGrids(gaps::RNArray<gaps::R3Grid*>&, gaps::RNArray<char*> const&)
static int
ReadGrids(RNArray<R3Grid *>& grids, const RNArray<char *>& grid_names)
{
  // Start statistics
  RNTime start_time;
  start_time.Read();

  // Read grid files
  for (int i = 0; i < grid_names.NEntries(); i++) {
    // Get grid filename
    char *grid_name = grid_names[i];

    // Read grid
    R3Grid *grid = ReadGrid(grid_name);
    if (!grid) return 0;

    // Add grid to array
    grids.Insert(grid);
  }

  // Print statistics
  if (print_verbose) {
    printf("Read %d grids ...\n", grid_names.NEntries());
    printf("  Total Time = %.2f seconds\n", start_time.Elapsed());
    fflush(stdout);
  }

  // Return number of grids
  return grid_names.NEntries();
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
leaq 0x20(%rsp), %rdi
callq 0xd1830
leaq 0x20(%rsp), %rdi
callq 0x13fe0
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, 0x4(%rsp)
movq 0x30(%rsp), %rdi
callq 0x14000
movl %eax, %ecx
movl 0x4(%rsp), %eax
cmpl %ecx, %eax
jge 0x12e06
movq 0x30(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x141d0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x13e30
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x12dea
movl $0x0, 0x44(%rsp)
jmp 0x12e5e
movq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x141f0
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x12d9a
cmpl $0x0, 0x16674f(%rip)    # 0x17955c
je 0x12e50
movq 0x30(%rsp), %rdi
callq 0x14000
movl %eax, %esi
leaq 0x121363(%rip), %rdi    # 0x134185
movb $0x0, %al
callq 0xf070
leaq 0x20(%rsp), %rdi
callq 0xd18f0
leaq 0x12135e(%rip), %rdi    # 0x134198
movb $0x1, %al
callq 0xf070
movq 0x15d148(%rip), %rax    # 0x16ff90
movq (%rax), %rdi
callq 0xf5d0
movq 0x30(%rsp), %rdi
callq 0x14000
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: tomfunkhouser[P]gaps/apps/grd2pts/grd2pts.cpp
// Function: ReadGrid(char*)
static R3Grid *
ReadGrid(char *grid_name)
{
  // Start statistics
  RNTime start_time;
  start_time.Read();

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

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

  // Print statistics
  if (print_verbose) {
    printf("Read grid ...\n");
    printf("  Time = %.2f seconds\n", start_time.Elapsed());
    printf("  # Voxels = %d %d% d\n", grid->XResolution(), grid->YResolution(), grid->ZResolution());
    printf("  L2Norm = %g\n", grid->L2Norm());
    fflush(stdout);
  }

  // Return success
  return grid;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
leaq 0x38(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xd1830
movq 0x10(%rsp), %rdi
callq 0x13fe0
movl $0x250, %edi            # imm = 0x250
callq 0xf4c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x23dd0
jmp 0x13e74
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x13ec4
leaq 0x120328(%rip), %rdi    # 0x1341b5
movb $0x0, %al
callq 0xd5a50
movq $0x0, 0x50(%rsp)
jmp 0x13fa1
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
movl $0x250, %esi            # imm = 0x250
callq 0xf4d0
jmp 0x13fab
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x31490
movl %eax, 0x20(%rsp)
cmpl $0x0, 0x20(%rsp)
jne 0x13eff
movq 0x48(%rsp), %rsi
leaq 0x1202e3(%rip), %rdi    # 0x1341cd
movb $0x0, %al
callq 0xd5a50
movq $0x0, 0x50(%rsp)
jmp 0x13fa1
cmpl $0x0, 0x165656(%rip)    # 0x17955c
je 0x13f97
leaq 0x1202d6(%rip), %rdi    # 0x1341e9
movb $0x0, %al
callq 0xf070
leaq 0x38(%rsp), %rdi
callq 0xd18f0
leaq 0x120159(%rip), %rdi    # 0x134084
movb $0x1, %al
callq 0xf070
movq 0x30(%rsp), %rdi
callq 0x14220
movl %eax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x14240
movl %eax, 0xc(%rsp)
movq 0x30(%rsp), %rdi
callq 0x14260
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
movl %eax, %ecx
leaq 0x12028f(%rip), %rdi    # 0x1341f8
movb $0x0, %al
callq 0xf070
movq 0x30(%rsp), %rdi
callq 0x14280
leaq 0x12028e(%rip), %rdi    # 0x13420f
movb $0x1, %al
callq 0xf070
movq 0x15c001(%rip), %rax    # 0x16ff90
movq (%rax), %rdi
callq 0xf5d0
movq 0x30(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
nop
// File: t0mm4rx[P]piscine_cpp/day08/ex01/main.cpp
// Function: main
int main()
{
	int n = 10000;
	Span sp = Span(n);

	std::srand(time(0));
	// for (int i = 0; i < n; i++)
	// 	addNumber(sp, n * 10);
	std::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	sp.addRange(v.begin(), v.end());
	std::cout << "Shortest span: " << sp.shortestSpan() << std::endl;
	std::cout << "Longest span: " << sp.longestSpan() << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movl $0x2710, -0x4(%rbp)     # imm = 0x2710
movl -0x4(%rbp), %esi
leaq -0x28(%rbp), %rdi
callq 0x2110
xorl %eax, %eax
movl %eax, %edi
callq 0x10b0
movl %eax, %edi
callq 0x10c0
leaq -0x40(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x1570
movq -0x78(%rbp), %rdi
movl $0x1, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0x1590
jmp 0x13e1
movl $0x2, -0x58(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1590
jmp 0x13f7
movl $0x3, -0x5c(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x1590
jmp 0x140d
movl $0x4, -0x60(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x1590
jmp 0x1423
leaq -0x40(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x15c0
movq -0x80(%rbp), %rdi
movq %rax, -0x68(%rbp)
callq 0x15f0
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
leaq -0x28(%rbp), %rdi
callq 0x25e0
jmp 0x1454
movq 0x4b6d(%rip), %rdi      # 0x5fc8
leaq 0x1ba2(%rip), %rsi      # 0x3004
callq 0x10d0
movq %rax, -0x88(%rbp)
jmp 0x1470
leaq -0x28(%rbp), %rdi
callq 0x2340
movl %eax, -0x8c(%rbp)
jmp 0x1481
movl -0x8c(%rbp), %esi
movq -0x88(%rbp), %rdi
callq 0x1150
movq %rax, -0x98(%rbp)
jmp 0x149c
movq -0x98(%rbp), %rdi
movq 0x4b06(%rip), %rsi      # 0x5fb0
callq 0x1100
jmp 0x14b1
movq 0x4b10(%rip), %rdi      # 0x5fc8
leaq 0x1b55(%rip), %rsi      # 0x3014
callq 0x10d0
movq %rax, -0xa0(%rbp)
jmp 0x14cd
leaq -0x28(%rbp), %rdi
callq 0x2490
movl %eax, -0xa4(%rbp)
jmp 0x14de
movl -0xa4(%rbp), %esi
movq -0xa0(%rbp), %rdi
callq 0x1150
movq %rax, -0xb0(%rbp)
jmp 0x14f9
movq -0xb0(%rbp), %rdi
movq 0x4aa9(%rip), %rsi      # 0x5fb0
callq 0x1100
jmp 0x150e
leaq -0x40(%rbp), %rdi
callq 0x1620
leaq -0x28(%rbp), %rdi
callq 0x2200
xorl %eax, %eax
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x1620
leaq -0x28(%rbp), %rdi
callq 0x2200
movq -0x50(%rbp), %rdi
callq 0x1160
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: t0mm4rx[P]piscine_cpp/day08/ex01/span.cpp
// Function: Span::addNumber(int)
void Span::addNumber(int n)
{
	if (this->isInList(n))
		throw std::exception();
	if (this->list.size() >= this->maxItems)
		throw std::exception();
	this->list.push_back(n);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movl -0xc(%rbp), %esi
callq 0x22d0
testb $0x1, %al
jne 0x2245
jmp 0x2272
movl $0x8, %edi
callq 0x1070
movq %rax, %rdi
movq %rdi, -0x20(%rbp)
callq 0x2740
movq -0x20(%rbp), %rdi
movq 0x3d72(%rip), %rsi      # 0x5fd8
movq 0x3d83(%rip), %rdx      # 0x5ff0
callq 0x1140
movq -0x18(%rbp), %rdi
callq 0x1d60
movq -0x18(%rbp), %rcx
movl 0x18(%rcx), %ecx
cmpq %rcx, %rax
jb 0x22b4
movl $0x8, %edi
callq 0x1070
movq %rax, %rdi
movq %rdi, -0x28(%rbp)
callq 0x2740
movq -0x28(%rbp), %rdi
movq 0x3d30(%rip), %rsi      # 0x5fd8
movq 0x3d41(%rip), %rdx      # 0x5ff0
callq 0x1140
movq -0x18(%rbp), %rdi
leaq -0xc(%rbp), %rsi
callq 0x2760
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: t0mm4rx[P]piscine_cpp/day08/ex01/span.cpp
// Function: Span::shortestSpan()
int Span::shortestSpan(void)
{
	int							min;
	int							tmp;
	std::vector<int>::iterator	it1;
	std::vector<int>::iterator	it2;

	if (this->list.size() <= 1)
		throw std::exception();
	min = INT_MAX;
	it1 = this->list.begin();
	while (it1 != this->list.end())
	{
		it2 = this->list.begin();
		while (it2 != this->list.end())
		{
			if (it1 != it2)
			{
				tmp = abs(*it1 - *it2);
				if (tmp < min)
					min = tmp;
			}
			it2++;
		}
		it1++;
	}
	return (min);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x2860
leaq -0x20(%rbp), %rdi
callq 0x2860
movq -0x58(%rbp), %rdi
callq 0x1d60
cmpq $0x1, %rax
ja 0x23a2
movl $0x8, %edi
callq 0x1070
movq %rax, %rdi
movq %rdi, -0x60(%rbp)
callq 0x2740
movq -0x60(%rbp), %rdi
movq 0x3c42(%rip), %rsi      # 0x5fd8
movq 0x3c53(%rip), %rdx      # 0x5ff0
callq 0x1140
movq -0x58(%rbp), %rdi
movl $0x7fffffff, -0xc(%rbp) # imm = 0x7FFFFFFF
callq 0x15c0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x58(%rbp), %rdi
callq 0x15f0
movq %rax, -0x30(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x23e1
jmp 0x2487
movq -0x58(%rbp), %rdi
callq 0x15c0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x58(%rbp), %rdi
callq 0x15f0
movq %rax, -0x40(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x2416
jmp 0x2473
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x2429
jmp 0x2462
leaq -0x18(%rbp), %rdi
callq 0x20a0
movl (%rax), %eax
movl %eax, -0x64(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x20a0
movq %rax, %rcx
movl -0x64(%rbp), %eax
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x2460
movl -0x10(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x2462
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x2880
movq %rax, -0x48(%rbp)
jmp 0x23f6
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x2880
movq %rax, -0x50(%rbp)
jmp 0x23be
movl -0xc(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
// File: t0mm4rx[P]piscine_cpp/day08/ex01/span.cpp
// Function: Span::longestSpan()
int Span::longestSpan(void)
{
	int							max;
	int							tmp;
	std::vector<int>::iterator	it1;
	std::vector<int>::iterator	it2;

	if (this->list.size() <= 1)
		throw std::exception();
	max = 0;
	it1 = this->list.begin();
	while (it1 != this->list.end())
	{
		it2 = this->list.begin();
		while (it2 != this->list.end())
		{
			if (it1 != it2)
			{
				tmp = abs(*it1 - *it2);
				if (tmp > max)
					max = tmp;
			}
			it2++;
		}
		it1++;
	}
	return (max);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x2860
leaq -0x20(%rbp), %rdi
callq 0x2860
movq -0x58(%rbp), %rdi
callq 0x1d60
cmpq $0x1, %rax
ja 0x24f2
movl $0x8, %edi
callq 0x1070
movq %rax, %rdi
movq %rdi, -0x60(%rbp)
callq 0x2740
movq -0x60(%rbp), %rdi
movq 0x3af2(%rip), %rsi      # 0x5fd8
movq 0x3b03(%rip), %rdx      # 0x5ff0
callq 0x1140
movq -0x58(%rbp), %rdi
movl $0x0, -0xc(%rbp)
callq 0x15c0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x58(%rbp), %rdi
callq 0x15f0
movq %rax, -0x30(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x2531
jmp 0x25d7
movq -0x58(%rbp), %rdi
callq 0x15c0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x58(%rbp), %rdi
callq 0x15f0
movq %rax, -0x40(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x2566
jmp 0x25c3
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x27d0
testb $0x1, %al
jne 0x2579
jmp 0x25b2
leaq -0x18(%rbp), %rdi
callq 0x20a0
movl (%rax), %eax
movl %eax, -0x64(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x20a0
movq %rax, %rcx
movl -0x64(%rbp), %eax
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0xc(%rbp), %eax
jle 0x25b0
movl -0x10(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x25b2
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x2880
movq %rax, -0x48(%rbp)
jmp 0x2546
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x2880
movq %rax, -0x50(%rbp)
jmp 0x250e
movl -0xc(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
// File: sc0ty[P]CODExtract/src/main.cpp
// Function: SaveIcon(CODFile*)
void SaveIcon(CODFile *cod)
{
    u16 size;
    char *data = cod->getIcon(size);

    // there is no icon in resources
    if (data == NULL)
    {
        cout << "\t  Icon file: <there is no icon>" << endl;
        return;
    }

    // generate icon file name
    string fn = cod->getFileName();
    size_t sz = fn.find_last_of('.');
    if (sz != string::npos) fn.resize(fn.find_last_of('.'));
    fn += "-icon.png";

    cout << "\t  Icon file: " << fn << endl;

    // open file to write
    ofstream of(fn.c_str(), ios::binary);
    if (!of.is_open()) throw "Cannot write to file";

    // write icon
    of.write(data, size);
    of.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq -0xa(%rbp), %rsi
callq 0x52e0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x3ede
movq 0x611a(%rip), %rdi      # 0x9fd8
leaq 0x322b(%rip), %rsi      # 0x70f0
callq 0x3200
movq %rax, %rdi
movq 0x60ec(%rip), %rsi      # 0x9fc0
callq 0x3240
jmp 0x4064
movq -0x8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x4c30
leaq -0x38(%rbp), %rdi
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x3430
movq %rax, -0x40(%rbp)
cmpq $-0x1, -0x40(%rbp)
je 0x3f4b
leaq -0x38(%rbp), %rdi
movq %rdi, -0x258(%rbp)
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x3430
movq -0x258(%rbp), %rdi
movq %rax, %rsi
callq 0x3330
jmp 0x3f38
jmp 0x3f4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x406d
leaq 0x31bf(%rip), %rsi      # 0x7111
leaq -0x38(%rbp), %rdi
callq 0x31f0
jmp 0x3f5d
movq 0x6074(%rip), %rdi      # 0x9fd8
leaq 0x31b0(%rip), %rsi      # 0x711b
callq 0x3200
movq %rax, -0x260(%rbp)
jmp 0x3f79
movq -0x260(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x31d0
movq %rax, -0x268(%rbp)
jmp 0x3f92
movq -0x268(%rbp), %rdi
movq 0x6020(%rip), %rsi      # 0x9fc0
callq 0x3240
jmp 0x3fa7
leaq -0x38(%rbp), %rdi
callq 0x30c0
movq %rax, %rsi
leaq -0x250(%rbp), %rdi
movl $0x4, %edx
callq 0x3270
jmp 0x3fc6
leaq -0x250(%rbp), %rdi
callq 0x3180
movb %al, -0x269(%rbp)
jmp 0x3fda
movb -0x269(%rbp), %al
testb $0x1, %al
jne 0x4029
jmp 0x3fe6
movl $0x8, %edi
callq 0x3110
movq %rax, %rdi
leaq 0x3130(%rip), %rax      # 0x712a
movq %rax, (%rdi)
movq 0x5fc4(%rip), %rsi      # 0x9fc8
xorl %eax, %eax
movl %eax, %edx
callq 0x33e0
jmp 0x407f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x3370
jmp 0x406d
movq -0x18(%rbp), %rsi
movzwl -0xa(%rbp), %eax
movl %eax, %edx
leaq -0x250(%rbp), %rdi
callq 0x3310
jmp 0x4041
leaq -0x250(%rbp), %rdi
callq 0x3350
jmp 0x404f
leaq -0x250(%rbp), %rdi
callq 0x3370
leaq -0x38(%rbp), %rdi
callq 0x3140
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x3140
movq -0x48(%rbp), %rdi
callq 0x33f0
nop
// File: sc0ty[P]CODExtract/src/codfile/codfile.cpp
// Function: CODFile::CODFile()
CODFile::CODFile()
{
    HeadSeg = NULL;
    CodeSeg = NULL;
    DataSeg = NULL;
    FootSeg = NULL;
    isOpen = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
leaq 0x5ccd(%rip), %rax      # 0x9d78
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x8, %rdi
callq 0x3340
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
callq 0x5380
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq $0x0, 0x30(%rax)
movq $0x0, 0x38(%rax)
movq $0x0, 0x40(%rax)
movb $0x0, 0x48(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sc0ty[P]CODExtract/src/codfile/codfile.cpp
// Function: CODFile::Close()
void CODFile::Close()
{
    if (HeadSeg) delete HeadSeg;
    if (CodeSeg) delete [] CodeSeg;
    if (DataSeg) delete [] DataSeg;
    if (FootSeg) delete [] FootSeg;

    HeadSeg = NULL;
    CodeSeg = DataSeg = FootSeg = NULL;
    Resources.clear();

    isOpen = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, 0x28(%rax)
je 0x418d
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x418b
movq -0x18(%rbp), %rdi
movl $0x2c, %esi
callq 0x3220
jmp 0x418d
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x41b5
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x41b3
movq -0x20(%rbp), %rdi
callq 0x32f0
jmp 0x41b5
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x41dd
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x41db
movq -0x28(%rbp), %rdi
callq 0x32f0
jmp 0x41dd
movq -0x10(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x4205
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x4203
movq -0x30(%rbp), %rdi
callq 0x32f0
jmp 0x4205
movq -0x10(%rbp), %rdi
movq $0x0, 0x28(%rdi)
movq $0x0, 0x40(%rdi)
movq $0x0, 0x38(%rdi)
movq $0x0, 0x30(%rdi)
addq $0x50, %rdi
callq 0x5480
movq -0x10(%rbp), %rax
movb $0x0, 0x48(%rax)
addq $0x30, %rsp
popq %rbp
retq
// File: sc0ty[P]CODExtract/src/codfile/codfile.cpp
// Function: CODFile::FindResource(CODRESType)
CODResource *CODFile::FindResource(CODRESType type)
{
    if (!isOpen) throw "Load file first";

    list<CODResource>::iterator it;

    for(it=Resources.begin(); it!=Resources.end(); it++)
    {
        if (type == it->getType()) return &*it;
    }

    // can't find
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
testb $0x1, 0x48(%rax)
jne 0x4b94
movl $0x8, %edi
callq 0x3110
movq %rax, %rdi
leaq 0x2633(%rip), %rax      # 0x71b4
movq %rax, (%rdi)
movq 0x543d(%rip), %rsi      # 0x9fc8
xorl %eax, %eax
movl %eax, %edx
callq 0x33e0
leaq -0x20(%rbp), %rdi
callq 0x54b0
movq -0x40(%rbp), %rdi
addq $0x50, %rdi
callq 0x54d0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rdi
addq $0x50, %rdi
callq 0x5530
movq %rax, -0x30(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x5500
testb $0x1, %al
jne 0x4bda
jmp 0x4c1c
movl -0x14(%rbp), %eax
movl %eax, -0x44(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x5560
movq %rax, %rdi
callq 0x6220
movl %eax, %ecx
movl -0x44(%rbp), %eax
cmpl %ecx, %eax
jne 0x4c09
leaq -0x20(%rbp), %rdi
callq 0x5580
movq %rax, -0x8(%rbp)
jmp 0x4c24
jmp 0x4c0b
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x55a0
movq %rax, -0x38(%rbp)
jmp 0x4bb6
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: sc0ty[P]CODExtract/src/codfile/codfile.cpp
// Function: CODFile::getAppName[abi:cxx11]()
string CODFile::getAppName()
{
    if (!isOpen) throw "Load file first";

    // find resource with name
    CODResource *r = FindResource(CODRESTAppName);

    // can't find
    if (r == NULL) throw "No AppName in resources";

    return *( new string(r->getData()+2, r->getReversedU16(0)) );

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
testb $0x1, 0x48(%rax)
jne 0x4ee0
movl $0x8, %edi
callq 0x3110
movq %rax, %rdi
leaq 0x22e7(%rip), %rax      # 0x71b4
movq %rax, (%rdi)
movq 0x50f1(%rip), %rsi      # 0x9fc8
xorl %eax, %eax
movl %eax, %edx
callq 0x33e0
movq -0x30(%rbp), %rdi
movl $0x2, %esi
callq 0x4b50
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x4f20
movl $0x8, %edi
callq 0x3110
movq %rax, %rdi
leaq 0x22db(%rip), %rax      # 0x71e8
movq %rax, (%rdi)
movq 0x50b1(%rip), %rsi      # 0x9fc8
xorl %eax, %eax
movl %eax, %edx
callq 0x33e0
movl $0x20, %edi
callq 0x3210
movq %rax, -0x50(%rbp)
movb $0x1, -0x26(%rbp)
movq -0x18(%rbp), %rdi
callq 0x6240
movq %rax, -0x48(%rbp)
jmp 0x4f41
movq -0x48(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x6280
movw %ax, -0x52(%rbp)
jmp 0x4f5e
movw -0x52(%rbp), %ax
movzwl %ax, %eax
movq %rax, -0x70(%rbp)
leaq -0x25(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x3400
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
callq 0x32a0
jmp 0x4f8d
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdi
movb $0x0, -0x26(%rbp)
callq 0x30d0
jmp 0x4fa0
leaq -0x25(%rbp), %rdi
callq 0x3260
movq -0x38(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x4fd6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x25(%rbp), %rdi
callq 0x3260
testb $0x1, -0x26(%rbp)
jne 0x4fde
jmp 0x4fec
movq -0x50(%rbp), %rdi
movl $0x20, %esi
callq 0x3220
jmp 0x4fee
movq -0x20(%rbp), %rdi
callq 0x33f0
nopw (%rax,%rax)