LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::exitArray()
JsonPtr exitArray()
	{
		if (_wantSemicolon || _wantValue || _nodeStack.empty() || _nodeStack.top()->type() != Json::JSON_Array)
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, ']' at improper place.");

		_pos++;
		return finishNode();
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
cmpb $0x0, 0x12eb(%rsi)
jne 0x2d9bc
cmpb $0x0, 0x12e9(%rsi)
jne 0x2d9bc
movq 0x12a8(%rsi), %rax
cmpq 0x1288(%rsi), %rax
je 0x2d9bc
movq %rdi, %rbx
cmpq 0x12b0(%rsi), %rax
jne 0x2d998
movq 0x12c0(%rsi), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x10(%rax), %rax
cmpl $0x1, (%rax)
jne 0x2d9bc
incq 0x12f0(%rsi)
movq %rbx, %rdi
callq 0x2e1f0
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x237f(%rip), %rsi      # 0x2fd4d
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x2109(%rip), %rsi      # 0x2faf0
leaq 0x2355(%rip), %rdx      # 0x2fd43
pushq $0x69
popq %rcx
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xf361(%rip), %rsi      # 0x3cd68
leaq -0xe7b8(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2da2d
jmp 0x2da35
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
nop
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::processComma()
JsonPtr processComma()
	{
		if (_wantComma == false)
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, ',' at error position.");

		_wantComma = false;
		if (_nodeStack.top()->type() == Json::JSON_Object)
			_wantKey = true;

		_pos++;
		return nullptr;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
cmpb $0x0, 0x12ea(%rsi)
je 0x2da9f
movb $0x0, 0x12ea(%rsi)
movq 0x12a8(%rsi), %rax
cmpq 0x12b0(%rsi), %rax
jne 0x2da76
movq 0x12c0(%rsi), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x10(%rax), %rax
cmpl $0x0, (%rax)
jne 0x2da86
movb $0x1, 0x12e8(%rsi)
incq 0x12f0(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x22dc(%rip), %rsi      # 0x2fd8d
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x2026(%rip), %rsi      # 0x2faf0
leaq 0x22af(%rip), %rdx      # 0x2fd80
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movl $0x16d, %ecx            # imm = 0x16D
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xf27c(%rip), %rsi      # 0x3cd68
leaq -0xe89d(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2db12
jmp 0x2db1a
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::processSemicolon()
JsonPtr processSemicolon()
	{
		if (_wantSemicolon == false)
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, ':' at error position.");

		_wantSemicolon = false;
		_wantValue = true;
		_pos++;
		return nullptr;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
cmpb $0x0, 0x12eb(%rsi)
je 0x2db5a
movb $0x0, 0x12eb(%rsi)
movb $0x1, 0x12e9(%rsi)
incq 0x12f0(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x2265(%rip), %rsi      # 0x2fdd1
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x1f6b(%rip), %rsi      # 0x2faf0
leaq 0x2234(%rip), %rdx      # 0x2fdc0
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movl $0x17a, %ecx            # imm = 0x17A
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xf1c1(%rip), %rsi      # 0x3cd68
leaq -0xe958(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2dbcd
jmp 0x2dbd5
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
nop
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::processString()
JsonPtr processString()
	{
		if(_wantComma || _wantSemicolon)
				throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error.");

		std::string str = fetchString();
		
		if (_wantKey)
		{
			fillKey(str);
			return nullptr;
		}
		else
		{
			JsonPtr node(new Json(str));
			return insertNode(node);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
cmpb $0x0, 0x12ea(%rsi)
jne 0x2dca5
movq %rsi, %r14
cmpb $0x1, 0x12eb(%rsi)
je 0x2dca5
movq %rdi, %rbx
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x2e2d8
cmpb $0x1, 0x12e8(%r14)
jne 0x2dc34
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x2e478
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x2dc8d
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x2a99e
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2ab28
leaq 0x38(%rsp), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x1efb8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2cc7e
leaq 0x40(%rsp), %rdi
callq 0x1efec
leaq 0x10(%rsp), %rdi
callq 0x1efec
leaq 0x18(%rsp), %rdi
callq 0x1b458
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x1e5a(%rip), %rsi      # 0x2fb11
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x1e20(%rip), %rsi      # 0x2faf0
leaq 0x212d(%rip), %rdx      # 0x2fe04
leaq 0x18(%rsp), %r8
movq %rbx, %rdi
movl $0x15a, %ecx            # imm = 0x15A
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xf076(%rip), %rsi      # 0x3cd68
leaq -0xeaa3(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x1efec
leaq 0x10(%rsp), %rdi
callq 0x1efec
jmp 0x2dd2d
movq %rax, %r14
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x1b2a0
jmp 0x2dd2d
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x1b458
jmp 0x2dd58
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2dd50
jmp 0x2dd58
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::finishNode()
JsonPtr finishNode()
	{
		if (_nodeStack.size() == 1)
		{
			JsonPtr root = _nodeStack.top();
			_nodeStack.pop();
			return root;
		}
		else
		{
			_nodeStack.pop();
			
			_wantKey = false;
			_wantValue = false;
			_wantComma = true;
			_wantSemicolon = false;
		}
		
		return nullptr;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x1278(%rsi), %r14
movq %r14, %rdi
callq 0x2e058
cmpq $0x1, %rax
jne 0x2e246
movq 0x12a8(%r15), %rsi
cmpq 0x12b0(%r15), %rsi
jne 0x2e230
movq 0x12c0(%r15), %rax
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rax), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
callq 0x1efb8
movq %r14, %rdi
callq 0x2e268
jmp 0x2e25f
movq %r14, %rdi
callq 0x2e268
movl $0x10000, 0x12e8(%r15) # imm = 0x10000
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::fetchString[abi:cxx11]()
std::string fetchString()
	{
		_pos++;
		char *_start = _pos;

		while (true)
		{
			if (*_pos == 0)
				throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, uncompleted string.");

			else if (*_pos == '\\')
			{
				_outStringStream.write(_start, _pos - _start);
				processSlash();
				_start = _pos;
			}
			else if (*_pos == '"')
			{
				if (_outStringStream.tellp() == 0)
				{
					std::string str(_start, _pos - _start);
					_pos++;
					return str;
				}
				else
				{
					_outStringStream.write(_start, _pos - _start);
					std::string str = _outStringStream.str();
					_outStringStream.str("");
					_pos++;
					return str;
				}
			}
			else
				_pos++;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x12f0(%rsi), %r15
incq %r15
movq %r15, 0x12f0(%rsi)
leaq 0x1100(%rsi), %r12
xorl %edx, %edx
movzbl (%r15,%rdx), %eax
cmpl $0x22, %eax
je 0x2e34a
cmpl $0x5c, %eax
je 0x2e32e
testl %eax, %eax
je 0x2e3d9
leaq (%r15,%rdx), %rax
incq %rax
movq %rax, 0x12f0(%r14)
incq %rdx
jmp 0x2e304
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b330
movq %r14, %rdi
callq 0x2e494
movq 0x12f0(%r14), %r15
jmp 0x2e302
movq %r12, %rdi
callq 0x1b220
movq 0x12f0(%r14), %rdx
subq %r15, %rdx
testq %rax, %rax
je 0x2e3ad
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b330
leaq 0x1108(%r14), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b3a0
leaq 0xced(%rip), %rsi       # 0x2f072
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1b380
leaq 0x10(%rsp), %rdi
callq 0x1b458
jmp 0x2e3c2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
addq %r15, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f068
incq 0x12f0(%r14)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x1a33(%rip), %rsi      # 0x2fe1e
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x16ec(%rip), %rsi      # 0x2faf0
leaq 0x1a07(%rip), %rdx      # 0x2fe12
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movl $0x11f, %ecx            # imm = 0x11F
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xe942(%rip), %rsi      # 0x3cd68
leaq -0xf1d7(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
jmp 0x2e447
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b458
jmp 0x2e470
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2e468
jmp 0x2e470
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::parseUTF16Char()
uint16_t parseUTF16Char()
	{
		uint16_t utf16Char = 0;
		for (int i = 0; i < 4; i++)
		{
			char c = *(_pos + i);

			if (c <= '9' && c >= '0')
				c -= '0';
			else if (c <= 'f' && c>= 'a')
			{
				c -= 'a';
				c += 10;
			}
			else if (c <= 'F' && c>= 'A')
			{
				c -= 'A';
				c += 10;
			}
			else
				throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, uncompleted string.");

			utf16Char <<= 4;
			utf16Char += (uint16_t)c;
		}

		return utf16Char;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq 0x12f0(%rdi), %rcx
xorl %edx, %edx
xorl %eax, %eax
cmpq $0x4, %rdx
je 0x2e834
movb (%rcx,%rdx), %sil
leal -0x30(%rsi), %edi
cmpb $0xa, %dil
jb 0x2e824
leal -0x61(%rsi), %edi
cmpb $0x5, %dil
ja 0x2e815
addb $-0x57, %sil
jmp 0x2e822
leal -0x41(%rsi), %edi
cmpb $0x5, %dil
ja 0x2e83d
addb $-0x37, %sil
movl %esi, %edi
shll $0x4, %eax
movzbl %dil, %esi
addl %eax, %esi
incq %rdx
movl %esi, %eax
jmp 0x2e7f3
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %rbx
leaq 0x15cf(%rip), %rsi      # 0x2fe1e
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x1288(%rip), %rsi      # 0x2faf0
leaq 0x16e2(%rip), %rdx      # 0x2ff51
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movl $0xd1, %ecx
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xe4de(%rip), %rsi      # 0x3cd68
leaq -0xf63b(%rip), %rdx     # 0x1f256
movq %rbx, %rdi
callq 0x1b3f0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2e8b0
jmp 0x2e8b8
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b1c0
movq %r14, %rdi
callq 0x1b410
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2e8d7
addq $0x1100, %rdi           # imm = 0x1100
movsbl %bl, %esi
jmp 0x2e933
cmpw $0x7ff, %bx             # imm = 0x7FF
ja 0x2e8f7
movl %ebx, %eax
shrl $0x6, %eax
orb $-0x40, %al
andb $0x3f, %bl
orb $-0x80, %bl
addq $0x1100, %rdi           # imm = 0x1100
movsbl %al, %esi
jmp 0x2e928
movzwl %bx, %ebp
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
movsbl %al, %esi
callq 0x1b2f0
movsbl %bpl, %esi
movq %rax, %rdi
callq 0x1b2f0
movsbl %bl, %esi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1b2f0
// File: /workspace/github_cpp_makefile_star2_O2/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
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
movsbl %al, %esi
callq 0x1b2f0
movsbl %bpl, %esi
movq %rax, %rdi
callq 0x1b2f0
movsbl %r14b, %esi
movq %rax, %rdi
callq 0x1b2f0
movsbl %bl, %esi
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1b2f0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x2130
movq %rbx, %rdi
movq %r14, %rsi
callq 0x238c
leaq -0x30(%rbp), %rdi
callq 0x2070
leaq 0x4217(%rip), %rax      # 0x6d38
movq %rax, (%rbx)
movaps 0x16b5(%rip), %xmm0     # 0x41e0
movups %xmm0, 0x8(%rbx)
movabsq $0x50000003c, %rax      # imm = 0x50000003C
movq %rax, 0x40(%rbx)
andl $0x0, 0x48(%rbx)
movl $0x3f800000, 0x18(%rbx) # imm = 0x3F800000
leaq 0x20(%rbx), %rsi
movq 0x4485(%rip), %rdi      # 0x6fd8
callq 0x20e0
leaq 0x1691(%rip), %rsi      # 0x41f0
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2080
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
leaq -0x30(%rbp), %rdi
callq 0x2070
jmp 0x2b91
movq %rax, %r14
movq %rbx, %rdi
callq 0x251c
movq %r14, %rdi
callq 0x2160
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2ff8
testq %rax, %rax
je 0x2b57
movq %r15, %rdi
movq %r14, %rsi
callq 0x3012
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3230
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x14be(%rip), %rsi      # 0x401c
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2f82
leaq 0x1511(%rip), %rdx      # 0x4084
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x2f63
movq %rsp, %rdi
callq 0x2100
pushq $0x10
popq %rdi
callq 0x2120
movq %rax, %r14
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x2260
movq 0x4429(%rip), %rsi      # 0x6fd0
movq 0x441a(%rip), %rdx      # 0x6fc8
movq %r14, %rdi
callq 0x22d0
movq %rax, %rbx
jmp 0x2bc6
movq %rax, %rbx
movq %r14, %rdi
callq 0x2150
leaq 0x20(%rsp), %rdi
jmp 0x2bd3
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %r12
addq $0x8, %r14
leaq 0x1423(%rip), %r13      # 0x4031
cmpq %r14, %r12
je 0x2c67
movq 0x20(%r12), %rdx
movq %rbx, %rdi
leaq 0x1409(%rip), %rsi      # 0x402b
xorl %eax, %eax
callq 0x2230
movq 0x58(%r12), %rbp
leaq 0x48(%r12), %r15
cmpq %r15, %rbp
je 0x2c5a
movq 0x20(%rbp), %rdx
movq 0x40(%rbp), %rcx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2230
movq %rbp, %rdi
callq 0x2130
movq %rax, %rbp
jmp 0x2c33
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
jmp 0x2c0e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x3ba(%rip), %rsi       # 0x40da
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x2f28
leaq 0x78(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x247c
leaq 0x28(%rsp), %rdi
callq 0x2100
leaq 0x398(%rip), %rsi       # 0x40e7
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2f28
leaq 0x48(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2be0
leaq 0x8(%rsp), %rdi
callq 0x2100
leaq 0x50(%rsp), %rbp
movq 0x10(%rbp), %r12
movq 0x3234(%rip), %rbx      # 0x6fc0
leaq 0x2f1(%rip), %r14       # 0x4084
leaq 0x355(%rip), %r15       # 0x40ef
leaq 0x355(%rip), %r13       # 0x40f6
cmpq %rbp, %r12
je 0x3dee
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21a0
leaq 0x20(%r12), %rsi
movq %rax, %rdi
callq 0x2190
movq %rax, %rdi
movq %r15, %rsi
callq 0x21a0
leaq 0x40(%r12), %rsi
movq %rax, %rdi
callq 0x2190
movq %rax, %rdi
movq %r13, %rsi
callq 0x21a0
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
jmp 0x3da1
leaq 0x48(%rsp), %rdi
callq 0x31b6
leaq 0x78(%rsp), %rdi
callq 0x313c
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2100
jmp 0x3e4b
movq %rax, %rbx
jmp 0x3e4b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2100
jmp 0x3e55
movq %rax, %rbx
jmp 0x3e55
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x31b6
leaq 0x78(%rsp), %rdi
callq 0x313c
movq %rbx, %rdi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x50(%rdx)
movl $0x9, 0x4(%rdx)
pushq $0x1
popq %rcx
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 0x2baf
leaq 0x1955(%rip), %rdi      # 0x44fd
callq 0x2160
jmp 0x2bec
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 0x2bfe
movl %ebx, %eax
addq $0x260, %rsp            # imm = 0x260
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0x187a(%rip), %rsi      # 0x448a
movq %rax, %rdi
callq 0x264e
leaq 0x4151(%rip), %rsi      # 0x6d70
movq 0x43c2(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2c9e
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 0x2c9e
movl 0x8(%rbx), %edi
callq 0x21f0
leaq 0x58(%rbx), %rdi
callq 0x3cbc
leaq 0x38(%rbx), %rdi
callq 0x3cec
addq $0x20, %rbx
movq %rbx, %rdi
callq 0x3cec
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0x17ee(%rip), %rsi      # 0x449e
movq %rax, %rdi
callq 0x264e
leaq 0x40b1(%rip), %rsi      # 0x6d70
movq 0x4322(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rdi
callq 0x3681
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2fbf
movq 0x40cf(%rip), %r15      # 0x6fd8
movq (%r15), %rdi
movl -0xe0(%rbp), %edx
movl -0xdc(%rbp), %ecx
movl -0xd8(%rbp), %r8d
leaq 0x13c7(%rip), %rsi      # 0x42ed
xorl %eax, %eax
callq 0x2120
leaq -0x1b0(%rbp), %r14
movl $0xc8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20b0
movl -0xe8(%rbp), %eax
movl %eax, -0x4(%r14)
movl $0x1, 0x8(%r14)
movl 0x14(%rbx), %eax
movl %eax, 0xc(%r14)
movl 0x8(%rbx), %edi
leaq -0x1b4(%rbp), %rdx
movl $0xc0cc5616, %esi       # imm = 0xC0CC5616
xorl %eax, %eax
callq 0x2110
testl %eax, %eax
js 0x2fd3
movq (%r15), %rdi
movl -0x1a8(%rbp), %edx
movl -0x1a4(%rbp), %ecx
leaq 0x13ab(%rip), %rsi      # 0x4337
xorl %eax, %eax
callq 0x2120
movq %rbx, %rdi
callq 0x3732
movl 0x18(%rbx), %esi
movq %rbx, %rdi
callq 0x37cc
movl 0x1c(%rbx), %esi
movq %rbx, %rdi
callq 0x3862
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0x1307(%rip), %rsi      # 0x42d8
jmp 0x2fe5
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0x133c(%rip), %rsi      # 0x4321
movq %rax, %rdi
callq 0x264e
leaq 0x3d7c(%rip), %rsi      # 0x6d70
movq 0x3fed(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x32d3
movq 0x3d35(%rip), %rax      # 0x6fd8
movq (%rax), %rdi
movl -0xd8(%rbp), %edx
movl -0xd4(%rbp), %ecx
movl -0xd0(%rbp), %r8d
leaq 0x102d(%rip), %rsi      # 0x42ed
xorl %eax, %eax
callq 0x2120
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0xff3(%rip), %rsi       # 0x42d8
movq %rax, %rdi
callq 0x264e
leaq 0x3a7c(%rip), %rsi      # 0x6d70
movq 0x3ced(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
subq $0x48, %rsp
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
andq $0x0, 0x20(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movl $0x990a6b, (%rax)       # imm = 0x990A6B
movl $0x2, 0xc(%rax)
movl $0x990a67, 0x14(%rax)   # imm = 0x990A67
movl $0xb, 0x20(%rax)
leaq -0x28(%rbp), %rdx
movups %xmm0, 0x8(%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 0x379c
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0xbbd(%rip), %rsi       # 0x436b
movq %rax, %rdi
callq 0x264e
leaq 0x35b3(%rip), %rsi      # 0x6d70
movq 0x3824(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
subq $0x48, %rsp
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
andq $0x0, 0x20(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movl $0x9909cf, (%rax)       # imm = 0x9909CF
movl %esi, 0xc(%rax)
movl $0x9909d7, 0x14(%rax)   # imm = 0x9909D7
movl $0x1, 0x20(%rax)
leaq -0x28(%rbp), %rdx
movups %xmm0, 0x8(%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 0x3832
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0xb27(%rip), %rsi       # 0x436b
movq %rax, %rdi
callq 0x264e
leaq 0x351d(%rip), %rsi      # 0x6d70
movq 0x378e(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
leaq -0x1c(%rbp), %rax
movups %xmm0, 0x4(%rax)
movl $0x9909cb, (%rax)       # imm = 0x9909CB
movl %esi, 0xc(%rax)
leaq -0x40(%rbp), %rdx
movups %xmm0, 0x8(%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 0x38b2
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0xaa7(%rip), %rsi       # 0x436b
movq %rax, %rdi
callq 0x264e
leaq 0x349d(%rip), %rsi      # 0x6d70
movq 0x370e(%rip), %rdx      # 0x6fe8
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/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, (%rsp)
cmpq $0x0, 0x8(%rdi)
je 0x39c9
movq %rdx, %r15
movq %rdi, %r14
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %ebx, %ebx
movq %rdx, %rsi
xorl %edx, %edx
callq 0x36d0
movq %rax, %r12
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
cmpq $-0x1, %r12
je 0x396c
movq %r12, %rcx
subq %rbx, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3390
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3410
movq %r13, %rdi
callq 0x36e8
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0x9022
addq 0x8(%r15), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x36d0
movq %r12, %rbx
movq %rax, %r12
jmp 0x3919
leaq 0x28(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3390
leaq 0x8(%rsp), %rbx
leaq 0x28(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3410
movq %r14, %rdi
callq 0x36e8
cmpq $0x0, 0x8(%rbx)
je 0x39bf
leaq 0x8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x9022
andq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdi
callq 0x36e8
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x39e0
jmp 0x39e0
jmp 0x39e0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x36e8
movq %rbx, %rdi
callq 0x3610
// File: /workspace/github_cpp_makefile_star2_O2/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorFind(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 vectorFind(const vector<string>& v, string value){
	int index=-1;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if(v[i]==value){
			index=i;
			break;
		}
	}
	return index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r15
subq (%rdi), %r15
movq %rsi, %r14
shrq $0x5, %r15
xorl %r12d, %r12d
testl %r15d, %r15d
cmovlel %r12d, %r15d
pushq $-0x1
popq %rbp
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x3b1b
movq (%rbx), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x906f
testb %al, %al
jne 0x3b18
incq %r13
addq $0x20, %r12
jmp 0x3af8
movl %r13d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq 0x8(%rsi), %r13
subq (%rsi), %r13
movq %rdx, %r15
shrq $0x5, %r13
xorl %eax, %eax
leaq 0x8(%rsp), %r12
movl %eax, 0x8(%rsp)
cmpl %r13d, %eax
jge 0x3b91
movslq %eax, %rdi
shlq $0x5, %rdi
addq (%r14), %rdi
movq %r15, %rsi
callq 0x906f
testb %al, %al
je 0x3b89
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9098
movl 0x8(%rsp), %eax
incl %eax
jmp 0x3b5f
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
jne 0x3baa
leaq 0xc(%rsp), %rsi
orl $-0x1, (%rsi)
movq %rbx, %rdi
callq 0x9b16
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x3bbd
movq %rax, %r14
movq %rbx, %rdi
callq 0x99a0
movq %r14, %rdi
callq 0x3610
// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq 0x8(%rsi), %r12
subq (%rsi), %r12
shrq $0x2, %r12
xorl %eax, %eax
movq %rsp, %r15
movl %eax, (%rsp)
cmpl %r12d, %eax
jge 0x3c4a
movslq %eax, %rcx
movq (%r14), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jle 0x3c46
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9098
movl (%rsp), %eax
incl %eax
jmp 0x3c24
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
jne 0x3c63
leaq 0x4(%rsp), %rsi
orl $-0x1, (%rsi)
movq %rbx, %rdi
callq 0x9b16
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3c74
movq %rax, %r14
movq %rbx, %rdi
callq 0x99a0
movq %r14, %rdi
callq 0x3610
// File: /workspace/github_cpp_makefile_star2_O2/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 0x3320
movl %eax, %edi
callq 0x3350
callq 0x3100
cltd
idivl %r12d
movslq %edx, %rdi
movq (%r15), %rax
cmpl $0x0, (%rax,%rdi,4)
je 0x3ca3
movl %edx, %ebp
shlq $0x5, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x906f
testb %al, %al
jne 0x3ca3
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq 0x8(%rsi), %rax
subq (%rsi), %rax
shrq $0x5, %rax
movq 0x8(%rdx), %r14
subq (%rdx), %r14
shrq $0x5, %r14
movslq %eax, %r12
leaq 0x24(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x7(%rsp), %rcx
movq %rdi, 0x8(%rsp)
movq %r12, %rsi
callq 0x90b6
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
testl %r14d, %r14d
cmovlel %ebp, %r14d
movq %r14, 0x10(%rsp)
shlq $0x5, %r12
cmpq 0x10(%rsp), %rbp
je 0x3d95
movq %rbp, 0x18(%rsp)
shlq $0x5, %rbp
xorl %r14d, %r14d
pushq $-0x4
popq %r13
cmpq %r14, %r12
je 0x3d8b
movq (%rbx), %rdi
addq %rbp, %rdi
movq (%r15), %rsi
addq %r14, %rsi
callq 0x906f
addq $0x4, %r13
addq $0x20, %r14
testb %al, %al
je 0x3d5d
movq 0x8(%rsp), %rax
movq (%rax), %rax
incl (%rax,%r13)
movq 0x18(%rsp), %rbp
incq %rbp
jmp 0x3d46
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorIntMax(std::vector<int, std::allocator<int>> const&)
int vectorIntMax(const vector<int>& v){
	int value=*max_element(v.begin(),v.end());
	int index=-1;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if(v[i]==value){
			index=i;
			break;
		}
	}
	return index;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rbx), %rsi
callq 0x9513
movl (%rax), %ecx
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
subq %rdx, %rsi
shrq $0x2, %rsi
xorl %edi, %edi
testl %esi, %esi
cmovlel %edi, %esi
pushq $-0x1
popq %rax
cmpq %rdi, %rsi
je 0x3de4
cmpl %ecx, (%rdx,%rdi,4)
je 0x3de2
incq %rdi
jmp 0x3dd3
movl %edi, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: getFileLineNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long&)
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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsi, %rbx
movb $0x0, (%rax)
movq (%rdi), %rsi
leaq 0x28(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x3650
leaq 0xa0(%rsp), %rdi
callq 0x30c0
movl %eax, %ebp
testb %al, %al
je 0x4782
xorl %r12d, %r12d
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3090
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4775
incq %r12
jmp 0x4757
movq %r12, (%rbx)
leaq 0x28(%rsp), %rdi
callq 0x30a0
leaq 0x28(%rsp), %rdi
callq 0x30f0
leaq 0x8(%rsp), %rdi
callq 0x36e8
movl %ebp, %eax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47af
movq %rax, %rbx
jmp 0x47bc
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x30f0
leaq 0x8(%rsp), %rdi
callq 0x36e8
movq %rbx, %rdi
callq 0x3610
// File: /workspace/github_cpp_makefile_star2_O2/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 $0xa8, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x3320
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
callq 0x3250
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
leaq 0x10(%rsp), %rcx
movaps %xmm0, (%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm2, 0x20(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rcx)
leaq 0x8097(%rip), %rdx      # 0xc023
leaq 0x50(%rsp), %r14
pushq $0x50
popq %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x915a
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
callq 0x3f11
movl %eax, %edi
callq 0x3350
cmpl %ebx, %ebp
je 0x3feb
callq 0x3100
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 $0x8, %rsp
popq %rbx
popq %rbp
retq