// File: /workspace/github_c_makefile_star2_O1/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_stmt
static fin_ast_stmt_t* fin_ast_parse_stmt(fin_ctx_t* ctx, fin_lex_t* lex) {
    switch (fin_lex_get_type(lex)) {
        case fin_lex_type_l_brace:
            return &fin_ast_parse_block_stmt(ctx, lex)->base;
        case fin_lex_type_if:
            return fin_ast_parse_if_stmt(ctx, lex);
        //case fin_lex_type_switch:
        //    return fin_ast_parse_switch_stmt(lex);
        case fin_lex_type_while:
            return fin_ast_parse_while_stmt(ctx, lex);
        case fin_lex_type_do:
            return fin_ast_parse_do_stmt(ctx, lex);
        case fin_lex_type_for:
            return fin_ast_parse_for_stmt(ctx, lex);
//        case fin_lex_type_break:
//            return fin_ast_parse_break_stmt(lex);
//        case fin_lex_type_continue:
//            return fin_ast_parse_continue_stmt(lex);
        case fin_lex_type_return:
            return fin_ast_parse_ret_stmt(ctx, lex);
        case fin_lex_type_name:
            return fin_ast_parse_expr_or_decl_stmt(ctx, lex);
        default:
            return fin_ast_parse_expr_stmt(ctx, lex, NULL);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x57a4
leal -0x32(%rax), %ecx
cmpl $0xb, %ecx
ja 0x4784
leaq 0x58d2(%rip), %rax      # 0xa034
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x46a4
cmpl $0x4, %eax
jne 0x47cf
movq %rbx, %rdi
callq 0x5844
movq %r14, %rdi
movq %rax, %rsi
callq 0x80e4
movq %rax, %r15
movq %rbx, %rdi
movl $0x8, %esi
callq 0x5782
testb %al, %al
je 0x4a9e
movq %rbx, %rdi
callq 0x5844
movq %r14, %rdi
movq %rax, %rsi
callq 0x80e4
movq %rax, %r12
jmp 0x4aa1
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
jmp 0x4b92
movq %rbx, %rdi
movl $0x38, %esi
callq 0x3985
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
movl $0xc, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, %r13
movq %rbx, %rdi
movl $0xc, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, %r12
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4737
movq %rax, %rbx
xorl %edi, %edi
movl $0x30, %esi
callq *(%r14)
movq %rax, %r15
movl $0x3, (%rax)
movq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, 0x10(%r15)
movq %r13, 0x18(%r15)
movq %r12, 0x20(%r15)
movq %rbx, 0x28(%r15)
jmp 0x4a8c
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r15
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x3985
movq %rbx, %rdi
callq 0x57a4
cmpl $0x32, %eax
jne 0x4a61
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4c14
jmp 0x4a7b
movq %rbx, %rdi
movl $0x39, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4737
movq %rax, %r12
movq %rbx, %rdi
movl $0x3a, %esi
callq 0x3985
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, %r13
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x3985
movq %rbx, %rdi
movl $0xc, %esi
callq 0x3985
xorl %edi, %edi
movl $0x20, %esi
callq *(%r14)
movq %rax, %r15
movl $0x5, (%rax)
movq $0x0, 0x8(%rax)
movq %r13, 0x18(%rax)
movq %r12, 0x10(%rax)
jmp 0x4a8c
movq %rbx, %rdi
movl $0x36, %esi
callq 0x3985
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x3985
xorl %r12d, %r12d
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4737
movq %rax, %r13
movq %rbx, %rdi
movl $0x37, %esi
callq 0x5782
testb %al, %al
je 0x49c7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4737
movq %rax, %r12
xorl %edi, %edi
movl $0x28, %esi
callq *(%r14)
movq %rax, %r15
movl $0x2, (%rax)
movq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, 0x10(%r15)
movq %r13, 0x18(%r15)
movq %r12, 0x20(%r15)
jmp 0x4a8c
movq %rbx, %rdi
movl $0x3a, %esi
callq 0x3985
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, %r12
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x3985
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4737
movq %rax, %rbx
xorl %edi, %edi
movl $0x20, %esi
callq *(%r14)
movq %rax, %r15
movl $0x4, (%rax)
movq $0x0, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rbx, 0x18(%rax)
jmp 0x4a8c
movq %rbx, %rdi
callq 0x57a4
cmpl $0xc, %eax
je 0x4a7f
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ac9
movq %rax, 0x10(%r15)
movq %rbx, %rdi
movl $0xc, %esi
callq 0x3985
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x57a4
movq (%r14), %rcx
xorl %edi, %edi
cmpl $0x4, %eax
jne 0x4b3f
movl $0x10, %esi
callq *%rcx
movq %rax, %r13
testq %r12, %r12
movq %r15, %rax
cmoveq %r12, %rax
movq %rax, (%r13)
cmoveq %r15, %r12
movq %r12, 0x8(%r13)
xorl %edi, %edi
movl $0x28, %esi
callq *(%r14)
movq %rax, %r15
movl $0x6, (%rax)
xorl %r12d, %r12d
movq %r12, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %rbx, %rdi
callq 0x5844
movq %r14, %rdi
movq %rax, %rsi
callq 0x80e4
movq %rax, 0x18(%r15)
movq %r12, 0x20(%r15)
movq %rbx, %rdi
movl $0x10, %esi
callq 0x5782
testb %al, %al
je 0x4a7f
movq %rbx, %rdi
callq 0x57a4
movq %r14, %rdi
movq %rbx, %rsi
cmpl $0x32, %eax
jne 0x4ba2
callq 0x4c14
jmp 0x4ba9
movl $0x18, %esi
callq *%rcx
movq %rax, %r13
movl $0x0, (%rax)
movq $0x0, 0x8(%rax)
movq %r15, 0x10(%rax)
testq %r12, %r12
je 0x4b7b
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movl $0x0, (%rax)
movq %r13, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x3ac9
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4bb2
xorl %edx, %edx
callq 0x3ac9
movq %rax, 0x20(%r15)
jmp 0x4a7f