// File: /workspace/github_cpp_makefile_star2_O1/zhengwangsun[P]pas2c/semantics.cpp
// Function: expression_list1(int, int)
int expression_list1(int k,int useFlag)
{
	TreeNode tNode= tree.node[k];
	TreeNode childNode;
	
    int flag1, flag2;
    if(lookahead(k) == 105)//105是,
    {
    	code[currentLine].append(",");
        flag1 = expression(tree.node[k].child[1],useFlag);
        if (useFlag == 3)//说明是函数调用，将读到的表达式类型记录在procArgument里面
        {
            procArgument.push_back(flag1);
        }
        
        flag2 = expression_list1(tree.node[k].child[2],useFlag);
        
        if (flag1 != -1 && flag2 != -1)//都不是-1
            return flag1;//将flag1的值返回，剩下的可以再递归看
        else
        {
            cout<<"type not match where expression_list'"<<endl;
            return -1;
        }
    }
    else if(lookahead(k) == 106)//106是e
    {
        return 0;
    }
    else
    {
        cout<<"expr_list' error!"<<endl;
        return -1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl %esi, %ebx
movslq %edi, %rax
imulq $0xa8, %rax, %rax
leaq 0xad44a(%rip), %r15     # 0xba0c8
leaq (%r15,%rax), %r14
addq $0x8, %r14
leaq 0x8(%rsp), %rax
movl $0xb, %ecx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movb 0x58(%r14), %cl
movb %cl, 0x58(%rax)
leaq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x60(%r14), %rsi
movq 0x68(%r14), %rdx
addq %rsi, %rdx
callq 0x768e
leaq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x80(%r14), %rsi
movq 0x88(%r14), %rdx
addq %rsi, %rdx
callq 0x768e
movq 0xa0(%r14), %rax
movq %rax, 0xa8(%rsp)
leaq 0x120(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x140(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
movl (%r14), %eax
movl $0x11, %edx
leaq 0x7d24(%rip), %rsi      # 0x14a54
testl %eax, %eax
jle 0xcdf6
movslq 0x4(%r14), %rcx
imulq $0xa8, %rcx, %rcx
cmpl $0x69, 0x5c(%r15,%rcx)
jne 0xcd9f
movslq 0xa785e(%rip), %rax     # 0xb45b0
shlq $0x5, %rax
leaq 0xa6bd3(%rip), %rdi     # 0xb3930
addq %rax, %rdi
leaq 0x7d0a(%rip), %rsi      # 0x14a71
callq 0x23d0
movl 0x8(%r14), %edi
movl %ebx, %esi
callq 0xc280
movl %eax, 0x4(%rsp)
cmpl $0x3, %ebx
jne 0xcdcb
movq 0xa6b71(%rip), %rsi     # 0xb38f8
cmpq 0xa6b72(%rip), %rsi     # 0xb3900
je 0xcdba
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xa6b5b(%rip)     # 0xb38f8
jmp 0xcdcb
testl %eax, %eax
jle 0xcdf6
movslq 0x4(%r14), %rax
imulq $0xa8, %rax, %rax
xorl %ebx, %ebx
cmpl $0x6a, 0x5c(%r15,%rax)
jne 0xcdf6
jmp 0xce35
leaq 0xa6b2f(%rip), %rdi     # 0xb38f0
leaq 0x4(%rsp), %rdx
callq 0xf9e2
movl 0xc(%r14), %edi
movl %ebx, %esi
callq 0xcc5a
movl 0x4(%rsp), %ebx
cmpl $-0x1, %ebx
setne %cl
cmpl $-0x1, %eax
setne %al
testb %cl, %al
jne 0xce35
movl $0x25, %edx
leaq 0x7c38(%rip), %rsi      # 0x14a2e
movq 0xd1d3(%rip), %rbx      # 0x19fd0
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq 0xd1ad(%rip), %rdi      # 0x19fd0
callq 0x2030
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x2150
movq 0x130(%rsp), %rdi
cmpq %rbp, %rdi
je 0xce52
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
cmpq %r13, %rdi
je 0xce6f
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xce8c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xcea8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebx, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xcef7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0xcef7
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xf7a8
leaq 0x8(%rsp), %rdi
callq 0xf7a8
movq %rbx, %rdi
callq 0x23a0