// File: /workspace/github_cpp_makefile_star2_O1/kelwinfc[P]ci4721-Fernandez-Gyomrey/src/AST/to_tac.cpp
// Function: AST_parameters_list::to_tac(Tac*)
void AST_parameters_list::to_tac(Tac* t){
    vector<opd*> params;
    for (vector< AST_expression* >::iterator it = elem.begin();
         it != elem.end(); ++ it)
    {
        opd *v = (*it)->to_tac(t), *o = new opd();
        if ((*it)->type == BOOLEAN) {
            t->backpatch((*it)->truelist, t->next_instruction() );
            t->append_quad(inst::CP, o, new opd(true), 0,
                                    "argumento de función booleano (true)");
            t->append_quad(inst::GOTO, 0, 0,
                            new opd(t->next_instruction() + 2, O_LABEL),
                                "salto después de asignar el valor booleano");

            t->backpatch( (*it)->falselist, t->next_instruction() );
            t->append_quad(inst::CP, o, new opd(false), 0,
                                    "argumento de función booleano (false)");
        } else {
            t->append_quad(inst::CP, o, v, 0,
                                    "argumento de función no booleano");
        }
        params.push_back(o);
    }
    for (vector< opd* >::iterator it = params.begin();
         it != params.end(); ++ it)
    {
        t->append_quad(inst::PARAM, *it, 0, 0,"argumento de función");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x10(%rdi), %r15
cmpq 0x18(%rdi), %r15
je 0x12161
movq %rdi, %r14
movq (%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
movq %rax, %r13
movl $0x18, %edi
callq 0x62e0
movq %rax, %r12
movq %rax, %rdi
callq 0x1cfb4
movq %r12, 0x8(%rsp)
movq (%r15), %rbp
cmpl $0x6, 0x10(%rbp)
jne 0x120d0
movq %rbx, %rdi
callq 0x2af04
addq $0x18, %rbp
movq %rbx, %rdi
movq %rbp, %rsi
movl %eax, %edx
callq 0x2af0e
movq 0x8(%rsp), %r13
movl $0x18, %edi
callq 0x62e0
movq %rax, %r12
movq %rax, %rdi
movl $0x1, %esi
callq 0x1d36e
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
leaq 0x1bb2a(%rip), %rsi     # 0x2daaf
leaq 0x1bb48(%rip), %rdx     # 0x2dad4
callq 0x6fec
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
movq %rbp, %r9
callq 0x2ae24
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x11fc3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x62f0
movl $0x18, %edi
callq 0x62e0
movq %rax, %r13
movq %rbx, %rdi
callq 0x2af04
addl $0x2, %eax
movq %r13, %rdi
movl %eax, %esi
movl $0x6, %edx
callq 0x1cfca
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
leaq 0x1b00e(%rip), %rsi     # 0x2d011
leaq 0x1b032(%rip), %rdx     # 0x2d03c
callq 0x6fec
movq %rbx, %rdi
movl $0x16, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r13, %r8
movq %r12, %r9
callq 0x2ae24
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x12042
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
movq (%r15), %r12
movq %rbx, %rdi
callq 0x2af04
addq $0x30, %r12
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x2af0e
movq 0x8(%rsp), %r13
movl $0x18, %edi
callq 0x62e0
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
callq 0x1d36e
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x88(%rsp), %rbp
movq %rbp, %rdi
leaq 0x1ba39(%rip), %rsi     # 0x2dad5
leaq 0x1ba58(%rip), %rdx     # 0x2dafb
callq 0x6fec
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
movq %rbp, %r9
callq 0x2ae24
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
jmp 0x12115
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
leaq 0x1ba13(%rip), %rsi     # 0x2dafc
leaq 0x1ba2d(%rip), %rdx     # 0x2db1d
callq 0x6fec
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
movq %rbp, %r9
callq 0x2ae24
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x12128
movq (%rax), %rsi
incq %rsi
callq 0x62f0
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x12144
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x12153
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x16e80
addq $0x8, %r15
cmpq 0x18(%r14), %r15
jne 0x11efe
movq 0x10(%rsp), %r14
cmpq 0x18(%rsp), %r14
je 0x121e1
leaq 0xb8(%rsp), %rbp
leaq 0x1b9b7(%rip), %r15     # 0x2db33
leaq 0xa8(%rsp), %r12
movq (%r14), %r13
movq %rbp, 0xa8(%rsp)
movq %r12, %rdi
leaq 0x1b985(%rip), %rsi     # 0x2db1e
movq %r15, %rdx
callq 0x6fec
movq %rbx, %rdi
movl $0x2, %esi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r12, %r9
callq 0x2ae24
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x121d6
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x62f0
addq $0x8, %r14
cmpq 0x18(%rsp), %r14
jne 0x12184
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x121f8
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x62f0
addq $0xc8, %rsp
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 0x122d7
movq 0x78(%rsp), %rsi
jmp 0x122ca
jmp 0x122d4
jmp 0x122d4
jmp 0x12296
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x122d7
movq 0x98(%rsp), %rsi
jmp 0x122ca
jmp 0x122d4
jmp 0x12296
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x122d7
movq 0x58(%rsp), %rsi
jmp 0x122ca
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x122d7
movq 0x38(%rsp), %rsi
jmp 0x122ca
jmp 0x122d4
jmp 0x122d4
movq %rax, %rbx
movl $0x18, %esi
movq %r12, %rdi
jmp 0x122cd
movq %rax, %rbx
movl $0x18, %esi
movq %r13, %rdi
jmp 0x122cd
jmp 0x122d4
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x122d7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x122d7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x122ee
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x62f0
movq %rbx, %rdi
callq 0x6550