// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2eef
movq %rdi, %rbx
movl $0x1b0, %edx            # imm = 0x1B0
xorl %esi, %esi
callq 0x2120
movl $0x4000, %edi           # imm = 0x4000
callq 0x21a0
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0x2e16
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, 0x58(%rbx)
testq %rax, %rax
je 0x2e01
movq %rax, 0x68(%rbx)
movq %rax, 0x70(%rbx)
addq $0x8002, %rax           # imm = 0x8002
movq %rax, 0x60(%rbx)
movl $0x40, %edi
callq 0x21a0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x2e01
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 0x2e01
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 0x2e01
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 0x2e01
movq %rax, 0xf8(%rbx)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0xf0(%rbx)
movl $0x1, %eax
jmp 0x2ee9
movl $0x1, (%rbx)
testq %r14, %r14
je 0x2e1c
movq %r14, %rdi
callq 0x2040
jmp 0x2e1c
movl $0x1, (%rbx)
leaq 0x38(%rbx), %rax
leaq 0x58(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x2e43
callq 0x2040
xorps %xmm0, %xmm0
leaq 0x90(%rbx), %r15
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x2e67
callq 0x2040
leaq 0xb0(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x2e91
callq 0x2040
xorps %xmm0, %xmm0
leaq 0xd0(%rbx), %r15
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
movq 0xd0(%rbx), %rdi
testq %rdi, %rdi
je 0x2eb2
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq 0xe8(%rbx), %rdi
addq $0xe8, %rbx
testq %rdi, %rdi
je 0x2edc
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x152e7(%rip), %rdi     # 0x181dd
leaq 0x1513c(%rip), %rsi     # 0x18039
leaq 0x152e1(%rip), %rcx     # 0x181e5
movl $0x15f, %edx            # imm = 0x15F
callq 0x2100