// File: /workspace/github_c_makefile_star2_O2/mijallen[P]SimpleHTTPServer/lib/libyaml/src/scanner.c
// Function: yaml_parser_fetch_document_indicator
static int
yaml_parser_fetch_document_indicator(yaml_parser_t *parser,
        yaml_token_type_t type)
{
    yaml_mark_t start_mark, end_mark;
    yaml_token_t token;

    /* Reset the indentation level. */

    if (!yaml_parser_unroll_indent(parser, -1))
        return 0;

    /* Reset simple keys. */

    if (!yaml_parser_remove_simple_key(parser))
        return 0;

    parser->simple_key_allowed = 0;

    /* Consume the token. */

    start_mark = parser->mark;

    SKIP(parser);
    SKIP(parser);
    SKIP(parser);

    end_mark = parser->mark;

    /* Create the DOCUMENT-START or DOCUMENT-END token. */

    TOKEN_INIT(token, type, start_mark, end_mark);

    /* Append the token to the queue. */

    if (!ENQUEUE(parser, parser->tokens, token))
        return 0;

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movl %esi, %ebx
movq %rdi, %r14
pushq $-0x1
popq %rsi
callq 0x87b6
xorl %ebp, %ebp
testl %eax, %eax
je 0x8b6c
movq %r14, %rdi
callq 0xb859
testl %eax, %eax
je 0x8b6c
andl $0x0, 0x154(%r14)
movq 0xf0(%r14), %rax
movq %rax, 0x30(%rsp)
movups 0xe0(%r14), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0xe0(%r14), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xe0(%r14)
movq 0xf0(%r14), %rdx
leaq 0x1(%rdx), %rax
movq %rax, 0xf0(%r14)
movq 0x98(%r14), %r8
movq 0xa8(%r14), %rsi
leaq -0x1(%rsi), %rax
movq %rax, 0xa8(%r14)
movzbl (%r8), %edi
pushq $0x1
popq %rax
movq %rax, %r9
testb %dil, %dil
jns 0x89cf
movl %edi, %r9d
andl $-0x20, %r9d
cmpl $0xc0, %r9d
jne 0x89a5
pushq $0x2
jmp 0x89b7
movl %edi, %r9d
andl $-0x10, %r9d
cmpl $0xe0, %r9d
jne 0x89bb
pushq $0x3
popq %r9
jmp 0x89cf
andl $-0x8, %edi
xorl %r9d, %r9d
cmpl $0xf0, %edi
sete %r9b
shll $0x2, %r9d
leaq (%r8,%r9), %rdi
movq %rdi, 0x98(%r14)
leaq 0x2(%rcx), %r10
movq %r10, 0xe0(%r14)
leaq 0x2(%rdx), %r10
movq %r10, 0xf0(%r14)
leaq -0x2(%rsi), %r10
movq %r10, 0xa8(%r14)
movzbl (%r8,%r9), %r8d
movq %rax, %r10
testb %r8b, %r8b
jns 0x8a48
movl %r8d, %r9d
andl $-0x20, %r9d
cmpl $0xc0, %r9d
jne 0x8a1c
pushq $0x2
jmp 0x8a2e
movl %r8d, %r9d
andl $-0x10, %r9d
cmpl $0xe0, %r9d
jne 0x8a32
pushq $0x3
popq %r10
jmp 0x8a48
andl $-0x8, %r8d
xorl %r10d, %r10d
cmpl $0xf0, %r8d
sete %r10b
shll $0x2, %r10d
leaq 0xe0(%r14), %r8
leaq (%rdi,%r10), %r9
movq %r9, 0x98(%r14)
addq $0x3, %rcx
movq %rcx, 0xe0(%r14)
addq $0x3, %rdx
movq %rdx, 0xf0(%r14)
addq $-0x3, %rsi
movq %rsi, 0xa8(%r14)
movzbl (%rdi,%r10), %ecx
testb %cl, %cl
jns 0x8ab6
movl %ecx, %eax
andl $-0x20, %eax
cmpl $0xc0, %eax
jne 0x8a94
pushq $0x2
jmp 0x8aa2
movl %ecx, %eax
andl $-0x10, %eax
cmpl $0xe0, %eax
jne 0x8aa5
pushq $0x3
popq %rax
jmp 0x8ab6
andl $-0x8, %ecx
xorl %eax, %eax
cmpl $0xf0, %ecx
sete %al
shll $0x2, %eax
addq %rax, %r9
movq %r9, 0x98(%r14)
movq 0x10(%r8), %rax
movq %rax, 0x10(%rsp)
movups (%r8), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movups %xmm0, 0x4c(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x6c(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x5c(%rsp)
leaq 0x120(%r14), %r15
movq 0x120(%r14), %rax
cmpq 0x110(%r14), %rax
jne 0x8b2d
leaq 0x110(%r14), %rcx
leaq 0x108(%r14), %rdi
leaq 0x118(%r14), %rsi
movq %r15, %rdx
callq 0x2160
testl %eax, %eax
je 0x8b79
movq (%r15), %rax
leaq 0x50(%rax), %rcx
movq %rcx, (%r15)
movl %ebx, (%rax)
movaps 0x40(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movaps 0x60(%rsp), %xmm2
movups %xmm0, 0x4(%rax)
movups %xmm1, 0x14(%rax)
movups %xmm2, 0x24(%rax)
movl 0x70(%rsp), %ecx
movl %ecx, 0x34(%rax)
movaps (%rsp), %xmm0
movups %xmm0, 0x38(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x48(%rax)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, (%r14)
jmp 0x8b6c