// File: /workspace/github_cpp_makefile_star2_O2/ClauParser[P]ClauParser/./include/clau_parser.h
// Function: clau_parser::LoadData::LoadDataFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, clau_parser::UserType&, int, int, bool)
static bool LoadDataFromFile(const std::string& fileName, UserType& global, int lex_thr_num = 1, int parse_thr_num = 1, bool use_simd = false) /// global should be empty
		{
			if (lex_thr_num <= 0) {
				lex_thr_num = std::thread::hardware_concurrency();
			}
			if (lex_thr_num <= 0) {
				lex_thr_num = 1;
			}

			if (parse_thr_num <= 0) {
				parse_thr_num = std::thread::hardware_concurrency();
			}
			if (parse_thr_num <= 0) {
				parse_thr_num = 1;
			}

			FILE* inFile;

#ifdef _WIN32 
			fopen_s(&inFile, fileName.c_str(), "rb");
#else
			inFile = fopen(fileName.c_str(), "rb");
#endif

			if (!inFile)
			{
				return false;
			}

			UserType globalTemp;

			try {

				InFileReserver ifReserver(inFile, use_simd);


				//	strVec.reserve(ifReserver.Num);
				// cf) empty file..
				if (false == _LoadData(ifReserver, globalTemp, lex_thr_num, parse_thr_num))
				{
					fclose(inFile);
					return false; // return true?
				}

				fclose(inFile);
			}
			catch (const char* err) { std::cout << err << "\n"; fclose(inFile); return false; }
			catch (const std::string& e) { std::cout << e << "\n"; fclose(inFile); return false; }
			catch (const std::exception& e) { std::cout << e.what() << "\n"; fclose(inFile); return false; }
			catch (...) { std::cout << "not expected error" << "\n"; fclose(inFile); return false; }


			global = std::move(globalTemp);

			return true;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r8d, %r15d
movl %ecx, %r13d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
jg 0x2f84
callq 0x2270
movl %eax, %ebp
cmpl $0x2, %ebp
pushq $0x1
popq %r12
cmovll %r12d, %ebp
testl %r13d, %r13d
jg 0x2f9c
callq 0x2270
movl %eax, %r13d
cmpl $0x2, %r13d
cmovgel %r13d, %r12d
movq (%rbx), %rdi
leaq 0x6195(%rip), %rsi      # 0x9143
callq 0x2210
testq %rax, %rax
je 0x3035
movq %rax, %rbx
leaq 0x60f5(%rip), %rsi      # 0x90b7
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2a64
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2f24
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x20d0
andq $0x0, 0x10(%r13)
movq %rbx, (%r13)
movb %r15b, 0x8(%r13)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x3c44
movl %eax, %ebp
movq %rbx, %rdi
callq 0x21b0
testb %bpl, %bpl
je 0x3125
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x450a
movb $0x1, %bl
jmp 0x3127
xorl %ebx, %ebx
jmp 0x3131
movq %rdx, %r14
movq %rax, %rdi
cmpl $0x4, %r14d
jne 0x307d
callq 0x20a0
movq 0xaf7c(%rip), %rdi      # 0xdfd0
movq %rax, %rsi
callq 0x21a0
leaq 0x6053(%rip), %rsi      # 0x90b6
movq %rax, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x21b0
callq 0x22d0
jmp 0x3125
cmpl $0x3, %r14d
jne 0x30b5
callq 0x20a0
movq 0xaf41(%rip), %rdi      # 0xdfd0
movq %rax, %rsi
callq 0x2170
leaq 0x6018(%rip), %rsi      # 0x90b6
movq %rax, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x21b0
callq 0x22d0
jmp 0x3125
callq 0x20a0
cmpl $0x2, %r14d
jne 0x30f6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0xaf00(%rip), %rdi      # 0xdfd0
movq %rax, %rsi
callq 0x21a0
leaq 0x5fd7(%rip), %rsi      # 0x90b6
movq %rax, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x21b0
callq 0x22d0
jmp 0x3125
movq 0xaed3(%rip), %rdi      # 0xdfd0
leaq 0x6042(%rip), %rsi      # 0x9146
callq 0x21a0
leaq 0x5fa6(%rip), %rsi      # 0x90b6
movq %rax, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x21b0
callq 0x22d0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0x31a2
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x315d
jmp 0x315d
movq %rax, %rbx
callq 0x22d0
jmp 0x317c
movq %rax, %rbx
callq 0x22d0
jmp 0x317c
movq %rax, %rbx
jmp 0x317c
movq %rax, %rbx
callq 0x22d0
jmp 0x317c
movq %rax, %rdi
callq 0x3353
movq %rax, %rbx
callq 0x22d0
leaq 0x28(%rsp), %rdi
callq 0x31a2
jmp 0x319a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d0
jmp 0x319a
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2300