// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/api.c
// Function: yaml_emitter_initialize
YAML_DECLARE(int)
yaml_emitter_initialize(yaml_emitter_t *emitter)
{
    assert(emitter);    /* Non-NULL emitter object expected. */

    memset(emitter, 0, sizeof(yaml_emitter_t));
    if (!BUFFER_INIT(emitter, emitter->buffer, OUTPUT_BUFFER_SIZE))
        goto error;
    if (!BUFFER_INIT(emitter, emitter->raw_buffer, OUTPUT_RAW_BUFFER_SIZE))
        goto error;
    if (!STACK_INIT(emitter, emitter->states, INITIAL_STACK_SIZE))
        goto error;
    if (!QUEUE_INIT(emitter, emitter->events, INITIAL_QUEUE_SIZE))
        goto error;
    if (!STACK_INIT(emitter, emitter->indents, INITIAL_STACK_SIZE))
        goto error;
    if (!STACK_INIT(emitter, emitter->tag_directives, INITIAL_STACK_SIZE))
        goto error;

    return 1;

error:

    BUFFER_DEL(emitter, emitter->buffer);
    BUFFER_DEL(emitter, emitter->raw_buffer);
    STACK_DEL(emitter, emitter->states);
    QUEUE_DEL(emitter, emitter->events);
    STACK_DEL(emitter, emitter->indents);
    STACK_DEL(emitter, emitter->tag_directives);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2fa5
movq %rdi, %rbx
movl $0x1b0, %edx            # imm = 0x1B0
xorl %esi, %esi
callq 0x2120
movl $0x4000, %edi           # imm = 0x4000
callq 0x21a0
leaq 0x38(%rbx), %rbp
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0x2efc
movq %rax, %r14
movq %rax, 0x48(%rbx)
movq %rax, 0x50(%rbx)
addq $0x4000, %rax           # imm = 0x4000
movq %rax, 0x40(%rbx)
movl $0x8002, %edi           # imm = 0x8002
callq 0x21a0
movq %rax, %r15
movq %rax, 0x58(%rbx)
testq %rax, %rax
je 0x2e7e
movq %r15, 0x68(%rbx)
movq %r15, 0x70(%rbx)
leaq 0x8002(%r15), %rax
movq %rax, 0x60(%rbx)
movl $0x40, %edi
callq 0x21a0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x2e7e
movq %rax, %r13
movq %rax, 0xa0(%rbx)
addq $0x40, %rax
movq %rax, 0x98(%rbx)
movl $0x680, %edi            # imm = 0x680
callq 0x21a0
movq %rax, 0xb0(%rbx)
testq %rax, %rax
je 0x2f9d
movq %rax, %r12
movq %rax, 0xc8(%rbx)
movq %rax, 0xc0(%rbx)
addq $0x680, %rax            # imm = 0x680
movq %rax, 0xb8(%rbx)
movl $0x40, %edi
callq 0x21a0
movq %rax, 0xd0(%rbx)
testq %rax, %rax
je 0x2e84
movq %rax, 0xe0(%rbx)
addq $0x40, %rax
movq %rax, 0xd8(%rbx)
movl $0x100, %edi            # imm = 0x100
callq 0x21a0
movq %rax, 0xe8(%rbx)
testq %rax, %rax
je 0x2e84
movq %rax, 0xf8(%rbx)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0xf0(%rbx)
movl $0x1, %eax
jmp 0x2f8e
xorl %r12d, %r12d
xorl %r13d, %r13d
movl $0x1, (%rbx)
movq %r14, %rdi
callq 0x2040
movq %rbp, %rax
leaq 0x58(%rbx), %rbp
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
testq %r15, %r15
je 0x2eb7
movq %r15, %rdi
callq 0x2040
xorps %xmm0, %xmm0
leaq 0x90(%rbx), %r14
movups %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
testq %r13, %r13
je 0x2ede
movq %r13, %rdi
callq 0x2040
movq 0xb0(%rbx), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
testq %r12, %r12
je 0x2f25
movq %r12, %rdi
callq 0x2040
jmp 0x2f25
movl $0x1, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq %rax, 0x68(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x90(%rbx)
movq %rax, 0xa0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rbx)
xorl %eax, %eax
movq %rax, 0xc8(%rbx)
movq %rax, 0xb0(%rbx)
leaq 0xd0(%rbx), %r14
movq 0xd0(%rbx), %rdi
testq %rdi, %rdi
je 0x2f5a
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0xe8(%rbx), %rdi
addq $0xe8, %rbx
testq %rdi, %rdi
je 0x2f7e
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x2e84
leaq 0x14231(%rip), %rdi     # 0x171dd
leaq 0x14086(%rip), %rsi     # 0x17039
leaq 0x1422b(%rip), %rcx     # 0x171e5
movl $0x15f, %edx            # imm = 0x15F
callq 0x2100