// File: /workspace/github_c_makefile_star2_O0/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
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 0x1220
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0xdf7(%rip), %rdi       # 0x2004
movb $0x0, %al
callq 0x1070
movl $0x0, -0x4(%rbp)
jmp 0x13fe
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x13f7
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 0xdb7(%rip), %rdi       # 0x201e
movb $0x0, %al
callq 0x1070
movq 0x2d6b(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x10c0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0xda2(%rip), %rsi       # 0x2032
callq 0x10d0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x12a2
jmp 0x12c1
leaq 0xd8c(%rip), %rdi       # 0x2035
leaq 0xd8a(%rip), %rsi       # 0x203a
movl $0x22, %edx
leaq 0xd8b(%rip), %rcx       # 0x2047
callq 0x1080
leaq -0x200(%rbp), %rdi
callq 0x10b0
cmpl $0x0, %eax
je 0x12d4
jmp 0x12f3
leaq 0xd83(%rip), %rdi       # 0x205e
leaq 0xd58(%rip), %rsi       # 0x203a
movl $0x24, %edx
leaq 0xd59(%rip), %rcx       # 0x2047
callq 0x1080
movq -0x20(%rbp), %rsi
leaq -0x200(%rbp), %rdi
callq 0x1030
cmpl $0x0, -0x26c(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1315
jmp 0x137f
leaq -0x200(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x1060
cmpl $0x0, %eax
jne 0x1339
movl $0x1, -0x274(%rbp)
jmp 0x137f
leaq -0x268(%rbp), %rdi
callq 0x1040
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x26c(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x1090
cmpl $0x0, -0x26c(%rbp)
jne 0x137d
movl -0x270(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x270(%rbp)
jmp 0x1303
leaq -0x200(%rbp), %rdi
callq 0x10a0
movq -0x20(%rbp), %rdi
callq 0x1050
cmpl $0x0, %eax
jne 0x139b
jmp 0x13ba
leaq 0xcdc(%rip), %rdi       # 0x207e
leaq 0xc91(%rip), %rsi       # 0x203a
movl $0x38, %edx
leaq 0xc92(%rip), %rcx       # 0x2047
callq 0x1080
movl -0x274(%rbp), %ecx
leaq 0xce0(%rip), %rsi       # 0x20a7
leaq 0xcd1(%rip), %rax       # 0x209f
cmpl $0x0, %ecx
cmovneq %rax, %rsi
movl -0x270(%rbp), %edx
leaq 0xcaa(%rip), %rdi       # 0x208c
movb $0x0, %al
callq 0x1070
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1227
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq