// File: /workspace/github_cpp_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdi, %r14
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10a68(%rip), %rsi     # 0x15210
leaq 0x10a66(%rip), %rdx     # 0x15215
leaq 0x60(%rsp), %rdi
callq 0x312c
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x98d0
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x47dd
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
testq %r14, %r14
je 0x4919
movq %r14, (%rbx)
leaq 0x16cd0(%rip), %rdi     # 0x1b4c0
leaq 0x10a29(%rip), %rsi     # 0x15220
callq 0x2090
testl %eax, %eax
jne 0x494b
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x109f9(%rip), %rsi     # 0x1521b
leaq 0x109f9(%rip), %rdx     # 0x15222
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %r14, %rdi
callq 0x98d0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4852
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
addq $0xc0, %rdi
leaq 0x16c7d(%rip), %rsi     # 0x1b4e0
callq 0x2100
movl 0x16c92(%rip), %eax     # 0x1b500
movl %eax, 0x50(%r14)
movq %r14, 0x8(%rbx)
movl $0x2, 0x28(%rbx)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1098f(%rip), %rsi     # 0x15220
leaq 0x1098a(%rip), %rdx     # 0x15222
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48d9
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48fa
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x494b
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x494b
leaq 0x16ba0(%rip), %rdi     # 0x1b4c0
leaq 0x108ef(%rip), %rsi     # 0x15216
callq 0x2090
testl %eax, %eax
je 0x495d
leaq 0x16b89(%rip), %rdi     # 0x1b4c0
leaq 0x10836(%rip), %rsi     # 0x15174
callq 0x2090
testl %eax, %eax
je 0x4a3a
movq %rbx, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r14
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1089b(%rip), %rsi     # 0x15216
leaq 0x10898(%rip), %rdx     # 0x1521a
leaq 0x40(%rsp), %rdi
callq 0x312c
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x98d0
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x49b0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10852(%rip), %rsi     # 0x15216
leaq 0x1084f(%rip), %rdx     # 0x1521a
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
callq 0x312c
leaq 0x170(%rsp), %rdi
movq %r15, %rsi
callq 0x4630
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a0c
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x180(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a2d
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xc0(%rsp), %rdi
jmp 0x4b12
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r14
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1071c(%rip), %rsi     # 0x15174
leaq 0x10718(%rip), %rdx     # 0x15177
leaq 0x20(%rsp), %rdi
callq 0x312c
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x98d0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a8d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x106d3(%rip), %rsi     # 0x15174
leaq 0x106cf(%rip), %rdx     # 0x15177
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
callq 0x312c
leaq 0x128(%rsp), %rdi
movq %r15, %rsi
callq 0x4630
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ae9
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4b0a
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0x47e6
movq (%r12), %rsi
incq %rsi
callq 0x21c0
jmp 0x47e6
movq %rax, %r15
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c05
movq 0xb0(%rsp), %rsi
jmp 0x4bac
movq %rax, %r15
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x4bcf
movq 0x30(%rsp), %rsi
jmp 0x4bc2
jmp 0x4bcc
movq %rax, %r15
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c05
movq 0xd0(%rsp), %rsi
jmp 0x4bac
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x4bcf
movq 0x50(%rsp), %rsi
jmp 0x4bc2
jmp 0x4bcc
movq %rax, %r15
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c05
movq 0x90(%rsp), %rsi
incq %rsi
jmp 0x4c00
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4bcf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4bcf
movq %rax, %r15
movl $0xe0, %esi
movq %r14, %rdi
jmp 0x4c00
movq %rax, %r15
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x4bf8
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4bf8
movq %rax, %r15
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r15, %rdi
callq 0x2310