// File: /workspace/github_c_makefile_star2_O2/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
imulq $0x60, %rdx, %r12
addq (%rcx), %r12
decl %edx
movslq %edx, %rcx
imulq $0xc, %rcx, %r13
movl 0x4(%rax,%r13), %ebp
xorl %r14d, %r14d
testl %ebp, %ebp
je 0x15425
pushq $0x10
popq %rdi
callq 0x2080
testq %rax, %rax
je 0x15464
movq %rax, %r15
leaq 0x2cb7(%rip), %rsi      # 0x180c6
movq %rax, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2200
movq 0x198(%rbx), %rax
movq %r15, %r14
cmpl $0x0, 0x8(%rax,%r13)
je 0x15476
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
andq $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
addq %r13, %rax
addq $0x8, %rax
movl $0x1, (%rax)
movl -0x60(%r12), %eax
cmpl $0x3, %eax
je 0x155a6
cmpl $0x2, %eax
je 0x1550f
cmpl $0x1, %eax
jne 0x156ab
movq -0x58(%r12), %r15
leaq 0x15c5(%rip), %rsi      # 0x16a70
movq %r15, %rdi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x30(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%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 0x15459
movq -0x58(%r12), %r15
leaq 0x15c3(%rip), %rsi      # 0x16ade
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)
andq $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 0x15464
leaq 0x38(%rsp), %r15
movq -0x50(%r12), %r13
cmpq -0x40(%r12), %r13
jae 0x1564d
movl (%r13), %esi
movq %rbx, %rdi
callq 0x153ba
addq $0x4, %r13
testl %eax, %eax
jne 0x15582
jmp 0x15464
movq -0x58(%r12), %r15
leaq 0x1598(%rip), %rsi      # 0x16b4a
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)
andq $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 0x15464
leaq 0x38(%rsp), %r15
movq -0x50(%r12), %r13
cmpq -0x40(%r12), %r13
jae 0x1566b
movl (%r13), %esi
movq %rbx, %rdi
callq 0x153ba
testl %eax, %eax
je 0x15464
movl 0x4(%r13), %esi
movq %rbx, %rdi
callq 0x153ba
addq $0x8, %r13
testl %eax, %eax
jne 0x15619
jmp 0x15464
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
andq $0x0, 0x30(%rsi)
movl $0x8, (%rsi)
jmp 0x15687
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
andq $0x0, 0x30(%rsi)
movl $0xa, (%rsi)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
movq %rbx, %rdi
callq 0x20f0
xorl %r14d, %r14d
testl %eax, %eax
setne %r14b
jmp 0x15464
leaq 0x1f5e(%rip), %rdi      # 0x17610
leaq 0x2935(%rip), %rsi      # 0x17fee
leaq 0x29d4(%rip), %rcx      # 0x18094
movl $0x121, %edx            # imm = 0x121
callq 0x2100