// File: /workspace/github_c_makefile_star2_O3/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
cmpl $0x11f, %edx            # imm = 0x11F
jg 0xa7e2
addl $0xfffffefe, %edx       # imm = 0xFFFFFEFE
cmpl $0x7, %edx
ja 0xab91
leaq 0x3f85(%rip), %rsi      # 0xe748
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xac9c
cmpl $0x126, %edx            # imm = 0x126
jle 0xa96c
cmpl $0x127, %edx            # imm = 0x127
je 0xaab4
cmpl $0x12c, %edx            # imm = 0x12C
je 0xaa9d
cmpl $0x12d, %edx            # imm = 0x12D
jne 0xab91
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r12
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
testq %rax, %rax
je 0xabc9
movq %rax, %r15
movq (%rbx), %rax
movslq 0x14(%rbx), %r13
movq %r13, %rcx
shlq $0x5, %rcx
cmpl $0x7b, (%rax,%rcx)
jne 0xac35
movq %r12, 0x8(%rsp)
incq %r13
leaq 0x18(%rsp), %r14
movq $0x0, (%r14)
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %rbp
movq %rbp, 0x10(%rsp)
movslq %r13d, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %edx
cmpl $0x12b, %edx            # imm = 0x12B
je 0xa8fd
cmpl $0x12a, %edx            # imm = 0x12A
jne 0xabdb
leal 0x1(%r13), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa60c
movq %rax, %r12
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x2825
cmpq $0x0, 0x20(%rsp)
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
je 0xac7d
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0xa933
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa749
movl $0x2, %edx
movq %rbp, %rdi
movl $0x4109, %esi           # imm = 0x4109
movq %r12, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2552
jmp 0xa92e
cmpl $0x3a, 0x20(%rcx,%rax)
jne 0xabdb
leal 0x2(%r13), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa749
movl $0x1, %edx
movq %rbp, %rdi
movl $0x410a, %esi           # imm = 0x410A
movq %rax, %rcx
xorl %eax, %eax
callq 0x2552
movq %rax, %r12
jmp 0xa936
xorl %r12d, %r12d
testq %r12, %r12
je 0xabdb
movq %r12, %rdi
callq 0x26d4
movq %rax, (%r14)
movq %r12, (%rax)
movq (%r14), %r14
addq $0x8, %r14
movslq 0x14(%rbx), %r13
movq (%rbx), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %rbp
jmp 0xa877
cmpl $0x120, %edx            # imm = 0x120
je 0xaa39
cmpl $0x123, %edx            # imm = 0x123
jne 0xab91
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x99f0
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x3, %esi
jmp 0xaaaa
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
movq %rbx, %rdi
callq 0xa6b9
testq %rax, %rax
je 0xabc6
movl $0x1, %edx
movq %r14, %rdi
movl $0x4106, %esi           # imm = 0x4106
jmp 0xaa1b
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
cmpl $0x7b, (%rax,%rcx)
jne 0xaaca
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0xab34
incl %ebp
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
movl $0x1, %edx
movq %r14, %rdi
movl $0x4105, %esi           # imm = 0x4105
movq %rax, %rcx
xorl %eax, %eax
callq 0x2552
jmp 0xab9b
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x4, %esi
jmp 0xaaaa
movq %rbx, %rdi
callq 0xa6b9
testq %rax, %rax
je 0xab8e
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0xab86
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa77c
movl $0x2, %edx
movq %r14, %rdi
movl $0x410b, %esi           # imm = 0x410B
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2552
movq %rax, %r14
testq %rax, %rax
jne 0xabc9
jmp 0xab8e
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x5, %esi
callq 0x245c
jmp 0xab9b
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9a7b
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rcx,%rdx)
jne 0xab34
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
movq %rax, %rbp
movq (%rbx), %rax
movslq 0x14(%rbx), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rax,%rdx)
jne 0xac3f
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
cmpl $0x7b, (%rax,%rcx)
jne 0xac65
xorl %r13d, %r13d
jmp 0xac72
xorl %r13d, %r13d
leaq -0x3f5(%rip), %rdx      # 0xa749
movq %rbx, %rdi
movl $0x7b, %esi
movl $0x7d, %ecx
movl $0x1, %r8d
callq 0x9cd5
testq %rax, %rax
je 0xab7e
movq %rax, (%rsp)
movl $0x4, %edx
movq %r14, %rdi
movl $0x4104, %esi           # imm = 0x4104
movq %r12, %rcx
movq %r15, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x2552
jmp 0xabcc
movq %r15, %rbp
jmp 0xac4d
movq %r15, %rdi
callq 0x26ef
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
testq %rax, %rax
je 0xabc6
movq %rax, %r14
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rcx,%rdx)
jne 0xabbe
incl %eax
movl %eax, 0x14(%rbx)
jmp 0xabc9
movq %r14, %rdi
callq 0x26ef
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, 0x14(%rbx)
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rdi
movl $0x4403, %esi           # imm = 0x4403
callq 0x263d
movq (%rbx), %rdx
movslq 0x14(%rbx), %rcx
movq %rcx, %rsi
shlq $0x5, %rsi
cmpl $0x7d, (%rdx,%rsi)
jne 0xac2d
incl %ecx
movl %ecx, 0x14(%rbx)
movl $0x2, %edx
movq 0x8(%rsp), %rdi
movl $0x4108, %esi           # imm = 0x4108
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2552
movq %rax, %r14
jmp 0xabc9
movq %rax, %rdi
callq 0x2030
movq %r15, %rdi
callq 0x2030
jmp 0xabc6
movq %r15, %rdi
callq 0x26ef
xorl %r13d, %r13d
movq %r15, %r12
movq %r13, %rdi
callq 0x26ef
movq %rbp, %rdi
callq 0x26ef
movq %r12, %rdi
jmp 0xabc1
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9ef1
movq %rax, %r13
movq %r15, %r12
movq %rbp, %r15
jmp 0xab37
shlq $0x5, %rax
movq 0x8(%rcx,%rax), %rdi
callq 0x8c83
leaq 0x3add(%rip), %rsi      # 0xe76f
movq %rax, %rdi
xorl %eax, %eax
callq 0x4fa1