LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: 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
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
movl $0xd0, %edx
callq 0x20b0
movq -0xf8(%rbp), %rax
movl $0x9, -0xd8(%rbp)
movl 0xc(%rax), %ecx
movl %ecx, -0xd0(%rbp)
movl 0x10(%rax), %ecx
movl %ecx, -0xcc(%rbp)
movl $0x34363248, -0xc8(%rbp) # imm = 0x34363248
movl 0xc(%rax), %ecx
imull 0x10(%rax), %ecx
shll $0x2, %ecx
movl %ecx, -0xbc(%rbp)
movl 0x8(%rax), %edi
movl $0xc0d05605, %esi       # imm = 0xC0D05605
leaq -0xd8(%rbp), %rdx
movb $0x0, %al
callq 0x2120
movl %eax, -0xdc(%rbp)
cmpl $0x0, -0xdc(%rbp)
jge 0x3dce
movl $0x8, %edi
callq 0x2090
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x100(%rbp)
leaq 0x359b(%rip), %rsi      # 0x7328
callq 0x28c0
jmp 0x3d94
movq -0x100(%rbp), %rdi
leaq 0x6fce(%rip), %rsi      # 0xad70
leaq -0x1489(%rip), %rdx     # 0x2920
callq 0x21b0
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
callq 0x20c0
jmp 0x3e02
movq 0x720b(%rip), %rax      # 0xafe0
movq (%rax), %rdi
movl -0xd0(%rbp), %edx
movl -0xcc(%rbp), %ecx
movl -0xc8(%rbp), %r8d
leaq 0x354b(%rip), %rsi      # 0x733d
movb $0x0, %al
callq 0x2130
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0x21c0
nop
// File: 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 $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x20b0
movl $0x990a6b, -0x30(%rbp)  # imm = 0x990A6B
movl $0x2, -0x24(%rbp)
movl $0x990a67, -0x1c(%rbp)  # imm = 0x990A67
movl $0xb, -0x10(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20b0
movq -0x70(%rbp), %rax
movl $0x990000, -0x50(%rbp)  # imm = 0x990000
movl $0x2, -0x4c(%rbp)
leaq -0x30(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movl 0x8(%rax), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
leaq -0x50(%rbp), %rdx
movb $0x0, %al
callq 0x2120
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
je 0x4d09
movl $0x8, %edi
callq 0x2090
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x78(%rbp)
leaq 0x26e7(%rip), %rsi      # 0x73bb
callq 0x28c0
jmp 0x4cdb
movq -0x78(%rbp), %rdi
leaq 0x608a(%rip), %rsi      # 0xad70
leaq -0x23cd(%rip), %rdx     # 0x2920
callq 0x21b0
movq -0x78(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
callq 0x20c0
jmp 0x4d12
addq $0x80, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x21c0
nopl (%rax,%rax)
// File: 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 $0x90, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x20b0
movl $0x9909cf, -0x40(%rbp)  # imm = 0x9909CF
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
movl $0x9909d7, -0x2c(%rbp)  # imm = 0x9909D7
movl $0x1, -0x20(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20b0
movq -0x80(%rbp), %rax
movl $0x990000, -0x60(%rbp)  # imm = 0x990000
movl $0x2, -0x5c(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movl 0x8(%rax), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
leaq -0x60(%rbp), %rdx
movb $0x0, %al
callq 0x2120
movl %eax, -0x64(%rbp)
cmpl $0x0, -0x64(%rbp)
je 0x4e04
movl $0x8, %edi
callq 0x2090
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x88(%rbp)
leaq 0x25f2(%rip), %rsi      # 0x73bb
callq 0x28c0
jmp 0x4dd0
movq -0x88(%rbp), %rdi
leaq 0x5f92(%rip), %rsi      # 0xad70
leaq -0x24c5(%rip), %rdx     # 0x2920
callq 0x21b0
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
callq 0x20c0
jmp 0x4e0d
addq $0x90, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x21c0
nopw %cs:(%rax,%rax)
// File: 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 $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x221e(%rip), %rax      # 0x705c
movq %rax, -0x20(%rbp)
movq 0x221b(%rip), %rax      # 0x7064
movq %rax, -0x18(%rbp)
movl 0x2219(%rip), %eax      # 0x706c
movl %eax, -0x10(%rbp)
movl $0x9909cb, -0x20(%rbp)  # imm = 0x9909CB
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20b0
movq -0x60(%rbp), %rax
movl $0x990000, -0x40(%rbp)  # imm = 0x990000
movl $0x1, -0x3c(%rbp)
leaq -0x20(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movl 0x8(%rax), %edi
movl $0xc0205648, %esi       # imm = 0xC0205648
leaq -0x40(%rbp), %rdx
movb $0x0, %al
callq 0x2120
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
je 0x4ef9
movl $0x8, %edi
callq 0x2090
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x68(%rbp)
leaq 0x24f7(%rip), %rsi      # 0x73bb
callq 0x28c0
jmp 0x4ecb
movq -0x68(%rbp), %rdi
leaq 0x5e9a(%rip), %rsi      # 0xad70
leaq -0x25bd(%rip), %rdx     # 0x2920
callq 0x21b0
movq -0x68(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x20c0
jmp 0x4eff
addq $0x70, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x21c0
nopl (%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4730
testb $0x1, %al
jne 0x4be6
jmp 0x4bf2
movl $0x0, -0x4(%rbp)
jmp 0x4d37
leaq -0x40(%rbp), %rdi
callq 0x45c0
movq $0x0, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x4860
movq %rax, -0x50(%rbp)
cmpq $-0x1, -0x50(%rbp)
je 0x4ccc
movq -0x10(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
subq %rdx, %rcx
leaq -0x70(%rbp), %rdi
callq 0x4420
jmp 0x4c3d
leaq -0x40(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
leaq -0x70(%rbp), %rsi
movq %rsi, -0xb0(%rbp)
callq 0x44f0
movq -0xb0(%rbp), %rdi
callq 0x4878
movq -0xa8(%rbp), %rsi
movq -0x18(%rbp), %rdi
callq 0xe290
jmp 0x4c76
movq -0x50(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x20(%rbp), %rdi
callq 0x4650
movq %rax, %rcx
movq -0xb8(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x4860
movq %rax, -0x50(%rbp)
jmp 0x4c18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x4878
jmp 0x4d43
movq -0x10(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
leaq -0xa0(%rbp), %rdi
callq 0x4420
jmp 0x4ce6
leaq -0x40(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x44f0
leaq -0xa0(%rbp), %rdi
callq 0x4878
leaq -0x40(%rbp), %rdi
callq 0x4730
testb $0x1, %al
jne 0x4d27
movq -0x18(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xe290
jmp 0x4d1e
leaq -0x40(%rbp), %rdi
callq 0x4590
movl $0x0, -0x4(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x4878
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rsi, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
callq 0xe3f0
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x4f4a
movq -0x8(%rbp), %rdi
movslq -0x1c(%rbp), %rsi
callq 0xe4a0
movq -0x28(%rbp), %rsi
movq %rax, %rdi
callq 0xe410
testb $0x1, %al
jne 0x4f35
jmp 0x4f3d
movl -0x1c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x4f4a
jmp 0x4f3f
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4f0e
movl -0x14(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0xe4c0
movq -0x10(%rbp), %rdi
callq 0xe3f0
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x4ffb
movq -0x10(%rbp), %rdi
movslq -0x24(%rbp), %rsi
callq 0xe4a0
movq -0x50(%rbp), %rsi
movq %rax, %rdi
callq 0xe410
testb $0x1, %al
jne 0x4fc6
jmp 0x4fee
movq -0x48(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0xe4e0
jmp 0x4fd5
jmp 0x4fee
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0xe5a0
jmp 0x503f
jmp 0x4ff0
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x4f9f
movq -0x48(%rbp), %rdi
callq 0xe550
cmpq $0x0, %rax
jne 0x5022
movq -0x48(%rbp), %rdi
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
leaq -0x38(%rbp), %rsi
callq 0xe570
jmp 0x5020
jmp 0x5022
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x5035
movq -0x48(%rbp), %rdi
callq 0xe5a0
movq -0x40(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x4780
nopl (%rax,%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorNonZero(std::vector<int, std::allocator<int>> const&)
int vectorNonZero(const vector<int>& v){
	int index=-1;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if(v[i]!=0){
			index=i;
			break;
		}
	}
	return index;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x50a5
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xe600
cmpl $0x0, (%rax)
je 0x5098
movl -0x14(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x50a5
jmp 0x509a
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5076
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: 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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0xe4c0
movq -0x10(%rbp), %rdi
callq 0xe550
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x5136
movq -0x10(%rbp), %rdi
movslq -0x1c(%rbp), %rsi
callq 0xe600
cmpl $0x0, (%rax)
jle 0x5129
movq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0xe4e0
jmp 0x5110
jmp 0x5129
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0xe5a0
jmp 0x517a
jmp 0x512b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x50e7
movq -0x40(%rbp), %rdi
callq 0xe550
cmpq $0x0, %rax
jne 0x515d
movq -0x40(%rbp), %rdi
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
leaq -0x30(%rbp), %rsi
callq 0xe570
jmp 0x515b
jmp 0x515d
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x5170
movq -0x40(%rbp), %rdi
callq 0xe5a0
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x4780
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdx, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0x1c(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x43a0
movl %eax, %edi
callq 0x43d0
callq 0x4120
cltd
idivl -0x1c(%rbp)
movl %edx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movslq -0x20(%rbp), %rsi
callq 0xe600
movq %rax, %rcx
movb $0x1, %al
cmpl $0x0, (%rcx)
movb %al, -0x29(%rbp)
je 0x5206
movq -0x10(%rbp), %rdi
movslq -0x20(%rbp), %rsi
callq 0xe4a0
movq -0x28(%rbp), %rsi
movq %rax, %rdi
callq 0xe410
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x520f
jmp 0x522d
xorl %eax, %eax
movl %eax, %edi
callq 0x43a0
movl %eax, %edi
callq 0x43d0
callq 0x4120
cltd
idivl -0x1c(%rbp)
movl %edx, -0x20(%rbp)
jmp 0x51d0
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x60(%rbp)
movq %rdi, %rax
movq %rax, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe3f0
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe3f0
movl %eax, -0x20(%rbp)
movb $0x0, -0x21(%rbp)
movslq -0x1c(%rbp), %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x28(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0xe620
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0xe640
jmp 0x52ae
leaq -0x29(%rbp), %rdi
callq 0xe6c0
movl $0x0, -0x40(%rbp)
movl -0x40(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x5353
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x5343
movq -0x18(%rbp), %rdi
movslq -0x40(%rbp), %rsi
callq 0xe4a0
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xe4a0
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0xe410
testb $0x1, %al
jne 0x5309
jmp 0x5336
movq -0x60(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xe6e0
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x5343
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x29(%rbp), %rdi
callq 0xe6c0
jmp 0x5370
jmp 0x5338
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x52d1
jmp 0x5345
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x52be
movb $0x1, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
jne 0x5366
movq -0x60(%rbp), %rdi
callq 0xe5a0
movq -0x68(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe740
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe770
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xe700
movq %rax, -0x18(%rbp)
leaq -0x18(%rbp), %rdi
callq 0xe7a0
movl (%rax), %eax
movl %eax, -0xc(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0x5410
movq -0x8(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xe600
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
jne 0x5403
movl -0x34(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x5410
jmp 0x5405
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x53df
movl -0x2c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorSum(std::vector<int, std::allocator<int>> const&)
int vectorSum(const vector<int>& v){
	int sum=0;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		sum+=v[i];
	}
	return sum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x546e
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xe600
movl (%rax), %eax
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5446
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorFillNegative(std::vector<int, std::allocator<int>>&)
void vectorFillNegative(vector<int>& v) {
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if (v[i] < 0)
			v[i] = 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x54d9
movq -0x8(%rbp), %rdi
movslq -0x10(%rbp), %rsi
callq 0xe6e0
cmpl $0x0, (%rax)
jge 0x54cc
movq -0x8(%rbp), %rdi
movslq -0x10(%rbp), %rsi
callq 0xe6e0
movl $0x0, (%rax)
jmp 0x54ce
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x549f
addq $0x10, %rsp
popq %rbp
retq
nop
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: vectorNonNegativeSum(std::vector<int, std::allocator<int>> const&)
int vectorNonNegativeSum(const vector<int>& v){
	int sum=0;
	int vs=v.size();
	for( int i=0;i<vs;i++){
		if (v[i] >= 0)
			sum+=v[i];
	}
	return sum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
callq 0xe550
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x5542
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xe600
cmpl $0x0, (%rax)
jl 0x5535
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xe600
movl (%rax), %eax
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x5537
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5506
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x38(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb $0x0, -0x15(%rbp)
movq -0x10(%rbp), %rsi
callq 0xe7c0
movq -0x38(%rbp), %rdi
callq 0xe550
cmpq $0x0, %rax
jne 0x55b8
movq -0x38(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0xe4e0
jmp 0x5599
jmp 0x5673
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0xe5a0
jmp 0x5690
movq -0x10(%rbp), %rdi
callq 0x54e0
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x28(%rbp), %eax
jle 0x5671
cvtsi2ssl -0x14(%rbp), %xmm0
cvtsi2ssl -0x28(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %eax
movq %rax, -0x48(%rbp)
callq 0xe550
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jae 0x566f
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xe6e0
cmpl $0x0, (%rax)
jl 0x565f
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xe6e0
cvtsi2ssl (%rax), %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
callq 0xe8b0
movss %xmm0, -0x4c(%rbp)
jmp 0x5640
movq -0x38(%rbp), %rdi
movss -0x4c(%rbp), %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x50(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %esi
callq 0xe6e0
movl -0x50(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x5661
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x55ea
jmp 0x5671
jmp 0x5673
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x5686
movq -0x38(%rbp), %rdi
callq 0xe5a0
movq -0x40(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0xd0(%rbp)
movq %rdi, %rax
movq %rax, -0xd8(%rbp)
movq %rdi, -0x8(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x43a0
movq %rax, -0x10(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x42a0
movq 0x30(%rax), %rcx
movq %rcx, -0x20(%rbp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movaps %xmm2, -0x30(%rbp)
movaps %xmm1, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
leaq 0x148cb(%rip), %rdx     # 0x1a007
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
movl $0x50, %esi
leaq -0x50(%rbp), %rcx
callq 0x4320
leaq -0xa1(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x47a0
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
callq 0xe8d0
jmp 0x5787
leaq -0xa1(%rbp), %rdi
callq 0x4470
movq -0xd8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
leaq -0xa1(%rbp), %rdi
callq 0x4470
movq -0xb0(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0xc(%rbp)
callq 0x56a0
movl %eax, %edi
callq 0x43d0
movl -0x4(%rbp), %eax
cmpl -0x8(%rbp), %eax
je 0x583c
movl -0x4(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x581e
movl -0x4(%rbp), %eax
movl %eax, -0x10(%rbp)
callq 0x4120
movl -0x8(%rbp), %ecx
subl -0x4(%rbp), %ecx
cltd
idivl %ecx
movl -0x10(%rbp), %eax
addl %edx, %eax
movl %eax, -0xc(%rbp)
jmp 0x583a
movl -0x8(%rbp), %eax
movl %eax, -0x14(%rbp)
callq 0x4120
movl -0x4(%rbp), %ecx
subl -0x8(%rbp), %ecx
cltd
idivl %ecx
movl -0x14(%rbp), %eax
addl %edx, %eax
movl %eax, -0xc(%rbp)
jmp 0x583c
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq $0x0, -0x118(%rbp)
leaq -0x110(%rbp), %rdi
movq -0x8(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
leaq 0x144ac(%rip), %rdx     # 0x1a01d
movb $0x0, %al
callq 0x46d0
leaq -0x110(%rbp), %rdi
callq 0x41b0
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
subq $0x1, %rax
movsbl -0x110(%rbp,%rax), %eax
cmpl $0x2f, %eax
jne 0x5bb6
movq -0x120(%rbp), %rax
subq $0x1, %rax
movb $0x0, -0x110(%rbp,%rax)
leaq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
cmpb $0x0, (%rax)
je 0x5c1e
movq -0x118(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x5c08
movq -0x118(%rbp), %rax
movb $0x0, (%rax)
leaq -0x110(%rbp), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x41e0
movq -0x118(%rbp), %rax
movb $0x2f, (%rax)
jmp 0x5c0a
movq -0x118(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x118(%rbp)
jmp 0x5bc8
leaq -0x110(%rbp), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x41e0
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movq %rdi, -0x260(%rbp)
movq %rsi, -0x258(%rbp)
movq %rdx, -0x268(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
callq 0x4190
movq %rax, %rdi
callq 0x5b40
leaq -0x220(%rbp), %rdi
callq 0x4740
movq -0x260(%rbp), %rsi
movq -0x258(%rbp), %rdx
leaq -0x240(%rbp), %rdi
callq 0xe980
jmp 0x5ca1
leaq -0x240(%rbp), %rdi
callq 0x4190
movq %rax, -0x278(%rbp)
movl $0x10, %edi
movl $0x20, %esi
callq 0xea00
movl %eax, -0x26c(%rbp)
jmp 0x5ccb
movl -0x26c(%rbp), %edx
movq -0x278(%rbp), %rsi
leaq -0x220(%rbp), %rdi
callq 0x4070
jmp 0x5ce6
leaq -0x220(%rbp), %rdi
callq 0x42f0
movb %al, -0x279(%rbp)
jmp 0x5cfa
movb -0x279(%rbp), %al
testb $0x1, %al
jne 0x5d06
jmp 0x5d6d
movq -0x268(%rbp), %rsi
leaq -0x220(%rbp), %rdi
callq 0x4380
jmp 0x5d1b
leaq -0x220(%rbp), %rdi
callq 0x45f0
jmp 0x5d29
movb $0x1, -0x1(%rbp)
movl $0x1, -0x250(%rbp)
jmp 0x5d7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x5da1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x4878
jmp 0x5da1
movb $0x0, -0x1(%rbp)
movl $0x1, -0x250(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x4878
leaq -0x220(%rbp), %rdi
callq 0x4620
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0x4620
movq -0x248(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x400, %rsp            # imm = 0x400
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
callq 0x4190
movq %rax, %rsi
leaq -0x220(%rbp), %rdi
movq %rdi, -0x3e8(%rbp)
movl $0x8, %edx
callq 0x47e0
movq -0x3e8(%rbp), %rdi
callq 0x46e0
movb %al, -0x3dd(%rbp)
jmp 0x5e07
movb -0x3dd(%rbp), %al
testb $0x1, %al
jne 0x5e16
jmp 0x5ef2
leaq -0x3b8(%rbp), %rdi
callq 0x4280
jmp 0x5e24
leaq -0x3a8(%rbp), %rax
movq %rax, -0x3f8(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x46a0
movq %rax, -0x3f0(%rbp)
jmp 0x5e47
movq -0x3f0(%rbp), %rsi
movq -0x3f8(%rbp), %rdi
callq 0x40e0
jmp 0x5e5c
leaq -0x3d8(%rbp), %rdi
leaq -0x3b8(%rbp), %rsi
callq 0x43e0
jmp 0x5e71
movq -0x18(%rbp), %rdi
leaq -0x3d8(%rbp), %rsi
movq %rsi, -0x400(%rbp)
callq 0x44f0
movq -0x400(%rbp), %rdi
callq 0x4878
leaq -0x220(%rbp), %rdi
callq 0x40d0
jmp 0x5ea2
movb $0x1, -0x1(%rbp)
movl $0x1, -0x3dc(%rbp)
leaq -0x3b8(%rbp), %rdi
callq 0x42b0
jmp 0x5f00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x5f1a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x3b8(%rbp), %rdi
callq 0x42b0
jmp 0x5f1a
movb $0x0, -0x1(%rbp)
movl $0x1, -0x3dc(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x4110
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x400, %rsp            # imm = 0x400
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0x4110
movq -0x228(%rbp), %rdi
callq 0x4780
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x420, %rsp            # imm = 0x420
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
callq 0x4190
movq %rax, %rsi
leaq -0x228(%rbp), %rdi
movq %rdi, -0x408(%rbp)
movl $0x8, %edx
callq 0x47e0
movq -0x408(%rbp), %rdi
callq 0x46e0
movb %al, -0x3fd(%rbp)
jmp 0x5f8d
movb -0x3fd(%rbp), %al
testb $0x1, %al
jne 0x5f9c
jmp 0x60dc
movslq -0x18(%rbp), %rdi
callq 0x4030
movq %rax, -0x410(%rbp)
jmp 0x5fae
movq -0x410(%rbp), %rax
movq %rax, -0x240(%rbp)
movslq -0x14(%rbp), %rsi
leaq -0x250(%rbp), %rdi
callq 0xea20
jmp 0x5fce
movq -0x250(%rbp), %rsi
movq -0x248(%rbp), %rdx
leaq -0x228(%rbp), %rdi
callq 0x4530
jmp 0x5fea
movq -0x240(%rbp), %rsi
movslq -0x18(%rbp), %rdx
leaq -0x228(%rbp), %rdi
callq 0x4520
jmp 0x6003
leaq -0x3d8(%rbp), %rdi
callq 0x4280
jmp 0x6011
leaq -0x3c8(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x43f0
jmp 0x6026
leaq -0x3f8(%rbp), %rdi
leaq -0x3d8(%rbp), %rsi
callq 0x43e0
jmp 0x603b
movq -0x20(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
movq %rsi, -0x418(%rbp)
callq 0x44f0
movq -0x418(%rbp), %rdi
callq 0x4878
leaq -0x228(%rbp), %rdi
callq 0x40d0
jmp 0x606c
movq -0x240(%rbp), %rax
movq %rax, -0x420(%rbp)
cmpq $0x0, %rax
je 0x608c
movq -0x420(%rbp), %rdi
callq 0x4550
movb $0x1, -0x1(%rbp)
movl $0x1, -0x3fc(%rbp)
leaq -0x3d8(%rbp), %rdi
callq 0x42b0
jmp 0x60ea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x6104
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x3d8(%rbp), %rdi
callq 0x42b0
jmp 0x6104
movb $0x0, -0x1(%rbp)
movl $0x1, -0x3fc(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x4110
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x420, %rsp            # imm = 0x420
popq %rbp
retq
leaq -0x228(%rbp), %rdi
callq 0x4110
movq -0x230(%rbp), %rdi
callq 0x4780
nopl (%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
callq 0x4190
movq %rax, %rsi
leaq -0x220(%rbp), %rdi
movq %rdi, -0x260(%rbp)
movl $0x8, %edx
callq 0x47e0
movq -0x260(%rbp), %rdi
callq 0x46e0
movb %al, -0x255(%rbp)
jmp 0x6167
movb -0x255(%rbp), %al
testb $0x1, %al
jne 0x6176
jmp 0x623a
leaq -0x250(%rbp), %rdi
callq 0x45c0
leaq -0x220(%rbp), %rdi
leaq -0x250(%rbp), %rsi
callq 0x40c0
movq %rax, -0x268(%rbp)
jmp 0x619e
movq -0x268(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x4510
movb %al, -0x269(%rbp)
jmp 0x61bc
movb -0x269(%rbp), %al
testb $0x1, %al
jne 0x61c8
jmp 0x6210
movq -0x18(%rbp), %rdi
leaq -0x250(%rbp), %rsi
callq 0xe290
jmp 0x61da
jmp 0x6182
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x6262
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x4878
jmp 0x6262
leaq -0x220(%rbp), %rdi
callq 0x40d0
jmp 0x621e
movb $0x1, -0x1(%rbp)
movl $0x1, -0x254(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x4878
jmp 0x6248
movb $0x0, -0x1(%rbp)
movl $0x1, -0x254(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x4110
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0x4110
movq -0x228(%rbp), %rdi
callq 0x4780
nopw (%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x430, %rsp            # imm = 0x430
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
callq 0x4190
movq %rax, %rsi
leaq -0x228(%rbp), %rdi
movq %rdi, -0x410(%rbp)
movl $0x8, %edx
callq 0x47e0
movq -0x410(%rbp), %rdi
callq 0x46e0
movb %al, -0x405(%rbp)
jmp 0x62cd
movb -0x405(%rbp), %al
testb $0x1, %al
jne 0x62dc
jmp 0x6494
movl $0x0, -0x238(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x45c0
leaq -0x3e0(%rbp), %rdi
callq 0x4280
jmp 0x6300
jmp 0x6302
leaq -0x228(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x40c0
movq %rax, -0x418(%rbp)
jmp 0x631e
movq -0x418(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x4510
movb %al, -0x419(%rbp)
jmp 0x633c
movb -0x419(%rbp), %al
testb $0x1, %al
jne 0x634b
jmp 0x6418
movl -0x238(%rbp), %eax
cmpl -0x14(%rbp), %eax
jl 0x63f2
movl -0x238(%rbp), %eax
movl -0x14(%rbp), %ecx
addl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jge 0x63f2
leaq -0x3d0(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x4380
movq %rax, -0x428(%rbp)
jmp 0x638a
movq -0x428(%rbp), %rdi
movq 0x1ec28(%rip), %rsi     # 0x24fc0
callq 0x4440
jmp 0x639f
jmp 0x63f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x64bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x6486
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x3e0(%rbp), %rdi
callq 0x42b0
jmp 0x6486
movl -0x238(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x238(%rbp)
movl -0x238(%rbp), %eax
movl -0x14(%rbp), %ecx
addl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jl 0x6413
jmp 0x6418
jmp 0x6302
leaq -0x400(%rbp), %rdi
leaq -0x3e0(%rbp), %rsi
callq 0x43e0
jmp 0x642d
movq -0x20(%rbp), %rdi
leaq -0x400(%rbp), %rsi
movq %rsi, -0x430(%rbp)
callq 0x44f0
movq -0x430(%rbp), %rdi
callq 0x4878
leaq -0x228(%rbp), %rdi
callq 0x40d0
jmp 0x645e
movb $0x1, -0x1(%rbp)
movl $0x1, -0x404(%rbp)
leaq -0x3e0(%rbp), %rdi
callq 0x42b0
leaq -0x258(%rbp), %rdi
callq 0x4878
jmp 0x64a2
leaq -0x258(%rbp), %rdi
callq 0x4878
jmp 0x64bc
movb $0x0, -0x1(%rbp)
movl $0x1, -0x404(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x4110
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x430, %rsp            # imm = 0x430
popq %rbp
retq
leaq -0x228(%rbp), %rdi
callq 0x4110
movq -0x230(%rbp), %rdi
callq 0x4780
nopw %cs:(%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
callq 0x4190
movq %rax, -0x258(%rbp)
movl $0x2, %edi
movl $0x4, %esi
callq 0xea00
movq -0x258(%rbp), %rsi
movl %eax, %edx
leaq -0x220(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0x47e0
movq -0x250(%rbp), %rdi
callq 0x46e0
movb %al, -0x245(%rbp)
jmp 0x653e
movb -0x245(%rbp), %al
testb $0x1, %al
jne 0x654d
jmp 0x65e6
leaq -0x220(%rbp), %rdi
callq 0x4760
movq %rdx, -0x268(%rbp)
movq %rax, -0x260(%rbp)
jmp 0x6569
movq -0x268(%rbp), %rax
movq -0x260(%rbp), %rcx
movq %rcx, -0x240(%rbp)
movq %rax, -0x238(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xea60
movq %rax, -0x270(%rbp)
jmp 0x659a
movq -0x270(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
leaq -0x220(%rbp), %rdi
callq 0x40d0
jmp 0x65b6
movb $0x1, -0x1(%rbp)
movl $0x1, -0x244(%rbp)
jmp 0x65f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x4110
jmp 0x660e
movb $0x0, -0x1(%rbp)
movl $0x1, -0x244(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x4110
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
movq -0x228(%rbp), %rdi
callq 0x4780
nopw (%rax,%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: getFileLineNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long&)
bool getFileLineNumber(string path,  long &size) {
	std::size_t lines_count =0;
	std::string line;
	std::ifstream file(path.c_str());

	if (file.is_open()) {
		while (std::getline(file , line))
			++lines_count;
		size = lines_count;
		file.close();
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movq %rdi, -0x260(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x45c0
movq -0x260(%rbp), %rdi
callq 0x4190
movq %rax, %rsi
leaq -0x248(%rbp), %rdi
movl $0x8, %edx
callq 0x47e0
jmp 0x666d
leaq -0x248(%rbp), %rdi
callq 0x46e0
movb %al, -0x261(%rbp)
jmp 0x6681
movb -0x261(%rbp), %al
testb $0x1, %al
jne 0x6690
jmp 0x6740
jmp 0x6692
leaq -0x248(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x40c0
movq %rax, -0x270(%rbp)
jmp 0x66ab
movq -0x270(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x4510
movb %al, -0x271(%rbp)
jmp 0x66c9
movb -0x271(%rbp), %al
testb $0x1, %al
jne 0x66d5
jmp 0x6717
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x6692
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
jmp 0x6771
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x4110
jmp 0x6771
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
leaq -0x248(%rbp), %rdi
callq 0x40d0
jmp 0x6730
movb $0x1, -0x1(%rbp)
movl $0x1, -0x258(%rbp)
jmp 0x674e
movb $0x0, -0x1(%rbp)
movl $0x1, -0x258(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x4110
leaq -0x40(%rbp), %rdi
callq 0x4878
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
leaq -0x40(%rbp), %rdi
callq 0x4878
movq -0x250(%rbp), %rdi
callq 0x4780
nopw %cs:(%rax,%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: num2string[abi:cxx11](int)
string num2string(int val) {
	char buffer [33];
	memset(buffer, 0, sizeof(buffer));
	snprintf(buffer, sizeof(buffer), "%d", val);
	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x60(%rbp)
movq %rdi, %rax
movq %rax, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
movaps %xmm0, -0x30(%rbp)
movb $0x0, -0x10(%rbp)
movl -0xc(%rbp), %ecx
leaq 0x1385d(%rip), %rdx     # 0x1a020
xorl %eax, %eax
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movl $0x21, %esi
callq 0x46d0
leaq -0x31(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0x47a0
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0xe8d0
jmp 0x67f7
leaq -0x31(%rbp), %rdi
callq 0x4470
movq -0x68(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x4470
movq -0x40(%rbp), %rdi
callq 0x4780
nopl (%rax,%rax)
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: num2string[abi:cxx11](long)
string num2string(long val) {
	char buffer [33];
	memset(buffer, 0, sizeof(buffer));
	snprintf(buffer, sizeof(buffer), "%ld", val);
	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x70(%rbp)
movq %rdi, %rax
movq %rax, -0x78(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movb $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rcx
leaq 0x137bb(%rip), %rdx     # 0x1a023
xorl %eax, %eax
leaq -0x40(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movl $0x21, %esi
callq 0x46d0
leaq -0x41(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0x47a0
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0xe8d0
jmp 0x689c
leaq -0x41(%rbp), %rdi
callq 0x4470
movq -0x78(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0x4470
movq -0x50(%rbp), %rdi
callq 0x4780
// File: sjtuwrk[P]SunwayMR/include/Utils.hpp
// Function: findDelimitationCouplePosition(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>>, unsigned long)
string::size_type findDelimitationCouplePosition(string s, string delim_l, string delim_r, string::size_type pos) {
	string::size_type pos1 = pos;
	string::size_type pos2 = pos;
	int c = 0, len_l = delim_l.length(), len_r = delim_r.length();
	do {
		pos1 = s.find(delim_l, pos1);
		pos2 = s.find(delim_r, pos2);
		if (pos2 == string::npos) break;
		if (pos1 < pos2) {
			c ++;
			pos1 += len_l;
		}
		else {
			c --;
			if (c <= 0) break;
			pos2 += len_r;
		}
	} while (true);
	return pos2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x60(%rbp)
movq %rdi, %rax
movq -0x60(%rbp), %rdi
movq %rax, -0x58(%rbp)
movq %rdi, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
callq 0x4650
movq -0x48(%rbp), %rdi
movl %eax, -0x38(%rbp)
callq 0x4650
movl %eax, -0x3c(%rbp)
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4860
movq -0x58(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rdx
callq 0x4860
movq %rax, -0x30(%rbp)
cmpq $-0x1, -0x30(%rbp)
jne 0x695d
jmp 0x69a5
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x697e
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movslq -0x38(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x699b
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jg 0x698f
jmp 0x69a5
movslq -0x3c(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x699d
movb $0x1, %al
testb $0x1, %al
jne 0x692a
jmp 0x69a5
movq -0x30(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nop