// File: /workspace/github_cpp_makefile_star2_O2/ryuichiueda[P]GlueLang/src/DefFile.cc
// Function: DefFile::parse()
bool DefFile::parse(void)
{
	m_feeder->getPos(&m_start_line, &m_start_char);

	string var_name;
	bool res = m_feeder->str("file") 
			&& m_feeder->variable(&var_name) 
			&& m_feeder->str("=");

	/*if(m_env->m_is_local){
		var_name = "local." + var_name;	
	}*/

	if(!res){
		m_feeder->setPos(m_start_line, m_start_char);
		return false;
	}

	m_feeder->getPos(&m_end_line, &m_end_char);

	try{
		m_data = new DataFile();
		string filename = m_env->m_tmpdir + "/" + var_name + "-" + to_string(m_scopes.back());
		m_data->setData(&filename);
		m_env->setData(m_scopes.back(),&var_name,m_data);
	}catch(Environment *e){
		m_error_msg = e->m_error_msg;	
		m_exit_status = 3;
		throw this;
	}catch(Data *e){
		m_error_msg = e->m_error_msg;	
		m_exit_status = 3;
		throw this;
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %r14
leaq 0x34(%rbx), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0xd614
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rbx), %r12
leaq 0x920b(%rip), %rsi      # 0x1126c
leaq 0xe0(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x708c
leaq 0xe0(%rsp), %rsi
movq %r12, %rdi
callq 0xd6ae
testb %al, %al
je 0x80d5
movq 0x8(%rbx), %rdi
movq %rsp, %rsi
callq 0xcf68
testb %al, %al
je 0x80d5
movq 0x8(%rbx), %r12
leaq 0x966e(%rip), %rsi      # 0x11710
leaq 0xc0(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x708c
leaq 0xc0(%rsp), %rsi
movq %r12, %rdi
callq 0xd6ae
movl %eax, %ebp
leaq 0xc0(%rsp), %rdi
callq 0x6150
jmp 0x80d7
xorl %ebp, %ebp
leaq 0xe0(%rsp), %rdi
callq 0x6150
movq 0x8(%rbx), %rdi
testb %bpl, %bpl
je 0x81f1
leaq 0x38(%rbx), %rsi
leaq 0x3c(%rbx), %rdx
callq 0xd614
pushq $0x50
popq %rdi
callq 0x6320
movq %rax, %r12
movq %rax, %rdi
callq 0x7bdc
movq %r12, 0x88(%rbx)
movl $0xc0, %esi
addq 0x10(%rbx), %rsi
leaq 0x94c6(%rip), %rdx      # 0x115ee
leaq 0x80(%rsp), %rdi
callq 0x70c7
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movq %rsp, %rdx
callq 0x75a1
leaq 0x911d(%rip), %rdx      # 0x11271
leaq 0x20(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x7137
movq 0x50(%rbx), %rax
movl -0x4(%rax), %esi
leaq 0x60(%rsp), %rdi
callq 0x8440
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x7a16
leaq 0x60(%rsp), %rdi
callq 0x6150
leaq 0x20(%rsp), %rdi
callq 0x6150
leaq 0xa0(%rsp), %rdi
callq 0x6150
leaq 0x80(%rsp), %rdi
callq 0x6150
movq 0x88(%rbx), %rdi
movq (%rdi), %rax
leaq 0x40(%rsp), %rsi
callq *0x10(%rax)
movq 0x10(%rbx), %rdi
movq 0x50(%rbx), %rax
movl -0x4(%rax), %esi
movq 0x88(%rbx), %rcx
movq %rsp, %rdx
callq 0xa180
leaq 0x40(%rsp), %rdi
callq 0x6150
jmp 0x81fc
movl (%r14), %esi
movl (%r15), %edx
callq 0xd0a2
movq %rsp, %rdi
callq 0x6150
movl %ebp, %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xc0(%rsp), %rdi
callq 0x6150
jmp 0x8339
jmp 0x8336
movq %rdx, %r15
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x6150
jmp 0x8248
movq %rdx, %r15
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x6150
jmp 0x825a
movq %rdx, %r15
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
callq 0x6150
jmp 0x826f
movq %rdx, %r15
movq %rax, %r14
leaq 0x80(%rsp), %rdi
jmp 0x82a1
jmp 0x828e
movq %rdx, %r15
movq %rax, %r14
pushq $0x50
popq %rsi
movq %r12, %rdi
callq 0x6330
jmp 0x82a6
movq %rdx, %r15
movq %rax, %r14
jmp 0x82a6
movq %rdx, %r15
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x6150
cmpl $0x2, %r15d
jne 0x82ec
movq %r14, %rdi
callq 0x6120
leaq 0xa0(%rax), %rsi
leaq 0x60(%rbx), %rdi
callq 0x61c0
movl $0x3, 0x80(%rbx)
pushq $0x8
popq %rdi
callq 0x6190
movq %rbx, (%rax)
leaq 0x111e0(%rip), %rsi     # 0x194c0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6540
jmp 0x832d
cmpl $0x1, %r15d
jne 0x8350
movq %r14, %rdi
callq 0x6120
leaq 0x8(%rax), %rsi
leaq 0x60(%rbx), %rdi
callq 0x61c0
movl $0x3, 0x80(%rbx)
pushq $0x8
popq %rdi
callq 0x6190
movq %rbx, (%rax)
leaq 0x1119d(%rip), %rsi     # 0x194c0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6540
jmp 0x832f
movq %rax, %r14
jmp 0x8350
jmp 0x8348
movq %rax, %r14
leaq 0xe0(%rsp), %rdi
callq 0x6150
jmp 0x8350
movq %rax, %r14
callq 0x6500
movq %rsp, %rdi
callq 0x6150
movq %r14, %rdi
callq 0x6560