LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/giovifazi[P]knossos-bloodbath/Menu.cpp
// Function: setPlayers()
int setPlayers()
{
	int  numberP = 0;
	while (numberP < 2)		//itero finche' il numero di giocatori e' <= a 2
	{
                for (int i=0; i<40; i++, std::cout<<"\n");				//spazio fra una schermata e l'altra
		stampaMenu("Quanti giocatori?","","[minimo 2 giocatori]","", 1);	//stampo il menu
		std::cin>> numberP;
               if(!std::cin){
                
                 std::cin.clear();
                 std::cin.ignore();
               }
	
	}
	
	return (numberP);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
leaq -0x2c(%rbp), %rax
movl $0x0, (%rax)
xorl %r13d, %r13d
movq 0x8ebd(%rip), %r14      # 0x11fd0
leaq 0x573b(%rip), %r15      # 0xe855
movq 0x8ebf(%rip), %rbx      # 0x11fe0
incl %r13d
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
cmpl $0x28, %r13d
jne 0x9121
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %r13
movq %r13, %rdi
leaq 0x60a1(%rip), %rsi      # 0xf1fa
leaq 0x60ab(%rip), %rdx      # 0xf20b
callq 0x2cfa
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
leaq 0x56de(%rip), %rdx      # 0xe856
movq %rdx, %rsi
callq 0x2cfa
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x6079(%rip), %rsi      # 0xf20c
leaq 0x6086(%rip), %rdx      # 0xf220
callq 0x2cfa
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %r12
movq %r12, %rdi
leaq 0x569b(%rip), %rdx      # 0xe856
movq %rdx, %rsi
callq 0x2cfa
movq %r13, %rdi
leaq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %r12, %rcx
movl $0x1, %r8d
callq 0x814c
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x91f8
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x9211
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x922a
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x924c
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2090
movq (%rbx), %rax
movq -0x18(%rax), %rdi
testb $0x5, 0x20(%rbx,%rdi)
je 0x9278
addq %rbx, %rdi
xorl %esi, %esi
callq 0x21f0
movq %rbx, %rdi
callq 0x2230
movl -0x2c(%rbp), %eax
movl $0x0, %r13d
cmpl $0x2, %eax
jl 0x9121
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x92fc
movq %rax, %rbx
jmp 0x92e3
movq %rax, %rbx
jmp 0x92ca
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x92ca
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x92e3
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x92fc
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x931e
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/giovifazi[P]knossos-bloodbath/Game.cpp
// Function: battleChoice()
bool battleChoice()
{
	std::string choice;

	std::cout<<"Vuoi combattere? [y/n]\n";
	std::cin>>choice;

	if (choice == "y") 
		return true;
	
	else if (choice == "n")
		return false;
	
	else
		return battleChoice();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0x866e(%rip), %rdi      # 0x11fd0
leaq 0x591e(%rip), %rsi      # 0xf287
movl $0x17, %edx
callq 0x2140
movq 0x8666(%rip), %rdi      # 0x11fe0
leaq -0x30(%rbp), %rsi
callq 0x2180
leaq 0x5915(%rip), %rsi      # 0xf29f
leaq -0x30(%rbp), %rdi
callq 0x2050
testl %eax, %eax
je 0x99b4
leaq 0x5903(%rip), %rsi      # 0xf2a1
leaq -0x30(%rbp), %rdi
callq 0x2050
testl %eax, %eax
je 0x99b8
callq 0x993c
movl %eax, %ebx
jmp 0x99ba
movb $0x1, %bl
jmp 0x99ba
xorl %ebx, %ebx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x99cf
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2120
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x99f2
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x856b(%rip), %rdi      # 0x11fe0
leaq -0x48(%rbp), %rsi
callq 0x2180
leaq -0x58(%rbp), %r12
leaq -0x78(%rbp), %r14
leaq -0x88(%rbp), %r15
movq %r12, -0x68(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x2c60
movq %r14, -0x88(%rbp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2c60
movq -0x80(%rbp), %rax
xorl %r13d, %r13d
testl %eax, %eax
je 0x9b0e
cmpq $0x1, -0x60(%rbp)
jne 0x9b0e
testl %eax, %eax
setg %r13b
jle 0x9b0e
movq -0x68(%rbp), %rcx
movb (%rcx), %cl
movq -0x88(%rbp), %rdx
movb $0x1, %r13b
cmpb (%rdx), %cl
je 0x9b0e
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %edi
movq %rdi, %rsi
cmpq %rdi, %rax
je 0x9b07
leaq 0x1(%rsi), %rdi
cmpb (%rdx,%rsi), %cl
jne 0x9af6
cmpq %rax, %rsi
setb %r13b
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x9b26
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x9b3b
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2120
testb %r13b, %r13b
jne 0x9b6d
movl $0x37, %edx
movq 0x8484(%rip), %rdi      # 0x11fd0
leaq 0x5750(%rip), %rsi      # 0xf2a3
callq 0x2140
movq 0x8481(%rip), %rdi      # 0x11fe0
leaq -0x48(%rbp), %rsi
callq 0x2180
jmp 0x9a8d
movq -0x48(%rbp), %rdi
movb (%rdi), %bl
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9b88
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2120
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9bb5
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x9bb8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x9bb8
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9bd1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movb 0x322da(%rip), %al      # 0x395b0
movl %eax, %ecx
xorb $0x1, %cl
movb %cl, 0x322cf(%rip)      # 0x395b0
testb %al, %al
je 0x72f1
leaq 0x322bc(%rip), %rax     # 0x395a8
jmp 0x73e9
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x20(%rsp)
callq 0x6140
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x21cf7(%rip), %xmm0    # 0x29008
movsd %xmm0, (%rsp)
callq 0x6140
movsd (%rsp), %xmm0
movsd 0x21ce8(%rip), %xmm1    # 0x29010
ucomisd %xmm0, %xmm1
jae 0x72fd
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd 0x21ccb(%rip), %xmm1    # 0x29008
movsd %xmm1, 0x8(%rsp)
callq 0x63c0
mulsd 0x21cc8(%rip), %xmm0    # 0x29018
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x7360
sqrtsd %xmm0, %xmm0
jmp 0x7365
callq 0x63a0
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rsp), %xmm0
mulsd 0x21ca7(%rip), %xmm0    # 0x29020
movsd %xmm0, 0x8(%rsp)
callq 0x6a70
mulsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x3220e(%rip)    # 0x395a0
movsd (%rsp), %xmm0
callq 0x63c0
mulsd 0x21c74(%rip), %xmm0    # 0x29018
ucomisd 0x21c7c(%rip), %xmm0    # 0x29028
jb 0x73b4
sqrtsd %xmm0, %xmm0
jmp 0x73b9
callq 0x63a0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x60f0
mulsd (%rsp), %xmm0
movsd %xmm0, 0x321d2(%rip)    # 0x395a8
leaq 0x321c3(%rip), %rax     # 0x395a0
movsd 0x20(%rsp), %xmm1
movsd 0x18(%rsp), %xmm0
mulsd (%rax), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x7ede
testl %r14d, %r14d
jle 0x7452
movl %ebp, %r14d
xorl %r15d, %r15d
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0x72cc
movq (%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x7430
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movsd 0x21bbb(%rip), %xmm1    # 0x29030
mulsd %xmm1, %xmm0
imull %esi, %esi
callq 0x73fa
movslq %ebp, %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x7ede
movl %ebp, %eax
testl %ebp, %ebp
jle 0x74e2
movq (%rbx), %rcx
leaq (,%rax,8), %rdx
xorpd %xmm2, %xmm2
xorl %esi, %esi
movapd 0x21bae(%rip), %xmm1    # 0x29060
xorl %edi, %edi
xorpd %xmm0, %xmm0
movsd (%rcx,%rdi,8), %xmm3
andpd %xmm1, %xmm3
addsd %xmm3, %xmm0
incq %rdi
cmpq %rdi, %rax
jne 0x74b8
maxsd %xmm2, %xmm0
incq %rsi
addq %rdx, %rcx
movapd %xmm0, %xmm2
cmpq %rax, %rsi
jne 0x74b2
jmp 0x74e6
xorpd %xmm0, %xmm0
testl %ebp, %ebp
jle 0x7515
incl %ebp
movq (%rbx), %rcx
xorl %edx, %edx
movapd 0x21b67(%rip), %xmm1    # 0x29060
movslq %edx, %rdx
movsd (%rcx,%rdx,8), %xmm2
andpd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, (%rcx,%rdx,8)
addl %ebp, %edx
decq %rax
jne 0x74f9
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x752c
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x64c0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x754f
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x64c0
movq %r14, %rdi
callq 0x69a0
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x31a25(%rip), %r14     # 0x38f90
leaq 0x1c(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x65e0
leaq 0x34(%rsp), %rsi
movq %r14, %rdi
callq 0x6790
cvtsi2sdl (%r15), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x759d
sqrtsd %xmm0, %xmm0
jmp 0x75a2
callq 0x63a0
cvttsd2si %xmm0, %ebp
movl %ebp, %eax
imull %ebp, %eax
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x21ab7(%rip), %rsi     # 0x29070
leaq 0x24a13(%rip), %rdx     # 0x2bfd3
leaq 0x20(%rsp), %r14
leaq 0x1c(%rsp), %r8
movq %r14, %rdi
callq 0x81b3
cmpb $0x0, (%r14)
je 0x7616
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x8052
leaq 0x20(%rsp), %rdx
movl %ebp, (%rdx)
movl %ebp, 0x4(%rdx)
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq 0x3198f(%rip), %rdi     # 0x38f90
movl $0x2, %esi
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x60a0
jmp 0x76bf
leaq 0x8(%rsp), %rdi
callq 0xaba0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x21a44(%rip), %rsi     # 0x29074
movl $0x2e, %edx
callq 0x65a0
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x7649
movq (%rax), %r8
jmp 0x7650
leaq 0x235f5(%rip), %r8      # 0x2ac45
leaq 0x21a4c(%rip), %rdx     # 0x290a3
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movl $0x27, %ecx
callq 0x8a66
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x8b04
leaq 0x10(%rsp), %rdi
callq 0x8ad2
cmpq $0x0, 0x8(%rsp)
je 0x76b3
movl $0x1, %edi
callq 0x8a62
testb %al, %al
je 0x76aa
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x76aa
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x8052
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7703
jmp 0x7703
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8ad2
jmp 0x76e2
jmp 0x76df
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7f68
jmp 0x76f1
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x7f7a
movq %rbx, %rdi
callq 0x69a0
movq %rax, %rdi
callq 0x8011
nop
// File: /workspace/github_cpp_makefile_star2_O1/WeihuaZhu[P]hpc_prog2/mpi_tests.cpp
// Function: MpiTest_MatrixVectorMult1_Test::TestBody()
TEST(MpiTest, MatrixVectorMult1)
{
    // simple 4 by 4 input matrix
    double A[4*4] = {10., -1., 2., 0.,
                           -1., 11., -1., 3.,
                           2., -1., 10., -1.,
                           0.0, 3., -1., 8.};
    double x[4] =  {6., 25., -11., 15.};
    double y[4];
    double expected_y[4] = {13.,  325., -138.,  206.};
    int n = 4;

    // get grid communicator
    MPI_Comm grid_comm;
    get_grid_comm(&grid_comm);

    // testing sequential matrix multiplication
    mpi_matrix_vector_mult(n, A, x, y, grid_comm);

    // checking if all values are correct (up to some error value)
    for (int i = 0; i < n; ++i)
    {
        EXPECT_NEAR(expected_y[i], y[i], 1e-10) << " element y[" << i << "] is wrong";
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
leaq 0x21aec(%rip), %rsi     # 0x29210
leaq 0x70(%rsp), %rbx
movl $0x10, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movaps 0x21aa5(%rip), %xmm0    # 0x291e0
leaq 0x50(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x21a84(%rip), %xmm0    # 0x291d0
movaps %xmm0, (%r14)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x7557
movq (%r15), %r8
leaq 0x30(%rsp), %rcx
movl $0x4, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x28628
leaq 0x21a34(%rip), %r12     # 0x291b0
xorl %r14d, %r14d
leaq 0x21953(%rip), %r13     # 0x290d9
leaq 0x10(%rsp), %rbp
leaq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %r15
movsd (%r12), %xmm0
movsd 0x30(%rsp,%r14,8), %xmm1
movq %rbp, %rdi
leaq 0x2191f(%rip), %rsi     # 0x290cb
leaq 0x21921(%rip), %rdx     # 0x290d4
movq %r13, %rcx
movsd 0x2187a(%rip), %xmm2    # 0x29038
callq 0xb39a
cmpb $0x0, 0x10(%rsp)
jne 0x788a
movq %rbx, %rdi
callq 0xaba0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl $0xb, %edx
leaq 0x218f4(%rip), %rsi     # 0x290df
callq 0x65a0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %r14d, %esi
callq 0x6960
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl $0xa, %edx
leaq 0x218d5(%rip), %rsi     # 0x290eb
callq 0x65a0
movq 0x18(%rsp), %rax
leaq 0x2341e(%rip), %r8      # 0x2ac45
testq %rax, %rax
je 0x782f
movq (%rax), %r8
movq %r15, %rdi
movl $0x1, %esi
leaq 0x21865(%rip), %rdx     # 0x290a3
movl $0x46, %ecx
callq 0x8a66
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8b04
movq %r15, %rdi
callq 0x8ad2
cmpq $0x0, 0x8(%rsp)
je 0x788a
movl $0x1, %edi
callq 0x8a62
testb %al, %al
je 0x7881
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7881
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x8052
incq %r14
addq $0x8, %r12
cmpq $0x4, %r14
jne 0x7795
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x78d1
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8ad2
jmp 0x78dc
movq %rax, %rbx
jmp 0x78e6
jmp 0x78d9
movq %rax, %rdi
callq 0x8011
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7f68
leaq 0x10(%rsp), %rdi
callq 0x7f7a
movq %rbx, %rdi
callq 0x69a0
// File: /workspace/github_cpp_makefile_star2_O1/WeihuaZhu[P]hpc_prog2/mpi_tests.cpp
// Function: MpiTest_Jacobi1_Test::TestBody()
TEST(MpiTest, Jacobi1)
{
    // simple 4 by 4 input matrix
    double A[4*4] = {10., -1., 2., 0.,
                           -1., 11., -1., 3.,
                           2., -1., 10., -1.,
                           0.0, 3., -1., 8.};
    double b[4] =  {6., 25., -11., 15.};
    double x[4];
    double expected_x[4] = {1.0,  2.0, -1.0, 1.0};
    int n = 4;

    // get grid communicator
    MPI_Comm grid_comm;
    get_grid_comm(&grid_comm);

    // testing sequential matrix multiplication
    mpi_jacobi(n, A, b, x, grid_comm);

    // checking if all values are correct (up to some error value)
    for (int i = 0; i < n; ++i)
    {
        EXPECT_NEAR(expected_x[i], x[i], 1e-5) << " element y[" << i << "] is wrong";
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
leaq 0x21900(%rip), %rsi     # 0x29210
leaq 0x70(%rsp), %rbx
movl $0x10, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movaps 0x218b9(%rip), %xmm0    # 0x291e0
leaq 0x50(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x21898(%rip), %xmm0    # 0x291d0
movaps %xmm0, (%r14)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x7557
movq (%r15), %r8
leaq 0x30(%rsp), %rcx
movsd 0x216df(%rip), %xmm0    # 0x29038
movl $0x4, %edi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x64, %r9d
callq 0x286f9
leaq 0x2187a(%rip), %r12     # 0x291f0
xorl %r14d, %r14d
leaq 0x2178c(%rip), %r13     # 0x2910c
leaq 0x10(%rsp), %rbp
leaq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %r15
movsd (%r12), %xmm0
movsd 0x30(%rsp,%r14,8), %xmm1
movq %rbp, %rdi
leaq 0x21758(%rip), %rsi     # 0x290fe
leaq 0x2175a(%rip), %rdx     # 0x29107
movq %r13, %rcx
movsd 0x21688(%rip), %xmm2    # 0x29040
callq 0xb39a
cmpb $0x0, 0x10(%rsp)
jne 0x7a84
movq %rbx, %rdi
callq 0xaba0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl $0xb, %edx
leaq 0x216fa(%rip), %rsi     # 0x290df
callq 0x65a0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %r14d, %esi
callq 0x6960
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl $0xa, %edx
leaq 0x216db(%rip), %rsi     # 0x290eb
callq 0x65a0
movq 0x18(%rsp), %rax
leaq 0x23224(%rip), %r8      # 0x2ac45
testq %rax, %rax
je 0x7a29
movq (%rax), %r8
movq %r15, %rdi
movl $0x1, %esi
leaq 0x2166b(%rip), %rdx     # 0x290a3
movl $0x62, %ecx
callq 0x8a66
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8b04
movq %r15, %rdi
callq 0x8ad2
cmpq $0x0, 0x8(%rsp)
je 0x7a84
movl $0x1, %edi
callq 0x8a62
testb %al, %al
je 0x7a7b
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7a7b
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x8052
incq %r14
addq $0x8, %r12
cmpq $0x4, %r14
jne 0x798f
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7acb
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8ad2
jmp 0x7ad6
movq %rax, %rbx
jmp 0x7ae0
jmp 0x7ad3
movq %rax, %rdi
callq 0x8011
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7f68
leaq 0x10(%rsp), %rdi
callq 0x7f7a
movq %rbx, %rdi
callq 0x69a0
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl (%rcx), %eax
cmpl (%r8), %eax
jne 0x81d2
movq %rbx, %rdi
callq 0xa51f
jmp 0x8246
movq %r8, %r12
movq %rdx, %r14
movq %rsi, %r15
leaq 0x28(%rsp), %rdi
movq %rcx, %rsi
callq 0x829b
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x829b
leaq 0x28(%rsp), %rcx
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %r9d, %r9d
callq 0xb005
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x822b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x64c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8246
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x64c0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8278
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x64c0
jmp 0x8278
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8293
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x64c0
movq %rbx, %rdi
callq 0x69a0
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdx, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movl %edi, %ebp
leaq 0x1c(%rsp), %rsi
movq %rcx, %rdi
callq 0x6790
leaq 0x34(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x65e0
cvtsi2sdl (%r12), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x27ee4
sqrtsd %xmm0, %xmm0
jmp 0x27ee9
callq 0x63a0
cvttsd2si %xmm0, %ebx
leaq 0x48(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x14(%rsp), %r15
movq %r14, %rdi
movl $0x2, %esi
movq %r15, %r8
callq 0x6420
movl (%r15), %ecx
movl %ebp, %eax
cltd
idivl %ebx
movl %eax, %ebp
movl %edx, %r12d
xorl %r13d, %r13d
cmpl %ecx, %edx
setg %r13b
addl %eax, %r13d
cmpl $0x0, 0x4(%r15)
jne 0x27f4c
leal 0x1(%rbx), %eax
imull %eax, %ecx
movq 0x11067(%rip), %rdx     # 0x38fa0
movq 0x28(%rsp), %rdi
movl %r13d, %esi
xorl %r8d, %r8d
movq %r14, %r9
callq 0x61c0
movl 0x14(%rsp), %ecx
cmpl 0x18(%rsp), %ecx
jne 0x27f7c
imull %ebx, %ecx
leaq 0x50(%rsp), %rax
movq %rax, (%rsp)
movq 0x11037(%rip), %rdx     # 0x38fa0
movq 0x20(%rsp), %rdi
movl %r13d, %esi
xorl %r8d, %r8d
movq %r14, %r9
callq 0x63d0
movl 0x18(%rsp), %esi
movl 0x1c(%rsp), %edx
leaq 0x38(%rsp), %r15
movq %r14, %rdi
movq %r15, %rcx
callq 0x68d0
movl 0x18(%rsp), %ecx
xorl %eax, %eax
cmpl %ecx, %r12d
setg %al
addl %eax, %ebp
movq (%r15), %r8
movq 0x10ff4(%rip), %rdx     # 0x38fa0
movq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x60d0
movq %r15, %rdi
callq 0x68b0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movq %rcx, 0x8(%rsp)
movq %rdx, %r13
movl %edi, %ebp
xorl %eax, %eax
leaq 0x18(%rsp), %r15
movq %rax, (%r15)
leaq 0x10(%rsp), %r12
movq %rax, (%r12)
movq %r15, %rdx
movq %r8, %rcx
callq 0x27a84
movl %ebp, %edi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x27724
leaq 0x30(%rsp), %r13
leaq 0x28(%rsp), %rcx
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movl $0x2, %esi
movq %r13, %rdx
movq %r14, %r8
callq 0x6420
movl %ebp, %eax
cltd
idivl (%r13)
xorl %ecx, %ecx
cmpl (%r14), %edx
setg %cl
addl %eax, %ecx
movslq %ecx, %rax
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x6040
movq %rax, %r14
movq (%r15), %rsi
movq (%r12), %rdx
movl %ebp, %edi
movq %rax, %rcx
movq %rbx, %r8
callq 0x27fcf
movl %ebp, %edi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x278e0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movsd %xmm0, 0x10(%rsp)
movl %r9d, 0xc(%rsp)
movq %r8, %rbx
movq %rcx, 0x18(%rsp)
movq %rdx, %r14
movl %edi, %ebp
xorl %eax, %eax
leaq 0x28(%rsp), %r12
movq %rax, (%r12)
leaq 0x20(%rsp), %r13
movq %rax, (%r13)
movq %r12, %rdx
movq %r8, %rcx
callq 0x27a84
movl %ebp, %edi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x27724
leaq 0x40(%rsp), %r14
leaq 0x38(%rsp), %rcx
leaq 0x30(%rsp), %r15
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
movq %r15, %r8
callq 0x6420
movl %ebp, %eax
cltd
idivl (%r14)
xorl %ecx, %ecx
cmpl (%r15), %edx
setg %cl
addl %eax, %ecx
movslq %ecx, %rax
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x6040
movq %rax, %r14
movq (%r12), %rsi
movq (%r13), %rdx
movl %ebp, %edi
movq %rax, %rcx
movq %rbx, %r8
movl 0xc(%rsp), %r9d
movsd 0x10(%rsp), %xmm0
callq 0x28199
movl %ebp, %edi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq 0x278e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0x23d0
movq %r15, %rax
subq %r14, %rax
sarq $0x5, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a03
movq %r14, %rdi
movq %r15, %rsi
callq 0x2af4
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq 0x4c12(%rip), %r14      # 0x6ff0
movq %r14, %rdx
callq 0x27ee
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x3277
movq 0x8(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3352
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r14, %rdx
callq 0x27ee
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rbx
movaps %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
movq 0x487a(%rip), %r14      # 0x6fd8
leaq -0x40(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2180
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2788
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2842
jmp 0x2762
leaq -0x60(%rbp), %rdi
movl $0x6, %esi
callq 0x2468
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x27ab
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0x60(%rbp), %rdi
callq 0x288e
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27c5
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x27dd
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0x60(%rbp), %rdi
callq 0x288e
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rbx
subq $0x48, %rsp
leaq -0x50(%rbp), %rdi
movl $0x2710, %esi           # imm = 0x2710
callq 0x16fc
xorl %edi, %edi
callq 0x10d0
movl %eax, %edi
callq 0x10e0
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x1, -0xc(%rbp)
movq -0x28(%rbp), %rsi
testq %rsi, %rsi
je 0x13dd
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x28(%rbp)
jmp 0x13ea
leaq -0x30(%rbp), %rdi
leaq -0xc(%rbp), %rdx
callq 0x159e
movl $0x2, -0xc(%rbp)
movq -0x28(%rbp), %rsi
cmpq -0x20(%rbp), %rsi
je 0x140b
movl $0x2, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x28(%rbp)
jmp 0x1418
leaq -0x30(%rbp), %rdi
leaq -0xc(%rbp), %rdx
callq 0x159e
movl $0x3, -0xc(%rbp)
movq -0x28(%rbp), %rsi
cmpq -0x20(%rbp), %rsi
je 0x1439
movl $0x3, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x28(%rbp)
jmp 0x1446
leaq -0x30(%rbp), %rdi
leaq -0xc(%rbp), %rdx
callq 0x159e
movl $0x4, -0xc(%rbp)
movq -0x28(%rbp), %rsi
cmpq -0x20(%rbp), %rsi
je 0x1467
movl $0x4, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x28(%rbp)
jmp 0x1474
leaq -0x30(%rbp), %rdi
leaq -0xc(%rbp), %rdx
callq 0x159e
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0x19a6
movq 0x2b3c(%rip), %rdi      # 0x3fc8
leaq 0xb71(%rip), %rsi       # 0x2004
movl $0xf, %edx
callq 0x1120
leaq -0x50(%rbp), %rdi
callq 0x1880
movq 0x2b1b(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x10a0
movq 0x2ae3(%rip), %rdi      # 0x3fc8
leaq 0xb28(%rip), %rsi       # 0x2014
movl $0xe, %edx
callq 0x1120
leaq -0x50(%rbp), %rdi
callq 0x1912
movq 0x2ac2(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x10a0
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x154c
movq -0x20(%rbp), %rsi
subq %rdi, %rsi
callq 0x1110
leaq -0x50(%rbp), %rdi
callq 0x17a8
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
jmp 0x1566
jmp 0x1566
jmp 0x1566
jmp 0x1566
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x157e
movq -0x20(%rbp), %rsi
subq %rdi, %rsi
callq 0x1110
leaq -0x50(%rbp), %rdi
callq 0x17a8
movq %rbx, %rdi
callq 0x1180
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, -0xc(%rbp)
leaq -0x10(%rbp), %rdx
movl %esi, (%rdx)
movq (%rdi), %rdi
movq 0x8(%rbx), %rsi
callq 0x1b59
movq 0x8(%rbx), %rsi
cmpq %rsi, %rax
jne 0x1827
movq %rsi, %rax
subq (%rbx), %rax
sarq $0x2, %rax
movl 0x18(%rbx), %ecx
cmpq %rcx, %rax
jae 0x1827
cmpq 0x10(%rbx), %rsi
je 0x1814
movl -0xc(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1820
leaq -0xc(%rbp), %rdx
movq %rbx, %rdi
callq 0x1a7e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x8, %edi
callq 0x1080
movq 0x2788(%rip), %rcx      # 0x3fc0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x2792(%rip), %rsi      # 0x3fd8
movq 0x27a3(%rip), %rdx      # 0x3ff0
movq %rax, %rdi
callq 0x1160
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, %rax
subq %rcx, %rax
cmpq $0x5, %rax
jb 0x18e4
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rdx, %rcx
je 0x18e2
xorl %esi, %esi
movq %rcx, %rdi
movq %rsi, %r8
movq %rcx, %r9
testq %r8, %r8
je 0x18c8
movl (%rdi), %r10d
subl (%r9), %r10d
movl %r10d, %r11d
negl %r11d
cmovsl %r10d, %r11d
cmpl %eax, %r11d
cmovll %r11d, %eax
addq $0x4, %r9
addq $-0x4, %r8
cmpq %rdx, %r9
jne 0x18ac
addq $0x4, %rdi
addq $0x4, %rsi
cmpq %rdx, %rdi
jne 0x18a6
popq %rbp
retq
movl $0x8, %edi
callq 0x1080
movq 0x26cb(%rip), %rcx      # 0x3fc0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x26d5(%rip), %rsi      # 0x3fd8
movq 0x26e6(%rip), %rdx      # 0x3ff0
movq %rax, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/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
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, %rax
subq %rcx, %rax
cmpq $0x5, %rax
jb 0x1977
cmpq %rdx, %rcx
je 0x1973
xorl %esi, %esi
xorl %eax, %eax
movq %rcx, %rdi
movq %rsi, %r8
movq %rcx, %r9
testq %r8, %r8
je 0x1957
movl (%rdi), %r10d
subl (%r9), %r10d
movl %r10d, %r11d
negl %r11d
cmovsl %r10d, %r11d
cmpl %eax, %r11d
cmovgl %r11d, %eax
addq $0x4, %r9
addq $-0x4, %r8
cmpq %rdx, %r9
jne 0x193b
addq $0x4, %rdi
addq $0x4, %rsi
cmpq %rdx, %rdi
jne 0x1935
jmp 0x1975
xorl %eax, %eax
popq %rbp
retq
movl $0x8, %edi
callq 0x1080
movq 0x2638(%rip), %rcx      # 0x3fc0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x2642(%rip), %rsi      # 0x3fd8
movq 0x2653(%rip), %rdx      # 0x3ff0
movq %rax, %rdi
callq 0x1160
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %r14
leaq -0x1a(%rbp), %rsi
callq 0x3cdc
testq %rax, %rax
je 0x2ff4
movq %rax, %rbx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x38c4
movq %r15, %rdi
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x2340
cmpq $-0x1, %rax
je 0x2ef5
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x2340
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x20a0
leaq 0x2215(%rip), %rsi      # 0x5111
leaq -0x40(%rbp), %rdi
callq 0x2330
movq 0x40cc(%rip), %rdi      # 0x6fd8
leaq 0x2208(%rip), %rsi      # 0x511b
movl $0xe, %edx
callq 0x2200
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq 0x40ac(%rip), %rdi      # 0x6fd8
callq 0x2200
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x40(%rbp), %rsi
leaq -0x240(%rbp), %rdi
movl $0x4, %edx
callq 0x21e0
leaq -0x1d0(%rbp), %rdi
callq 0x2070
testb %al, %al
je 0x3044
movzwl -0x1a(%rbp), %edx
leaq -0x240(%rbp), %rdi
movq %rbx, %rsi
callq 0x2250
leaq -0x240(%rbp), %rdi
callq 0x2270
movq 0x401e(%rip), %rax      # 0x6fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x238(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x240(%rbp,%rcx)
callq 0x2170
leaq -0x148(%rbp), %rdi
callq 0x20c0
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3036
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x3036
movq 0x3fdd(%rip), %rbx      # 0x6fd8
leaq 0x20ee(%rip), %rsi      # 0x50f0
movl $0x20, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2110
leaq 0x20d5(%rip), %rcx      # 0x512a
movq %rcx, (%rax)
movq 0x3f59(%rip), %rsi      # 0x6fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2300
jmp 0x307c
movq %rax, %rbx
leaq -0x240(%rbp), %rdi
callq 0x2290
jmp 0x307f
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3098
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x3cc5(%rip), %rax      # 0x6d80
movq %rax, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x50(%rdi), %rcx
movq %rcx, 0x58(%rdi)
movq %rcx, 0x50(%rdi)
movq %rax, 0x60(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movb %al, 0x48(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x3179
movl $0x2c, %esi
callq 0x21c0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x3187
callq 0x2230
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x3195
callq 0x2230
leaq 0x28(%rbx), %r14
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x31a7
callq 0x2230
leaq 0x50(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
callq 0x3d48
movb $0x0, 0x48(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpb $0x0, 0x48(%rdi)
je 0x389e
movl %esi, %ebx
movq %rdi, %r14
addq $0x50, %r14
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0x388f
leaq 0x10(%r12), %r15
movq %r15, %rdi
callq 0x4018
cmpl %ebx, %eax
jne 0x3873
jmp 0x3892
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2110
leaq 0x1905(%rip), %rcx      # 0x51b4
movq %rcx, (%rax)
movq 0x36ff(%rip), %rsi      # 0x6fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/sc0ty[P]CODExtract/src/codfile/codfile.cpp
// Function: CODFile::getVersion[abi:cxx11]()
string CODFile::getVersion()
{
    if (!isOpen) throw "Load file first";

    // data segment header
    TDATASEGHEADER *dh = (TDATASEGHEADER *)DataSeg;

    // sanity check - classes and modules list
    u16 tmp = dh->num_classes + 2*dh->num_modules;
    tmp *= sizeof(u16);
    tmp += sizeof(TDATASEGHEADER);
    if (tmp > dh->exported_string_offset) throw "Incorrect file format";

    // there is no modules on the list
    if (dh->num_modules == 0) throw "No version string in module";

    // module version ptr array
    u16 *modv = (u16 *)(DataSeg + sizeof(TDATASEGHEADER) +
                        sizeof(u16)*dh->num_classes +
                        sizeof(u16)*dh->num_modules);

    // check if ptr are in data section
    if (*modv >= HeadSeg->data_size)
            throw "Incorrect file format";

    return &DataSeg[ *modv ];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpb $0x0, 0x48(%rsi)
je 0x39a3
movq %rsi, %rax
movq %rdi, %rbx
movq 0x38(%rsi), %rsi
movzbl 0x5(%rsi), %ecx
movzbl 0x4(%rsi), %edx
leal (,%rdx,4), %edi
leal (%rdi,%rcx,2), %edi
addl $0x34, %edi
movzwl 0x6(%rsi), %r8d
cmpl %r8d, %edi
ja 0x3990
testq %rdx, %rdx
je 0x39b6
leaq (%rsi,%rcx,2), %rcx
movzwl 0x34(%rcx,%rdx,2), %ecx
movq 0x28(%rax), %rax
cmpw 0x28(%rax), %cx
jae 0x3990
addq %rcx, %rsi
leaq -0x9(%rbp), %rdx
movq %rbx, %rdi
callq 0x3d84
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x8, %edi
callq 0x2110
leaq 0x17fd(%rip), %rcx      # 0x519e
jmp 0x39c7
movl $0x8, %edi
callq 0x2110
leaq 0x1800(%rip), %rcx      # 0x51b4
jmp 0x39c7
movl $0x8, %edi
callq 0x2110
leaq 0x1805(%rip), %rcx      # 0x51cc
movq %rcx, (%rax)
movq 0x35e7(%rip), %rsi      # 0x6fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpb $0x0, 0x48(%rsi)
je 0x3a7e
movq %rdi, %r14
movq %rsi, %rdi
movl $0x2, %esi
callq 0x3856
testq %rax, %rax
je 0x3a91
movq %rax, %r12
movl $0x20, %edi
callq 0x21b0
movq %rax, %rbx
movq %r12, %rdi
callq 0x4022
movq %rax, %r15
movq %r12, %rdi
xorl %esi, %esi
callq 0x4036
movzwl %ax, %eax
movq %rbx, %rcx
addq $0x10, %rcx
movq %rcx, (%rbx)
leaq (%r15,%rax), %rdx
addq $0x2, %rdx
addq $0x2, %r15
movb $0x1, %r12b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3dc2
leaq 0x10(%r14), %rax
movq %rax, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x3e5c
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2110
leaq 0x1725(%rip), %rcx      # 0x51b4
jmp 0x3aa2
movl $0x8, %edi
callq 0x2110
leaq 0x1746(%rip), %rcx      # 0x51e8
movq %rcx, (%rax)
movq 0x350c(%rip), %rsi      # 0x6fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r14
jmp 0x3ac1
movq %rax, %r14
movb $0x1, %r12b
testb %r12b, %r12b
je 0x3ad3
movl $0x20, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
nop