// File: /workspace/github_cpp_makefile_star2_O3/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 0x50a73(%rip), %rdi     # 0xb9fd8
leaq 0x29fa3(%rip), %rsi     # 0x9350f
xorl %edx, %edx
callq 0x52e0
leaq 0x520a6(%rip), %rdi     # 0xbb620
callq 0x75da8
leaq 0x5206a(%rip), %rdi     # 0xbb5f0
callq 0x75dea
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x69dd3
movups %xmm0, (%r14)
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%r14)
movq 0x8(%rbx), %r12
movq 0x10(%rbx), %rax
movq %rax, 0x238(%rsp)
cmpq %rax, %r12
je 0x69dcc
leaq 0x100(%rsp), %r13
leaq 0x90(%rsp), %r15
movq (%r12), %rax
movq 0x8(%rax), %rbp
movq 0x10(%rax), %rax
movq %rax, 0x240(%rsp)
cmpq %rax, %rbp
je 0x69dba
movq (%rbp), %rsi
addq $0x8, %rsi
leaq 0x51ff3(%rip), %rdi     # 0xbb5f0
xorl %edx, %edx
callq 0x7635e
movq (%rbp), %r14
testb %al, %al
je 0x69685
movq (%r14), %rbx
leaq 0x1e0(%rsp), %r14
movq %r14, 0x1d0(%rsp)
leaq 0x1d0(%rsp), %r15
movq %r15, %rdi
leaq 0x29387(%rip), %rsi     # 0x929b8
leaq 0x29394(%rip), %rdx     # 0x929cc
callq 0x253d0
movq (%rbp), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
callq 0x50d0
leaq 0xc0(%rsp), %rsi
movq %rsi, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x696c0
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x696c6
movq 0x51f54(%rip), %rax     # 0xbb5e0
movq 0x10(%r14), %rbx
cmpq -0x18(%rax), %rbx
jne 0x69743
testq %rbx, %rbx
je 0x6960c
movq -0x20(%rax), %rsi
movq 0x8(%r14), %rdi
movq %rbx, %rdx
callq 0x5280
testl %eax, %eax
jne 0x69743
jmp 0x6960c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq 0x90(%rsp), %r15
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x65f40
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x6971e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6973b
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rbp), %r14
movq 0x10(%r14), %rbx
movq %r13, 0xf0(%rsp)
movq 0x8(%r14), %rsi
addq %rsi, %rbx
leaq 0xf0(%rsp), %rdi
movq %rbx, %rdx
callq 0x351dc
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0xe0(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x351dc
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0xa0(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x351dc
leaq 0x1d0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xf0(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
movq %r15, %rcx
callq 0x636d2
leaq 0x51e09(%rip), %rdi     # 0xbb5f0
movq %rbx, %rsi
callq 0x7821a
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x69814
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
leaq 0x1e0(%rsp), %rbx
je 0x69841
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6985e
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x69883
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x698a8
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x698c5
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%r12), %rax
cmpb $0x1, 0x28(%rax)
jne 0x69954
leaq 0x258(%rsp), %r14
movq %r14, 0x248(%rsp)
leaq 0x248(%rsp), %r15
movq %r15, %rdi
leaq 0x290d8(%rip), %rsi     # 0x929cd
leaq 0x290d5(%rip), %rdx     # 0x929d1
callq 0x253d0
movq (%r12), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
callq 0x50d0
movq %rbx, 0x1d0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x190(%rsp), %r15
je 0x69b46
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0x69b4c
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq 0x8(%rsp), %rdi
callq 0x76872
leaq 0x160(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x150(%rsp), %rdi
leaq 0x29056(%rip), %rsi     # 0x929db
leaq 0x29054(%rip), %rdx     # 0x929e0
callq 0x253d0
movl $0x48, %edi
callq 0x5250
leaq 0x130(%rsp), %r14
movq %rax, %rbx
movq (%rbp), %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 0x351dc
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x140(%rsp), %rcx
movq %rcx, 0x130(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x351dc
movb $0x1, %r15b
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
movq %r14, %rdx
callq 0x7653e
xorl %r15d, %r15d
movl $0x48, %edi
callq 0x5250
movq %rax, %r14
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x351dc
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
leaq 0x110(%rsp), %r13
movq %r13, %rdi
leaq 0x29818(%rip), %rsi     # 0x93278
leaq 0x29817(%rip), %rdx     # 0x9327e
callq 0x253d0
movb $0x1, %r15b
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq 0x7653e
xorl %r15d, %r15d
leaq 0x51b1f(%rip), %rdi     # 0xbb5a8
leaq 0x150(%rsp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x75c2c
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x69ac4
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
leaq 0x100(%rsp), %r13
je 0x69ae8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
leaq 0x90(%rsp), %r15
je 0x69b15
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x69b31
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rcx
jmp 0x69d95
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x76928
movq 0x1d0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x69b96
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x69bb3
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x1c0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
leaq 0x1b0(%rsp), %rdi
leaq 0x28e00(%rip), %rsi     # 0x929d2
leaq 0x28e01(%rip), %rdx     # 0x929da
callq 0x253d0
movl $0x48, %edi
callq 0x5250
movq %rax, %r13
movq (%rbp), %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 0x351dc
movq (%r12), %rax
movq 0x20(%rax), %rax
leaq 0x1a0(%rsp), %rcx
movq %rcx, 0x190(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x351dc
movq %r15, %rdx
movb $0x1, %r15b
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7653e
xorl %r15d, %r15d
movl $0x48, %edi
callq 0x5250
movq %rax, %r14
movq %r12, %rbx
movq (%r12), %rax
movq 0x20(%rax), %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 0x351dc
leaq 0x180(%rsp), %rax
movq %rax, 0x170(%rsp)
leaq 0x170(%rsp), %r12
movq %r12, %rdi
leaq 0x295cd(%rip), %rsi     # 0x93278
leaq 0x295cc(%rip), %rdx     # 0x9327e
callq 0x253d0
movb $0x1, %r15b
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
movq %r12, %rdx
callq 0x7653e
xorl %r15d, %r15d
leaq 0x518d4(%rip), %rdi     # 0xbb5a8
leaq 0x1b0(%rsp), %rsi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x75c2c
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x69d0f
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
leaq 0x100(%rsp), %r13
movq %rbx, %r12
je 0x69d36
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x90(%rsp), %r15
je 0x69d63
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x69d85
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x69da8
movq (%rax), %rsi
incq %rsi
callq 0x5260
addq $0x8, %rbp
cmpq 0x240(%rsp), %rbp
jne 0x695ee
addq $0x8, %r12
cmpq 0x238(%rsp), %r12
jne 0x695d1
movq 0x8(%rsp), %rax
jmp 0x69de2
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq %r14, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6a1b7
movq %rax, %r12
jmp 0x6a013
movq %rax, %r12
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x69fb5
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x69fb5
movq %rax, %r12
jmp 0x6a0cc
movq %rax, %r12
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6a0bf
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6a0bf
movq %rax, %r12
jmp 0x6a183
jmp 0x6a1b7
movq %rax, %r12
movq 0x1d0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x69eee
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x69eee
movq %rax, %r12
jmp 0x6a190
jmp 0x6a1b7
movq %rax, %r12
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6a183
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6a183
movq %rax, %r12
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a013
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6a013
movq %rax, %r12
movq 0x248(%rsp), %rdi
cmpq %r14, %rdi
je 0x6a1ba
movq 0x258(%rsp), %rsi
jmp 0x6a1ad
movq %rax, %r12
jmp 0x6a0bf
movq %rax, %r12
jmp 0x69fb5
movq %rax, %r12
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x69f4e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x69f4e
jmp 0x6a1b7
movq %rax, %r12
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6a1ba
movq 0x1e0(%rsp), %rsi
jmp 0x6a1ad
movq %rax, %r12
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x69f94
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x69fb0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x69fc2
movl $0x48, %esi
movq %r14, %rdi
callq 0x5260
xorl %r15d, %r15d
jmp 0x6a073
movq %rax, %r12
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x69ff2
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a00e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6a020
movl $0x48, %esi
movq %r14, %rdi
callq 0x5260
xorl %r15d, %r15d
jmp 0x6a13d
movq %rax, %r12
jmp 0x6a03d
movq %rax, %r12
leaq 0x1d0(%rsp), %rdi
callq 0x764f0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6a0fa
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6a0fa
jmp 0x6a1b7
movq %rax, %r12
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x6a098
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6a0ba
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6a0cc
movl $0x48, %esi
movq %r13, %rdi
callq 0x5260
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x6a1ba
movq 0x1c0(%rsp), %rsi
jmp 0x6a1ad
movq %rax, %r12
jmp 0x6a11f
movq %rax, %r12
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x6a11f
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6a1ba
movq 0x100(%rsp), %rsi
jmp 0x6a1ad
movq %rax, %r12
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x6a162
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6a17e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x6a190
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x6a1ba
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6a1ba
movq %rax, %r12
movq 0x8(%rsp), %rdi
callq 0x757a6
movq %r12, %rdi
callq 0x53d0