// File: /workspace/github_c_makefile_star2_O1/mijallen[P]SimpleHTTPServer/lib/libyaml/src/scanner.c
// Function: yaml_parser_fetch_value
static int
yaml_parser_fetch_value(yaml_parser_t *parser)
{
    yaml_mark_t start_mark, end_mark;
    yaml_token_t token;
    yaml_simple_key_t *simple_key = parser->simple_keys.top-1;

    /* Have we found a simple key? */

    if (simple_key->possible)
    {

        /* Create the KEY token and insert it into the queue. */

        TOKEN_INIT(token, YAML_KEY_TOKEN, simple_key->mark, simple_key->mark);

        if (!QUEUE_INSERT(parser, parser->tokens,
                    simple_key->token_number - parser->tokens_parsed, token))
            return 0;

        /* In the block context, we may need to add the BLOCK-MAPPING-START token. */

        if (!yaml_parser_roll_indent(parser, simple_key->mark.column,
                    simple_key->token_number,
                    YAML_BLOCK_MAPPING_START_TOKEN, simple_key->mark))
            return 0;

        /* Remove the simple key. */

        simple_key->possible = 0;

        /* A simple key cannot follow another simple key. */

        parser->simple_key_allowed = 0;
    }
    else
    {
        /* The ':' indicator follows a complex key. */

        /* In the block context, extra checks are required. */

        if (!parser->flow_level)
        {
            /* Check if we are allowed to start a complex value. */

            if (!parser->simple_key_allowed) {
                return yaml_parser_set_scanner_error(parser, NULL, parser->mark,
                        "mapping values are not allowed in this context");
            }

            /* Add the BLOCK-MAPPING-START token if needed. */

            if (!yaml_parser_roll_indent(parser, parser->mark.column, -1,
                        YAML_BLOCK_MAPPING_START_TOKEN, parser->mark))
                return 0;
        }

        /* Simple keys after ':' are allowed in the block context. */

        parser->simple_key_allowed = (!parser->flow_level);
    }

    /* Consume the token. */

    start_mark = parser->mark;
    SKIP(parser);
    end_mark = parser->mark;

    /* Create the VALUE token and append it to the queue. */

    TOKEN_INIT(token, YAML_VALUE_TOKEN, start_mark, end_mark);

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

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rdi, %rbx
movq 0x168(%rdi), %r14
cmpl $0x0, -0x28(%r14)
je 0x8435
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x0, 0x50(%rsp)
movq -0x8(%r14), %rax
movq %rax, 0x4c(%rsp)
movups -0x18(%r14), %xmm0
movups %xmm0, 0x3c(%rsp)
movq -0x8(%r14), %rax
movq %rax, 0x70(%rsp)
movups -0x18(%r14), %xmm0
movaps %xmm0, 0x60(%rsp)
movq 0x120(%rbx), %rax
cmpq 0x110(%rbx), %rax
jne 0x8342
leaq 0x120(%rbx), %rdx
leaq 0x110(%rbx), %rcx
leaq 0x108(%rbx), %rdi
leaq 0x118(%rbx), %rsi
callq 0x2160
testl %eax, %eax
je 0x85ac
leaq -0x18(%r14), %r15
movq -0x20(%r14), %rax
subq 0x128(%rbx), %rax
leaq (%rax,%rax,4), %rcx
shlq $0x4, %rcx
movq 0x118(%rbx), %rdx
movq 0x120(%rbx), %r8
leaq (%rdx,%rcx), %rsi
leaq (%rdx,%rcx), %rdi
addq $0x50, %rdi
subq %rdx, %r8
shrq $0x4, %r8
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %r8, %rcx
subq %rax, %rcx
shlq $0x4, %rcx
leaq (%rcx,%rcx,4), %rdx
callq 0x21d0
movq 0x118(%rbx), %rax
movq -0x20(%r14), %rcx
subq 0x128(%rbx), %rcx
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
movl $0x10, (%rax,%rcx)
movl 0x50(%rsp), %edx
movl %edx, 0x34(%rax,%rcx)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movaps 0x40(%rsp), %xmm2
movups %xmm2, 0x24(%rax,%rcx)
movups %xmm1, 0x14(%rax,%rcx)
movups %xmm0, 0x4(%rax,%rcx)
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x38(%rax,%rcx)
movq 0x70(%rsp), %rdx
movq %rdx, 0x48(%rax,%rcx)
addq $0x50, 0x120(%rbx)
movq -0x20(%r14), %rdx
movq -0x8(%r14), %rsi
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x8, %ecx
callq 0xd741
testl %eax, %eax
je 0x8630
movl $0x0, -0x28(%r14)
xorl %eax, %eax
jmp 0x844e
cmpl $0x0, 0x100(%rbx)
je 0x85b4
xorl %eax, %eax
cmpl $0x0, 0x100(%rbx)
sete %al
movl %eax, 0x154(%rbx)
movq 0xf0(%rbx), %rax
movq %rax, 0x90(%rsp)
movups 0xe0(%rbx), %xmm0
movaps %xmm0, 0x80(%rsp)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
leaq 0xe0(%rbx), %rax
decq 0xa8(%rbx)
movq 0x98(%rbx), %rcx
movzbl (%rcx), %edx
movl $0x1, %esi
testb %dl, %dl
jns 0x84d7
movl %edx, %edi
andl $-0x20, %edi
movl $0x2, %esi
cmpl $0xc0, %edi
je 0x84d7
movl %edx, %edi
andl $-0x10, %edi
movl $0x3, %esi
cmpl $0xe0, %edi
je 0x84d7
andl $-0x8, %edx
xorl %esi, %esi
cmpl $0xf0, %edx
sete %sil
shll $0x2, %esi
addq %rsi, %rcx
movq %rcx, 0x98(%rbx)
movq 0x10(%rax), %rcx
movq %rcx, 0x70(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x0, 0x50(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x4c(%rsp)
movaps 0x80(%rsp), %xmm0
movups %xmm0, 0x3c(%rsp)
leaq 0x120(%rbx), %r14
movq 0x120(%rbx), %rax
cmpq 0x110(%rbx), %rax
jne 0x855e
leaq 0x110(%rbx), %rcx
leaq 0x108(%rbx), %rdi
leaq 0x118(%rbx), %rsi
movq %r14, %rdx
callq 0x2160
testl %eax, %eax
je 0x85ac
movq (%r14), %rax
leaq 0x50(%rax), %rcx
movq %rcx, (%r14)
movl $0x11, (%rax)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movaps 0x40(%rsp), %xmm2
movups %xmm0, 0x4(%rax)
movups %xmm1, 0x14(%rax)
movups %xmm2, 0x24(%rax)
movl 0x50(%rsp), %ecx
movl %ecx, 0x34(%rax)
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x38(%rax)
movq 0x70(%rsp), %rcx
movq %rcx, 0x48(%rax)
movl $0x1, %eax
jmp 0x8632
movl $0x1, (%rbx)
jmp 0x8630
leaq 0xe0(%rbx), %rax
cmpl $0x0, 0x154(%rbx)
je 0x85f9
movq 0xf0(%rbx), %rsi
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq $-0x1, %rdx
movl $0x8, %ecx
callq 0xd741
testl %eax, %eax
jne 0x8442
jmp 0x8630
movl $0x3, (%rbx)
movq $0x0, 0x38(%rbx)
movups (%rax), %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x10(%rax), %rcx
movq %rcx, 0x50(%rbx)
leaq 0x10e8d(%rip), %rcx     # 0x194aa
movq %rcx, 0x8(%rbx)
movups (%rax), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x10(%rax), %rax
movq %rax, 0x30(%rbx)
xorl %eax, %eax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq