// File: /workspace/github_c_makefile_star2_O2/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
callq 0x1e63
cmpl $0x0, (%rbx)
je 0x233f
movq 0x8f57(%rip), %rbp      # 0xafd8
movq (%rbp), %rcx
leaq 0x42b1(%rip), %rdi      # 0x633d
pushq $0x18
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
movq 0x10(%r14), %r12
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x243e
cmpl $0x0, (%r15)
je 0x20b6
xorl %r13d, %r13d
jmp 0x20d1
movq (%rbp), %rcx
leaq 0x4295(%rip), %rdi      # 0x6356
pushq $0x1a
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
movq 0x20(%rsp), %r13
movq (%rbp), %rcx
leaq 0x4295(%rip), %rdi      # 0x6371
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
movq %r14, %rdi
callq 0x1f12
leaq 0x8(%rsp), %r15
pushq $0xa
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f9f
cmpl $0x1, (%r15)
jne 0x210e
movq %r12, 0x10(%r14)
jmp 0x212f
incq 0x10(%r14)
movq 0x8(%r14), %rdi
callq 0x2f4c
movl $0x3, (%rax)
movq %r13, 0x8(%rax)
andl $0x0, 0x8(%rsp)
movq %rax, 0x20(%rsp)
movups 0x8(%rsp), %xmm0
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rbx)
movups %xmm0, (%rbx)
cmpl $0x0, (%rbx)
je 0x233f
movq 0x10(%r14), %rbp
movq 0x8e7b(%rip), %rax      # 0xafd8
movq (%rax), %rcx
leaq 0x4222(%rip), %rdi      # 0x6389
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1ee7
movsd 0x4(%r15), %xmm0
movl 0xc(%r15), %eax
movq 0x18(%r15), %r13
pushq $0x1
popq %r12
cmpl $0x1, (%r15)
jne 0x21a1
movq 0x18(%rsp), %rcx
jmp 0x21dd
incq 0x10(%r14)
cmpl $0x1a, (%r13)
jne 0x21e2
leaq 0x8(%rsp), %r15
pushq $0x4
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f9f
cmpl $0x1, (%r15)
jne 0x22a4
movsd 0xc(%rsp), %xmm0
movl 0x14(%rsp), %eax
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r13
xorl %r15d, %r15d
jmp 0x21f6
xorl %r15d, %r15d
movaps 0x40c4(%rip), %xmm1     # 0x62b0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
movq %r13, %rcx
movaps %xmm1, %xmm0
movq %rbp, 0x10(%r14)
movl %r12d, (%rbx)
movlps %xmm0, 0x4(%rbx)
movl %eax, 0xc(%rbx)
movq %rcx, 0x10(%rbx)
movq %r13, 0x18(%rbx)
testb %r15b, %r15b
jne 0x233f
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1ee7
cmpl $0x1, (%r15)
je 0x22e5
incq 0x10(%r14)
movq 0x20(%rsp), %r12
cmpl $0x19, (%r12)
jne 0x22d5
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x243e
cmpl $0x1, (%r15)
je 0x22e5
leaq 0x8(%rsp), %r15
movq 0x18(%r15), %r13
pushq $0xa
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f9f
cmpl $0x1, (%r15)
je 0x22e5
incq 0x10(%r14)
movq 0x8(%r14), %rdi
callq 0x2f4c
movl $0x5, (%rax)
movl (%r12), %ecx
movl %ecx, 0x8(%rax)
movq %r13, 0x10(%rax)
andl $0x0, 0x8(%rsp)
movq %rax, 0x20(%rsp)
jmp 0x22e9
incq 0x10(%r14)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x243e
movq 0x18(%r15), %r13
cmpl $0x1, (%r15)
jne 0x2351
movsd 0xc(%rsp), %xmm0
movl 0x14(%rsp), %eax
jmp 0x219a
pushq $0x1
popq %rax
movl %eax, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x10(%r14)
movl 0x8(%rsp), %eax
movl 0xc(%rsp), %ecx
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %esi
movq 0x18(%rsp), %rdi
movq %rdi, 0x10(%rbx)
movq 0x20(%rsp), %rdi
movq %rdi, 0x18(%rbx)
movl %eax, (%rbx)
movl %ecx, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movl %esi, 0xc(%rbx)
cmpl $0x0, (%rbx)
je 0x233f
pushq $0x1
popq %rax
movl %eax, (%rbx)
movl %eax, 0x8(%rbx)
movq 0x8cae(%rip), %rax      # 0xafd8
movq (%rax), %rcx
leaq 0x3ff5(%rip), %rdi      # 0x6329
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %r15
pushq $0x5
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f9f
cmpl $0x1, (%r15)
je 0x21c9
incq 0x10(%r14)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2058
movq 0x18(%r15), %rdx
movq %r15, %rax
xorl %r15d, %r15d
cmpl $0x1, (%rax)
jne 0x23a8
movsd 0xc(%rsp), %xmm0
movl 0x14(%rsp), %eax
movq 0x18(%rsp), %rcx
movq %rdx, %r13
jmp 0x21f6
movq 0x8(%r14), %rdi
movq %rdx, %r15
callq 0x2f4c
movq %rax, %r12
movl $0x4, (%rax)
movq %r13, 0x8(%rax)
movq %r15, 0x10(%rax)
andq $0x0, 0x18(%rax)
movq 0x10(%r14), %rbp
leaq 0x8(%rsp), %r13
pushq $0x1b
popq %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x1f9f
movb $0x1, %r15b
cmpl $0x1, (%r13)
jne 0x23fc
movsd 0xc(%rsp), %xmm0
movl 0x14(%rsp), %eax
movq 0x18(%rsp), %rcx
jmp 0x2433
incq 0x10(%r14)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2058
movsd 0x4(%r13), %xmm0
movl 0xc(%r13), %eax
movq 0x10(%r13), %rcx
cmpl $0x1, (%r13)
je 0x2433
movq 0x20(%rsp), %rdx
movq %rdx, 0x18(%r12)
movq 0x10(%r14), %rbp
movq %r12, %r13
xorl %r12d, %r12d
jmp 0x21f6