// File: /workspace/github_cpp_makefile_star2_O1/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 0x1003e
movq %rbx, (%rsp)
movq 0x8(%rbx), %r14
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb3a0(%rip), %rsi      # 0x14369
leaq 0xb39d(%rip), %rdx      # 0x1436d
leaq 0x68(%rsp), %r13
movq %r13, %rdi
callq 0x74e6
movq %r14, %rdi
movq %r13, %rsi
callq 0x100e8
movl %eax, %ebp
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9001
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%rsp), %r13
movq 0x8(%r13), %rdi
testb %bpl, %bpl
je 0x9151
leaq 0x88(%r13), %r14
movq %r14, %rsi
callq 0xf1b0
movq 0x8(%r13), %rdi
testb %al, %al
je 0x9151
callq 0xf358
movq 0x8(%r13), %r15
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb6f0(%rip), %rsi      # 0x14736
leaq 0xb6ea(%rip), %rdx      # 0x14737
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x74e6
movq %r15, %rdi
movq %r12, %rsi
callq 0x100e8
movl %eax, %ebp
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x907e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
testb %bpl, %bpl
je 0x9173
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq 0x8(%r13), %rdi
leaq 0x28(%rsp), %rsi
callq 0x108de
movb $0x1, %bpl
testb %al, %al
jne 0x90c4
movq 0x8(%r13), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1004a
movl %eax, %ebp
testb %bpl, %bpl
je 0x9181
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 0x7456
leaq 0xb50f(%rip), %rsi      # 0x14611
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 0x9197
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x919f
movl (%r12), %esi
movl (%r15), %edx
callq 0xf958
xorl %ebp, %ebp
movl %ebp, %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 0x9158
movq 0x8(%r13), %rdi
movl 0x30(%r13), %esi
movl 0x34(%r13), %edx
callq 0xf958
jmp 0x92af
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 0x91d4
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 0x8278
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x82f0
movq (%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x50(%rax), %rax
movl -0x4(%rax), %esi
movq %r14, %rdx
movq %r15, %rcx
callq 0xbb82
movq (%rsp), %rdx
movq 0x8(%rdx), %rdi
leaq 0x38(%rdx), %rsi
addq $0x3c, %rdx
callq 0x1003e
movq 0x12d59(%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 0x92af
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x915f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x915f
movq %rax, %r14
movl $0x68, %esi
movq %r15, %rdi
callq 0x6330
jmp 0x9309
movq %rax, %r14
jmp 0x9316
jmp 0x92e8
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x9332
movq 0x98(%rsp), %rsi
jmp 0x9325
jmp 0x932f
jmp 0x9306
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x6490
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9332
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x9332
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9371
movq 0x38(%rsp), %rsi
jmp 0x9369
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9371
movq 0x58(%rsp), %rsi
jmp 0x9369
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9371
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
movq %r14, %rdi
callq 0x6580
nopl (%rax)