// File: /workspace/github_c_makefile_star2_O2/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 0x2efe
movq %rdi, %rbx
movl $0x1b0, %edx            # imm = 0x1B0
xorl %esi, %esi
callq 0x2120
movl $0x4000, %edi           # imm = 0x4000
callq 0x21a0
movq %rax, %r15
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0x2e34
movq %r15, 0x48(%rbx)
movq %r15, 0x50(%rbx)
movq %r15, %rax
addq $0x4000, %rax           # imm = 0x4000
movq %rax, 0x40(%rbx)
movl $0x8002, %edi           # imm = 0x8002
callq 0x21a0
movq %rax, 0x58(%rbx)
testq %rax, %rax
je 0x2e34
movq %rax, 0x68(%rbx)
movq %rax, 0x70(%rbx)
movq %rax, %r13
addq $0x8002, %rax           # imm = 0x8002
movq %rax, 0x60(%rbx)
pushq $0x40
popq %rdi
callq 0x21a0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x2ede
movq %rax, %rbp
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 0x2eeb
movq %rax, 0xc8(%rbx)
movq %rax, 0xc0(%rbx)
movq %rax, %r12
addq $0x680, %rax            # imm = 0x680
movq %rax, 0xb8(%rbx)
pushq $0x40
popq %rdi
callq 0x21a0
movq %rax, 0xd0(%rbx)
testq %rax, %rax
je 0x2ef6
movq %rax, %r14
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 0x2e3f
movq %rax, 0xf8(%rbx)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0xf0(%rbx)
pushq $0x1
popq %r14
jmp 0x2ecc
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %r14, (%rsp)
leaq 0x38(%rbx), %r14
movl $0x1, (%rbx)
movq %r15, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
andq $0x0, 0x10(%r14)
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
andq $0x0, 0x68(%rbx)
movq %rbp, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x90(%rbx)
andq $0x0, 0xa0(%rbx)
movq %r12, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0xc0(%rbx)
movups %xmm0, 0xb0(%rbx)
movq (%rsp), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0xf0(%rbx)
movups %xmm0, 0xe0(%rbx)
movups %xmm0, 0xd0(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %ebp, %ebp
jmp 0x2e3f
xorl %r14d, %r14d
xorl %r12d, %r12d
jmp 0x2e3f
xorl %r14d, %r14d
jmp 0x2e3f
leaq 0x132d8(%rip), %rdi     # 0x161dd
leaq 0x1312d(%rip), %rsi     # 0x16039
leaq 0x132d2(%rip), %rcx     # 0x161e5
movl $0x15f, %edx            # imm = 0x15F
callq 0x2100