// File: /workspace/github_c_makefile_star2_O2/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 0x5559
leal -0x32(%rax), %ecx
cmpl $0xb, %ecx
ja 0x45dc
leaq 0x4a7a(%rip), %rax      # 0x9034
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 0x4511
cmpl $0x4, %eax
jne 0x4625
movq %rbx, %rdi
callq 0x55f7
movq %r14, %rdi
movq %rax, %rsi
callq 0x781e
movq %rax, %r15
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x5537
testb %al, %al
je 0x48bc
movq %rbx, %rdi
callq 0x55f7
movq %r14, %rdi
movq %rax, %rsi
callq 0x781e
movq %rax, %r12
jmp 0x48bf
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
jmp 0x499e
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0x2e
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, -0x30(%rbp)
pushq $0xc
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, %r13
movq %rbx, %rdi
movl %r15d, %esi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, %r12
pushq $0x2f
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x458f
movq %rax, %rbx
pushq $0x30
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x3, (%rax)
andq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, 0x10(%r15)
movq %r13, 0x18(%r15)
movq %r12, 0x20(%r15)
movq %rbx, 0x28(%r15)
jmp 0x48aa
pushq $0x18
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
pushq $0x3d
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %rbx, %rdi
callq 0x5559
cmpl $0x32, %eax
jne 0x4881
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4a16
jmp 0x489b
pushq $0x39
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x458f
movq %rax, %r12
pushq $0x3a
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0x2e
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, %r13
pushq $0x2f
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0xc
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0x20
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x5, (%rax)
andq $0x0, 0x8(%rax)
movq %r13, 0x18(%rax)
movq %r12, 0x10(%rax)
jmp 0x48aa
pushq $0x36
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0x2e
popq %rsi
movq %rbx, %rdi
callq 0x38da
xorl %r12d, %r12d
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, -0x30(%rbp)
pushq $0x2f
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x458f
movq %rax, %r13
pushq $0x37
popq %rsi
movq %rbx, %rdi
callq 0x5537
testb %al, %al
je 0x47f7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x458f
movq %rax, %r12
pushq $0x28
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x2, (%rax)
andq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, 0x10(%r15)
movq %r13, 0x18(%r15)
movq %r12, 0x20(%r15)
jmp 0x48aa
pushq $0x3a
popq %rsi
movq %rbx, %rdi
callq 0x38da
pushq $0x2e
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, %r12
pushq $0x2f
popq %rsi
movq %rbx, %rdi
callq 0x38da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x458f
movq %rax, %rbx
pushq $0x20
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x4, (%rax)
andq $0x0, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rbx, 0x18(%rax)
jmp 0x48aa
movq %rbx, %rdi
callq 0x5559
cmpl $0xc, %eax
je 0x489f
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a1d
movq %rax, 0x10(%r15)
pushq $0xc
popq %rsi
movq %rbx, %rdi
callq 0x38da
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 0x5559
movq (%r14), %rcx
cmpl $0x4, %eax
jne 0x4956
pushq $0x10
popq %rsi
xorl %edi, %edi
callq *%rcx
movq %rax, %r13
testq %r12, %r12
movq %r15, %rax
cmoveq %r12, %rax
movq %rax, (%r13)
cmoveq %r15, %r12
movq %r12, 0x8(%r13)
pushq $0x28
popq %rsi
xorl %edi, %edi
callq *(%r14)
movq %rax, %r15
movl $0x6, (%rax)
andq $0x0, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %rbx, %rdi
callq 0x55f7
movq %r14, %rdi
movq %rax, %rsi
callq 0x781e
movq %rax, 0x18(%r15)
andq $0x0, 0x20(%r15)
movq %rbx, %rdi
pushq $0x10
popq %rsi
callq 0x5537
testb %al, %al
je 0x489f
movq %rbx, %rdi
callq 0x5559
movq %r14, %rdi
movq %rbx, %rsi
cmpl $0x32, %eax
jne 0x49ae
callq 0x4a16
jmp 0x49b5
pushq $0x18
popq %rsi
xorl %edi, %edi
callq *%rcx
movq %rax, %r13
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %r15, 0x10(%rax)
testq %r12, %r12
je 0x4987
pushq $0x18
popq %rsi
xorl %edi, %edi
callq *(%r14)
andl $0x0, (%rax)
movq %r13, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x3a1d
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 0x49be
xorl %edx, %edx
callq 0x3a1d
movq %rax, 0x20(%r15)
jmp 0x489f