// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_dump
YAML_DECLARE(int)
yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document)
{
    yaml_event_t event;
    yaml_mark_t mark = { 0, 0, 0 };

    assert(emitter);            /* Non-NULL emitter object is required. */
    assert(document);           /* Non-NULL emitter object is expected. */

    emitter->document = document;

    if (!emitter->opened) {
        if (!yaml_emitter_open(emitter)) goto error;
    }

    if (STACK_EMPTY(emitter, document->nodes)) {
        if (!yaml_emitter_close(emitter)) goto error;
        yaml_emitter_delete_document_and_anchors(emitter);
        return 1;
    }

    assert(emitter->opened);    /* Emitter should be opened. */

    emitter->anchors = yaml_malloc(sizeof(*(emitter->anchors))
            * (document->nodes.top - document->nodes.start));
    if (!emitter->anchors) goto error;
    memset(emitter->anchors, 0, sizeof(*(emitter->anchors))
            * (document->nodes.top - document->nodes.start));

    DOCUMENT_START_EVENT_INIT(event, document->version_directive,
            document->tag_directives.start, document->tag_directives.end,
            document->start_implicit, mark, mark);
    if (!yaml_emitter_emit(emitter, &event)) goto error;

    yaml_emitter_anchor_node(emitter, 1);
    if (!yaml_emitter_dump_node(emitter, 1)) goto error;

    DOCUMENT_END_EVENT_INIT(event, document->end_implicit, mark, mark);
    if (!yaml_emitter_emit(emitter, &event)) goto error;

    yaml_emitter_delete_document_and_anchors(emitter);

    return 1;

error:

    yaml_emitter_delete_document_and_anchors(emitter);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x98(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2120
cmpq $0x0, -0x10(%rbp)
je 0x29c0f
jmp 0x29c2e
leaq 0x15ff(%rip), %rdi      # 0x2b215
leaq 0x3399(%rip), %rsi      # 0x2cfb6
movl $0x75, %edx
leaq 0x33f8(%rip), %rcx      # 0x2d021
callq 0x2100
cmpq $0x0, -0x18(%rbp)
je 0x29c37
jmp 0x29c56
leaq 0x2cc0(%rip), %rdi      # 0x2c8fe
leaq 0x3371(%rip), %rsi      # 0x2cfb6
movl $0x76, %edx
leaq 0x33d0(%rip), %rcx      # 0x2d021
callq 0x2100
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x1a8(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x190(%rax)
jne 0x29c87
movq -0x10(%rbp), %rdi
callq 0x20b0
cmpl $0x0, %eax
jne 0x29c85
jmp 0x29eb3
jmp 0x29c87
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x29cc0
movq -0x10(%rbp), %rdi
callq 0x2190
cmpl $0x0, %eax
jne 0x29cab
jmp 0x29eb3
movq -0x10(%rbp), %rdi
callq 0x29ed0
movl $0x1, -0x4(%rbp)
jmp 0x29ec3
movq -0x10(%rbp), %rax
cmpl $0x0, 0x190(%rax)
je 0x29ccf
jmp 0x29cee
leaq 0x3312(%rip), %rdi      # 0x2cfe8
leaq 0x32d9(%rip), %rsi      # 0x2cfb6
movl $0x84, %edx
leaq 0x3338(%rip), %rcx      # 0x2d021
callq 0x2100
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl $0x60, %ecx
cqto
idivq %rcx
imulq $0xc, %rax, %rdi
callq 0x2080
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x198(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x198(%rax)
jne 0x29d34
jmp 0x29eb3
movq -0x10(%rbp), %rax
movq 0x198(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl $0x60, %ecx
cqto
idivq %rcx
imulq $0xc, %rax, %rdx
xorl %esi, %esi
callq 0x2120
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2120
movl $0x3, -0x80(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x20f0
cmpl $0x0, %eax
jne 0x29e04
jmp 0x29eb3
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x2a090
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x2a210
cmpl $0x0, %eax
jne 0x29e2a
jmp 0x29eb3
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2120
movl $0x4, -0x80(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x20f0
cmpl $0x0, %eax
jne 0x29ea1
jmp 0x29eb3
movq -0x10(%rbp), %rdi
callq 0x29ed0
movl $0x1, -0x4(%rbp)
jmp 0x29ec3
movq -0x10(%rbp), %rdi
callq 0x29ed0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nop