// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/create_library_function.cpp
// Function: ReadName(char*, char**)
int ReadName(char *file, char **data)
{
	std::ifstream infile(file);
	std::string line_temp;
	int m = 0;
	if (infile.is_open())
	{
		std::cout << "Reading " << file << "..." << std::endl;
		while (!infile.eof())
		{
			std::getline(infile, line_temp);
			if (line_temp.empty()){ break; }
			strncpy(data[m], line_temp.c_str(), 30);
			m++;
		}
		infile.close();
	}
	else
	{
		std::cout << "Error! File " << file << " not found!" << std::endl;
		return 1;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x248(%rbp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2200
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x1d0(%rbp), %rdi
callq 0x2060
testb %al, %al
je 0x4804
movq 0x2809(%rip), %r15      # 0x6fd8
leaq 0xc1a(%rip), %rsi       # 0x53f0
movl $0x8, %edx
movq %r15, %rdi
callq 0x2150
testq %r14, %r14
je 0x4847
movq %r14, %rdi
callq 0x2090
movq 0x27e1(%rip), %rdi      # 0x6fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x2150
jmp 0x485f
movq 0x27cd(%rip), %rbx      # 0x6fd8
leaq 0xd73(%rip), %rsi       # 0x5585
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2150
testq %r14, %r14
je 0x4930
movq %r14, %rdi
callq 0x2090
movq 0x27a1(%rip), %rdi      # 0x6fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x2150
jmp 0x4947
movq (%r15), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl 0x20(%r15,%rax), %esi
orl $0x1, %esi
callq 0x21d0
movq 0x2772(%rip), %r14      # 0x6fd8
leaq 0xad7(%rip), %rsi       # 0x5344
movl $0x3, %edx
movq %r14, %rdi
callq 0x2150
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq 0x2740(%rip), %rdi      # 0x6fd8
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x228(%rbp,%rax)
jne 0x4920
leaq (%rax,%rbp), %rdi
addq $-0x248, %rdi           # imm = 0xFDB8
leaq -0x248(%rbp), %r14
leaq -0x40(%rbp), %r15
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2220
cmpq $0x0, -0x38(%rbp)
je 0x4920
movq (%rbx), %rdi
movq -0x40(%rbp), %rsi
movl $0x1e, %edx
callq 0x20b0
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x248, %rdi           # imm = 0xFDB8
addq $0x8, %rbx
testb $0x2, 0x20(%rdi)
je 0x48d0
xorl %ebx, %ebx
leaq -0x248(%rbp), %rdi
callq 0x2050
jmp 0x4992
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x21d0
movq 0x268a(%rip), %rbx      # 0x6fd8
leaq 0xc3d(%rip), %rsi       # 0x5592
movl $0xb, %edx
movq %rbx, %rdi
callq 0x2150
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq 0x2658(%rip), %rdi      # 0x6fd8
callq 0x2040
movl $0x1, %ebx
movq %rax, %rdi
callq 0x20d0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x49a7
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0x248(%rbp), %rdi
callq 0x2070
movl %ebx, %eax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x49c7
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x49df
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0x248(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x21f0