// File: /workspace/github_c_makefile_star2_O1/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
testl %ebp, %ebp
je 0x1720b
movl $0x10, %edi
callq 0x2080
xorl %r15d, %r15d
testq %rax, %rax
je 0x17210
movq %rax, %r14
leaq 0x2e69(%rip), %rsi      # 0x1a066
movq %rax, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x21f0
jmp 0x17213
xorl %r14d, %r14d
jmp 0x17218
xorl %r14d, %r14d
testq %r14, %r14
je 0x1726d
movq 0x198(%rbx), %rax
cmpl $0x0, 0x8(%rax,%r13,4)
je 0x1727f
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x0, 0x60(%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, %r15d
movl %r15d, %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 0x173cf
cmpl $0x2, %eax
je 0x1732c
cmpl $0x1, %eax
jne 0x17506
movq -0x58(%r12), %r15
leaq 0x17b7(%rip), %rsi      # 0x18a70
movq %r15, %rdi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x60(%rsi)
movl $0x6, (%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movups %xmm0, 0x38(%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 0x17262
movq -0x58(%r12), %rdi
leaq 0x17a6(%rip), %rsi      # 0x18ade
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x60(%rsi)
movl $0x7, (%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movups %xmm0, 0x38(%rsi)
movq %r14, 0x8(%rsi)
movq -0x58(%r12), %rax
movq %rax, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl -0x38(%r12), %eax
movl %eax, 0x1c(%rsi)
movq %rbx, %rdi
callq 0x20f0
xorl %r15d, %r15d
testl %eax, %eax
je 0x1726d
movq -0x50(%r12), %r14
cmpq -0x40(%r12), %r14
jae 0x17482
movl (%r14), %esi
movq %rbx, %rdi
callq 0x171a2
testl %eax, %eax
je 0x1726d
addq $0x4, %r14
jmp 0x173ab
movq -0x58(%r12), %rdi
leaq 0x176f(%rip), %rsi      # 0x18b4a
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x60(%rsi)
movl $0x9, (%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movups %xmm0, 0x38(%rsi)
movq %r14, 0x8(%rsi)
movq -0x58(%r12), %rax
movq %rax, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl -0x38(%r12), %eax
movl %eax, 0x1c(%rsi)
movq %rbx, %rdi
callq 0x20f0
xorl %r15d, %r15d
testl %eax, %eax
je 0x1726d
movq -0x50(%r12), %r14
cmpq -0x40(%r12), %r14
jae 0x174b3
movl (%r14), %esi
movq %rbx, %rdi
callq 0x171a2
testl %eax, %eax
je 0x1726d
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x171a2
testl %eax, %eax
je 0x1726d
addq $0x8, %r14
jmp 0x1744e
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x38(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, 0x8(%rax)
movaps %xmm0, -0x8(%rax)
movaps %xmm0, -0x18(%rax)
movaps %xmm0, -0x28(%rax)
movq $0x0, 0x28(%rax)
movl $0x8, -0x38(%rax)
jmp 0x174e2
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x38(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, 0x8(%rax)
movaps %xmm0, -0x8(%rax)
movaps %xmm0, -0x18(%rax)
movaps %xmm0, -0x28(%rax)
movq $0x0, 0x28(%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 %r15d, %r15d
testl %eax, %eax
setne %r15b
jmp 0x1726d
leaq 0x2097(%rip), %rdi      # 0x195a4
leaq 0x2a7a(%rip), %rsi      # 0x19f8e
leaq 0x2b19(%rip), %rcx      # 0x1a034
movl $0x121, %edx            # imm = 0x121
callq 0x2100