// File: /workspace/github_cpp_makefile_star2_O1/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 0x1003e
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq 0x8(%r14), %rdi
leaq 0x28(%rsp), %rsi
callq 0x10bc2
movl %eax, %ebx
testb %al, %al
je 0xd187
movl (%r15), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0xd1a6
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xd19d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xd1a3
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xd1a6
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xd154
addl $-0x3, %r12d
jmp 0xd1a6
movq 0x8(%r14), %rdi
movl 0x30(%r14), %esi
movl 0x34(%r14), %edx
callq 0xf958
jmp 0xd3d7
addl $-0x2, %r12d
jmp 0xd1a6
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 0x8e5c
leaq 0x733d(%rip), %rcx      # 0x14520
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 0xd221
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xd229
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 0xd26e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd285
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 0x7456
leaq 0x7363(%rip), %rsi      # 0x14611
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), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd2f3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xd2fa
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
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 0xd329
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 0x8278
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x82f0
movq 0x10(%r14), %rdi
movq 0x50(%r14), %rax
movl -0x4(%rax), %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0xbb82
movq 0xec2b(%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 0xd3d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xd3ee
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 0xd43a
jmp 0xd437
jmp 0xd430
jmp 0xd41a
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xd465
movq 0x58(%rsp), %rsi
jmp 0xd458
jmp 0xd462
movq %rax, %rbx
jmp 0xd444
jmp 0xd462
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x6490
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xd465
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xd465
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xd481
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movq %rbx, %rdi
callq 0x6580
nop