// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_dump_node
static int
yaml_emitter_dump_node(yaml_emitter_t *emitter, int index)
{
    yaml_node_t *node = emitter->document->nodes.start + index - 1;
    int anchor_id = emitter->anchors[index-1].anchor;
    yaml_char_t *anchor = NULL;

    if (anchor_id) {
        anchor = yaml_emitter_generate_anchor(emitter, anchor_id);
        if (!anchor) return 0;
    }

    if (emitter->anchors[index-1].serialized) {
        return yaml_emitter_dump_alias(emitter, anchor);
    }

    emitter->anchors[index-1].serialized = 1;

    switch (node->type) {
        case YAML_SCALAR_NODE:
            return yaml_emitter_dump_scalar(emitter, node, anchor);
        case YAML_SEQUENCE_NODE:
            return yaml_emitter_dump_sequence(emitter, node, anchor);
        case YAML_MAPPING_NODE:
            return yaml_emitter_dump_mapping(emitter, node, anchor);
        default:
            assert(0);      /* Could not happen. */
            break;
    }

    return 0;       /* Could not happen. */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq 0x198(%rdi), %rax
movq 0x1a8(%rdi), %rcx
movslq %esi, %rdx
leaq (%rdx,%rdx,2), %r12
shlq $0x5, %r12
addq (%rcx), %r12
decl %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,2), %r13
movl 0x4(%rax,%r13,4), %ebp
xorl %r14d, %r14d
testl %ebp, %ebp
je 0x16228
movl $0x10, %edi
callq 0x2080
testq %rax, %rax
je 0x1626a
movq %rax, %r15
leaq 0x2ec4(%rip), %rsi      # 0x190d6
movq %rax, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x21f0
movq 0x198(%rbx), %rax
movq %r15, %r14
cmpl $0x0, 0x8(%rax,%r13,4)
je 0x1627c
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x5, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %r14, 0x8(%rsi)
movq %rbx, %rdi
callq 0x20f0
movl %eax, %r14d
movl %r14d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq (%rax,%r13,4), %rax
addq $0x8, %rax
movl $0x1, (%rax)
movl -0x60(%r12), %eax
cmpl $0x3, %eax
je 0x163ae
cmpl $0x2, %eax
je 0x16319
cmpl $0x1, %eax
jne 0x164bf
movq -0x58(%r12), %r15
leaq 0x17be(%rip), %rsi      # 0x17a70
movq %r15, %rdi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x6, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %r14, 0x8(%rsi)
movq %r15, 0x10(%rsi)
movq -0x50(%r12), %rax
movq %rax, 0x18(%rsi)
movq -0x48(%r12), %rax
movq %rax, 0x20(%rsi)
movl %ecx, 0x28(%rsi)
movl %ecx, 0x2c(%rsi)
movl -0x40(%r12), %eax
movl %eax, 0x30(%rsi)
jmp 0x1625f
movq -0x58(%r12), %r15
leaq 0x17b9(%rip), %rsi      # 0x17ade
movq %r15, %rdi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x7, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %r14, 0x8(%rsi)
movq %r15, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl -0x38(%r12), %eax
movl %eax, 0x1c(%rsi)
movq %rbx, %rdi
callq 0x20f0
xorl %r14d, %r14d
testl %eax, %eax
je 0x1626a
movq -0x50(%r12), %r15
cmpq -0x40(%r12), %r15
jae 0x16453
movl (%r15), %esi
movq %rbx, %rdi
callq 0x161b7
testl %eax, %eax
je 0x1626a
addq $0x4, %r15
jmp 0x1638a
movq -0x58(%r12), %r15
leaq 0x1790(%rip), %rsi      # 0x17b4a
movq %r15, %rdi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x9, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %r14, 0x8(%rsi)
movq %r15, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl -0x38(%r12), %eax
movl %eax, 0x1c(%rsi)
movq %rbx, %rdi
callq 0x20f0
xorl %r14d, %r14d
testl %eax, %eax
je 0x1626a
movq -0x50(%r12), %r15
cmpq -0x40(%r12), %r15
jae 0x16478
movl (%r15), %esi
movq %rbx, %rdi
callq 0x161b7
testl %eax, %eax
je 0x1626a
movl 0x4(%r15), %esi
movq %rbx, %rdi
callq 0x161b7
testl %eax, %eax
je 0x1626a
addq $0x8, %r15
jmp 0x1641f
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x38(%rax)
movaps %xmm0, -0x18(%rax)
movaps %xmm0, -0x28(%rax)
movq $0x0, -0x8(%rax)
movl $0x8, -0x38(%rax)
jmp 0x1649b
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x38(%rax)
movaps %xmm0, -0x18(%rax)
movaps %xmm0, -0x28(%rax)
movq $0x0, -0x8(%rax)
movl $0xa, -0x38(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x20f0
xorl %r14d, %r14d
testl %eax, %eax
setne %r14b
jmp 0x1626a
leaq 0x215a(%rip), %rdi      # 0x18620
leaq 0x2b31(%rip), %rsi      # 0x18ffe
leaq 0x2bd0(%rip), %rcx      # 0x190a4
movl $0x121, %edx            # imm = 0x121
callq 0x2100