// File: /workspace/github_c_makefile_star2_O2/ryvnf[P]czc/parse.c
// Function: parse_stmt
static struct ast *parse_stmt(struct parse *parse)
{
    struct loc *line = get_linenr(parse);
    switch (peek_tok(parse)->type)
    {
        case IF_TOK:
            return parse_if_stmt(parse);

        case FOR_TOK:
            return parse_for_stmt(parse);

        case SWITCH_TOK:
            return parse_switch_stmt(parse);

        case TYPE_TOK:
            return parse_type_def(parse);

        case DEFINE_TOK:
            return parse_alias_def(parse);

        case RETURN_TOK:
            parse->pos++;
            return term_semicolon(parse, ast_new_ast(line, RETURN_STMT, 1, parse_expr(parse)));

        case GOTO_TOK:
            return term_semicolon(parse, parse_goto_stmt(parse));

        case BREAK_TOK:
            parse->pos++;
            return term_semicolon(parse, ast_new(line, BREAK_STMT));

        case CONTINUE_TOK:
            parse->pos++;
            return term_semicolon(parse, ast_new(line, CONTINUE_STMT));

        case FALLTHROUGH_TOK:
            parse->pos++;
            return term_semicolon(parse, ast_new(line, FALLTHROUGH_STMT));

        case IDENT_TOK:  {
            size_t pos = parse->pos;
            struct ast *lbl = parse_label_stmt(parse);
            if (lbl == NULL) {
                parse->pos = pos;
                break;
            }

            return lbl;
        }
    }

    return term_semicolon(parse, parse_expr(parse));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movl 0x14(%rdi), %ebp
movslq %ebp, %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
movq 0x8(%rax,%rdx), %r14
movl (%rax,%rdx), %edx
leal -0x102(%rdx), %esi
cmpl $0x7, %esi
ja 0x9841
leaq 0x2f26(%rip), %rdx      # 0xc748
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c92
cmpl $0x120, %edx            # imm = 0x120
je 0x9a6c
cmpl $0x123, %edx            # imm = 0x123
je 0x9acb
cmpl $0x127, %edx            # imm = 0x127
je 0x9ae1
cmpl $0x12c, %edx            # imm = 0x12C
je 0x9af7
cmpl $0x12d, %edx            # imm = 0x12D
jne 0x9b85
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r15
movq %rbx, %rdi
callq 0x8ef4
testq %rax, %rax
je 0x9c63
movq %rax, %r14
movq (%rbx), %rax
movslq 0x14(%rbx), %rbp
movq %rbp, %rcx
shlq $0x5, %rcx
cmpl $0x7b, (%rax,%rcx)
jne 0x9c33
movq %r15, 0x8(%rsp)
leaq 0x18(%rsp), %r13
andq $0x0, (%r13)
incq %rbp
movq %rbp, %rcx
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r12
movq %r12, 0x10(%rsp)
movslq %ebp, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %edx
cmpl $0x12b, %edx            # imm = 0x12B
je 0x995e
cmpl $0x12a, %edx            # imm = 0x12A
jne 0x9ba6
leal 0x1(%rbp), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0x96ef
movq %rax, %r15
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x270b
cmpq $0x0, 0x20(%rsp)
je 0x9c8a
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0x9991
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0x97b6
movq %r12, %rdi
movl $0x4109, %esi           # imm = 0x4109
pushq $0x2
popq %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2458
jmp 0x998c
cmpl $0x3a, 0x20(%rcx,%rax)
jne 0x9ba6
leal 0x2(%rbp), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0x97b6
movq %r12, %rdi
movl $0x410a, %esi           # imm = 0x410A
pushq $0x1
popq %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2458
movq %rax, %r15
jmp 0x9994
xorl %r15d, %r15d
testq %r15, %r15
je 0x9ba6
movq %r15, %rdi
callq 0x25c3
movq %rax, (%r13)
movq %r15, (%rax)
movq (%r13), %r13
addq $0x8, %r13
movslq 0x14(%rbx), %rbp
movq (%rbx), %rax
movq %rbp, %rcx
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r12
jmp 0x98db
incl %ebp
movl %ebp, 0x14(%rbx)
pushq $0x3
jmp 0x9afe
incl %ebp
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
callq 0x8ef4
pushq $0x1
popq %rdx
movq %r14, %rdi
movl $0x4105, %esi           # imm = 0x4105
movq %rax, %rcx
xorl %eax, %eax
callq 0x2458
jmp 0x9b8d
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
cmpl $0x7b, (%rax,%rcx)
jne 0x9b0c
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0x9bf5
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
movq %rbx, %rdi
callq 0x9720
testq %rax, %rax
je 0x9b73
pushq $0x1
popq %rdx
movq %r14, %rdi
movl $0x4106, %esi           # imm = 0x4106
movq %rax, %rcx
xorl %eax, %eax
callq 0x2458
movq %rax, %rsi
jmp 0x9b75
incl %ebp
movl %ebp, 0x14(%rbx)
pushq $0x4
jmp 0x9afe
movq %rbx, %rdi
callq 0x9720
testq %rax, %rax
je 0x9b82
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0x9b7a
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0x97e7
pushq $0x2
popq %rdx
movq %r14, %rdi
movl $0x410b, %esi           # imm = 0x410B
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2458
testq %rax, %rax
jne 0x9c65
jmp 0x9b82
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8be0
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8c51
incl %ebp
movl %ebp, 0x14(%rbx)
pushq $0x5
popq %rsi
movq %r14, %rdi
callq 0x236c
jmp 0x9b8d
movq %rbx, %rdi
callq 0x8ef4
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rcx,%rdx)
jne 0x9bf2
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0x8ef4
movq %rax, %rbp
movq (%rbx), %rax
movslq 0x14(%rbx), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rax,%rdx)
jne 0x9c3d
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
cmpl $0x7b, (%rax,%rcx)
jne 0x9c74
xorl %r13d, %r13d
jmp 0x9c7f
xorl %esi, %esi
movq %rbx, %rdi
jmp 0x9b93
movq %r15, %rdi
callq 0x25d9
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
callq 0x8ef4
movq %rbx, %rdi
movq %rax, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8e2e
movl %ebp, 0x14(%rbx)
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rdi
movl $0x4403, %esi           # imm = 0x4403
callq 0x2536
movq (%rbx), %rdx
movslq 0x14(%rbx), %rcx
movq %rcx, %rsi
shlq $0x5, %rsi
cmpl $0x7d, (%rdx,%rsi)
jne 0x9c2b
incl %ecx
movl %ecx, 0x14(%rbx)
pushq $0x2
popq %rdx
movq 0x8(%rsp), %rdi
movl $0x4108, %esi           # imm = 0x4108
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2458
jmp 0x9c65
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %rbx, %rdi
callq 0x8e1b
testq %rax, %rax
je 0x9c26
movq %rax, (%rsp)
pushq $0x4
popq %rdx
movq %r14, %rdi
movl $0x4104, %esi           # imm = 0x4104
movq %r12, %rcx
movq %r15, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x2458
jmp 0x9c65
movq %r15, %rbp
jmp 0x9c4b
movq %rax, %rdi
callq 0x2030
movq %r14, %rdi
callq 0x2030
jmp 0x9c63
movq %r15, %rdi
callq 0x25d9
xorl %r13d, %r13d
movq %r15, %r12
movq %r13, %rdi
callq 0x25d9
movq %rbp, %rdi
callq 0x25d9
movq %r12, %rdi
callq 0x25d9
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x8ef4
movq %rax, %r13
movq %r15, %r12
movq %rbp, %r15
jmp 0x9bf8
movq %rbx, %rdi
callq 0x8a1c