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

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

	m_name = "unnamed" + to_string(m_start_line);

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x30(%r14), %r15
leaq 0x34(%r14), %rdx
movq %r15, %rsi
callq 0xfe78
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq 0x8(%r14), %rdi
leaq 0x28(%rsp), %rsi
callq 0x109fe
movl %eax, %ebx
testb %al, %al
je 0xd13b
movl (%r15), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0xd15a
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xd151
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xd157
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xd15a
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xd108
addl $-0x3, %r12d
jmp 0xd15a
movq 0x8(%r14), %rdi
movl 0x30(%r14), %esi
movl 0x34(%r14), %edx
callq 0xf828
jmp 0xd38e
addl $-0x2, %r12d
jmp 0xd15a
decl %r12d
shrl $0x1f, %r15d
leal (%r12,%r15), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
leaq 0x8(%rsp), %r13
addq (%r13), %r15
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x8e6a
leaq 0x73a9(%rip), %rcx      # 0x14540
movl $0x7, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6390
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x18(%rsp), %rbp
je 0xd1d5
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xd1dd
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %r12
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb0(%r14), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x63f0
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xd222
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd239
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x10(%r14), %rax
leaq 0x48(%rsp), %rdi
movq %r13, (%rdi)
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
addq %rsi, %rdx
callq 0x745a
leaq 0x73cc(%rip), %rsi      # 0x1462e
leaq 0x48(%rsp), %rdi
callq 0x65d0
movq 0xb0(%r14), %rsi
movq 0xb8(%r14), %rdx
leaq 0x48(%rsp), %rdi
callq 0x6100
movq %rbp, 0x8(%rsp)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0xd2a7
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xd2b1
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %rbp, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xd2e5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movl $0x10, %edx
leaq 0x38(%rsp), %r13
callq 0x6370
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x63a0
movl $0x68, %edi
callq 0x6320
movq %rax, %r12
movq %rax, %rdi
callq 0x8288
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x8300
movq 0x10(%r14), %rdi
movq 0x50(%r14), %rax
movl -0x4(%rax), %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0xbb62
movq 0xec74(%rip), %rax      # 0x1bfc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x50(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x48(%rsp,%rcx)
callq 0x6280
leaq 0x140(%rsp), %rdi
callq 0x6110
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd38e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xd3a5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movl %ebx, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x68, %esi
movq %r12, %rdi
callq 0x6330
jmp 0xd3f1
jmp 0xd3ee
jmp 0xd3e7
jmp 0xd3d1
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xd41c
movq 0x58(%rsp), %rsi
jmp 0xd40f
jmp 0xd419
movq %rax, %rbx
jmp 0xd3fb
jmp 0xd419
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x6490
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xd41c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xd41c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xd438
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movq %rbx, %rdi
callq 0x6580