// File: /workspace/github_c_makefile_star2_O2/mijallen[P]SimpleHTTPServer/lib/libyaml/src/api.c
// Function: yaml_parser_initialize
YAML_DECLARE(int)
yaml_parser_initialize(yaml_parser_t *parser)
{
    assert(parser);     /* Non-NULL parser object expected. */

    memset(parser, 0, sizeof(yaml_parser_t));
    if (!BUFFER_INIT(parser, parser->raw_buffer, INPUT_RAW_BUFFER_SIZE))
        goto error;
    if (!BUFFER_INIT(parser, parser->buffer, INPUT_BUFFER_SIZE))
        goto error;
    if (!QUEUE_INIT(parser, parser->tokens, INITIAL_QUEUE_SIZE))
        goto error;
    if (!STACK_INIT(parser, parser->indents, INITIAL_STACK_SIZE))
        goto error;
    if (!STACK_INIT(parser, parser->simple_keys, INITIAL_STACK_SIZE))
        goto error;
    if (!STACK_INIT(parser, parser->states, INITIAL_STACK_SIZE))
        goto error;
    if (!STACK_INIT(parser, parser->marks, INITIAL_STACK_SIZE))
        goto error;
    if (!STACK_INIT(parser, parser->tag_directives, INITIAL_STACK_SIZE))
        goto error;

    return 1;

error:

    BUFFER_DEL(parser, parser->raw_buffer);
    BUFFER_DEL(parser, parser->buffer);
    QUEUE_DEL(parser, parser->tokens);
    STACK_DEL(parser, parser->indents);
    STACK_DEL(parser, parser->simple_keys);
    STACK_DEL(parser, parser->states);
    STACK_DEL(parser, parser->marks);
    STACK_DEL(parser, parser->tag_directives);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x288d
movq %rdi, %rbx
movl $0x1e0, %edx            # imm = 0x1E0
xorl %esi, %esi
callq 0x2120
movl $0x4000, %edi           # imm = 0x4000
callq 0x21a0
movq %rax, %rdi
movq %rax, 0xb0(%rbx)
testq %rax, %rax
je 0x2722
movq %rdi, 0xc0(%rbx)
movq %rdi, 0xc8(%rbx)
movq %rdi, %r15
movq %rdi, %rax
addq $0x4000, %rax           # imm = 0x4000
movq %rax, 0xb8(%rbx)
movl $0xc000, %edi           # imm = 0xC000
callq 0x21a0
movq %rax, 0x88(%rbx)
testq %rax, %rax
je 0x273a
movq %rax, %r12
movq %rax, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
addq $0xc000, %rax           # imm = 0xC000
movq %rax, 0x90(%rbx)
movl $0x500, %edi            # imm = 0x500
callq 0x21a0
movq %rax, 0x108(%rbx)
testq %rax, %rax
je 0x2752
movq %rax, %r13
movq %rax, 0x120(%rbx)
movq %rax, 0x118(%rbx)
addq $0x500, %rax            # imm = 0x500
movq %rax, 0x110(%rbx)
pushq $0x40
popq %rdi
callq 0x21a0
movq %rax, 0x138(%rbx)
testq %rax, %rax
je 0x2767
movq %rax, %rbp
movq %rax, 0x148(%rbx)
addq $0x40, %rax
movq %rax, 0x140(%rbx)
movl $0x280, %edi            # imm = 0x280
callq 0x21a0
movq %rax, 0x158(%rbx)
testq %rax, %rax
je 0x2779
movq %rax, %r14
movq %rax, 0x168(%rbx)
addq $0x280, %rax            # imm = 0x280
movq %rax, 0x160(%rbx)
pushq $0x40
popq %rdi
callq 0x21a0
movq %rax, 0x170(%rbx)
testq %rax, %rax
je 0x2789
movq %rax, 0x180(%rbx)
movq %rax, 0x10(%rsp)
addq $0x40, %rax
movq %rax, 0x178(%rbx)
movl $0x180, %edi            # imm = 0x180
callq 0x21a0
movq %rax, 0x190(%rbx)
testq %rax, %rax
je 0x2877
movq %rax, 0x1a0(%rbx)
movq %rax, 0x8(%rsp)
addq $0x180, %rax            # imm = 0x180
movq %rax, 0x198(%rbx)
movl $0x100, %edi            # imm = 0x100
callq 0x21a0
movq %rax, 0x1a8(%rbx)
testq %rax, %rax
movq %r15, %rdi
movq 0x10(%rsp), %rcx
je 0x2797
movq %rax, 0x1b8(%rbx)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x1b0(%rbx)
pushq $0x1
popq %r14
jmp 0x2865
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %r12d, %r12d
jmp 0x2797
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %r12d, %r12d
jmp 0x2794
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x2794
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %ebp, %ebp
jmp 0x2794
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
jmp 0x2794
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
movq %r15, %rdi
movq %rcx, 0x10(%rsp)
movq %r14, %r15
leaq 0xb0(%rbx), %r14
movl $0x1, (%rbx)
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
andq $0x0, 0x10(%r14)
xorl %r14d, %r14d
movq %r12, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x88(%rbx)
andq $0x0, 0x98(%rbx)
movq %r13, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x118(%rbx)
movups %xmm0, 0x108(%rbx)
movq %rbp, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
andq $0x0, 0x148(%rbx)
movq %r15, %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x158(%rbx)
andq $0x0, 0x168(%rbx)
movq 0x10(%rsp), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x170(%rbx)
andq $0x0, 0x180(%rbx)
movq 0x8(%rsp), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x1b0(%rbx)
movups %xmm0, 0x1a0(%rbx)
movups %xmm0, 0x190(%rbx)
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x8(%rsp)
movq %r15, %rdi
movq 0x10(%rsp), %rcx
jmp 0x2797
leaq 0x1379e(%rip), %rdi     # 0x16032
leaq 0x1379e(%rip), %rsi     # 0x16039
leaq 0x1379d(%rip), %rcx     # 0x1603f
movl $0xad, %edx
callq 0x2100