// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3625
jmp 0x3644
leaq 0x27be9(%rip), %rdi     # 0x2b215
leaq 0x27a3e(%rip), %rsi     # 0x2b071
movl $0x15f, %edx            # imm = 0x15F
leaq 0x27bde(%rip), %rcx     # 0x2b21d
callq 0x2100
movq -0x10(%rbp), %rdi
xorl %esi, %esi
movl $0x1b0, %edx            # imm = 0x1B0
callq 0x2120
movl $0x4000, %edi           # imm = 0x4000
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0x38(%rcx)
cmpq $0x0, %rax
je 0x36a3
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rcx
addq $0x4000, %rcx           # imm = 0x4000
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x36b8
jmp 0x36b3
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x36b8
jmp 0x38d3
movl $0x8002, %edi           # imm = 0x8002
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0x58(%rcx)
cmpq $0x0, %rax
je 0x3707
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rcx
addq $0x8002, %rcx           # imm = 0x8002
movq -0x10(%rbp), %rax
movq %rcx, 0x60(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x371c
jmp 0x3717
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x371c
jmp 0x38d3
movl $0x40, %edi
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0x90(%rcx)
cmpq $0x0, %rax
je 0x376f
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rcx
addq $0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x3784
jmp 0x377f
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x3784
jmp 0x38d3
movl $0x680, %edi            # imm = 0x680
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0xb0(%rcx)
cmpq $0x0, %rax
je 0x37e5
movq -0x10(%rbp), %rax
movq 0xb0(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xc8(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x10(%rbp), %rax
movq 0xb0(%rax), %rcx
addq $0x680, %rcx            # imm = 0x680
movq -0x10(%rbp), %rax
movq %rcx, 0xb8(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x37fa
jmp 0x37f5
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x37fa
jmp 0x38d3
movl $0x40, %edi
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0xd0(%rcx)
cmpq $0x0, %rax
je 0x384d
movq -0x10(%rbp), %rax
movq 0xd0(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xe0(%rax)
movq -0x10(%rbp), %rax
movq 0xd0(%rax), %rcx
addq $0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xd8(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x385f
jmp 0x385d
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x385f
jmp 0x38d3
movl $0x100, %edi            # imm = 0x100
callq 0x2080
movq -0x10(%rbp), %rcx
movq %rax, 0xe8(%rcx)
cmpq $0x0, %rax
je 0x38b5
movq -0x10(%rbp), %rax
movq 0xe8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xf8(%rax)
movq -0x10(%rbp), %rax
movq 0xe8(%rax), %rcx
addq $0x100, %rcx            # imm = 0x100
movq -0x10(%rbp), %rax
movq %rcx, 0xf0(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x38c7
jmp 0x38c5
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x38c7
jmp 0x38d3
movl $0x1, -0x4(%rbp)
jmp 0x3a3f
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x38(%rax)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x68(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x58(%rax)
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0x98(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x90(%rax)
movq -0x10(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0xb8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xc8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xc0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xb0(%rax)
movq -0x10(%rbp), %rax
movq 0xd0(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0xd8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xe0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xd0(%rax)
movq -0x10(%rbp), %rax
movq 0xe8(%rax), %rdi
callq 0x2140
movq -0x10(%rbp), %rax
movq $0x0, 0xf0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xf8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xe8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)