LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::UTF16ToUTF8(unsigned short)
void UTF16ToUTF8(uint16_t utf16Char)
	{
		const uint8_t utf82 = 0xc0;	//-- 1100 0000
		const uint8_t utf83 = 0xe0;	//-- 1110 0000
		const uint8_t low6BitsMask = 0x3F;	//-- 0011 1111

		if (utf16Char <= 0x7F)
		{
			_outStringStream<<(char)utf16Char;
		}
		else if (utf16Char <= 0x7FF)
		{
			char a = utf82 | (utf16Char >> 6);
			char b = 0x80 | (utf16Char & low6BitsMask);

			_outStringStream << a << b;
		}
		else
		{
			char a = utf83 | (utf16Char >> 12);
			char b = 0x80 | ((utf16Char >> 6) & low6BitsMask);
			char c = 0x80 | (utf16Char & low6BitsMask);

			_outStringStream << a << b << c;
		}
	}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
cmpw $0x7f, %bx
ja 0x2bf27
addq $0x1100, %rdi           # imm = 0x1100
leaq 0x2(%rsp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
jmp 0x2bfb2
movzwl %bx, %ebp
cmpl $0x7ff, %ebp            # imm = 0x7FF
ja 0x2bf5e
movl %ebx, %eax
shrl $0x6, %eax
orb $-0x40, %al
andb $0x3f, %bl
orb $-0x80, %bl
addq $0x1100, %rdi           # imm = 0x1100
leaq 0x3(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
callq 0x132f0
leaq 0x4(%rsp), %rsi
jmp 0x2bfa8
movl %ebp, %eax
shrl $0xc, %eax
orb $-0x20, %al
shrl $0x6, %ebp
andb $0x3f, %bpl
orb $-0x80, %bpl
andb $0x3f, %bl
orb $-0x80, %bl
addq $0x1100, %rdi           # imm = 0x1100
leaq 0x5(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
callq 0x132f0
leaq 0x6(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x132f0
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x132f0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::UTF16ToUTF8(unsigned short, unsigned short)
void UTF16ToUTF8(uint16_t W1, uint16_t W2)
	{
		const uint8_t low6BitsMask = 0x3F;	//-- 0011 1111

		uint32_t utf16SurrogatePair = (((W1 - 0xD800) << 10) | (W2 - 0xDC00)) + 0x10000;

		char a = 0xF0 | (utf16SurrogatePair >> 18);
		char b = 0x80 | ((utf16SurrogatePair >> 12) & low6BitsMask);
		char c = 0x80 | ((utf16SurrogatePair >> 6) & low6BitsMask);
		char d = 0x80 | (utf16SurrogatePair & low6BitsMask);
		
		_outStringStream << a << b << c << d;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
shll $0xa, %esi
addl $0xfca00000, %esi       # imm = 0xFCA00000
leal -0xdc00(%rbx), %r14d
orl %esi, %r14d
leal 0x10000(%r14), %ebp
movl %ebp, %eax
shrl $0x12, %eax
orb $-0x10, %al
shrl $0xc, %ebp
andb $0x3f, %bpl
orb $-0x80, %bpl
shrl $0x6, %r14d
andb $0x3f, %r14b
orb $-0x80, %r14b
andb $0x3f, %bl
orb $-0x80, %bl
addq $0x1100, %rdi           # imm = 0x1100
leaq 0xc(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
callq 0x132f0
leaq 0xd(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x132f0
leaq 0xe(%rsp), %rsi
movb %r14b, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x132f0
leaq 0xf(%rsp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x132f0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/t0mm4rx[P]piscine_cpp/day03/ex03/NinjaTrap.cpp
// Function: NinjaTrap::NinjaTrap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
NinjaTrap::NinjaTrap(std::string name) : ClapTrap(name)
{
	this->hitPoints = 60;
	this->maxHit = 60;
	this->energyPoints = 120;
	this->maxEnergyPoints = 120;
	this->meleeAttackDamage = 60;
	this->rangedAttackDamage = 5;
	this->armorDamageReduction = 0;
	this->level = 1.0;
	std::cout << this->name << ": IIAAAA ! I'm a ninja !" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x38(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x2910
movq %rbx, %rdi
movq %r14, %rsi
callq 0x236c
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x2f8d
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2100
leaq 0x4da4(%rip), %rax      # 0x7d38
movq %rax, (%rbx)
movaps 0x2292(%rip), %xmm0     # 0x5230
movups %xmm0, 0x8(%rbx)
movabsq $0x50000003c, %rax      # imm = 0x50000003C
movq %rax, 0x40(%rbx)
movl $0x0, 0x48(%rbx)
movl $0x3f800000, 0x18(%rbx) # imm = 0x3F800000
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x500b(%rip), %rdi      # 0x7fd8
callq 0x2110
movq %rax, %r14
leaq 0x2264(%rip), %rsi      # 0x5240
movl $0x18, %edx
movq %rax, %rdi
callq 0x2110
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x3040
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2100
jmp 0x3040
movq %rax, %r14
movq %rbx, %rdi
callq 0x2588
movq %r14, %rdi
callq 0x2150
// File: /workspace/github_cpp_makefile_star2_O1/ian-howell[P]configparser/src/config_parser.cpp
// Function: Config::get_section(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::map<std::string, std::string> Config::get_section(const std::string& section_name)
{
    if (sections.count(section_name) == 0)
    {
        std::string error = "No such key: `" + section_name + "`";
        throw std::out_of_range(error);
    }
    return sections.at(section_name);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x3a74
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
je 0x2f33
movq %r15, %rdi
movq %r14, %rsi
callq 0x3480
movq %rbx, %rdi
movq %rax, %rsi
callq 0x36ee
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x20fe(%rip), %rsi      # 0x5038
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x33f7
leaq 0x214f(%rip), %rsi      # 0x50a0
movq %rbx, %rdi
callq 0x22d0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2f7a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2f86
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fb9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
movq %rsp, %rsi
movq %rax, %rdi
callq 0x2220
movq 0x4ff8(%rip), %rsi      # 0x7fd0
movq 0x4fe9(%rip), %rdx      # 0x7fc8
movq %r14, %rdi
callq 0x2290
movq %rax, %rbx
jmp 0x2ff7
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3025
movq 0x10(%rsp), %rsi
jmp 0x301d
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3025
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/ian-howell[P]configparser/src/config_parser.cpp
// Function: Config::dump(_IO_FILE*)
void Config::dump(FILE* log_file)
{
    // Set up iterators
    std::map<std::string, std::string>::iterator itr1;
    std::map<std::string, std::map<std::string, std::string> >::iterator itr2;
    for(itr2 = sections.begin(); itr2 != sections.end(); itr2++)
    {
        fprintf(log_file, "[%s]\n", itr2->first.c_str());
        for(itr1 = itr2->second.begin(); itr1 != itr2->second.end(); itr1++)
        {
            fprintf(log_file, "%s=%s\n", itr1->first.c_str(), itr1->second.c_str());
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x18(%rdi), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x30b8
movq %rsi, %rbx
leaq 0x1fec(%rip), %r13      # 0x504d
movq 0x20(%r15), %rdx
movq %rbx, %rdi
leaq 0x1fd8(%rip), %rsi      # 0x5047
xorl %eax, %eax
callq 0x21f0
movq 0x58(%r15), %rbp
leaq 0x48(%r15), %r12
cmpq %r12, %rbp
je 0x30a8
movq 0x20(%rbp), %rdx
movq 0x40(%rbp), %rcx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x21f0
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
cmpq %r12, %rax
jne 0x3083
movq %r15, %rdi
callq 0x2100
movq %rax, %r15
cmpq %r14, %rax
jne 0x3061
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ian-howell[P]configparser/src/main.cpp
// Function: main
int main()
{
    Config config("example1.ini");

    for (const auto& it : config["Example"])
    {
        std::cout << "`" << it.first << "` -> `" << it.second << "`\n";
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xef1(%rip), %rsi       # 0x50f6
leaq 0xef6(%rip), %rdx       # 0x5102
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x39e4
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0x242c
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x423d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xeb6(%rip), %rsi       # 0x5103
leaq 0xeb6(%rip), %rdx       # 0x510a
leaq 0x8(%rsp), %rdi
callq 0x39e4
leaq 0x48(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x302e
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4289
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x50(%rsp), %r15
movq 0x10(%r15), %rbx
cmpq %r15, %rbx
je 0x4313
movq 0x3d22(%rip), %r14      # 0x7fc0
leaq 0xe66(%rip), %r12       # 0x510b
leaq 0xe66(%rip), %r13       # 0x5112
movl $0x1, %edx
movq %r14, %rdi
leaq 0xde5(%rip), %rsi       # 0x50a0
callq 0x21a0
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r14, %rdi
callq 0x21a0
movq %rax, %rbp
movl $0x6, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x21a0
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
movq %rbp, %rdi
callq 0x21a0
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2100
movq %rax, %rbx
cmpq %r15, %rax
jne 0x42ac
leaq 0x48(%rsp), %rdi
callq 0x365c
leaq 0x78(%rsp), %rdi
callq 0x35d8
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4385
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x4385
movq %rax, %rbx
jmp 0x4385
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x438f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x438f
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x365c
leaq 0x78(%rsp), %rdi
callq 0x35d8
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::GetEncodedData(void*)
int GetEncodedData(void* dataOut)
	{
		int result;


		// deque
		v4l2_plane planes[VIDEO_MAX_PLANES];

		v4l2_buffer buffer = { 0 };
		buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
		buffer.memory = V4L2_MEMORY_MMAP;
		buffer.m.planes = planes;
		buffer.length = 1;

		int ret = ioctl(mfc_fd, VIDIOC_DQBUF, &buffer);
		if (ret != 0)
		{
			printf("Waiting on V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE buffer.\n");
			result = 0;
		}
		else
		{
			result = buffer.m.planes[0].bytesused;

			// Copy data
			BufferMapping mapping = outputBuffers[buffer.index];

			memcpy(dataOut, mapping.Start0, buffer.m.planes[0].bytesused);


			// Re-queue buffer
			ret = ioctl(mfc_fd, VIDIOC_QBUF, &buffer);
			if (ret != 0)
			{
				throw Exception("VIDIOC_QBUF failed.");
			}
		}

		return result;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x260, %rsp            # imm = 0x260
movq %rsi, %r15
movq %rdi, %r14
movl $0xc058560f, %eax       # imm = 0xC058560F
xorps %xmm0, %xmm0
leaq -0x80(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x30(%rdx)
movaps %xmm0, 0x40(%rdx)
movaps %xmm0, 0x20(%rdx)
movaps %xmm0, 0x10(%rdx)
movq $0x0, 0x50(%rdx)
movl $0x9, 0x4(%rdx)
movl $0x1, %ecx
movl %ecx, 0x3c(%rdx)
leaq -0x280(%rbp), %rsi
movq %rsi, 0x40(%rdx)
movl %ecx, 0x48(%rdx)
movl 0x8(%rdi), %edi
leaq 0x2(%rax), %rsi
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
je 0x32a0
leaq 0x2264(%rip), %rdi      # 0x54fd
callq 0x2160
jmp 0x32dd
leaq -0x80(%rbp), %r12
movq 0x40(%r12), %rax
movl (%rax), %ebx
movl (%r12), %eax
movq 0x38(%r14), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x20e0
movl 0x8(%r14), %edi
movl $0xc058560f, %esi       # imm = 0xC058560F
movq %r12, %rdx
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x32ef
movl %ebx, %eax
addq $0x260, %rsp            # imm = 0x260
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x24d7
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::~M2M()
~M2M()
	{
		// Stop output stream
		int val = (int)V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;

		int ret = ioctl(mfc_fd, VIDIOC_STREAMOFF, &val);
		if (ret != 0)
		{
			throw Exception("VIDIOC_STREAMOFF failed.");
		}

		// Stop input stream
		val = (int)V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;

		ret = ioctl(mfc_fd, VIDIOC_STREAMOFF, &val);
		if (ret != 0)
		{
			throw Exception("VIDIOC_STREAMOFF failed.");
		}


		close(mfc_fd);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq -0xc(%rbp), %rdx
movl $0x9, (%rdx)
movl 0x8(%rdi), %edi
movl $0x40045613, %esi       # imm = 0x40045613
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x336b
leaq -0xc(%rbp), %rdx
movl $0xa, (%rdx)
movl 0x8(%rbx), %edi
movl $0x40045613, %esi       # imm = 0x40045613
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x336b
movl 0x8(%rbx), %edi
callq 0x21f0
leaq 0x58(%rbx), %rdi
callq 0x3fe6
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x3356
callq 0x20f0
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x3364
callq 0x20f0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x8, %edi
callq 0x2090
movq %rax, %rbx
leaq 0x4a19(%rip), %rax      # 0x7d98
movq %rax, (%rbx)
movq 0x4c4f(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
leaq 0x1d94(%rip), %rsi      # 0x5127
leaq 0x2104(%rip), %rdx      # 0x549e
xorl %eax, %eax
callq 0x2120
leaq 0x49c8(%rip), %rsi      # 0x7d70
movq 0x4c39(%rip), %rdx      # 0x7fe8
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rdi
callq 0x3b18
nop
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::ApplyInputSettings()
void ApplyInputSettings()
	{
		// Apply capture settings
		v4l2_format format = { 0 };
		format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
		format.fmt.pix_mp.width = width;
		format.fmt.pix_mp.height = height;
		format.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12M;
		format.fmt.pix_mp.num_planes = 2;

		int io = ioctl(mfc_fd, VIDIOC_S_FMT, &format);
		if (io < 0)
		{
			throw Exception("VIDIOC_S_FMT failed.");
		}

		fprintf(stderr, "v4l2_format: width=%d, height=%d, pixelformat=0x%x\n",
			format.fmt.pix.width, format.fmt.pix.height, format.fmt.pix.pixelformat);


		v4l2_streamparm streamParm = { 0 };
		streamParm.type = format.type;
		streamParm.parm.capture.timeperframe.numerator = 1;
		streamParm.parm.capture.timeperframe.denominator = fps;

		io = ioctl(mfc_fd, VIDIOC_S_PARM, &streamParm);
		if (io < 0)
		{
			throw Exception("VIDIOC_S_PARM failed.");
		}

		fprintf(stderr, "capture.timeperframe: numerator=%d, denominator=%d\n",
			streamParm.parm.capture.timeperframe.numerator,
			streamParm.parm.capture.timeperframe.denominator);


		SetProfile();

		SetBitrate(bitrate);
		
		SetGroupOfPictures(gop);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, %rbx
movl $0xc0cc5616, %r15d      # imm = 0xC0CC5616
leaq -0xe8(%rbp), %r14
movl $0xd0, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20b0
movl $0xa, (%r14)
movl 0xc(%rbx), %eax
movl %eax, 0x8(%r14)
movl 0x10(%rbx), %eax
movl %eax, 0xc(%r14)
movl $0x32314d4e, 0x10(%r14) # imm = 0x32314D4E
movb $0x2, 0xbc(%r14)
movl 0x8(%rbx), %edi
leaq 0x3ffef(%r15), %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
js 0x3504
movq 0x4b85(%rip), %r15      # 0x7fd8
movq (%r15), %rdi
movl -0xe0(%rbp), %edx
movl -0xdc(%rbp), %ecx
movl -0xd8(%rbp), %r8d
leaq 0x1e7d(%rip), %rsi      # 0x52ed
xorl %eax, %eax
callq 0x2120
leaq -0x1b4(%rbp), %r14
movl $0xcc, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20b0
movl -0xe8(%rbp), %eax
movl %eax, (%r14)
movl $0x1, 0xc(%r14)
movl 0x14(%rbx), %eax
movl %eax, 0x10(%r14)
movl 0x8(%rbx), %edi
movl $0xc0cc5616, %esi       # imm = 0xC0CC5616
movq %r14, %rdx
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
js 0x3509
movq (%r15), %rdi
movl -0x1a8(%rbp), %edx
movl -0x1a4(%rbp), %ecx
leaq 0x1e66(%rip), %rsi      # 0x5337
xorl %eax, %eax
callq 0x2120
movq %rbx, %rdi
callq 0x3b44
movl 0x18(%rbx), %esi
movq %rbx, %rdi
callq 0x3bb8
movl 0x1c(%rbx), %esi
movq %rbx, %rdi
callq 0x3c28
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2543
callq 0x250d
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::ApplyOutputSettings()
void ApplyOutputSettings()
	{
		// Apply capture settings
		v4l2_format format = { 0 };
		format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
		format.fmt.pix_mp.width = width;
		format.fmt.pix_mp.height = height;
		format.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_H264;
		format.fmt.pix_mp.plane_fmt[0].sizeimage = width * height * 4;

		int io = ioctl(mfc_fd, VIDIOC_S_FMT, &format);
		if (io < 0)
		{
			throw Exception("VIDIOC_S_FMT failed.");
		}

		fprintf(stderr, "v4l2_format: width=%d, height=%d, pixelformat=0x%x\n",
			format.fmt.pix.width, format.fmt.pix.height, format.fmt.pix.pixelformat);

	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %r14
movl $0xd0, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20b0
movl $0x9, (%r14)
movl 0xc(%rbx), %eax
movl %eax, 0x8(%r14)
movl 0x10(%rbx), %ecx
movl %ecx, 0xc(%r14)
movl $0x34363248, 0x10(%r14) # imm = 0x34363248
imull %ecx, %eax
shll $0x2, %eax
movl %eax, 0x1c(%r14)
movl 0x8(%rbx), %edi
movl $0xc0d05605, %esi       # imm = 0xC0D05605
movq %r14, %rdx
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
js 0x37e3
movq 0x4825(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl -0xd8(%rbp), %edx
movl -0xd4(%rbp), %ecx
movl -0xd0(%rbp), %r8d
leaq 0x1b1d(%rip), %rsi      # 0x52ed
xorl %eax, %eax
callq 0x2120
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2687
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::SetProfile()
void SetProfile()
	{
		//V4L2_CID_MPEG_VIDEO_H264_PROFILE = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH
		//V4L2_CID_MPEG_VIDEO_H264_LEVEL = V4L2_MPEG_VIDEO_H264_LEVEL_4_0

#if 1
		v4l2_ext_control ctrl[2] = { 0 };
		ctrl[0].id = V4L2_CID_MPEG_VIDEO_H264_PROFILE;
		ctrl[0].value = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN;

		ctrl[1].id = V4L2_CID_MPEG_VIDEO_H264_LEVEL;
		ctrl[1].value = V4L2_MPEG_VIDEO_H264_LEVEL_4_0;

		v4l2_ext_controls ctrls = { 0 };
		ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
		ctrls.count = 2;
		ctrls.controls = ctrl;

		int io = ioctl(mfc_fd, VIDIOC_S_EXT_CTRLS, &ctrls);
		if (io != 0)
		{
			throw Exception("VIDIOC_S_EXT_CTRLS failed.");
		}
#endif

	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movl $0x990a6b, (%rax)       # imm = 0x990A6B
movl $0x2, 0xc(%rax)
movl $0x990a67, 0x14(%rax)   # imm = 0x990A67
movl $0xb, 0x20(%rax)
leaq -0x20(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movabsq $0x200990000, %rcx      # imm = 0x200990000
movq %rcx, (%rdx)
movq %rax, 0x18(%rdx)
movl 0x8(%rdi), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x3bb2
addq $0x50, %rsp
popq %rbp
retq
callq 0x27df
nop
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::SetBitrate(int)
void SetBitrate(int value)
	{
		v4l2_ext_control ctrl[2] = { 0 };
		ctrl[0].id = V4L2_CID_MPEG_VIDEO_BITRATE;
		ctrl[0].value = value;

		ctrl[1].id = V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE;
		ctrl[1].value = 1;

		v4l2_ext_controls ctrls = { 0 };
		ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
		ctrls.count = 2;
		ctrls.controls = ctrl;

		int io = ioctl(mfc_fd, VIDIOC_S_EXT_CTRLS, &ctrls);
		if (io != 0)
		{
			throw Exception("VIDIOC_S_EXT_CTRLS failed.");
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movl $0x9909cf, (%rax)       # imm = 0x9909CF
movl %esi, 0xc(%rax)
movl $0x9909d7, 0x14(%rax)   # imm = 0x9909D7
movl $0x1, 0x20(%rax)
leaq -0x20(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movabsq $0x200990000, %rcx      # imm = 0x200990000
movq %rcx, (%rdx)
movq %rax, 0x18(%rdx)
movl 0x8(%rdi), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x3c22
addq $0x50, %rsp
popq %rbp
retq
callq 0x2815
nop
// File: /workspace/github_cpp_makefile_star2_O1/OtherCrashOverride[P]xu4enc/./M2M.h
// Function: M2M::SetGroupOfPictures(int)
void SetGroupOfPictures(int value)
	{
		v4l2_ext_control ctrl = { 0 };
		ctrl.id = V4L2_CID_MPEG_VIDEO_GOP_SIZE;
		ctrl.value = value;

		v4l2_ext_controls ctrls = { 0 };
		ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
		ctrls.count = 1;
		ctrls.controls = &ctrl;

		int io = ioctl(mfc_fd, VIDIOC_S_EXT_CTRLS, &ctrls);
		if (io != 0)
		{
			throw Exception("VIDIOC_S_EXT_CTRLS failed.");
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
xorps %xmm0, %xmm0
leaq -0x20(%rbp), %rax
movaps %xmm0, (%rax)
movl $0x0, 0x10(%rax)
movl $0x9909cb, (%rax)       # imm = 0x9909CB
movl %esi, 0xc(%rax)
leaq -0x40(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movabsq $0x100990000, %rcx      # imm = 0x100990000
movq %rcx, (%rdx)
movq %rax, 0x18(%rdx)
movl 0x8(%rdi), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
jne 0x3c7f
addq $0x40, %rsp
popq %rbp
retq
callq 0x284b
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: splitString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int splitString(const std::string& str, std::vector<std::string>& ret, const std::string& delim)
{
	if (str.empty())
	{
		return 0;
	}

	string tmp;
	string::size_type start = 0U;
	string::size_type end = str.find(delim);
	while (end != std::string::npos)
	{
		tmp = str.substr(start, end - start);
		ret.push_back(tmp);
		start = end + delim.length();
		end = str.find(delim, start);
	}

	tmp = str.substr(start, end);

	if (!tmp.empty())
	{
		ret.push_back(tmp);
		tmp.clear();
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x20(%rsp)
cmpq $0x0, 0x8(%rdi)
je 0x3ae3
movq %rdx, %r15
movq %rdi, %r14
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %r12d, %r12d
xorl %edx, %edx
callq 0x3630
cmpq $-0x1, %rax
je 0x3a62
movq %rax, %rbx
xorl %r12d, %r12d
leaq 0x28(%rsp), %r13
movq %rsp, %rbp
movq %rbx, %rcx
subq %r12, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x33b0
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3450
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a34
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0xbcd6
movq (%r15), %rsi
movq 0x8(%r15), %rcx
movq %rbx, %r12
addq %rcx, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x3630
movq %rax, %rbx
cmpq $-0x1, %rax
jne 0x39f9
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x33b0
movq %rsp, %rdi
leaq 0x28(%rsp), %rbx
movq %rbx, %rsi
callq 0x3450
movq (%rbx), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3aa3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3390
cmpq $0x0, 0x8(%rsp)
je 0x3ac8
movq %rsp, %rsi
movq 0x20(%rsp), %rdi
callq 0xbcd6
movq $0x0, 0x8(%rsp)
movq (%rsp), %rax
movb $0x0, (%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3ae3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3afa
jmp 0x3afa
jmp 0x3afa
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3b18
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorFindAll(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>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<int> vectorFindAll(const vector<string>& v, string value){
	vector<int>  indexVector;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if(v[i]==value){
            indexVector.push_back(i);
		}
	}
	if(indexVector.size()==0){
		indexVector.push_back(-1);
	}

	return indexVector;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %r13
subq (%rsi), %r13
shrq $0x5, %r13
movl $0x0, (%rsp)
testl %r13d, %r13d
jle 0x3d38
movq %rsi, %r14
movq %rdx, %r15
xorl %ebp, %ebp
movq %rsp, %r12
movslq %ebp, %rcx
movq (%r14), %rax
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %rdx
cmpq 0x8(%r15), %rdx
jne 0x3d2b
testq %rdx, %rdx
je 0x3d0a
addq %rcx, %rax
movq (%r15), %rsi
movq (%rax), %rdi
callq 0x33a0
testl %eax, %eax
jne 0x3d2b
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3d20
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3d2b
movq %rbx, %rdi
movq %r12, %rdx
callq 0xc896
movl (%rsp), %ebp
incl %ebp
movl %ebp, (%rsp)
cmpl %r13d, %ebp
jl 0x3cde
movq 0x8(%rbx), %rsi
cmpq (%rbx), %rsi
jne 0x3d6c
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
cmpq 0x10(%rbx), %rsi
je 0x3d5f
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3d6c
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0xc9d2
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3d80
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3d97
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3390
movq %r14, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorNonZeroAllIndex(std::vector<int, std::allocator<int>> const&)
vector<int> vectorNonZeroAllIndex(const vector<int>& v){
	vector<int> indexVector;
	int vs=v.size();
	for (int i = 0; i < vs; i++){
		if(v[i]>0){
			indexVector.push_back(i);
		}
	}
	if(indexVector.size()==0){
		indexVector.push_back(-1);
	}
	return indexVector;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %r12
subq (%rsi), %r12
shrq $0x2, %r12
movl $0x0, (%rsp)
testl %r12d, %r12d
jle 0x3e42
movq %rsi, %r14
xorl %eax, %eax
movq %rsp, %r15
movslq %eax, %rcx
movq (%r14), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jle 0x3e35
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3e2a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3e35
movq %rbx, %rdi
movq %r15, %rdx
callq 0xc896
movl (%rsp), %eax
incl %eax
movl %eax, (%rsp)
cmpl %r12d, %eax
jl 0x3e08
movq 0x8(%rbx), %rsi
cmpq (%rbx), %rsi
jne 0x3e76
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
cmpq 0x10(%rbx), %rsi
je 0x3e69
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3e76
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0xc9d2
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3e87
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e9e
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3390
movq %r14, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorNonZeroExcept(std::vector<int, std::allocator<int>> const&, 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>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int vectorNonZeroExcept(const vector<int>& v, const vector<string>& vString, string ss){
	int vs=v.size();
	srand(unsigned(time(NULL)));
	int index=rand()%vs;

	while(v[index]==0 || vString[index]==ss){
		srand(unsigned(time(NULL)));
		index=rand()%vs;
	}
	return index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %r12
subq (%rdi), %r12
shrq $0x2, %r12
xorl %edi, %edi
callq 0x3330
movl %eax, %edi
callq 0x3350
callq 0x30f0
cltd
idivl %r12d
movslq %edx, %rax
movq (%r15), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x3ec2
movl %edx, %ebp
movq (%r14), %rcx
shlq $0x5, %rax
movq 0x8(%rcx,%rax), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x3f10
testq %rdx, %rdx
je 0x3ec2
addq %rax, %rcx
movq (%rbx), %rsi
movq (%rcx), %rdi
callq 0x33a0
testl %eax, %eax
je 0x3ec2
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorMatchCount(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>>>> const&, 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>>>> const&)
vector<int> vectorMatchCount(const vector<string>& v1, const vector<string>& v2){
	int vs1=v1.size();
	int vs2=v2.size();

	vector<int> c(vs1,0);
	for (int i = 0; i < vs2; ++i)
	{
		for (int j = 0; j < vs1; ++j)
		{
			if(v2[i]==v1[j]){
				c[j]++;
				break;
			}
		}
	}
	return c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq 0x8(%rsi), %rax
subq (%rsi), %rax
shrq $0x5, %rax
movq 0x8(%rdx), %rbx
subq (%rdx), %rbx
shrq $0x5, %rbx
movq %rax, 0x20(%rsp)
movslq %eax, %rsi
leaq 0x44(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0xf(%rsp), %rcx
movq %rdi, 0x10(%rsp)
callq 0xbd70
movq %rbx, 0x18(%rsp)
testl %ebx, %ebx
jle 0x400b
movq (%r15), %rax
movq %rax, 0x38(%rsp)
movq (%r14), %rcx
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andq %rax, 0x18(%rsp)
movq 0x20(%rsp), %r12
andq %rax, %r12
addq $0x8, %rcx
movq %rcx, 0x30(%rsp)
xorl %ebp, %ebp
cmpl $0x0, 0x20(%rsp)
jle 0x4001
movq %rbp, %rax
shlq $0x5, %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax), %rbx
movq 0x8(%rcx,%rax), %r14
movq 0x30(%rsp), %r15
xorl %r13d, %r13d
cmpq (%r15), %r14
jne 0x3fea
testq %r14, %r14
je 0x3ff8
movq -0x8(%r15), %rsi
movq (%rbx), %rdi
movq %r14, %rdx
callq 0x33a0
testl %eax, %eax
je 0x3ff8
incq %r13
addq $0x20, %r15
cmpq %r13, %r12
jne 0x3fcd
jmp 0x4001
movq 0x28(%rsp), %rax
incl (%rax,%r13,4)
incq %rbp
cmpq 0x18(%rsp), %rbp
jne 0x3fa9
movq 0x10(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorExpandNonNegativeSum(std::vector<int, std::allocator<int>> const&, int)
vector<int> vectorExpandNonNegativeSum(const vector<int>& v,int total){
	vector<int> uv = v;

	if(uv.size() == 0) uv.push_back(total);
	else {
		int prevSum = vectorNonNegativeSum(v);
		if (total > prevSum) {
			float scale = (float)(total) / prevSum;
			for (unsigned int i=0; i<uv.size(); i++) {
				if (uv[i] >=0 ) {
					uv[i] = ceil(uv[i] * scale);
				}
			}
		}
	}
	return uv;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, (%rsp)
callq 0xbdee
movq (%rbx), %r15
movq 0x8(%rbx), %rsi
movq %rsi, %r12
subq %r15, %r12
je 0x4177
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0x418c
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %edi, %edi
xorl %r8d, %r8d
xorl %ecx, %ecx
movl (%rax,%r8,4), %r9d
testl %r9d, %r9d
cmovlel %edi, %r9d
addl %r9d, %ecx
incq %r8
cmpq %r8, %rdx
jne 0x415f
jmp 0x418e
cmpq 0x10(%rbx), %rsi
je 0x41e2
movl (%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x41ed
xorl %ecx, %ecx
movl (%rsp), %eax
cmpl %ecx, %eax
jle 0x41ed
cmpq %r15, %rsi
je 0x41ed
cvtsi2ss %eax, %xmm1
cvtsi2ss %ecx, %xmm0
sarq $0x2, %r12
divss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
xorl %r14d, %r14d
movl (%r15,%r14,4), %eax
testl %eax, %eax
js 0x41d5
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0x4(%rsp), %xmm0
callq 0x3200
cvttss2si %xmm0, %eax
movl %eax, (%r15,%r14,4)
incq %r14
movl %r14d, %eax
cmpq %rax, %r12
ja 0x41b3
jmp 0x41ed
movq %rsp, %rdx
movq %rbx, %rdi
callq 0xc896
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4213
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3390
movq %r14, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: currentDateTime[abi:cxx11]()
const std::string currentDateTime() {
    time_t     now = time(0);
    struct tm  tstruct;
    char       buf[80];
    tstruct = *localtime(&now);
    // Visit http://en.cppreference.com/w/cpp/chrono/c/strftime
    // for more information about date/time format
    strftime(buf, sizeof(buf), "%Y-%m-%d %X", &tstruct);

    return buf;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x3330
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
callq 0x3270
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm2, 0x20(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rcx)
leaq 0x9d7f(%rip), %rdx      # 0xe023
leaq 0x10(%rsp), %r14
movl $0x50, %esi
movq %r14, %rdi
callq 0x32b0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x3180
leaq (%rsp,%rax), %rdx
addq $0x10, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc5c2
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: randomValue(int, int)
int randomValue(int start, int end) {
	int ret = start;
	srand(getCurrentTime());
	if (start != end) {
		if (start < end) {
			ret = start + rand() % (end - start);
		} else {
			ret = end + rand() % (start - end);
		}
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movl %edi, %ebp
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x35d0
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x8(%r14)
imull $0x3e8, (%r14), %eax    # imm = 0x3E8
movq %rdx, %rdi
shrq $0x3f, %rdi
shrq $0x7, %rdx
addl %edx, %edi
addl %eax, %edi
callq 0x3350
cmpl %ebx, %ebp
je 0x4346
callq 0x30f0
movl %ebp, %ecx
subl %ebx, %ecx
cmovll %ebp, %ebx
movl %ecx, %esi
negl %esi
cmovsl %ecx, %esi
cltd
idivl %esi
movl %edx, %ebp
addl %ebx, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: mkdirRecursive(char const*)
void mkdirRecursive(const char *dir) {
        char tmp[256];
        char *p = NULL;
        size_t len;

        snprintf(tmp, sizeof(tmp),"%s",dir);
        len = strlen(tmp);
        if(tmp[len - 1] == '/')
                tmp[len - 1] = 0;
        for(p = tmp + 1; *p; p++)
                if(*p == '/') {
                        *p = 0;
                        mkdir(tmp, S_IRWXU);
                        *p = '/';
                }
        mkdir(tmp, S_IRWXU);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rcx
leaq 0x9af0(%rip), %rdx      # 0xe039
xorl %ebp, %ebp
movq %rsp, %rbx
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x35b0
movq %rbx, %rdi
callq 0x3180
movzbl -0x1(%rax,%rbx), %ecx
cmpb $0x2f, %cl
cmovel %ebp, %ecx
movb %cl, -0x1(%rax,%rbx)
leaq 0x1(%rsp), %r14
movzbl (%r14), %eax
cmpl $0x2f, %eax
je 0x4588
testl %eax, %eax
jne 0x459d
jmp 0x45a2
movb $0x0, (%r14)
movq %rbx, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x31a0
movb $0x2f, (%r14)
incq %r14
jmp 0x4579
movq %rsp, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x31a0
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: writeFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool writeFile(string dir, string fileName, string content) {
	mkdirRecursive(dir.c_str());
	ofstream file;
	string fullPath = dir + fileName;
	file.open(fullPath.c_str(), ios::out | ios::trunc);
	if (file.is_open()) {
		file << content;
		file.close();
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %rdi
callq 0x4534
leaq 0x20(%rsp), %rdi
callq 0x3600
movq %rsp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xbeab
movq (%rsp), %rsi
leaq 0x20(%rsp), %rdi
movl $0x30, %edx
callq 0x3070
leaq 0x90(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x4631
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x20(%rsp), %rdi
callq 0x3400
leaq 0x20(%rsp), %rdi
callq 0x34e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x464c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0xe97d(%rip), %rax      # 0x12fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x28(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x20(%rsp,%rcx)
callq 0x32f0
leaq 0x118(%rsp), %rdi
callq 0x3150
movl %ebx, %eax
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x46b0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46b0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x20(%rsp), %rdi
callq 0x3510
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool readFile(string path, string &content) {
	std::ifstream file(path.c_str(), std::ifstream::in);
	if (file.is_open()) {
		std::stringstream buffer;
		buffer << file.rdbuf();
		content = buffer.str();
		file.close();
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x3b0, %rsp            # imm = 0x3B0
movq %rsi, %r14
movq (%rdi), %rsi
leaq 0x1a8(%rsp), %rdi
movl $0x8, %edx
callq 0x3690
leaq 0x220(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x4775
leaq 0x20(%rsp), %rdi
callq 0x3240
leaq 0x30(%rsp), %rdi
leaq 0x1b8(%rsp), %rsi
callq 0x30b0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x3590
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3450
movq (%r15), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x474a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x1a8(%rsp), %rdi
callq 0x30a0
movq 0xe852(%rip), %rsi      # 0x12fb0
leaq 0x20(%rsp), %rdi
callq 0x3260
leaq 0xa0(%rsp), %rdi
callq 0x3150
leaq 0x1a8(%rsp), %rdi
callq 0x30e0
movl %ebx, %eax
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbx
popq %r14
popq %r15
retq
jmp 0x4798
movq %rax, %rbx
jmp 0x47b9
movq %rax, %rbx
movq 0xe80e(%rip), %rsi      # 0x12fb0
leaq 0x20(%rsp), %rdi
callq 0x3260
leaq 0xa0(%rsp), %rdi
callq 0x3150
leaq 0x1a8(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool readFile(string path, int offset, int length, string &content) {
	std::ifstream file(path.c_str(), std::ifstream::in);
	if (file.is_open()) {
		char *buffer = new char [length];
		file.seekg(offset);
		file.read (buffer,length);

		std::stringstream ss;
		ss << buffer;
		content = ss.str();

		file.close();
		delete []buffer;
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x3b0, %rsp            # imm = 0x3B0
movq %rcx, %r15
movl %edx, %r14d
movl %esi, %ebp
movq (%rdi), %rsi
leaq 0x1a8(%rsp), %rdi
movl $0x8, %edx
callq 0x3690
leaq 0x220(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x48d2
movslq %r14d, %r12
movq %r12, %rdi
callq 0x3030
movq %rax, %r14
movslq %ebp, %rsi
leaq 0x1a8(%rsp), %rdi
xorl %edx, %edx
callq 0x3470
leaq 0x1a8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3460
leaq 0x20(%rsp), %rdi
callq 0x3240
leaq 0x30(%rsp), %r12
movq %r14, %rdi
callq 0x3180
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3400
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x3590
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3450
movq (%r12), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x489f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x1a8(%rsp), %rdi
callq 0x30a0
movq %r14, %rdi
callq 0x3480
movq 0xe6f5(%rip), %rsi      # 0x12fb0
leaq 0x20(%rsp), %rdi
callq 0x3260
leaq 0xa0(%rsp), %rdi
callq 0x3150
leaq 0x1a8(%rsp), %rdi
callq 0x30e0
movl %ebx, %eax
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x48f5
jmp 0x4918
movq %rax, %rbx
movq 0xe6b1(%rip), %rsi      # 0x12fb0
leaq 0x20(%rsp), %rdi
callq 0x3260
leaq 0xa0(%rsp), %rdi
callq 0x3150
jmp 0x491b
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: readFileToLines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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>>>>&)
bool readFileToLines(string path, vector<string> &content) {
	std::ifstream file(path.c_str(), std::ifstream::in);
	if (file.is_open()) {
		std::string line;
		while (std::getline(file, line)) {
			content.push_back(line);
		}

		file.close();
		return true;
	} else {
		return false;
	}

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rsi, %r14
movq (%rdi), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x8, %edx
callq 0x3690
leaq 0xa0(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x49e6
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x8(%rsp), %r12
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x36a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x49c5
movq %r14, %rdi
movq %r12, %rsi
callq 0xbcd6
jmp 0x4986
leaq 0x28(%rsp), %rdi
callq 0x30a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x49e6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x28(%rsp), %rdi
callq 0x30e0
movl %ebx, %eax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x4a05
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4a1f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x28(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: readFileByLineNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool readFileByLineNumber(string path, int offset, int length, string &content) {
	std::ifstream file(path.c_str(), std::ifstream::in);
	if (file.is_open()) {
		int lines_count =0;
		std::string line;
		std::stringstream ss;
		while (std::getline(file , line)) {
			if (lines_count >= offset && lines_count < offset + length) {
				ss << line << endl;
			}
			++lines_count;
			if (lines_count >= offset+length) break;
		}
		content = ss.str();
		file.close();
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3e8, %rsp            # imm = 0x3E8
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
movq (%rdi), %rsi
leaq 0x1e0(%rsp), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x3690
leaq 0x258(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x4bca
movq %r14, 0x30(%rsp)
movb %bl, 0xf(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x58(%rsp), %rdi
callq 0x3240
addl %r15d, %ebp
cmpl $0x2, %ebp
movl $0x1, %r13d
cmovgel %ebp, %r13d
xorl %r14d, %r14d
movq 0x1e0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %edx
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x36a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4b44
cmpl %r15d, %r14d
setl %al
cmpl %ebp, %r14d
setge %cl
orb %al, %cl
jne 0x4b38
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x3400
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3220
incl %r14d
cmpl %r14d, %r13d
jne 0x4ab3
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x3590
leaq 0x38(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x3450
movq (%rbx), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
movb 0xf(%rsp), %bl
je 0x4b83
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x1e0(%rsp), %rdi
callq 0x30a0
movq 0xe419(%rip), %rsi      # 0x12fb0
leaq 0x58(%rsp), %rdi
callq 0x3260
leaq 0xd8(%rsp), %rdi
callq 0x3150
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4bca
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x1e0(%rsp), %rdi
callq 0x30e0
movl %ebx, %eax
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4bf4
jmp 0x4bf4
movq %rax, %rbx
jmp 0x4c15
movq %rax, %rbx
movq 0xe3b2(%rip), %rsi      # 0x12fb0
leaq 0x58(%rsp), %rdi
callq 0x3260
leaq 0xd8(%rsp), %rdi
callq 0x3150
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4c31
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x1e0(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3650
// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: getFileLength(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long&)
bool getFileLength(string path,  long &size) {
	std::ifstream file(path.c_str(), std::ifstream::ate | std::ifstream::binary);
	if (file.is_open()) {
		size = file.tellg();
		file.close();
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movq (%rdi), %rsi
movq %rsp, %rdi
movl $0x6, %edx
callq 0x3690
leaq 0x78(%rsp), %rdi
callq 0x30c0
movl %eax, %ebx
testb %al, %al
je 0x4c86
movq %rsp, %rdi
callq 0x3620
movq %rax, (%r14)
movq %rsp, %rdi
callq 0x30a0
movq %rsp, %rdi
callq 0x30e0
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
jmp 0x4c9d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3650