// File: /workspace/github_c_makefile_star2_O1/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 0xaa2c
addl $0xfffffefe, %edx       # imm = 0xFFFFFEFE
cmpl $0x7, %edx
ja 0xae4f
leaq 0x3d4b(%rip), %rsi      # 0xe758
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 0xaf05
cmpl $0x126, %edx            # imm = 0x126
jle 0xac14
cmpl $0x127, %edx            # imm = 0x127
je 0xad63
cmpl $0x12c, %edx            # imm = 0x12C
je 0xad4c
cmpl $0x12d, %edx            # imm = 0x12D
jne 0xae4f
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r12
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
testq %rax, %rax
je 0xae87
movq %rax, %r15
movq (%rbx), %rax
movslq 0x14(%rbx), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
cmpl $0x7b, (%rax,%rdx)
jne 0xaea1
movq %r12, 0x8(%rsp)
incq %rcx
movl %ecx, 0x14(%rbx)
leaq 0x18(%rsp), %r12
movq $0x0, (%r12)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %rax
movq %rax, 0x10(%rsp)
movl 0x14(%rbx), %r13d
movslq %r13d, %rax
movq (%rbx), %rcx
movq %rax, %rdx
shlq $0x5, %rdx
movq 0x8(%rcx,%rdx), %rbp
movl (%rcx,%rdx), %edx
cmpl $0x12b, %edx            # imm = 0x12B
je 0xab57
cmpl $0x12a, %edx            # imm = 0x12A
jne 0xab92
leal 0x1(%r13), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa863
movq %rax, %r14
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x2805
cmpq $0x0, 0x20(%rsp)
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
je 0xaee6
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0xab92
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa993
movl $0x2, %edx
movq %rbp, %rdi
movl $0x4109, %esi           # imm = 0x4109
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2532
jmp 0xab8d
incq %rax
movl %eax, 0x14(%rbx)
shlq $0x5, %rax
cmpl $0x3a, (%rcx,%rax)
jne 0xab92
leal 0x2(%r13), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa993
movl $0x1, %edx
movq %rbp, %rdi
movl $0x410a, %esi           # imm = 0x410A
movq %rax, %rcx
xorl %eax, %eax
callq 0x2532
movq %rax, %rbp
jmp 0xab94
xorl %ebp, %ebp
testq %rbp, %rbp
je 0xabb2
movq %rbp, %rdi
callq 0x26b4
movq %rax, (%r12)
movq %rbp, (%rax)
movq (%r12), %r12
addq $0x8, %r12
jmp 0xabb6
movl %r13d, 0x14(%rbx)
testq %rbp, %rbp
jne 0xaac2
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rdi
movl $0x4403, %esi           # imm = 0x4403
callq 0x261d
movq (%rbx), %rdx
movslq 0x14(%rbx), %rcx
movq %rcx, %rsi
shlq $0x5, %rsi
cmpl $0x7d, (%rdx,%rsi)
jne 0xae99
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 0x2532
movq %rax, %r14
jmp 0xae87
cmpl $0x120, %edx            # imm = 0x120
je 0xacf1
cmpl $0x123, %edx            # imm = 0x123
jne 0xae4f
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c08
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x3, %esi
jmp 0xad59
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
movq %rbx, %rdi
callq 0xa903
testq %rax, %rax
je 0xae2d
movl $0x1, %edx
movq %r14, %rdi
movl $0x4106, %esi           # imm = 0x4106
movq %rax, %rcx
xorl %eax, %eax
callq 0x2532
movq %rax, %r14
jmp 0xae30
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %r14
cmpl $0x7b, (%rax,%rcx)
jne 0xad79
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0xade3
incl %ebp
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
movl $0x1, %edx
movq %r14, %rdi
movl $0x4105, %esi           # imm = 0x4105
movq %rax, %rcx
xorl %eax, %eax
callq 0x2532
jmp 0xae59
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x4, %esi
jmp 0xad59
movq %rbx, %rdi
callq 0xa903
testq %rax, %rax
je 0xae44
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3a, (%rcx,%rdx)
jne 0xae3c
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
callq 0xa9c6
movl $0x2, %edx
movq %r14, %rdi
movl $0x410b, %esi           # imm = 0x410B
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2532
movq %rax, %r14
jmp 0xae47
incl %ebp
movl %ebp, 0x14(%rbx)
movq %r14, %rdi
movl $0x5, %esi
callq 0x243c
jmp 0xae59
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c93
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
movq %rax, %r15
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rcx,%rdx)
jne 0xade3
incl %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
movq %rax, %rbp
movq (%rbx), %rax
movslq 0x14(%rbx), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rax,%rdx)
jne 0xaeab
incq %rcx
movl %ecx, 0x14(%rbx)
shlq $0x5, %rcx
cmpl $0x7b, (%rax,%rcx)
jne 0xaece
xorl %r13d, %r13d
jmp 0xaedb
xorl %r13d, %r13d
leaq -0x45a(%rip), %rdx      # 0xa993
movq %rbx, %rdi
movl $0x7b, %esi
movl $0x7d, %ecx
movl $0x1, %r8d
callq 0x9efe
testq %rax, %rax
je 0xae37
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 0x2532
jmp 0xae8a
xorl %r14d, %r14d
testq %r14, %r14
jne 0xae61
jmp 0xae84
movq %r15, %rbp
jmp 0xaeb9
movq %r15, %rdi
callq 0x26cf
xorl %r14d, %r14d
testq %r14, %r14
jne 0xae87
movl %ebp, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
testq %rax, %rax
je 0xae84
movq %rax, %r14
movq (%rbx), %rcx
movslq 0x14(%rbx), %rax
movq %rax, %rdx
shlq $0x5, %rdx
cmpl $0x3b, (%rcx,%rdx)
jne 0xae7c
incl %eax
movl %eax, 0x14(%rbx)
jmp 0xae87
movq %r14, %rdi
callq 0x26cf
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x2030
movq %r15, %rdi
callq 0x2030
jmp 0xae84
movq %r15, %rdi
callq 0x26cf
xorl %r13d, %r13d
movq %r15, %r12
movq %r13, %rdi
callq 0x26cf
movq %rbp, %rdi
callq 0x26cf
movq %r12, %rdi
jmp 0xae7f
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa102
movq %rax, %r13
movq %r15, %r12
movq %rbp, %r15
jmp 0xade6
shlq $0x5, %rax
movq 0x8(%rcx,%rax), %rdi
callq 0x8dff
leaq 0x3884(%rip), %rsi      # 0xe77f
movq %rax, %rdi
xorl %eax, %eax
callq 0x5011