// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/loader.c
// Function: yaml_parser_load_mapping
static int
yaml_parser_load_mapping(yaml_parser_t *parser, yaml_event_t *first_event)
{
    yaml_event_t event;
    yaml_node_t node;
    struct {
        yaml_node_pair_t *start;
        yaml_node_pair_t *end;
        yaml_node_pair_t *top;
    } pairs = { NULL, NULL, NULL };
    int index;
    yaml_node_pair_t pair;
    yaml_char_t *tag = first_event->data.mapping_start.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_MAPPING_TAG);
        if (!tag) goto error;
    }

    if (!STACK_INIT(parser, pairs, INITIAL_STACK_SIZE)) goto error;

    MAPPING_NODE_INIT(node, tag, pairs.start, pairs.end,
            first_event->data.mapping_start.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.mapping_start.anchor)) return 0;

    if (!yaml_parser_parse(parser, &event)) return 0;

    while (event.type != YAML_MAPPING_END_EVENT) {
        if (!STACK_LIMIT(parser,
                    parser->document->nodes.start[index-1].data.mapping.pairs,
                    INT_MAX-1)) return 0;
        pair.key = yaml_parser_load_node(parser, &event);
        if (!pair.key) return 0;
        if (!yaml_parser_parse(parser, &event)) return 0;
        pair.value = yaml_parser_load_node(parser, &event);
        if (!pair.value) return 0;
        if (!PUSH(parser,
                    parser->document->nodes.start[index-1].data.mapping.pairs,
                    pair)) return 0;
        if (!yaml_parser_parse(parser, &event)) return 0;
    }

    parser->document->nodes.start[index-1].end_mark = event.end_mark;

    return index;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0xf8(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2120
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x110(%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 0x1e24f
movb $0x1, %al
testb $0x1, %al
jne 0x1e264
jmp 0x1e25f
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e264
jmp 0x1e74b
cmpq $0x0, -0x110(%rbp)
je 0x1e286
movq -0x110(%rbp), %rdi
leaq 0xe635(%rip), %rsi      # 0x2c8b1
callq 0x2160
cmpl $0x0, %eax
jne 0x1e2b6
movq -0x110(%rbp), %rdi
callq 0x2140
leaq 0xd8e9(%rip), %rdi      # 0x2bb82
callq 0x20c0
movq %rax, -0x110(%rbp)
cmpq $0x0, -0x110(%rbp)
jne 0x1e2b4
jmp 0x1e74b
jmp 0x1e2b6
movl $0x80, %edi
callq 0x2080
movq %rax, -0xf8(%rbp)
cmpq $0x0, %rax
je 0x1e2f7
movq -0xf8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xf8(%rbp), %rax
addq $0x80, %rax
movq %rax, -0xf0(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x1e30c
jmp 0x1e307
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e30c
jmp 0x1e74b
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x2120
movl $0x3, -0xe0(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0xb0(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x48(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x58(%rax), %rcx
movq %rcx, -0x90(%rbp)
movq 0x60(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xb8(%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 0x1e40b
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 0x1e43e
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq 0x10(%rax), %rdi
movq %rdi, %rcx
addq $0x60, %rcx
movq %rcx, 0x10(%rax)
leaq -0xe0(%rbp), %rsi
movl $0x60, %edx
callq 0x2180
movb $0x1, %al
testb $0x1, %al
jne 0x1e453
jmp 0x1e44e
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e453
jmp 0x1e74b
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, -0xfc(%rbp)
movq -0x10(%rbp), %rdi
movl -0xfc(%rbp), %esi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x1e7d0
cmpl $0x0, %eax
jne 0x1e4ab
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x1e4c9
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
jmp 0x1e4cb
cmpl $0xa, -0x80(%rbp)
je 0x1e707
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x1d8(%rcx), %rcx
movq (%rcx), %rcx
movl -0xfc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
cmpq $0x7ffffffe, %rax       # imm = 0x7FFFFFFE
jge 0x1e536
movb $0x1, %al
testb $0x1, %al
jne 0x1e552
jmp 0x1e546
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e552
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1d8b0
movl %eax, -0x104(%rbp)
cmpl $0x0, -0x104(%rbp)
jne 0x1e57a
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x1e598
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1d8b0
movl %eax, -0x100(%rbp)
cmpl $0x0, -0x100(%rbp)
jne 0x1e5c0
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x1d8(%rcx), %rcx
movq (%rcx), %rcx
movl -0xfc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x18(%rcx), %rax
jne 0x1e68a
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rdi
movl -0xfc(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rdi
addq $0x10, %rdi
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rsi
movl -0xfc(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rsi
addq $0x10, %rsi
addq $0x10, %rsi
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rdx
movl -0xfc(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rdx
addq $0x10, %rdx
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x1e6cb
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rcx
movl -0xfc(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rcx
movq 0x20(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x20(%rcx)
movq -0x104(%rbp), %rcx
movq %rcx, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x1e6e7
jmp 0x1e6db
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e6e7
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x1e702
movl $0x0, -0x4(%rbp)
jmp 0x1e76b
jmp 0x1e4cb
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x48(%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x50(%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x58(%rax)
movl -0xfc(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e76b
movq -0x110(%rbp), %rdi
callq 0x2140
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2140
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw (%rax,%rax)