// File: /workspace/github_cpp_makefile_star2_O3/fondoger[P]C0-Compiler/src/grammar.cpp
// Function: pArgumentsList(std::vector<DataType, std::allocator<DataType>> const&)
static void pArgumentsList(const std::vector<DataType> &params)
{
    std::string temp_var;
    DataType temp_dtype;
    unsigned int args_count = 0;
    std::vector<FourTuple> to_be_pushed;

    assert(g_sym == LPARENT);
    readSymbol();
    while (true) {
        pExpression(temp_var, temp_dtype);
        if (++args_count > params.size()) {
            error(ERR_MORE_ARGUMENTS);
            return;
        }
        // check argument's data type
        if (params[args_count - 1] != temp_dtype) {
            error(ERR_WRONG_TYPE_OF_ARGUMENT);
            return;
        }
        std::string type = (temp_dtype == DT_INT ? "int" : "char");
        startCachingMidCode();
        to_be_pushed.push_back(FourTuple({PUSH, type, temp_var, NONE}));
        pauseCachingMidCode();
        if (g_sym != COMMA) {
            break;
        }
        readSymbol();
    }
    for (const auto &ft: to_be_pushed) {
        genMidCode(ft.op, ft.a, ft.b, ft.res);
    }
    if (args_count < params.size()) {
        error(ERR_LESS_ARGUMENTS);
        return;
    }
    test3(Symset({RPARENT}));
    readSymbol();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, -0x60(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
leaq 0x16511(%rip), %rax     # 0x29630
cmpl $0x1d, (%rax)
jne 0x134d8
movq %rdi, %rbx
callq 0x19d18
xorl %r13d, %r13d
leaq -0x80(%rbp), %r12
leaq -0x108(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x11c82
leal 0x1(%r13), %r15d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jb 0x13356
movl %r13d, %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x2c(%rbp), %eax
jne 0x133bb
xorl %ecx, %ecx
cmpl $0x1, %eax
leaq 0x91b3(%rip), %rsi      # 0x1c330
leaq 0x9476(%rip), %rax      # 0x1c5fa
cmoveq %rax, %rsi
sete %cl
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
negq %rcx
leaq (%rsi,%rcx), %rdx
addq $0x4, %rdx
leaq -0x50(%rbp), %rdi
callq 0x14396
callq 0x15af0
leaq -0xa0(%rbp), %r14
movl $0x9, -0xd8(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xd0(%rbp), %rdi
callq 0xe4fc
movq %r14, -0xb0(%rbp)
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xe4fc
movq %r12, -0x90(%rbp)
movq 0x11d6c(%rip), %rsi     # 0x24f80
movq 0x11d6d(%rip), %rdx     # 0x24f88
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xe4fc
leaq -0x70(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x13fd2
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x1324b
callq 0x32a0
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1325c
callq 0x32a0
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x13274
callq 0x32a0
callq 0x15afc
leaq 0x163b0(%rip), %rax     # 0x29630
movl (%rax), %r14d
cmpl $0x24, %r14d
jne 0x1328e
callq 0x19d18
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x132a0
callq 0x32a0
movl %r15d, %r13d
cmpl $0x24, %r14d
je 0x13137
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %r12
cmpq %r12, %rdi
je 0x132da
leaq 0x8(%rdi), %rsi
leaq 0x28(%rdi), %rdx
leaq 0x48(%rdi), %r14
movq %r14, %rcx
callq 0x150ec
addq $0x20, %r14
movq %r14, %rdi
cmpq %r12, %r14
jne 0x132ba
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x2, %rax
cmpq %r15, %rax
jbe 0x13432
leaq -0x118(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0xd8(%rbp), %rsi
movq $0x12, (%rsi)
leaq -0x128(%rbp), %rdi
xorl %edx, %edx
callq 0x3490
leaq -0x128(%rbp), %rdi
movq %rax, (%rdi)
movq -0xd8(%rbp), %rcx
movq %rcx, 0x10(%rdi)
movups 0x9275(%rip), %xmm0     # 0x1c5a6
movups %xmm0, (%rax)
movw $0x7373, 0x10(%rax)     # imm = 0x7373
movq %rcx, 0x8(%rdi)
movq (%rdi), %rax
movb $0x0, (%rax,%rcx)
callq 0xdccb
movq -0x128(%rbp), %rdi
jmp 0x13426
leaq -0x158(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0xd8(%rbp), %rsi
movq $0x12, (%rsi)
leaq -0x168(%rbp), %rdi
xorl %edx, %edx
callq 0x3490
leaq -0x168(%rbp), %rdi
movq %rax, (%rdi)
movq -0xd8(%rbp), %rcx
movq %rcx, 0x10(%rdi)
movups 0x91e3(%rip), %xmm0     # 0x1c57c
movups %xmm0, (%rax)
movw $0x6572, 0x10(%rax)     # imm = 0x6572
movq %rcx, 0x8(%rdi)
movq (%rdi), %rax
movb $0x0, (%rax,%rcx)
callq 0xdccb
movq -0x168(%rbp), %rdi
jmp 0x13426
leaq -0x138(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0xd8(%rbp), %rsi
movq $0x16, (%rsi)
leaq -0x148(%rbp), %rdi
xorl %edx, %edx
callq 0x3490
leaq -0x148(%rbp), %rdi
movq %rax, (%rdi)
movq -0xd8(%rbp), %rcx
movq %rcx, 0x10(%rdi)
movups 0x9191(%rip), %xmm0     # 0x1c58f
movups %xmm0, (%rax)
movabsq $0x746e656d75677261, %rdx # imm = 0x746E656D75677261
movq %rdx, 0xe(%rax)
movq %rcx, 0x8(%rdi)
movq (%rdi), %rax
movb $0x0, (%rax,%rcx)
callq 0xdccb
movq -0x148(%rbp), %rdi
cmpq %r14, %rdi
je 0x134a5
callq 0x32a0
jmp 0x134a5
leaq -0x50(%rbp), %rsi
movl $0x1e, (%rsi)
leaq -0xe8(%rbp), %rdi
movl $0x1, %edx
callq 0x13dee
movabsq $0x2600000022, %rax     # imm = 0x2600000022
leaq -0xd8(%rbp), %rsi
movq %rax, (%rsi)
leaq -0xe0(%rbp), %rdi
movl $0x2, %edx
callq 0x13dee
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0xd8a2
leaq -0x50(%rbp), %rsi
movl $0x1e, (%rsi)
leaq -0xd8(%rbp), %rdi
movl $0x1, %edx
callq 0x13dee
callq 0x19d18
leaq -0x70(%rbp), %rdi
callq 0x13f9e
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x134c6
callq 0x32a0
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8e99(%rip), %rdi      # 0x1c378
leaq 0x8ea3(%rip), %rsi      # 0x1c389
leaq 0x905c(%rip), %rcx      # 0x1c549
movl $0x27d, %edx            # imm = 0x27D
callq 0x31b0
jmp 0x13578
movq %rax, %rbx
movq -0x128(%rbp), %rdi
jmp 0x13523
jmp 0x13578
jmp 0x13578
jmp 0x13578
movq %rax, %rbx
movq -0x148(%rbp), %rdi
jmp 0x13523
jmp 0x13578
movq %rax, %rbx
movq -0x168(%rbp), %rdi
cmpq %r14, %rdi
jne 0x1358d
jmp 0x13592
jmp 0x13578
jmp 0x13578
jmp 0x13578
jmp 0x1357d
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1354d
callq 0x32a0
jmp 0x1354d
jmp 0x13578
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x13580
callq 0x32a0
jmp 0x13580
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x13f56
jmp 0x13580
movq %rax, %rbx
jmp 0x13592
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x13592
callq 0x32a0
leaq -0x70(%rbp), %rdi
callq 0x13f9e
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x135b3
callq 0x32a0
movq %rbx, %rdi
callq 0x3480