// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/tests/run-parser.c
// Function: main
int
main(int argc, char *argv[])
{
    int number;

    if (argc < 2) {
        printf("Usage: %s file1.yaml ...\n", argv[0]);
        return 0;
    }

    for (number = 1; number < argc; number ++)
    {
        FILE *file;
        yaml_parser_t parser;
        yaml_event_t event;
        int done = 0;
        int count = 0;
        int error = 0;

        printf("[%d] Parsing '%s': ", number, argv[number]);
        fflush(stdout);

        file = fopen(argv[number], "rb");
        assert(file);

        assert(yaml_parser_initialize(&parser));

        yaml_parser_set_input_file(&parser, file);

        while (!done)
        {
            if (!yaml_parser_parse(&parser, &event)) {
                error = 1;
                break;
            }

            done = (event.type == YAML_STREAM_END_EVENT);

            yaml_event_delete(&event);

            count ++;
        }

        yaml_parser_delete(&parser);

        assert(!fclose(file));

        printf("%s (%d events)\n", (error ? "FAILURE" : "SUCCESS"), count);
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x2, -0x8(%rbp)
jge 0x1210
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0xe07(%rip), %rdi       # 0x2004
movb $0x0, %al
callq 0x1060
movl $0x0, -0x4(%rbp)
jmp 0x13da
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x13d3
movl $0x0, -0x26c(%rbp)
movl $0x0, -0x270(%rbp)
movl $0x0, -0x274(%rbp)
movl -0x14(%rbp), %esi
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0xdc7(%rip), %rdi       # 0x201e
movb $0x0, %al
callq 0x1060
movq 0x2d7b(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x10a0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0xdb2(%rip), %rsi       # 0x2032
callq 0x10b0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1292
jmp 0x12b1
leaq 0xd9c(%rip), %rdi       # 0x2035
leaq 0xd9a(%rip), %rsi       # 0x203a
movl $0x22, %edx
leaq 0xd9b(%rip), %rcx       # 0x2047
callq 0x1070
leaq -0x200(%rbp), %rdi
callq 0x1090
cmpl $0x0, %eax
je 0x12c4
jmp 0x12e3
leaq 0xd93(%rip), %rdi       # 0x205e
leaq 0xd68(%rip), %rsi       # 0x203a
movl $0x24, %edx
leaq 0xd69(%rip), %rcx       # 0x2047
callq 0x1070
movq -0x20(%rbp), %rsi
leaq -0x200(%rbp), %rdi
callq 0x1030
cmpl $0x0, -0x26c(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1305
jmp 0x135b
leaq -0x200(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x1040
cmpl $0x0, %eax
jne 0x1329
movl $0x1, -0x274(%rbp)
jmp 0x135b
cmpl $0x2, -0x268(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x26c(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x10c0
movl -0x270(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x270(%rbp)
jmp 0x12f3
leaq -0x200(%rbp), %rdi
callq 0x1080
movq -0x20(%rbp), %rdi
callq 0x1050
cmpl $0x0, %eax
jne 0x1377
jmp 0x1396
leaq 0xd00(%rip), %rdi       # 0x207e
leaq 0xcb5(%rip), %rsi       # 0x203a
movl $0x38, %edx
leaq 0xcb6(%rip), %rcx       # 0x2047
callq 0x1070
movl -0x274(%rbp), %ecx
leaq 0xd01(%rip), %rsi       # 0x20a4
leaq 0xcf2(%rip), %rax       # 0x209c
cmpl $0x0, %ecx
cmovneq %rax, %rsi
movl -0x270(%rbp), %edx
leaq 0xcce(%rip), %rdi       # 0x208c
movb $0x0, %al
callq 0x1060
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1217
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq