// File: /workspace/github_c_makefile_star2_O1/mijallen[P]SimpleHTTPServer/lib/libyaml/tests/run-loader.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_document_t document;
        int done = 0;
        int count = 0;
        int error = 0;

        printf("[%d] Loading '%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_load(&parser, &document)) {
                error = 1;
                break;
            }

            done = (!yaml_document_get_root_node(&document));

            yaml_document_delete(&document);

            if (!done) count ++;
        }

        yaml_parser_delete(&parser);

        assert(!fclose(file));

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

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %r13
cmpl $0x2, %edi
jge 0x120c
movq (%r13), %rsi
leaq 0xe04(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1070
jmp 0x1340
movl %edi, %eax
movq %rax, 0x10(%rsp)
movl $0x1, %r14d
leaq 0x88(%rsp), %rbx
leaq 0x20(%rsp), %rbp
movq %r13, 0x8(%rsp)
movq (%r13,%r14,8), %rdx
leaq 0xde7(%rip), %rdi       # 0x201e
movl %r14d, %esi
xorl %eax, %eax
callq 0x1070
movq 0x2d98(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x10c0
movq (%r13,%r14,8), %rdi
leaq 0xdd6(%rip), %rsi       # 0x2032
callq 0x10d0
testq %rax, %rax
je 0x1354
movq %rax, %r15
movq %rbx, %rdi
callq 0x10b0
testl %eax, %eax
je 0x1373
movq %rbx, %rdi
movq %r15, 0x18(%rsp)
movq %r15, %rsi
callq 0x1030
movq %rbx, %r12
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1060
xorl %r15d, %r15d
testl %eax, %eax
je 0x12f0
movl %r15d, %r13d
movq %rbp, %rdi
callq 0x1040
movq %rax, %rbx
xorl %r15d, %r15d
testq %rax, %rax
setne %r15b
movq %rbp, %rdi
callq 0x1090
addl %r13d, %r15d
testq %rbx, %rbx
je 0x12f9
movq %r12, %rdi
movq %rbp, %rsi
callq 0x1060
testl %eax, %eax
jne 0x12a2
testq %rbx, %rbx
leaq 0xdc4(%rip), %rbx       # 0x20a7
leaq 0xdb5(%rip), %rax       # 0x209f
cmovneq %rax, %rbx
jmp 0x1300
leaq 0xda8(%rip), %rbx       # 0x209f
jmp 0x1305
leaq 0xda7(%rip), %rbx       # 0x20a7
movq 0x8(%rsp), %r13
movq %r12, %rdi
callq 0x10a0
movq 0x18(%rsp), %rdi
callq 0x1050
testl %eax, %eax
jne 0x1392
leaq 0xd6a(%rip), %rdi       # 0x208c
movq %rbx, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x1070
incq %r14
cmpq 0x10(%rsp), %r14
movq %r12, %rbx
jne 0x122b
xorl %eax, %eax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcda(%rip), %rdi       # 0x2035
leaq 0xcd8(%rip), %rsi       # 0x203a
leaq 0xcde(%rip), %rcx       # 0x2047
movl $0x22, %edx
callq 0x1080
leaq 0xce4(%rip), %rdi       # 0x205e
leaq 0xcb9(%rip), %rsi       # 0x203a
leaq 0xcbf(%rip), %rcx       # 0x2047
movl $0x24, %edx
callq 0x1080
leaq 0xce5(%rip), %rdi       # 0x207e
leaq 0xc9a(%rip), %rsi       # 0x203a
leaq 0xca0(%rip), %rcx       # 0x2047
movl $0x38, %edx
callq 0x1080