// File: /workspace/github_cpp_makefile_star2_O3/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 0xf9f9(%rip), %rsi      # 0x15235
leaq 0xf9fb(%rip), %rdx      # 0x1523e
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x98d0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x586c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf9c0(%rip), %rsi      # 0x1523f
leaq 0xf9bb(%rip), %rdx      # 0x15241
leaq 0x100(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x318(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x348(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58c7
movq 0x348(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x328(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58e8
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x5905
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf814(%rip), %rsi      # 0x1512c
leaq 0xf818(%rip), %rdx      # 0x15137
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x2d0(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x300(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5960
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x2e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5981
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x599e
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x5eb0
movq %rax, (%rbx)
leaq 0xd0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf77f(%rip), %rsi      # 0x15138
leaq 0xf784(%rip), %rdx      # 0x15144
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x288(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x2b8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a01
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x298(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a22
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a3f
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x15a7a(%rip), %rdi     # 0x1b4c0
leaq 0xf70a(%rip), %rsi      # 0x15157
callq 0x2090
testl %eax, %eax
je 0x5a64
callq 0x65af
movq %rax, 0x8(%rbx)
jmp 0x5b9f
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf6e0(%rip), %rsi      # 0x15157
leaq 0xf6e3(%rip), %rdx      # 0x15161
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x240(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5abf
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x250(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ae0
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5afd
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x65af
movq %rax, 0x8(%rbx)
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf649(%rip), %rsi      # 0x15162
leaq 0xf64d(%rip), %rdx      # 0x1516d
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x1f8(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x228(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b61
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b82
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x5b9f
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1591a(%rip), %rdi     # 0x1b4c0
leaq 0xf695(%rip), %rsi      # 0x15242
callq 0x2090
testl %eax, %eax
jne 0x5d8f
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf678(%rip), %rsi      # 0x15242
leaq 0xf675(%rip), %rdx      # 0x15246
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x1b0(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x1e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c0f
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c30
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c47
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x15872(%rip), %rdi     # 0x1b4c0
leaq 0xf502(%rip), %rsi      # 0x15157
callq 0x2090
testl %eax, %eax
je 0x5c6c
callq 0x65af
movq %rax, 0x10(%rbx)
jmp 0x5d8f
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf4db(%rip), %rsi      # 0x15157
leaq 0xf4de(%rip), %rdx      # 0x15161
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x168(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cc1
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ce2
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x5cf9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x65af
movq %rax, 0x10(%rbx)
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf450(%rip), %rsi      # 0x15162
leaq 0xf454(%rip), %rdx      # 0x1516d
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x120(%rsp), %rdi
movq %r14, %rsi
callq 0x4630
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d57
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d78
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x5d8f
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 0x5ea8
movq 0x30(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0x50(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0x90(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0x70(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0xb0(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0xd0(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0xf0(%rsp), %rsi
jmp 0x5e78
movq %rax, %r14
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ea8
movq 0x110(%rsp), %rsi
incq %rsi
jmp 0x5ea3
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5e9b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x5e9b
movq %rax, %r14
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2310