// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/loader.c
// Function: yaml_parser_load_scalar
static int
yaml_parser_load_scalar(yaml_parser_t *parser, yaml_event_t *first_event)
{
    yaml_node_t node;
    int index;
    yaml_char_t *tag = first_event->data.scalar.tag;

    if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) goto error;

    if (!tag || strcmp((char *)tag, "!") == 0) {
        yaml_free(tag);
        tag = yaml_strdup((yaml_char_t *)YAML_DEFAULT_SCALAR_TAG);
        if (!tag) goto error;
    }

    SCALAR_NODE_INIT(node, tag, first_event->data.scalar.value,
            first_event->data.scalar.length, first_event->data.scalar.style,
            first_event->start_mark, first_event->end_mark);

    if (!PUSH(parser, parser->document->nodes, node)) goto error;

    index = parser->document->nodes.top - parser->document->nodes.start;

    if (!yaml_parser_register_anchor(parser, index,
                first_event->data.scalar.anchor)) return 0;

    return index;

error:
    yaml_free(tag);
    yaml_free(first_event->data.scalar.anchor);
    yaml_free(first_event->data.scalar.value);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x1d8(%rcx), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl $0x60, %ecx
cqto
idivq %rcx
cmpq $0x7ffffffe, %rax       # imm = 0x7FFFFFFE
jge 0x1da7c
movb $0x1, %al
testb $0x1, %al
jne 0x1da91
jmp 0x1da8c
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1da91
jmp 0x1dc4b
cmpq $0x0, -0x88(%rbp)
je 0x1dab3
movq -0x88(%rbp), %rdi
leaq 0xee08(%rip), %rsi      # 0x2c8b1
callq 0x2160
cmpl $0x0, %eax
jne 0x1dae3
movq -0x88(%rbp), %rdi
callq 0x2140
leaq 0xdfe2(%rip), %rdi      # 0x2baa8
callq 0x20c0
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
jne 0x1dae1
jmp 0x1dc4b
jmp 0x1dae3
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x2120
movl $0x1, -0x78(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x48(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x58(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq 0x60(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x1d8(%rcx), %rcx
cmpq 0x8(%rcx), %rax
jne 0x1dbb2
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rsi
addq $0x10, %rsi
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rdx
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x1dbe2
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq 0x10(%rax), %rdi
movq %rdi, %rcx
addq $0x60, %rcx
movq %rcx, 0x10(%rax)
leaq -0x78(%rbp), %rsi
movl $0x60, %edx
callq 0x2180
movb $0x1, %al
testb $0x1, %al
jne 0x1dbf4
jmp 0x1dbf2
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1dbf4
jmp 0x1dc4b
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x1d8(%rcx), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl $0x60, %ecx
cqto
idivq %rcx
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x1e7d0
cmpl $0x0, %eax
jne 0x1dc43
movl $0x0, -0x4(%rbp)
jmp 0x1dc78
movl -0x7c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1dc78
movq -0x88(%rbp), %rdi
callq 0x2140
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2140
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x2140
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)