LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]optimal-seed-solver/optimalSolverLN.cc
// Function: OptimalSolverLN::printStats(std::ostream&)
void OptimalSolverLN::printStats(ostream& stream) {
	unsigned long long sumOfTravel = 0;
	stream << "divTravel distribution: ";
	for (int i = 0; i < readLength; i++) {
		stream << divTravel[i] << " ";
		sumOfTravel += divTravel[i] * i;
	}
	stream << endl;

	unsigned long long prefixesPerRead = (readLength + 1 - seedNum * minLength) * (seedNum - 2) + 1;
	unsigned long long totalPrefixes = processedReads * prefixesPerRead;
	stream << "divTravel per prefix: " << (double) sumOfTravel / totalPrefixes << endl;
	stream << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x5b47(%rip), %rsi      # 0xb303
movq %rbx, %rdi
callq 0x3240
xorl %r13d, %r13d
leaq 0x5e18(%rip), %r15      # 0xb5e6
xorl %r12d, %r12d
movslq 0x360(%r14), %rax
cmpq %rax, %r13
jge 0x5812
movq 0x3e8(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x3180
movq %rax, %rdi
movq %r15, %rsi
callq 0x3240
movq 0x3e8(%r14), %rax
movq (%rax,%r13,8), %rax
imulq %r13, %rax
addq %rax, %r12
incq %r13
jmp 0x57d1
movq %rbx, %rdi
callq 0x3120
movl 0x360(%r14), %eax
movl 0x364(%r14), %ecx
movl 0x368(%r14), %edx
imull %ecx, %edx
negl %edx
addl %edx, %eax
incl %eax
addl $-0x2, %ecx
imull %eax, %ecx
incl %ecx
movslq %ecx, %rax
movl 0x400(%r14), %r14d
imulq %rax, %r14
leaq 0x5ac7(%rip), %rsi      # 0xb31c
movq %rbx, %rdi
callq 0x3240
movq %r12, %xmm1
movq 0x5866(%rip), %xmm2     # 0xb0d0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x586a(%rip), %xmm3     # 0xb0e0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r14, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %rax, %rdi
callq 0x33e0
movq %rax, %rdi
callq 0x3120
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3120
// File: /workspace/github_cpp_makefile_star2_O2/patxitron[P]BattleyeRconToolLinux/a3s.cpp
// Function: patxi::a3s::login(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void a3s::login(std::string const& password)
{
	if(!listening_) {
		send_request(password.data(), password.size(), LOGIN);
		listening_ = true;
		receive();
	}
}

// Assembly:
cmpb $0x0, 0x1(%rdi)
je 0x6b79
retq
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
pushq $0x1
popq %rcx
movq %rax, %rsi
callq 0x6b9c
movb $0x1, 0x1(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x6d32
// File: /workspace/github_cpp_makefile_star2_O2/patxitron[P]BattleyeRconToolLinux/a3s.cpp
// Function: patxi::a3s::send_request(char const*, unsigned long, patxi::a3s::request_type)
void a3s::send_request(char const* data, std::size_t length, request_type rtp)
{
	request_t req;
	char* request = reinterpret_cast<char*>(&req);
	if(rtp == LOGIN) {
		memcpy(req.payload, data, length);
		length += sizeof(reqheader_t);
	} else if(rtp == BROADCAST_RESPONSE) {
		req.hdr.begin_msg = 0x02;
		memcpy(req.payload, data, length);
		length += sizeof(reqheader_t);
	} else {
		req.hdr.begin_msg = 0x01;
		req.payload[0] = *reinterpret_cast<char*>(&sequence_);
		sequence_ += 1;
		memcpy(req.payload + 1, data, length);
		length += sizeof(reqheader_t) + 1;
	}
	boost::crc_32_type crc;
	crc.process_bytes(request + 6, length - 6);
	req.hdr.checksum = crc.checksum();
	socket_.async_send_to(
		boost::asio::buffer(request, length),
		endpoint_,
		[](boost::system::error_code ec, std::size_t /*bytes_sent*/)
		{
			if(ec) {
				cerr << "Error sending request" << ec << endl;
			}
		}
	);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdx, %r15
movq %rdi, %rbx
leaq 0x36(%rsp), %r14
movw $0x4542, -0x6(%r14)     # imm = 0x4542
andl $0x0, -0x4(%r14)
movw $0xff, (%r14)
pushq $0x8
popq %r12
leaq 0x38(%rsp), %rdi
cmpl $0x1, %ecx
je 0x6bfc
cmpl $0x2, %ecx
jne 0x6be4
movb $0x2, 0x37(%rsp)
jmp 0x6bfc
leaq 0x39(%rsp), %rdi
movb $0x1, -0x2(%rdi)
movb 0x2(%rbx), %al
movb %al, -0x1(%rdi)
incb %al
movb %al, 0x2(%rbx)
pushq $0x9
popq %r12
movq %r15, %rdx
callq 0x62d0
leaq (%r12,%r15), %rbp
pushq $-0x1
popq %rdi
callq 0xee3c
leaq (%r12,%r15), %rdx
addq $-0x6, %rdx
movl %eax, %edi
movq %r14, %rsi
callq 0xee76
notl %eax
leaq 0x30(%rsp), %r14
movl %eax, 0x2(%r14)
movq 0x48(%rbx), %r15
leaq 0x50(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x68(%rbx), %r13
leaq 0xf(%rsp), %rsi
movq %rsi, 0x18(%rsp)
movl $0xa8, %edi
xorl %eax, %eax
callq 0x9316
movq %rax, %r12
movq %rax, 0x20(%rsp)
movl 0x50(%rbx), %eax
andq $0x0, (%r12)
leaq 0xd75(%rip), %rcx       # 0x79e0
movq %rcx, 0x8(%r12)
andl $0x0, 0x10(%r12)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r12)
andq $0x0, 0x28(%r12)
leaq 0x3e8e(%rip), %rcx      # 0xab1c
movq %rcx, 0x30(%r12)
movl %eax, 0x38(%r12)
movq %r14, 0x40(%r12)
movq %rbp, 0x48(%r12)
movups 0x140(%rbx), %xmm0
movups 0x14c(%rbx), %xmm1
movups %xmm1, 0x5c(%r12)
movups %xmm0, 0x50(%r12)
andl $0x0, 0x6c(%r12)
leaq 0x78(%r12), %rdi
movq %r13, %rsi
callq 0xa0a4
addq $0x28, %r15
movq %r12, 0x28(%rsp)
andl $0x0, (%rsp)
pushq $0x1
popq %rdx
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rcx
xorl %r8d, %r8d
movl %edx, %r9d
callq 0x9284
leaq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x18(%rsp), %rdi
callq 0x79d0
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x79d0
movq %rbx, %rdi
callq 0x65d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/Demo.cpp
// Function: main
int main(int argc, char* argv[]) {
    Scene scene;
    generateWorld(scene);
    
    //Make a 2x2 sampling
    int samps = (argc==2 ? atoi(argv[1])/4 : 1);
    //Initialize the camera
    Ray camera(Vec3d(50, 52, 295.6), Vec3d(0, -0.042612, -1).norm());
    
    //Start the ray tracing
    engine::raytracing(&scene, samps, camera, w, h, "result.ppm");
    
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x58a4
movq %r14, %rdi
callq 0x22fc
cmpl $0x2, %ebp
jne 0x2d45
movq 0x8(%rbx), %rdi
callq 0x2170
pushq $0x4
popq %rcx
cltd
idivl %ecx
movl %eax, %ebx
jmp 0x2d48
pushq $0x1
popq %rbx
movaps 0x3391(%rip), %xmm0     # 0x60e0
movaps %xmm0, (%rsp)
movabsq $0x407279999999999a, %rax # imm = 0x407279999999999A
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movhps 0x33bc(%rip), %xmm0     # xmm0 = xmm0[0,1],mem[0,1]
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
movq %rax, 0x10(%rdi)
callq 0x5c8e
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x5b94
leaq 0xa0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x587c
leaq 0x70(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x2e54
leaq 0x3382(%rip), %r9       # 0x6144
leaq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movl %ebx, %esi
movl $0x400, %ecx            # imm = 0x400
movl $0x300, %r8d            # imm = 0x300
callq 0x387d
leaq 0x18(%rsp), %rdi
callq 0x58b0
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2dfa
jmp 0x2dfa
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x58b0
movq %rbx, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/ObjParser.cpp
// Function: rt::ObjParser::destroy()
void ObjParser::destroy() {
    if (verticeList)
        delete [] verticeList;
    if (faceList)
        delete [] faceList;
        
    numOfVertices = -1;
    numOfFaces = -1;
    verticeList = NULL;
    faceList = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x4037
callq 0x2140
leaq 0x8(%rbx), %r14
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x4049
callq 0x2140
orq $-0x1, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/ObjParser.cpp
// Function: rt::ObjParser::readFromObj(char const*)
bool ObjParser::readFromObj(const char* filename) {
    FILE* fp = fopen(filename, "r");
    if (fp == NULL) {
        printf("RTError: The file %s doesn't exist.\n", filename);
        return false;
    } else {
        if (parse(fp)) {
            printf("Read from %s successfully.\n", filename);
            printf("Vertex Number = %d\n", numOfVertices);
            printf("Face Number = %d\n", numOfFaces);
            fclose(fp);
            return true;
        } else {
            printf("RTError: Cannot parse %s.\n", filename);
            fclose(fp);
            return false;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x21d3(%rip), %rsi      # 0x6243
movq %r14, %rdi
callq 0x2130
testq %rax, %rax
je 0x40d0
movq %rax, %rbx
movq %r15, %rdi
movq %rax, %rsi
callq 0x410e
testb %al, %al
je 0x40e5
leaq 0x21d4(%rip), %rdi      # 0x626a
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
movl (%r15), %esi
leaq 0x21dc(%rip), %rdi      # 0x6286
xorl %eax, %eax
callq 0x2040
movl 0x4(%r15), %esi
leaq 0x21de(%rip), %rdi      # 0x629a
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
callq 0x2100
movb $0x1, %bpl
jmp 0x4100
leaq 0x216e(%rip), %rdi      # 0x6245
xorl %ebp, %ebp
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
jmp 0x4100
leaq 0x21c0(%rip), %rdi      # 0x62ac
xorl %ebp, %ebp
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
callq 0x2100
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/ObjParser.h
// Function: rt::ObjParser::TriArray::operator[](int)
int& operator[] (const int i) {
            switch (i) {
                case 0: return a;
                case 1: return b;
                case 2: return c;
                default: {
                    printf("RTError: The TriArray index is out of range!");
                    return a;
                }
            }
        }

// Assembly:
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x46aa
cmpl $0x2, %esi
je 0x4696
cmpl $0x1, %esi
jne 0x469c
addq $0x4, %rbx
jmp 0x46aa
addq $0x8, %rbx
jmp 0x46aa
leaq 0x1cad(%rip), %rdi      # 0x6350
xorl %eax, %eax
callq 0x2040
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTBox.cpp
// Function: rt::RTBox::getNormal(rt::Ray const&, double) const
Vec3d RTBox::getNormal(const Ray& r, const double t) const {
    switch (face) {
        case 0: return Vec3d(-1,0,0);
        case 1: return Vec3d(0,-1,0);
        case 2: return Vec3d(0,0,-1);
        case 3: return Vec3d(1,0,0);
        case 4: return Vec3d(0,1,0);
        case 5: return Vec3d(0,0,1);
    }
    return Vec3d();
}

// Assembly:
movq %rdi, %rax
movl 0x70(%rsi), %ecx
cmpq $0x5, %rcx
ja 0x4f69
leaq 0x14b3(%rip), %rdx      # 0x63b0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
jmp 0x4f3a
xorps %xmm0, %xmm0
movhps 0x11d4(%rip), %xmm0     # xmm0 = xmm0[0,1],mem[0,1]
jmp 0x4f4f
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
jmp 0x4f64
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
retq
xorps %xmm0, %xmm0
movhps 0x11b1(%rip), %xmm0     # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, (%rax)
jmp 0x4f6f
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x10(%rax)
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTComplexObj.cpp
// Function: rt::RTComplexObj::hit(rt::Ray const&)
double RTComplexObj::hit(const Ray& r) {
    if (!bbox->hit(r)) return 0;
    double tmin = 0;
    for (int i=0; i<size; ++i) {
        double t = indices[i].hit(r);
        if (!t) continue;
        if (t < tmin || !tmin) {
            tmin = t;
            index = i;
        }
    }
    return tmin;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x48(%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x50ca
jnp 0x5129
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq 0x54(%r14), %rax
cmpq %rax, %r12
jge 0x5129
movsd %xmm1, (%rsp)
movq 0x40(%r14), %rdi
movq (%rdi,%r15), %rax
addq %r15, %rdi
movq %rbx, %rsi
callq *0x10(%rax)
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
jne 0x50fb
jnp 0x5118
movsd (%rsp), %xmm1
ucomisd %xmm2, %xmm1
jne 0x5108
jnp 0x510e
ucomisd %xmm0, %xmm1
jbe 0x511d
movl %r12d, 0x50(%r14)
movapd %xmm0, %xmm1
jmp 0x511d
movsd (%rsp), %xmm1
incq %r12
addq $0x88, %r15
jmp 0x50d0
movapd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTPlane.cpp
// Function: rt::RTPlane::hit(rt::Ray const&)
double RTPlane::hit(const Ray& r) {
    double t = (point - r.o).dot(normal) / (r.d).dot(normal);
    if (t > 1e-4)
        return t;
    else
        return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %rsi
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5bca
addq $0x58, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x5ce4
movapd %xmm0, (%rsp)
addq $0x18, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5ce4
movapd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd 0x10f7(%rip), %xmm0     # 0x6398
cmpltsd %xmm1, %xmm0
andpd %xmm1, %xmm0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTSphere.cpp
// Function: rt::RTSphere::hit(rt::Ray const&)
double RTSphere::hit(const Ray& r) {
	Vec3d dis = pos - r.o;
	double t;
	double eps = 1e-4;
	double b = dis.dot(r.d);
	double det = b*b - dis.dot(dis) + rad*rad;
	if (det < 0) return 0;
	else det = sqrt(det);

    return (t=b-det)>eps ? t : ((t=b+det)>eps ? t : 0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %rsi
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5bca
addq $0x18, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ce4
movapd %xmm0, (%rsp)
movq %r15, %rdi
movq %r15, %rsi
callq 0x5ce4
movapd (%rsp), %xmm3
movapd %xmm3, %xmm2
mulsd %xmm3, %xmm2
subsd %xmm0, %xmm2
movsd 0x58(%r14), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x545e
ucomisd %xmm0, %xmm1
jb 0x5425
sqrtsd %xmm1, %xmm1
jmp 0x5437
movapd %xmm1, %xmm0
callq 0x20e0
movapd (%rsp), %xmm3
movapd %xmm0, %xmm1
movapd %xmm3, %xmm0
subsd %xmm1, %xmm0
ucomisd 0xf51(%rip), %xmm0      # 0x6398
ja 0x545e
addsd %xmm1, %xmm3
movsd 0xf43(%rip), %xmm0      # 0x6398
cmpltsd %xmm3, %xmm0
andpd %xmm3, %xmm0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTTriangle.cpp
// Function: rt::RTTriangle::hit(rt::Ray const&)
double RTTriangle::hit(const Ray& r) {
	Vec3d e1 = p1 - p0;
	Vec3d e2 = p2 - p0;
	Vec3d p = (r.d)^(e2);
	double det = e1.dot(p);
	Vec3d tt;
	if (det > 0) tt = r.o - p0;
	else {
		tt = p0 - r.o;
		det = -det;
	}
	if (det < 0.0001f) return 0;
	double u = tt.dot(p);
	if (u < 0.0f || u > det) return 0;
	Vec3d q = tt^e1;
	double v = r.d.dot(q);
	if (v < 0.0f || u+v > det) return 0;
	if (e2.dot(q) <= 0) return 0;
	double t = e2.dot(q);
	double invDet = 1.0f / det;
	t *= invDet;
	return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x58(%rdi), %rsi
leaq 0x40(%rdi), %r15
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x5bca
addq $0x70, %rbx
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5bca
leaq 0x18(%r14), %rbx
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x5c34
movq %r12, %rdi
movq %rbp, %rsi
callq 0x5ce4
andq $0x0, 0x20(%rsp)
xorpd %xmm1, %xmm1
movapd %xmm0, (%rsp)
ucomisd %xmm1, %xmm0
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x38(%rsp), %r12
movq %r12, %rdi
jbe 0x5673
movq %r14, %rsi
movq %r15, %rdx
callq 0x5bca
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x5c7a
movapd (%rsp), %xmm2
jmp 0x569c
movq %r15, %rsi
movq %r14, %rdx
callq 0x5bca
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x5c7a
movapd 0xb5d(%rip), %xmm0      # 0x61f0
movapd (%rsp), %xmm2
xorpd %xmm0, %xmm2
xorpd %xmm0, %xmm0
movsd 0xd70(%rip), %xmm1      # 0x6418
ucomisd %xmm2, %xmm1
jbe 0x56c0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movapd %xmm2, (%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x5ce4
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x56ae
ucomisd (%rsp), %xmm1
ja 0x56ae
movsd %xmm1, 0x30(%rsp)
leaq 0x38(%rsp), %r14
leaq 0x10(%rsp), %rsi
leaq 0x80(%rsp), %rdx
movq %r14, %rdi
callq 0x5c34
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5ce4
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x56ae
movsd 0x30(%rsp), %xmm2
addsd %xmm1, %xmm2
ucomisd (%rsp), %xmm2
ja 0x56ae
leaq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5ce4
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jae 0x56ae
leaq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5ce4
movapd %xmm0, %xmm1
movsd 0x97d(%rip), %xmm0      # 0x60f0
divsd (%rsp), %xmm0
mulsd %xmm1, %xmm0
jmp 0x56ae
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/RTTriangle.cpp
// Function: rt::RTTriangle::getNormal(rt::Ray const&, double) const
Vec3d RTTriangle::getNormal(const Ray& r, const double t) const {
    double a = (p1.y-p0.y) * (p2.z-p0.z) - (p1.z-p0.z) * (p2.y-p0.y);
    double b = (p1.z-p0.z) * (p2.x-p0.x) - (p1.x-p0.x) * (p2.z-p0.z);
    double c = (p1.x-p0.x) * (p2.y-p0.y) - (p1.y-p0.y) * (p2.x-p0.x);
    Vec3d n(a,b,c);
    n.norm();
    return n.dot(r.d) < 0 ? n : n*-1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movsd 0x78(%rsi), %xmm1
movsd 0x40(%rsi), %xmm2
movsd 0x58(%rsi), %xmm0
subsd %xmm2, %xmm0
movsd 0x80(%rsi), %xmm3
movhpd 0x70(%rsi), %xmm3       # xmm3 = xmm3[0],mem[0]
movupd 0x48(%rsi), %xmm4
movupd 0x60(%rsi), %xmm5
subpd %xmm4, %xmm5
subsd %xmm4, %xmm1
shufpd $0x1, %xmm2, %xmm4      # xmm4 = xmm4[1],xmm2[0]
subpd %xmm4, %xmm3
movapd %xmm5, %xmm2
shufpd $0x1, %xmm0, %xmm2      # xmm2 = xmm2[1],xmm0[0]
mulsd %xmm1, %xmm0
unpcklpd %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
mulpd %xmm2, %xmm1
movapd %xmm5, %xmm2
mulpd %xmm3, %xmm2
subpd %xmm1, %xmm2
unpckhpd %xmm3, %xmm3            # xmm3 = xmm3[1,1]
mulsd %xmm5, %xmm3
subsd %xmm3, %xmm0
movq %rsp, %r15
movapd %xmm2, (%r15)
movsd %xmm0, 0x10(%r15)
movq %r15, %rdi
callq 0x5c8e
addq $0x18, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x5ce4
xorpd %xmm1, %xmm1
movq %rsp, %rsi
ucomisd %xmm0, %xmm1
jbe 0x5835
movq %rbx, %rdi
callq 0x5b94
jmp 0x5845
movsd 0x8c3(%rip), %xmm0      # 0x6100
movq %rbx, %rdi
callq 0x5c12
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/Scene.cpp
// Function: rt::Scene::removeObj(int)
void Scene::removeObj(int index) {
    if (index >= size) {
        printf("RTError: Scene::removeObj is out of range!");
        return;
    }
    delete objects[index];
    objects.erase(objects.begin() + index);
    --size;
}

// Assembly:
cmpl %esi, 0x18(%rdi)
jle 0x5947
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %r14
movq (%rdi), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x5930
movq (%rdi), %rax
callq *0x8(%rax)
movq (%rbx), %rax
leaq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq 0x59e0
decl 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xae4(%rip), %rdi       # 0x6432
xorl %eax, %eax
jmp 0x2040
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/Scene.cpp
// Function: rt::Scene::getObj(int) const
RTObject* Scene::getObj(int index) const {
    if (index >= size) {
        printf("RTError: Scene::getObj is out of range!");
        return NULL;
    }
    return objects[index];
}

// Assembly:
pushq %rbx
cmpl %esi, 0x18(%rdi)
jle 0x596c
movslq %esi, %rax
movq (%rdi), %rcx
movq (%rcx,%rax,8), %rbx
jmp 0x597c
leaq 0xaea(%rip), %rdi       # 0x645d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2040
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Aries-orz[P]Ari-RayTracing/src/Scene.cpp
// Function: rt::Scene::clear()
void Scene::clear() {
    for (int i=0; i<size; ++i)
        delete objects[i];
    objects.clear();
    size = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movslq 0x18(%rbx), %rcx
movq (%rbx), %rax
cmpq %rcx, %r14
jge 0x59ac
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x59a7
movq (%rdi), %rax
callq *0x8(%rax)
incq %r14
jmp 0x598c
cmpq %rax, 0x8(%rbx)
je 0x59b6
movq %rax, 0x8(%rbx)
andl $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/exercises/ex16_47.cc
// Function: func_rvalue(int&&, int&&)
void func_rvalue(int&& lhs, int&& rhs)
{
	// allocate enough space
	std::allocator<int> alloc;
	int* data = alloc.allocate(3);

	// move into the spaced newly allocated
	alloc.construct(data     , lhs);
	alloc.construct(data + 1 , 0);
	alloc.construct(data + 2 , rhs);

	// print
	for (auto p = data; p != data + 3;  ++p)
		std::cout << *p << "\n";

	// destroy and deallocation
	for (auto p = data + 3; p != data; --p)
		alloc.destroy(p);

	alloc.deallocate(data, 3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0xc
popq %rdi
callq 0x1080
movq %rax, %rbx
movl (%r15), %eax
movl %eax, (%rbx)
andl $0x0, 0x4(%rbx)
movl (%r14), %eax
movl %eax, 0x8(%rbx)
xorl %r12d, %r12d
movq 0x2cdd(%rip), %r14      # 0x3fd8
leaq 0xd0f(%rip), %r15       # 0x2011
cmpq $0xc, %r12
je 0x1325
movl (%rbx,%r12), %esi
movq %r14, %rdi
callq 0x10b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x1070
addq $0x4, %r12
jmp 0x1302
pushq $0xc
popq %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1090
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/Rock.cpp
// Function: Rock::fight(Tool&)
char Rock::fight(Tool & toolIn)
{
	//Temporary strength holders
	int tempRockStrength = this->strength;
	int tempToolInStrength = toolIn.getStrength();

	char outcome;

	//Rock vs. Scissors
	if (toolIn.getType() == 's') {
		tempRockStrength *= 2; //rock is strong against scissors, so strength is doubled
		tempToolInStrength /= 2; //scissors are weak to rock, so strength is halved
		outcome = compareStrength(tempRockStrength, tempToolInStrength); //compare
	}

	//Rock vs. Paper
	else if (toolIn.getType() == 'p') {
		tempRockStrength /= 2; //rock is weak to paper, so strength is halved
		tempToolInStrength *= 2;//paper is strong to rock, so strength is doubled
		outcome = compareStrength(tempRockStrength, tempToolInStrength); //compare
	}

	//Rock vs. Rock
	else {
		outcome = compareStrength(tempRockStrength, tempToolInStrength); //no temporary modifiers, compare
	}

	cout << this->longType << " strength: " << this->strength << " (temp: " << tempRockStrength << ")" << endl;
	cout << toolIn.getLongType() << " strength: " << toolIn.getStrength() << " (temp: " << tempToolInStrength << ")"  << endl;

	return outcome;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
movl 0x8(%rdi), %r15d
movq %rsi, %rdi
callq 0x240e
movl %eax, %ebx
movq %r14, %rdi
callq 0x240a
cmpb $0x73, %al
jne 0x253c
addl %r15d, %r15d
pushq $0x2
popq %rcx
movl %ebx, %eax
cltd
idivl %ecx
movl %eax, %ebx
movq %r12, %rdi
movl %r15d, %esi
movl %eax, %edx
jmp 0x2565
movq %r14, %rdi
callq 0x240a
cmpb $0x70, %al
jne 0x255d
pushq $0x2
popq %rcx
movl %r15d, %eax
cltd
idivl %ecx
addl %ebx, %ebx
movl %eax, %r15d
movq %r12, %rdi
movl %eax, %esi
jmp 0x2563
movq %r12, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x2412
movb %al, 0x7(%rsp)
leaq 0x10(%r12), %rsi
movq 0x4a56(%rip), %r13      # 0x6fd0
movq %r13, %rdi
callq 0x2100
leaq 0x1d06(%rip), %rbp      # 0x428f
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2130
movl 0x8(%r12), %esi
movq %rax, %rdi
callq 0x2190
leaq 0x1a62(%rip), %r12      # 0x400a
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
movl %r15d, %esi
callq 0x2190
leaq 0x1b06(%rip), %r15      # 0x40cb
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x2428
movq %r13, %rdi
movq %rax, %rsi
callq 0x2100
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2130
movq %rax, %r13
movq %r14, %rdi
callq 0x240e
movq %r13, %rdi
movl %eax, %esi
callq 0x2190
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebx, %esi
callq 0x2190
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movb 0x7(%rsp), %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/Paper.cpp
// Function: Paper::fight(Tool&)
char Paper::fight(Tool &toolIn)
{
	//Temporary strength holders
	int tempPaperStrength = this->strength;
	int tempToolInStrength = toolIn.getStrength();

	char outcome;

	//Paper vs Rock
	if (toolIn.getType() == 'r') {
		tempPaperStrength *= 2; //paper is strong against rock, so strength is doubled
		tempToolInStrength /= 2; //rock is weak to paper, so strength is halved
		outcome = compareStrength(tempPaperStrength, tempToolInStrength); //compare
	}

	//Paper vs. Scissors
	else if (toolIn.getType() == 's') {
		tempPaperStrength /= 2; //paper is weak to scissors, so strength is halved
		tempToolInStrength *= 2;//scissors are strong to paper, so strength is doubled
		outcome = compareStrength(tempPaperStrength, tempToolInStrength); //compare
	}

	//Paper vs. Paper
	else {
		outcome = compareStrength(tempPaperStrength, tempToolInStrength); //no temporary modifiers, compare
	}

	cout << this->longType << " strength: " << this->strength << " (temp: " << tempPaperStrength << ")" << endl;
	cout << toolIn.getLongType() << " strength: " << toolIn.getStrength() << " (temp: " << tempToolInStrength << ")"  << endl;

	return outcome;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
movl 0x8(%rdi), %r15d
movq %rsi, %rdi
callq 0x240e
movl %eax, %ebx
movq %r14, %rdi
callq 0x240a
cmpb $0x72, %al
jne 0x2754
addl %r15d, %r15d
pushq $0x2
popq %rcx
movl %ebx, %eax
cltd
idivl %ecx
movl %eax, %ebx
movq %r12, %rdi
movl %r15d, %esi
movl %eax, %edx
jmp 0x277d
movq %r14, %rdi
callq 0x240a
cmpb $0x73, %al
jne 0x2775
pushq $0x2
popq %rcx
movl %r15d, %eax
cltd
idivl %ecx
addl %ebx, %ebx
movl %eax, %r15d
movq %r12, %rdi
movl %eax, %esi
jmp 0x277b
movq %r12, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x2412
movb %al, 0x7(%rsp)
leaq 0x10(%r12), %rsi
movq 0x483e(%rip), %r13      # 0x6fd0
movq %r13, %rdi
callq 0x2100
leaq 0x1aee(%rip), %rbp      # 0x428f
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2130
movl 0x8(%r12), %esi
movq %rax, %rdi
callq 0x2190
leaq 0x184a(%rip), %r12      # 0x400a
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
movl %r15d, %esi
callq 0x2190
leaq 0x18ee(%rip), %r15      # 0x40cb
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x2428
movq %r13, %rdi
movq %rax, %rsi
callq 0x2100
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2130
movq %rax, %r13
movq %r14, %rdi
callq 0x240e
movq %r13, %rdi
movl %eax, %esi
callq 0x2190
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebx, %esi
callq 0x2190
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movb 0x7(%rsp), %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/Scissor.cpp
// Function: Scissor::fight(Tool&)
char Scissor::fight(Tool &toolIn)
{
	// Init variables
	char outcome;
	// Temporary strength values
	int tempScissorStr;
	int tempToolStr;

	// Scissor vs Rock
	if (toolIn.getType() == 'r')
	{
		// Rock is strong vs scissor
		tempScissorStr = strength / 2;
		tempToolStr = toolIn.getStrength() * 2;
	}
	// Scissor vs paper
	else if (toolIn.getType() == 'p')
	{
		// Scissor is strong vs paper
		tempScissorStr = strength * 2;
		tempToolStr = toolIn.getStrength() / 2;
	}
	else
	{
		tempScissorStr = strength;
		tempToolStr = toolIn.getStrength();
	}

	// Run the comparison
	outcome = compareStrength(tempScissorStr,
		tempToolStr);

	cout << this->longType << " strength: " << this->strength << " (temp: " << tempScissorStr << ")" << endl;
	cout << toolIn.getLongType() << " strength: " << toolIn.getStrength() << " (temp: " << tempToolStr << ")"  << endl;

	// Return variable
	return outcome;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq 0x240a
cmpb $0x72, %al
jne 0x2968
movl 0x8(%r15), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %r12d
movq %rbx, %rdi
callq 0x240e
movl %eax, %ebp
addl %eax, %ebp
jmp 0x2995
movq %rbx, %rdi
callq 0x240a
movl 0x8(%r15), %r12d
cmpb $0x70, %al
jne 0x298b
addl %r12d, %r12d
movq %rbx, %rdi
callq 0x240e
pushq $0x2
popq %rcx
cltd
idivl %ecx
jmp 0x2993
movq %rbx, %rdi
callq 0x240e
movl %eax, %ebp
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x2412
movb %al, 0x7(%rsp)
leaq 0x10(%r15), %rsi
movq 0x461f(%rip), %r13      # 0x6fd0
movq %r13, %rdi
callq 0x2100
leaq 0x18cf(%rip), %r14      # 0x428f
movq %rax, %rdi
movq %r14, %rsi
callq 0x2130
movl 0x8(%r15), %esi
movq %rax, %rdi
callq 0x2190
leaq 0x162c(%rip), %r15      # 0x400a
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
movl %r12d, %esi
callq 0x2190
leaq 0x16d0(%rip), %r12      # 0x40cb
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2428
movq %r13, %rdi
movq %rax, %rsi
callq 0x2100
movq %rax, %rdi
movq %r14, %rsi
callq 0x2130
movq %rax, %r14
movq %rbx, %rdi
callq 0x240e
movq %r14, %rdi
movl %eax, %esi
callq 0x2190
movq %rax, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebp, %esi
callq 0x2190
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movb 0x7(%rsp), %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::RPSGame()
RPSGame::RPSGame()
{
	humanPaperStrength = 100;
	humanRockStrength = 100;
	humanScissorStrength = 100;

	computerPaperStrength = 100;
	computerRockStrength = 100;
	computerScissorStrength = 100;
	std::chrono::seconds sleep(0);
	sleepDuration = sleep;

	srand(time(0));
}

// Assembly:
pushq %rax
leaq 0x42ec(%rip), %rax      # 0x6d70
movq %rax, (%rdi)
xorps %xmm0, %xmm0
andq $0x0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movaps 0x15a6(%rip), %xmm0     # 0x4040
movups %xmm0, 0x48(%rdi)
movaps 0x15ab(%rip), %xmm0     # 0x4050
movups %xmm0, 0x58(%rdi)
andq $0x0, 0x40(%rdi)
xorl %edi, %edi
callq 0x2110
movl %eax, %edi
popq %rax
jmp 0x2120
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::buildHumanTool(char)
Tool* RPSGame::buildHumanTool(char toolSymbol)
{
	switch (toolSymbol)
	{
	case 'r':
	{
		return new Rock(humanRockStrength);
	}
	case 'p':
	{
		return new Paper(humanPaperStrength);
	}
	default:
	{
		return new Scissor(humanScissorStrength);
	}
	}

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
pushq $0x30
popq %rdi
callq 0x2140
movq %rax, %rbx
cmpl $0x70, %ebp
je 0x2b14
cmpl $0x72, %ebp
jne 0x2b22
movl 0x50(%r14), %esi
movq %rbx, %rdi
callq 0x24a8
jmp 0x2b2e
movl 0x54(%r14), %esi
movq %rbx, %rdi
callq 0x26c0
jmp 0x2b2e
movl 0x58(%r14), %esi
movq %rbx, %rdi
callq 0x28a6
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2b3a
jmp 0x2b3a
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::buildComputerTool(char)
Tool* RPSGame::buildComputerTool(char toolSymbol)
{
	switch (toolSymbol)
	{
	case 'r':
	{
		return new Rock(computerRockStrength);
	}
	case 'p':
	{
		return new Paper(computerPaperStrength);
	}
	default:
	{
		return new Scissor(computerScissorStrength);
	}
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
pushq $0x30
popq %rdi
callq 0x2140
movq %rax, %rbx
cmpl $0x70, %ebp
je 0x2b7c
cmpl $0x72, %ebp
jne 0x2b8a
movl 0x5c(%r14), %esi
movq %rbx, %rdi
callq 0x24a8
jmp 0x2b96
movl 0x60(%r14), %esi
movq %rbx, %rdi
callq 0x26c0
jmp 0x2b96
movl 0x64(%r14), %esi
movq %rbx, %rdi
callq 0x28a6
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2ba2
jmp 0x2ba2
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::nextAIMove(int)
char RPSGame::nextAIMove(int inputRound)
{
	char outputTool;
	if (inputRound < 4) //if current round is less than 4, choose a random tool for the computer and let knowledgeBase increase
	{
		int randNumber;
		randNumber = rand() % (3 - 1 + 1) + 1; //random number between 1 and 3
		outputTool = choiceToTool(randNumber);
		return outputTool;
	}
	else
	{
		int randIndex;
		size_t maxIndex = knowledgeBase.size() - 1;
		randIndex = rand() % (static_cast<int>(maxIndex) - 0 + 1) + 0; //random index in knowledgeBase
		outputTool = knowledgeBase[randIndex];

		//Opposite tool selection
		if (outputTool == 's')
		{
			outputTool = 'r';
		}
		else if (outputTool == 'r')
		{
			outputTool = 'p';
		}
		else //output tool = 'p'
		{
			outputTool = 's';
		}

		return outputTool;
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x3, %esi
jg 0x2bfb
callq 0x2040
pushq $0x3
popq %rcx
cltd
idivl %ecx
leal 0x1(%rdx), %esi
movq (%rbx), %rax
movq 0x18(%rax), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *%rax
movl 0x10(%rbx), %ebp
subl 0x8(%rbx), %ebp
callq 0x2040
cltd
idivl %ebp
movslq %edx, %rax
movq 0x8(%rbx), %rcx
movb (%rcx,%rax), %al
xorl %ecx, %ecx
cmpb $0x72, %al
setne %cl
leal (%rcx,%rcx,2), %ecx
addl $0x70, %ecx
cmpb $0x73, %al
pushq $0x72
popq %rax
cmovnel %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::choiceMenu()
int RPSGame::choiceMenu()
{
	int userChoice;

	cout << "Choose an option below: " << endl;
	cout << "1) Rock" << endl;
	cout << "2) Paper" << endl;
	cout << "3) Scissors" << endl;
	cout << "4) Quit " << endl << endl;
	cout << "Enter option (1-4): ";
	cin >> userChoice;
	userChoice = validateBetween(userChoice, 1, 4);
	return userChoice;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq 0x4134(%rip), %rbx      # 0x6fd0
leaq 0x1242(%rip), %rsi      # 0x40e5
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0x1244(%rip), %rsi      # 0x40fe
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0x1235(%rip), %rsi      # 0x4106
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0x1227(%rip), %rsi      # 0x410f
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0x121c(%rip), %rsi      # 0x411b
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %rax, %rdi
callq 0x20a0
leaq 0x1206(%rip), %rsi      # 0x4124
movq %rbx, %rdi
callq 0x2130
movq 0x40b3(%rip), %rdi      # 0x6fe0
leaq 0xc(%rsp), %rbx
movq %rbx, %rsi
callq 0x20c0
movl (%rbx), %esi
pushq $0x1
popq %rdx
pushq $0x4
popq %rcx
callq 0x2f4e
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::validateBetween(int, int, int)
int RPSGame::validateBetween(int inputNumber, int validMin, int validMax) {
	while ((cin.fail() || inputNumber < validMin || inputNumber > validMax)) {
		cin.clear();
		cin.ignore(1000, '\n');
		cout << "Please enter a valid integer >= " << validMin << " or <=  " << validMax << " : " << endl;
		cin >> inputNumber;
	}
	return inputNumber;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
movq 0x4075(%rip), %r15      # 0x6fe0
leaq 0x1381(%rip), %r14      # 0x42f3
leaq 0x139b(%rip), %r12      # 0x4314
leaq 0x139d(%rip), %r13      # 0x431d
movq (%r15), %rax
movq -0x18(%rax), %rdi
testb $0x5, 0x20(%r15,%rdi)
jne 0x2fa1
movl 0x4(%rsp), %eax
cmpl %ebp, %eax
setge %cl
cmpl %ebx, %eax
setle %dl
testb %dl, %cl
jne 0x300e
addq %r15, %rdi
xorl %esi, %esi
callq 0x2180
movl $0x3e8, %esi            # imm = 0x3E8
movq %r15, %rdi
pushq $0xa
popq %rdx
callq 0x20d0
movq 0x400e(%rip), %rdi      # 0x6fd0
movq %r14, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebp, %esi
callq 0x2190
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebx, %esi
callq 0x2190
movq %rax, %rdi
movq %r13, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x4(%rsp), %rsi
callq 0x20c0
jmp 0x2f80
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/LifeAlgorithm[P]RockPaperScissors/RPSGame.cpp
// Function: RPSGame::mainMenu()
void RPSGame::mainMenu()
{
	bool runMain = true;
	int mainInput;

	while (runMain)
	{

		screenClear();
		cout << "Welcome to Rock Paper Scissors! " << "Choose an option below: " << endl << endl;
		cout << "1) Start New Game" << endl;
		cout << "2) Tool Settings" << endl;
		cout << "3) Quit" << endl << endl;

		cout << "Enter option (1-3): ";
		cin >> mainInput;
		mainInput = validateBetween(mainInput, 1, 3);

		switch (mainInput)
		{
		case 1: //Start new game
		{
			playGame();
			break;
		}
		case 2:
		{
			toolSettingsMenu();
			screenClear();
			break;
		}
		case 3:
		{
			runMain = false;
			cout << "Goodbye!" << endl;
		}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x130b(%rip), %r14      # 0x433e
movq 0x3f96(%rip), %r15      # 0x6fd0
leaq 0x4(%rsp), %r13
pushq $0x1
popq %rbp
pushq $0x3
popq %r12
movq %r14, %rdi
callq 0x20e0
movq %r15, %rdi
leaq 0x10e1(%rip), %rsi      # 0x4139
callq 0x2130
movq %rax, %rdi
leaq 0x107e(%rip), %rsi      # 0x40e5
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x10d4(%rip), %rsi      # 0x415a
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x10cf(%rip), %rsi      # 0x416c
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x10c9(%rip), %rsi      # 0x417d
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x10b2(%rip), %rsi      # 0x4185
callq 0x2130
movq 0x3f01(%rip), %rdi      # 0x6fe0
movq %r13, %rsi
callq 0x20c0
movl 0x4(%rsp), %esi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x2f4e
movl %eax, 0x4(%rsp)
cmpl $0x1, %eax
je 0x3123
cmpl $0x2, %eax
je 0x310e
cmpl $0x3, %eax
jne 0x3046
jmp 0x3131
movq %rbx, %rdi
callq 0x315c
movq %r14, %rdi
callq 0x20e0
jmp 0x3046
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
jmp 0x3046
movq 0x3e98(%rip), %rdi      # 0x6fd0
leaq 0x105b(%rip), %rsi      # 0x419a
callq 0x2130
movq %rax, %rdi
callq 0x20a0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/pentago/agentab.cpp
// Function: Morat::Pentago::AgentAB::move_stats[abi:cxx11](std::vector<Morat::Pentago::Move, std::allocator<Morat::Pentago::Move>>) const
std::string AgentAB::move_stats(vecmove moves) const {
	std::string s = "";

	Board b = rootboard;
	for(vecmove::iterator m = moves.begin(); m != moves.end(); ++m)
		b.move(*m);

	for(MoveIterator move(b); !move.done(); ++move){
		s += "move: " + move->to_s() + ", ";
		if(const Node * n = tt_get(move.board())) {
			s += n->to_s() + "\n";
		} else {
			s += "unknown\n";
		}
	}
	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
leaq 0x15226(%rip), %rsi     # 0x1f819
movq %rdx, %r15
movq %rsp, %rdx
movq %rdi, %rbx
callq 0x5130
movq 0x30(%r14), %rax
leaq 0xb0(%rsp), %r12
movq %rax, 0x20(%r12)
vmovups 0x10(%r14), %ymm0
vmovups %ymm0, (%r12)
movq (%r15), %r13
cmpq 0x8(%r15), %r13
je 0xa63d
movzwl (%r13), %esi
movq %r12, %rdi
vzeroupper
callq 0xad6a
addq $0x2, %r13
jmp 0xa621
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
pushq $-0x1
popq %rdx
vzeroupper
callq 0xb2ac
leaq 0x90(%rsp), %r13
leaq 0x50(%rsp), %r15
leaq 0x70(%rsp), %rbp
movq %rsp, %r12
cmpb $0x24, 0x30(%rsp)
jge 0xa72f
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0xabfe
leaq 0x15bc6(%rip), %rsi     # 0x2024d
movq %r15, %rdi
movq %r13, %rdx
callq 0xaac0
leaq 0x15abb(%rip), %rdx     # 0x20154
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7b4d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5730
movq %rbp, %rdi
callq 0x5170
movq %r15, %rdi
callq 0x5170
movq %r13, %rdi
callq 0x5170
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xa5aa
testq %rax, %rax
je 0xa713
movq %r15, %rdi
movq %rax, %rsi
callq 0xaefa
leaq 0x1512d(%rip), %rdx     # 0x1f818
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7b4d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5730
movq %rbp, %rdi
callq 0x5170
movq %r15, %rdi
callq 0x5170
jmp 0xa722
leaq 0x15b3a(%rip), %rsi     # 0x20254
movq %rbx, %rdi
callq 0x56e0
movq %r12, %rdi
callq 0xb372
jmp 0xa668
leaq 0x38(%rsp), %rdi
callq 0xb916
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa7bc
jmp 0xa779
jmp 0xa779
movq %rax, %r14
jmp 0xa766
leaq 0x70(%rsp), %rdi
movq %rax, %r14
callq 0x5170
leaq 0x50(%rsp), %rdi
jmp 0xa79d
jmp 0xa779
movq %rax, %r14
jmp 0xa795
movq %rax, %r14
jmp 0xa78b
movq %rax, %r14
jmp 0xa7a2
leaq 0x70(%rsp), %rdi
movq %rax, %r14
callq 0x5170
leaq 0x50(%rsp), %rdi
callq 0x5170
leaq 0x90(%rsp), %rdi
callq 0x5170
leaq 0x38(%rsp), %rdi
callq 0xb916
movq %rbx, %rdi
callq 0x5170
movq %r14, %rdi
callq 0x5690
movq %rax, %r14
jmp 0xa7ac
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/pentago/agentab.cpp
// Function: Morat::Pentago::AgentAB::get_pv() const
std::vector<Move> AgentAB::get_pv() const {
	vecmove pv;

	Board b = rootboard;
	int i = 20;
	while (i--) {
		Move m = return_move(b);
		if(m == M_UNKNOWN || m == M_RESIGN)
			break;
		pv.push_back(m);
		bool move_success = b.move(m);
		assert(move_success);
	}

	if(pv.size() == 0)
		pv.push_back(Move(M_RESIGN));

	return pv;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
vxorps %xmm0, %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
leaq 0x10(%rsp), %r15
movq %rsi, %r14
movq %rdi, %rbx
vmovups %xmm0, (%rdi)
movq 0x30(%rsi), %rax
movq %rax, 0x20(%r15)
vmovups 0x10(%rsi), %ymm0
vmovups %ymm0, (%r15)
pushq $-0x14
popq %rbp
leaq 0xe(%rsp), %r12
testl %ebp, %ebp
je 0xa934
movq %r14, %rdi
movq %r15, %rsi
vzeroupper
callq 0xa7c2
movw %ax, 0xe(%rsp)
andl $0xfd, %eax
cmpw $0xfc, %ax
je 0xa934
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb430
movzwl 0xe(%rsp), %esi
movq %r15, %rdi
callq 0xad6a
testb %al, %al
je 0xa965
incl %ebp
jmp 0xa8f2
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
jne 0xa952
leaq 0xe(%rsp), %rsi
movw $0xefe, (%rsi)          # imm = 0xEFE
movq %rbx, %rdi
vzeroupper
callq 0xbdb8
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
leaq 0x158d4(%rip), %rdi     # 0x20240
leaq 0x15851(%rip), %rsi     # 0x201c4
leaq 0x158e3(%rip), %rcx     # 0x2025d
movl $0xb9, %edx
callq 0x5220
jmp 0xa988
jmp 0xa988
movq %rbx, %rdi
movq %rax, %r14
callq 0x947e
movq %r14, %rdi
callq 0x5690
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/pentago/move.h
// Function: Morat::Pentago::Move::to_s[abi:cxx11]() const
std::string to_s() const {
		if(l == M_UNKNOWN) return "unknown";
		if(l == M_NONE)    return "none";
		if(l == M_SWAP)    return "swap";
		if(l == M_RESIGN)  return "resign";

		return std::string() + char(y() + 'a') + to_str(x() + 1) + char(r + 's');
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
movzbl (%rsi), %eax
movq %rdi, %rbx
leal -0xfc(%rax), %ecx
cmpl $0x3, %ecx
ja 0xac66
leaq 0x15507(%rip), %rax     # 0x20128
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x1566e(%rip), %rsi     # 0x2029f
jmp 0xac4c
leaq 0x15677(%rip), %rsi     # 0x202b1
jmp 0xac4c
leaq 0x15669(%rip), %rsi     # 0x202ac
jmp 0xac4c
leaq 0x1565b(%rip), %rsi     # 0x202a7
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x5130
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x50(%rsp), %rcx
cbtw
movb $0x6, %bpl
movq %rsi, %r14
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
idivb %bpl
addb $0x61, %al
movsbl %al, %edx
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x97e5
movsbl (%r14), %eax
idivb %bpl
movsbl %ah, %eax
incb %al
movsbl %al, %esi
leaq 0x20(%rsp), %rdi
callq 0xaae4
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rsp, %rdi
callq 0xab3b
movb 0x1(%r14), %al
addb $0x73, %al
movsbl %al, %edx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x97e5
movq %rsp, %rdi
callq 0x5170
leaq 0x20(%rsp), %rdi
callq 0x5170
leaq 0x60(%rsp), %rdi
callq 0x5170
leaq 0x40(%rsp), %rdi
callq 0x5170
jmp 0xac57
movq %rsp, %rdi
movq %rax, %rbx
callq 0x5170
jmp 0xad10
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5170
jmp 0xad1f
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5170
jmp 0xad2e
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x5170
movq %rbx, %rdi
callq 0x5690
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/pentago/agentab.h
// Function: Morat::Pentago::AgentAB::Node::to_s[abi:cxx11]() const
std::string to_s() const {
			return  "score " + to_str(score) +
					", depth " + to_str((int)depth) +
					", flag " + to_str((int)flag) +
					", best " + bestmove.to_s();
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rsi, %r14
movswl 0x8(%rsi), %esi
leaq 0x120(%rsp), %r15
movq %rdi, %rbx
movq %r15, %rdi
callq 0xb809
leaq 0x153d5(%rip), %rsi     # 0x202fc
leaq 0x60(%rsp), %rdi
movq %r15, %rdx
callq 0xaac0
leaq 0x153c8(%rip), %rdx     # 0x20303
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x7b4d
movzbl 0xc(%r14), %esi
leaq 0x40(%rsp), %rdi
callq 0xb860
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0xab3b
leaq 0x1538f(%rip), %rdx     # 0x2030c
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x7b4d
movzbl 0xd(%r14), %esi
leaq 0x20(%rsp), %rdi
callq 0xb860
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0xab3b
leaq 0x15352(%rip), %rdx     # 0x20314
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x7b4d
addq $0xa, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0xabfe
leaq 0x100(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0xab3b
movq %rsp, %rdi
callq 0x5170
leaq 0x100(%rsp), %rdi
callq 0x5170
leaq 0xe0(%rsp), %rdi
callq 0x5170
leaq 0x20(%rsp), %rdi
callq 0x5170
leaq 0xc0(%rsp), %rdi
callq 0x5170
leaq 0xa0(%rsp), %rdi
callq 0x5170
leaq 0x40(%rsp), %rdi
callq 0x5170
leaq 0x80(%rsp), %rdi
callq 0x5170
leaq 0x60(%rsp), %rdi
callq 0x5170
leaq 0x120(%rsp), %rdi
callq 0x5170
movq %rbx, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
movq %rsp, %rdi
movq %rax, %rbx
callq 0x5170
jmp 0xb08d
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x5170
jmp 0xb09f
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x5170
jmp 0xb0b1
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5170
jmp 0xb0c0
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x5170
leaq 0xa0(%rsp), %rdi
callq 0x5170
leaq 0x40(%rsp), %rdi
callq 0x5170
leaq 0x80(%rsp), %rdi
callq 0x5170
leaq 0x60(%rsp), %rdi
callq 0x5170
leaq 0x120(%rsp), %rdi
callq 0x5170
movq %rbx, %rdi
callq 0x5690
movq %rax, %rbx
jmp 0xb0cd
movq %rax, %rbx
jmp 0xb0da
movq %rax, %rbx
jmp 0xb0e4
movq %rax, %rbx
jmp 0xb0f1
movq %rax, %rbx
jmp 0xb0fb
nop