// File: /workspace/github_c_makefile_star2_O3/yutopp[P]cc/parser.c
// Function: parse_stmt
ParserResult parse_stmt(Parser *parser) {
    ParserResult res;

    res = parse_stmt_compound(parser);
    if (res.result == PARSER_OK) {
        goto finish;
    }

    res = parse_stmt_expr(parser);
    if (res.result == PARSER_OK) {
        goto finish;
    }

    res = parse_stmt_selection(parser);
    if (res.result == PARSER_OK) {
        goto finish;
    }

    res = parse_stmt_jump(parser);
    if (res.result == PARSER_OK) {
        goto finish;
    }

    // Not matched...
    res.result = PARSER_ERROR;
    res.error.kind = PARSER_ERROR_KIND_UNEXPECTED; // TODO: fix
    fprintf(DEBUGOUT, "failed: parse stmt\n");

finish:
    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x2227
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
cmpl $0x0, (%rbx)
je 0x2555
movq 0x8b60(%rip), %r13      # 0xafd8
movq (%r13), %rcx
leaq 0x4eba(%rip), %rdi      # 0x733d
movl $0x18, %esi
movl $0x1, %edx
callq 0x11c0
movq 0x10(%r14), %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x27c4
movl 0x4(%r12), %eax
movl %eax, (%rsp)
movl 0xc(%r12), %eax
movl %eax, 0x4(%rsp)
cmpl $0x0, (%r12)
je 0x24c2
xorl %ebp, %ebp
jmp 0x24e1
movq 0x20(%rsp), %rbp
movq (%r13), %rcx
leaq 0x4e84(%rip), %rdi      # 0x7356
movl $0x1a, %esi
movl $0x1, %edx
callq 0x11c0
movq (%r13), %rcx
leaq 0x4e85(%rip), %rdi      # 0x7371
movl $0x17, %esi
movl $0x1, %edx
callq 0x11c0
movq %r14, %rdi
callq 0x2319
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x2ef6
testq %rax, %rax
je 0x2564
movq %rax, %r12
cmpl $0xa, (%rax)
jne 0x2564
incq 0x10(%r14)
movq 0x8(%r14), %rdi
callq 0x354a
movl $0x3, (%rax)
movq %rbp, 0x8(%rax)
movl $0x0, (%rbx)
movl (%rsp), %ecx
movl %ecx, 0x4(%rbx)
movl $0x1, 0x8(%rbx)
movl 0x4(%rsp), %ecx
movl %ecx, 0xc(%rbx)
movq %r12, 0x10(%rbx)
movq %rax, 0x18(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x10(%r14)
movq 0x8a69(%rip), %rax      # 0xafd8
movq (%rax), %rcx
leaq 0x4e10(%rip), %rdi      # 0x7389
movl $0x1d, %esi
movl $0x1, %edx
callq 0x11c0
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x2ef6
testq %rax, %rax
je 0x2610
movq 0x10(%r14), %rsi
incq %rsi
movq %rsi, 0x10(%r14)
cmpl $0x1a, (%rax)
jne 0x2610
movq (%r14), %rdi
callq 0x2ef6
testq %rax, %rax
je 0x2610
cmpl $0x4, (%rax)
jne 0x2610
incq 0x10(%r14)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x27c4
cmpl $0x1, (%r12)
je 0x2610
movq 0x20(%rsp), %r13
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x2ef6
testq %rax, %rax
je 0x2610
cmpl $0x5, (%rax)
jne 0x2610
incq 0x10(%r14)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2437
cmpl $0x1, (%r12)
jne 0x2720
movq %r15, 0x10(%r14)
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2ef6
testq %rax, %rax
je 0x265a
movq %rax, %r12
incq 0x10(%r14)
cmpl $0x19, (%rax)
jne 0x265e
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x27c4
movl 0x4(%r13), %ecx
movl 0xc(%r13), %eax
movq 0x18(%r13), %rbp
cmpl $0x1, (%r13)
jne 0x26ab
movq 0x18(%rsp), %r12
jmp 0x2661
xorl %ebp, %ebp
jmp 0x2661
movq %r12, %rbp
movq %r15, 0x10(%r14)
movl %ecx, 0x4(%rbx)
movl %eax, 0xc(%rbx)
movq %r12, 0x10(%rbx)
movq %rbp, 0x18(%rbx)
movl $0x1, %eax
movl %eax, (%rbx)
movl %eax, 0x8(%rbx)
movq 0x8954(%rip), %rax      # 0xafd8
movq (%rax), %rcx
leaq 0x4c9b(%rip), %rdi      # 0x7329
movl $0x13, %esi
movl $0x1, %edx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11c0
movl %ecx, (%rsp)
movl %eax, 0x4(%rsp)
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x2ef6
movq %rax, %r13
testq %rax, %rax
je 0x270e
cmpl $0xa, (%r13)
jne 0x270e
incq 0x10(%r14)
movq 0x8(%r14), %rdi
callq 0x354a
movl $0x5, (%rax)
movl (%r12), %ecx
movl %ecx, 0x8(%rax)
movq %rbp, 0x10(%rax)
movl $0x0, (%rbx)
movl (%rsp), %ecx
movl %ecx, 0x4(%rbx)
movl $0x1, 0x8(%rbx)
movl 0x4(%rsp), %ecx
movl %ecx, 0xc(%rbx)
movq %r13, 0x10(%rbx)
jmp 0x2551
movq %r13, %rbp
movq %r13, %r12
movl 0x4(%rsp), %eax
movl (%rsp), %ecx
jmp 0x2661
movq 0x20(%rsp), %r12
movq 0x8(%r14), %rdi
callq 0x354a
movq %rax, %r15
movl $0x4, (%rax)
movq %r13, 0x8(%rax)
movq %r12, 0x10(%rax)
movq $0x0, 0x18(%rax)
movq (%r14), %rdi
movq 0x10(%r14), %r12
movq %r12, %rsi
callq 0x2ef6
testq %rax, %rax
je 0x2798
cmpl $0x1b, (%rax)
jne 0x279f
incq 0x10(%r14)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2437
movsd 0x4(%r13), %xmm0
movl 0xc(%r13), %ecx
movq 0x10(%r13), %rax
cmpl $0x1, (%r13)
je 0x27a6
movq 0x20(%rsp), %rdx
movq %rdx, 0x18(%r15)
movq 0x10(%r14), %r12
jmp 0x27a6
xorps %xmm0, %xmm0
xorl %eax, %eax
jmp 0x27a6
movaps 0x4b0a(%rip), %xmm0     # 0x72b0
movq %r12, 0x10(%r14)
movl $0x0, (%rbx)
movlps %xmm0, 0x4(%rbx)
movl %ecx, 0xc(%rbx)
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
jmp 0x2555