// File: /workspace/github_cpp_makefile_star2_O1/sighingnow[P]compile-pascal/pl0_tac_gen.cpp
// Function: pl0_tac_param[abi:cxx11](pl0_ast_param_list const*)
vector<string> pl0_tac_param(pl0_ast_param_list const *param) {
    cout << __func__;
    // set up new flag, new scope.
    valtb.tag(); vartb.tag();
    
    if (!param) { return vector<string>(); } // no parameter.
    vector<string> type;
    for (auto && group: param->params) {
        for (auto && id: group->ids) {
            // validte.
            if (vartb.find(id->id, false) || id->id == scope.back()) {
                pl0_ast_error(id->loc, string("duplicate parameter ") + id->id);
            }
            vartb.push(variable(id->id, group->type->type, group->type->type)); // add parameters to symbol table.
            if (group->is_ref) {
                type.emplace_back(string("ref_") + group->type->type);
                irb.emit("paramref", new Value(id->id, group->type->type), new Value(group->type->type, "string"));
            }
            else {
                type.emplace_back(group->type->type);
                irb.emit("param", new Value(id->id, group->type->type), new Value(group->type->type, "string"));
            }
        }
    }
    return type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %rbx
movq %rdi, %r14
movq 0x50c97(%rip), %rdi     # 0xbffd8
leaq 0x2a1c7(%rip), %rsi     # 0x9950f
xorl %edx, %edx
callq 0x52e0
leaq 0x522ca(%rip), %rdi     # 0xc1620
callq 0x7b6ba
leaq 0x5228e(%rip), %rdi     # 0xc15f0
callq 0x7b6fc
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%r14)
testq %rbx, %rbx
je 0x6fbab
movq 0x8(%rbx), %r12
movq 0x10(%rbx), %rax
movq %rax, 0x238(%rsp)
cmpq %rax, %r12
je 0x6fbab
leaq 0xe0(%rsp), %r14
leaq 0xc0(%rsp), %r15
leaq 0xf0(%rsp), %r13
movq (%r12), %rax
movq 0x8(%rax), %rbp
movq 0x10(%rax), %rax
movq %rax, 0x240(%rsp)
cmpq %rax, %rbp
je 0x6fb99
movq (%rbp), %rsi
addq $0x8, %rsi
leaq 0x5220f(%rip), %rdi     # 0xc15f0
xorl %edx, %edx
callq 0x7bc48
testb %al, %al
je 0x6f455
movq (%rbp), %rax
movq (%rax), %rbx
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %r13, %rdi
leaq 0x295ab(%rip), %rsi     # 0x989b8
leaq 0x295b8(%rip), %rdx     # 0x989cc
callq 0x2670a
movq (%rbp), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r13, %rdi
callq 0x50d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f48d
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x6f493
movq (%rbp), %rax
movq 0x52180(%rip), %rcx     # 0xc15e0
movq 0x10(%rax), %rdx
cmpq -0x18(%rcx), %rdx
jne 0x6f4f9
testq %rdx, %rdx
je 0x6f3ec
movq -0x20(%rcx), %rsi
movq 0x8(%rax), %rdi
callq 0x5280
testl %eax, %eax
jne 0x6f4f9
jmp 0x6f3ec
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x6be78
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4d4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4f9
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rbp), %rax
movq %r14, 0xd0(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x36590
movq (%r12), %rax
movq 0x20(%rax), %rax
movq %r15, 0xb0(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x36590
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x228(%rsp), %rcx
movq %rcx, 0x218(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rbx
movq %rbx, %rdi
callq 0x36590
movq %r13, %rdi
leaq 0xd0(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %rbx, %rcx
callq 0x695b0
leaq 0x52056(%rip), %rdi     # 0xc15f0
movq %r13, %rsi
callq 0x7dacc
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x6f5c7
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x6f5ec
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x6f611
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0x6f636
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f653
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x248(%rsp), %r15
je 0x6f678
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%r12), %rax
cmpb $0x1, 0x28(%rax)
jne 0x6f6fb
leaq 0x258(%rsp), %r14
movq %r14, 0x248(%rsp)
movq %r15, %rdi
leaq 0x29331(%rip), %rsi     # 0x989cd
leaq 0x2932e(%rip), %rdx     # 0x989d1
callq 0x2670a
leaq 0x100(%rsp), %rbx
movq (%r12), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
callq 0x50d0
movq %rbx, 0xf0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f900
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x6f906
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq 0x8(%rsp), %rdi
callq 0x7c138
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
leaq 0x198(%rsp), %rdi
leaq 0x292af(%rip), %rsi     # 0x989db
leaq 0x292ad(%rip), %rdx     # 0x989e0
callq 0x2670a
movl $0x48, %edi
callq 0x5250
leaq 0x178(%rsp), %r14
movq %rax, %rbx
movq (%rbp), %rax
leaq 0x60(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x36590
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x188(%rsp), %rcx
movq %rcx, 0x178(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x36590
movb $0x1, %r15b
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0x7be1c
xorl %r15d, %r15d
movl $0x48, %edi
callq 0x5250
movq %rax, %r14
movq %rbx, (%rsp)
movq %r12, %rax
movq %r13, %r12
movq %rax, %rbx
movq (%rax), %rax
movq 0x20(%rax), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x36590
leaq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
leaq 0x158(%rsp), %r13
movq %r13, %rdi
leaq 0x29a65(%rip), %rsi     # 0x99278
leaq 0x29a64(%rip), %rdx     # 0x9927e
callq 0x2670a
movb $0x1, %r15b
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movq %r13, %rdx
callq 0x7be1c
xorl %r15d, %r15d
leaq 0x51d6c(%rip), %rdi     # 0xc15a8
leaq 0x198(%rsp), %rsi
movq (%rsp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x7b53e
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6f878
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
leaq 0xe0(%rsp), %r14
leaq 0xc0(%rsp), %r15
movq %r12, %r13
je 0x6f8a7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r12
je 0x6f8cf
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6f8eb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rcx
jmp 0x6fb74
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x7c1e6
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6f94b
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x6f968
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x208(%rsp), %rax
movq %rax, 0x1f8(%rsp)
leaq 0x1f8(%rsp), %rdi
leaq 0x2904b(%rip), %rsi     # 0x989d2
leaq 0x2904c(%rip), %rdx     # 0x989da
callq 0x2670a
leaq 0x1d8(%rsp), %r14
movl $0x48, %edi
callq 0x5250
movq %rax, %rbx
movq (%rbp), %rax
leaq 0xa0(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x36590
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x1e8(%rsp), %rcx
movq %rcx, 0x1d8(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x36590
movb $0x1, %r15b
movq %rbx, %rdi
leaq 0x90(%rsp), %rsi
movq %r14, %rdx
callq 0x7be1c
xorl %r15d, %r15d
movl $0x48, %edi
callq 0x5250
movq %rax, %r14
movq %rbx, (%rsp)
movq %r12, %rax
movq %r13, %r12
movq %rax, %rbx
movq (%rax), %rax
movq 0x20(%rax), %rax
leaq 0x80(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x36590
leaq 0x1c8(%rsp), %rax
movq %rax, 0x1b8(%rsp)
leaq 0x1b8(%rsp), %r13
movq %r13, %rdi
leaq 0x297fb(%rip), %rsi     # 0x99278
leaq 0x297fa(%rip), %rdx     # 0x9927e
callq 0x2670a
movb $0x1, %r15b
movq %r14, %rdi
leaq 0x70(%rsp), %rsi
movq %r13, %rdx
callq 0x7be1c
xorl %r15d, %r15d
leaq 0x51b02(%rip), %rdi     # 0xc15a8
leaq 0x1f8(%rsp), %rsi
movq (%rsp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x7b53e
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x6fae2
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
leaq 0xe0(%rsp), %r14
leaq 0xc0(%rsp), %r15
movq %r12, %r13
je 0x6fb17
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r12
je 0x6fb3f
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6fb64
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x6fb87
movq (%rax), %rsi
incq %rsi
callq 0x5260
addq $0x8, %rbp
cmpq 0x240(%rsp), %rbp
jne 0x6f3d2
addq $0x8, %r12
cmpq 0x238(%rsp), %r12
jne 0x6f3b5
movq 0x8(%rsp), %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ff27
movq %rax, %r12
movb $0x1, %r15b
movq (%rsp), %rbx
jmp 0x6fd83
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6fcfb
movq %rax, %r12
jmp 0x6fe44
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6fe0d
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6feee
jmp 0x6ff27
movq %rax, %r12
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6fc4c
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6fc4c
movq %rax, %r12
jmp 0x6ff00
jmp 0x6ff27
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6fed2
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6fd63
movq %rax, %r12
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x6ff2a
movq 0x258(%rsp), %rsi
jmp 0x6ff1d
movq %rax, %r12
movb $0x1, %r15b
jmp 0x6fe32
movq %rax, %r12
movb $0x1, %r15b
movq (%rsp), %rbx
jmp 0x6fd21
movq %rax, %r12
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6fcad
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6fcad
jmp 0x6ff27
movq %rax, %r12
leaq 0x100(%rsp), %rax
movq 0xf0(%rsp), %rdi
cmpq %rax, %rdi
je 0x6ff2a
movq 0x100(%rsp), %rsi
jmp 0x6ff1d
movq %rax, %r12
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x6fcfb
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6fd21
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6fd33
movl $0x48, %esi
movq %r14, %rdi
callq 0x5260
xorl %r15d, %r15d
jmp 0x6fde8
movq %rax, %r12
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6fd63
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6fd83
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6fd95
movl $0x48, %esi
movq %r14, %rdi
callq 0x5260
xorl %r15d, %r15d
jmp 0x6fead
movq %rax, %r12
jmp 0x6fdb2
movq %rax, %r12
leaq 0xf0(%rsp), %rdi
callq 0x7bdce
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0x6fe72
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6fe72
jmp 0x6ff27
movq %rax, %r12
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x6fe0d
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6fe32
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6fe44
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x6ff2a
movq 0x208(%rsp), %rsi
jmp 0x6ff1d
movq %rax, %r12
jmp 0x6fe8f
movq %rax, %r12
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6fe8f
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6ff2a
movq 0xe0(%rsp), %rsi
jmp 0x6ff1d
movq %rax, %r12
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x6fed2
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6feee
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6ff00
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ff2a
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6ff2a
movq %rax, %r12
movq 0x8(%rsp), %rdi
callq 0x7b062
movq %r12, %rdi
callq 0x53d0