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

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

    SEQUENCE_NODE_INIT(node, tag, items.start, items.end,
            first_event->data.sequence_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.sequence_start.anchor)) return 0;

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

    while (event.type != YAML_SEQUENCE_END_EVENT) {
        if (!STACK_LIMIT(parser,
                    parser->document->nodes.start[index-1].data.sequence.items,
                    INT_MAX-1)) return 0;
        item_index = yaml_parser_load_node(parser, &event);
        if (!item_index) return 0;
        if (!PUSH(parser,
                    parser->document->nodes.start[index-1].data.sequence.items,
                    item_index)) 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.sequence_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, -0x108(%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 0x1dcff
movb $0x1, %al
testb $0x1, %al
jne 0x1dd14
jmp 0x1dd0f
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1dd14
jmp 0x1e1b1
cmpq $0x0, -0x108(%rbp)
je 0x1dd36
movq -0x108(%rbp), %rdi
leaq 0xeb85(%rip), %rsi      # 0x2c8b1
callq 0x2160
cmpl $0x0, %eax
jne 0x1dd66
movq -0x108(%rbp), %rdi
callq 0x2140
leaq 0xddcd(%rip), %rdi      # 0x2bb16
callq 0x20c0
movq %rax, -0x108(%rbp)
cmpq $0x0, -0x108(%rbp)
jne 0x1dd64
jmp 0x1e1b1
jmp 0x1dd66
movl $0x40, %edi
callq 0x2080
movq %rax, -0xf8(%rbp)
cmpq $0x0, %rax
je 0x1dda5
movq -0xf8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xf8(%rbp), %rax
addq $0x40, %rax
movq %rax, -0xf0(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x1ddba
jmp 0x1ddb5
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1ddba
jmp 0x1e1b1
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x2120
movl $0x2, -0xe0(%rbp)
movq -0x108(%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 0x1deb9
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 0x1deec
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 0x1df01
jmp 0x1defc
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1df01
jmp 0x1e1b1
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 0x1df59
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x1df77
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
jmp 0x1df79
cmpl $0x8, -0x80(%rbp)
je 0x1e16d
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 $0x2, %rax
cmpq $0x7ffffffe, %rax       # imm = 0x7FFFFFFE
jge 0x1dfe4
movb $0x1, %al
testb $0x1, %al
jne 0x1e000
jmp 0x1dff4
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e000
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1d8b0
movl %eax, -0x100(%rbp)
cmpl $0x0, -0x100(%rbp)
jne 0x1e028
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
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 0x1e0f2
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 0x1e131
movl -0x100(%rbp), %ecx
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
movq 0x20(%rdx), %rax
movq %rax, %rsi
addq $0x4, %rsi
movq %rsi, 0x20(%rdx)
movl %ecx, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x1e14d
jmp 0x1e141
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e14d
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x1e168
movl $0x0, -0x4(%rbp)
jmp 0x1e1d1
jmp 0x1df79
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 0x1e1d1
movq -0x108(%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
nopl (%rax)