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

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

	if(!m_feeder->path(&m_name)){
		m_feeder->setPos(m_start_line, m_start_char);
		return false;
	}
	m_feeder->blank();

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

	string scr;
	bool scr_exist = m_feeder->doBlock(&scr) || m_feeder->lineResidual(&scr);
	if(!scr_exist){
		m_feeder->setPos(m_start_line, m_start_char);
		return false;
	}

	//create a file
	string tmpdir = m_env->m_tmpdir + "/" + m_name;
	ofstream ofs(tmpdir.c_str());
	ofs << scr;
	ofs.close();

	auto *p = new DataProc();
	p->setFileName(&tmpdir);
	m_env->setData(m_scopes.back(),&m_name,p);

	m_feeder->getPos(&m_end_line, &m_end_char);
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %r12
leaq 0x34(%rbx), %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0xfe78
movq %rbx, (%rsp)
movq 0x8(%rbx), %r14
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb394(%rip), %rsi      # 0x14369
leaq 0xb391(%rip), %rdx      # 0x1436d
leaq 0x68(%rsp), %r13
movq %r13, %rdi
callq 0x74f0
movq %r14, %rdi
movq %r13, %rsi
callq 0xff28
movl %eax, %ebp
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x900d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%rsp), %r13
movq 0x8(%r13), %rdi
testb %bpl, %bpl
je 0x9157
leaq 0x88(%r13), %r14
movq %r14, %rsi
callq 0xf1a8
movq 0x8(%r13), %rdi
testb %al, %al
je 0x9157
callq 0xf326
movq 0x8(%r13), %r15
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb6fe(%rip), %rsi      # 0x14750
leaq 0xb6f8(%rip), %rdx      # 0x14751
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x74f0
movq %r15, %rdi
movq %r12, %rsi
callq 0xff28
movl %eax, %ebp
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x908a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
testb %bpl, %bpl
je 0x9179
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq 0x8(%r13), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1071a
testb %al, %al
jne 0x90d3
movq 0x8(%r13), %rdi
leaq 0x28(%rsp), %rsi
callq 0xfe84
testb %al, %al
je 0x92a3
movq 0x10(%r13), %rax
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x745a
leaq 0xb526(%rip), %rsi      # 0x1462e
leaq 0x88(%rsp), %rdi
callq 0x65d0
movq 0x88(%r13), %rsi
movq 0x90(%r13), %rdx
leaq 0x88(%rsp), %rdi
callq 0x6100
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9187
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x918f
movl (%r12), %esi
movl (%r15), %edx
callq 0xf828
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r13), %rdi
movl 0x30(%r13), %esi
movl 0x34(%r13), %edx
jmp 0x915e
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x91c4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x8(%rsp), %rsi
leaq 0x88(%rsp), %rdi
movl $0x10, %edx
callq 0x6370
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x88(%rsp), %rdi
callq 0x63a0
leaq 0x88(%rsp), %rdi
callq 0x6460
movl $0x68, %edi
callq 0x6320
movq %rax, %r15
movq %rax, %rdi
callq 0x8288
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x8300
movq (%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x50(%rax), %rax
movl -0x4(%rax), %esi
movq %r14, %rdx
movq %r15, %rcx
callq 0xbb62
movq (%rsp), %rdx
movq 0x8(%rdx), %rdi
leaq 0x38(%rdx), %rsi
addq $0x3c, %rdx
callq 0xfe78
movq 0x12d69(%rip), %rax     # 0x1bfc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x90(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x88(%rsp,%rcx)
callq 0x6280
leaq 0x180(%rsp), %rdi
callq 0x6110
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x929f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movb $0x1, %bl
jmp 0x92b6
movq 0x8(%r13), %rdi
movl 0x30(%r13), %esi
movl 0x34(%r13), %edx
callq 0xf828
xorl %ebx, %ebx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9165
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x9165
movq %rax, %r14
movl $0x68, %esi
movq %r15, %rdi
callq 0x6330
jmp 0x9329
movq %rax, %r14
jmp 0x9336
jmp 0x92ef
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x934d
movq 0x98(%rsp), %rsi
jmp 0x9345
jmp 0x930d
jmp 0x9326
movq %rax, %r14
jmp 0x934d
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9378
movq 0x58(%rsp), %rsi
jmp 0x9370
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x6490
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x934d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9378
movq 0x38(%rsp), %rsi
jmp 0x9370
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9378
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
movq %r14, %rdi
callq 0x6580