// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: selection_stmt()
TreeNode* selection_stmt() {
    TreeNode* t = new TreeNode("Selection");
    match("if");
    match("LeftBracket");
    if (t != NULL) {
        t->child[0] = expression();
    }
    match("RightBracket");
    bool has_bracket = false;
    if (ptoken.type == "LeftBigBkt") {
        has_bracket = true;
        match("LeftBigBkt");
    }
    t->child[1] = statement_list();
    if (has_bracket)
        match("RightBigBkt");
    if (ptoken.type == "else") {
        match("else");  // else 部分, 存在child[2]里
        // cout << "else 的开始部分*******************" << endl;
        if (t != NULL) {
            bool has_bracket_2 = false;
            if (ptoken.type == "LeftBigBkt") {
                // cout << "else 有括号***********************" << endl;
                has_bracket_2 = true;
                match("LeftBigBkt");
            } else {
                // cout << "else 无括号***********************" << endl;
            }
            t->child[2] = statement_list();
            if (has_bracket_2)
                match("RightBigBkt");
        }
    }
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x360, %rsp            # imm = 0x360
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf97a(%rip), %rsi      # 0x15235
leaq 0xf97c(%rip), %rdx      # 0x1523e
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x995c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x58eb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf941(%rip), %rsi      # 0x1523f
leaq 0xf93c(%rip), %rdx      # 0x15241
leaq 0x100(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x318(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x348(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5946
movq 0x348(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x328(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5967
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x5984
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf795(%rip), %rsi      # 0x1512c
leaq 0xf799(%rip), %rdx      # 0x15137
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x2d0(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x300(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59df
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a00
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a1d
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x5f2f
movq %rax, (%rbx)
leaq 0xd0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf700(%rip), %rsi      # 0x15138
leaq 0xf705(%rip), %rdx      # 0x15144
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x288(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x2b8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a80
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x298(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aa1
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5abe
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x159fb(%rip), %rdi     # 0x1b4c0
leaq 0xf68b(%rip), %rsi      # 0x15157
callq 0x2090
testl %eax, %eax
je 0x5ae3
callq 0x662e
movq %rax, 0x8(%rbx)
jmp 0x5c1e
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf661(%rip), %rsi      # 0x15157
leaq 0xf664(%rip), %rdx      # 0x15161
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x240(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b3e
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x250(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b5f
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5b7c
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x662e
movq %rax, 0x8(%rbx)
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf5ca(%rip), %rsi      # 0x15162
leaq 0xf5ce(%rip), %rdx      # 0x1516d
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x1f8(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x228(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5be0
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c01
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c1e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1589b(%rip), %rdi     # 0x1b4c0
leaq 0xf616(%rip), %rsi      # 0x15242
callq 0x2090
testl %eax, %eax
jne 0x5e0e
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf5f9(%rip), %rsi      # 0x15242
leaq 0xf5f6(%rip), %rdx      # 0x15246
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x1b0(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x1e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c8e
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5caf
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x5cc6
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x157f3(%rip), %rdi     # 0x1b4c0
leaq 0xf483(%rip), %rsi      # 0x15157
callq 0x2090
testl %eax, %eax
je 0x5ceb
callq 0x662e
movq %rax, 0x10(%rbx)
jmp 0x5e0e
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf45c(%rip), %rsi      # 0x15157
leaq 0xf45f(%rip), %rdx      # 0x15161
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x168(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d40
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d61
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x5d78
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x662e
movq %rax, 0x10(%rbx)
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf3d1(%rip), %rsi      # 0x15162
leaq 0xf3d5(%rip), %rdx      # 0x1516d
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x120(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dd6
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5df7
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x5e0e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rax
addq $0x360, %rsp            # imm = 0x360
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0x30(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0x50(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0x90(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0x70(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0xb0(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0xd0(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0xf0(%rsp), %rsi
jmp 0x5ef7
movq %rax, %r14
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f27
movq 0x110(%rsp), %rsi
incq %rsi
jmp 0x5f22
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5f1a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x5f1a
movq %rax, %r14
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2310