// File: /workspace/github_cpp_makefile_star2_O2/JameyWoo[P]csmile/parse.cpp
// Function: param(TreeNode*)
TreeNode* param(TreeNode* k) {
    TreeNode* t = new TreeNode("Param");
    TreeNode* p = NULL;
    TreeNode* q = NULL;
    if (k == NULL && ptoken.type == "void") {
        p = new TreeNode("void");
        match("void");
    } else if (k == NULL && ptoken.type == "int") {
        p = new TreeNode("int");
        match("int");
    } else if (k != NULL) {
        p = k;
    }
    if (p != NULL) {
        t->child[0] = p;
        if (ptoken.type == "Id") {
            q            = new TreeNode("ParamId");
            q->name      = ptoken.value;
            q->line      = ptoken.line;
            t->child[1]  = q;
            t->child_cnt = 2;
            match("Id");
        }
        // TODO: 处理数组传参
    }
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, %r14
movl $0xe0, %edi
callq 0x21c0
movq %rax, %rbx
leaq 0xb2d3(%rip), %rsi      # 0xf21d
leaq 0xc8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x703e
leaq 0xc8(%rsp), %rdi
callq 0x2358
testq %r14, %r14
jne 0x40bc
leaq 0x12537(%rip), %rdi     # 0x164c0
leaq 0xb1e8(%rip), %rsi      # 0xf178
callq 0x368e
testb %al, %al
je 0x4028
movl $0xe0, %edi
callq 0x21c0
movq %rax, %r14
leaq 0xb1c7(%rip), %rsi      # 0xf178
leaq 0xa8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x703e
leaq 0xa8(%rsp), %rdi
callq 0x2358
leaq 0xb191(%rip), %rsi      # 0xf178
leaq 0x88(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0x178(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x3e94
leaq 0x178(%rsp), %rdi
callq 0x2ee6
leaq 0x88(%rsp), %rdi
jmp 0x40b7
leaq 0x12491(%rip), %rdi     # 0x164c0
leaq 0xb13e(%rip), %rsi      # 0xf174
callq 0x368e
testb %al, %al
je 0x417e
movl $0xe0, %edi
callq 0x21c0
movq %rax, %r14
leaq 0xb11d(%rip), %rsi      # 0xf174
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x703e
leaq 0x68(%rsp), %rdi
callq 0x2358
leaq 0xb0f0(%rip), %rsi      # 0xf174
leaq 0x48(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0x130(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x3e94
leaq 0x130(%rsp), %rdi
callq 0x2ee6
leaq 0x48(%rsp), %rdi
callq 0x2358
movq %r14, (%rbx)
leaq 0x123fa(%rip), %rdi     # 0x164c0
leaq 0xb15b(%rip), %rsi      # 0xf228
callq 0x368e
testb %al, %al
je 0x417e
movl $0xe0, %edi
callq 0x21c0
movq %rax, %r14
leaq 0xb135(%rip), %rsi      # 0xf223
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x703e
leaq 0x28(%rsp), %rdi
callq 0x2358
movq %r14, %rdi
addq $0xc0, %rdi
leaq 0x123bb(%rip), %rsi     # 0x164e0
callq 0x2110
movl 0x123d0(%rip), %eax     # 0x16500
movl %eax, 0x50(%r14)
movq %r14, 0x8(%rbx)
movl $0x2, 0x28(%rbx)
leaq 0xb0e2(%rip), %rsi      # 0xf228
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2efc
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3e94
leaq 0xe8(%rsp), %rdi
callq 0x2ee6
leaq 0x8(%rsp), %rdi
callq 0x2358
movq %rbx, %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
leaq 0x48(%rsp), %rdi
jmp 0x41cc
jmp 0x41d3
movq %rax, %r15
leaq 0x68(%rsp), %rdi
jmp 0x41e0
jmp 0x41e7
movq %rax, %r15
leaq 0x88(%rsp), %rdi
jmp 0x41cc
jmp 0x41d3
movq %rax, %r15
leaq 0xa8(%rsp), %rdi
jmp 0x41e0
jmp 0x41e7
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x2358
jmp 0x4216
movq %rax, %r15
jmp 0x4216
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x2358
jmp 0x41ea
movq %rax, %r15
movl $0xe0, %esi
movq %r14, %rdi
jmp 0x4211
movq %rax, %r15
leaq 0xc8(%rsp), %rdi
callq 0x2358
jmp 0x4209
movq %rax, %r15
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21d0
movq %r15, %rdi
callq 0x2300