// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/tests/run-scanner.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_token_t token;
        int done = 0;
        int count = 0;
        int error = 0;

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

            done = (token.type == YAML_STREAM_END_TOKEN);

            yaml_token_delete(&token);

            count ++;
        }

        yaml_parser_delete(&parser);

        assert(!fclose(file));

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

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp            # imm = 0x260
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, -0x254(%rbp)
movl $0x0, -0x258(%rbp)
movl $0x0, -0x25c(%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 0xdb3(%rip), %rsi       # 0x2033
callq 0x10b0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1292
jmp 0x12b1
leaq 0xd9d(%rip), %rdi       # 0x2036
leaq 0xd9b(%rip), %rsi       # 0x203b
movl $0x22, %edx
leaq 0xd9d(%rip), %rcx       # 0x2049
callq 0x1070
leaq -0x200(%rbp), %rdi
callq 0x1090
cmpl $0x0, %eax
je 0x12c4
jmp 0x12e3
leaq 0xd95(%rip), %rdi       # 0x2060
leaq 0xd69(%rip), %rsi       # 0x203b
movl $0x24, %edx
leaq 0xd6b(%rip), %rcx       # 0x2049
callq 0x1070
movq -0x20(%rbp), %rsi
leaq -0x200(%rbp), %rdi
callq 0x1030
cmpl $0x0, -0x254(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1305
jmp 0x135b
leaq -0x200(%rbp), %rdi
leaq -0x250(%rbp), %rsi
callq 0x1040
cmpl $0x0, %eax
jne 0x1329
movl $0x1, -0x25c(%rbp)
jmp 0x135b
cmpl $0x2, -0x250(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x254(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x10c0
movl -0x258(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x258(%rbp)
jmp 0x12f3
leaq -0x200(%rbp), %rdi
callq 0x1080
movq -0x20(%rbp), %rdi
callq 0x1050
cmpl $0x0, %eax
jne 0x1377
jmp 0x1396
leaq 0xd02(%rip), %rdi       # 0x2080
leaq 0xcb6(%rip), %rsi       # 0x203b
movl $0x38, %edx
leaq 0xcb8(%rip), %rcx       # 0x2049
callq 0x1070
movl -0x25c(%rbp), %ecx
leaq 0xd03(%rip), %rsi       # 0x20a6
leaq 0xcf4(%rip), %rax       # 0x209e
cmpl $0x0, %ecx
cmovneq %rax, %rsi
movl -0x258(%rbp), %edx
leaq 0xcd0(%rip), %rdi       # 0x208e
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 $0x260, %rsp            # imm = 0x260
popq %rbp
retq