// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_analyze_event
static int
yaml_emitter_analyze_event(yaml_emitter_t *emitter,
        yaml_event_t *event)
{
    emitter->anchor_data.anchor = NULL;
    emitter->anchor_data.anchor_length = 0;
    emitter->tag_data.handle = NULL;
    emitter->tag_data.handle_length = 0;
    emitter->tag_data.suffix = NULL;
    emitter->tag_data.suffix_length = 0;
    emitter->scalar_data.value = NULL;
    emitter->scalar_data.length = 0;

    switch (event->type)
    {
        case YAML_ALIAS_EVENT:
            if (!yaml_emitter_analyze_anchor(emitter,
                        event->data.alias.anchor, 1))
                return 0;
            return 1;

        case YAML_SCALAR_EVENT:
            if (event->data.scalar.anchor) {
                if (!yaml_emitter_analyze_anchor(emitter,
                            event->data.scalar.anchor, 0))
                    return 0;
            }
            if (event->data.scalar.tag && (emitter->canonical ||
                        (!event->data.scalar.plain_implicit
                         && !event->data.scalar.quoted_implicit))) {
                if (!yaml_emitter_analyze_tag(emitter, event->data.scalar.tag))
                    return 0;
            }
            if (!yaml_emitter_analyze_scalar(emitter,
                        event->data.scalar.value, event->data.scalar.length))
                return 0;
            return 1;

        case YAML_SEQUENCE_START_EVENT:
            if (event->data.sequence_start.anchor) {
                if (!yaml_emitter_analyze_anchor(emitter,
                            event->data.sequence_start.anchor, 0))
                    return 0;
            }
            if (event->data.sequence_start.tag && (emitter->canonical ||
                        !event->data.sequence_start.implicit)) {
                if (!yaml_emitter_analyze_tag(emitter,
                            event->data.sequence_start.tag))
                    return 0;
            }
            return 1;

        case YAML_MAPPING_START_EVENT:
            if (event->data.mapping_start.anchor) {
                if (!yaml_emitter_analyze_anchor(emitter,
                            event->data.mapping_start.anchor, 0))
                    return 0;
            }
            if (event->data.mapping_start.tag && (emitter->canonical ||
                        !event->data.mapping_start.implicit)) {
                if (!yaml_emitter_analyze_tag(emitter,
                            event->data.mapping_start.tag))
                    return 0;
            }
            return 1;

        default:
            return 1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, 0x130(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x138(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x148(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x150(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x158(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x160(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x168(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x170(%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x4, %eax
ja 0x1f44f
movq -0x20(%rbp), %rax
leaq 0xda15(%rip), %rcx      # 0x2cc80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x27700
cmpl $0x0, %eax
jne 0x1f29b
movl $0x0, -0x4(%rbp)
jmp 0x1f456
movl $0x1, -0x4(%rbp)
jmp 0x1f456
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1f2d8
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0x27700
cmpl $0x0, %eax
jne 0x1f2d6
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f2d8
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1f325
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x1f301
movq -0x18(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x1f325
movq -0x18(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
jne 0x1f325
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x278f0
cmpl $0x0, %eax
jne 0x1f323
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f325
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdx
callq 0x27a60
cmpl $0x0, %eax
jne 0x1f34f
movl $0x0, -0x4(%rbp)
jmp 0x1f456
movl $0x1, -0x4(%rbp)
jmp 0x1f456
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1f38c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0x27700
cmpl $0x0, %eax
jne 0x1f38a
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f38c
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1f3cf
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x1f3ab
movq -0x18(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1f3cf
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x278f0
cmpl $0x0, %eax
jne 0x1f3cd
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f3cf
movl $0x1, -0x4(%rbp)
jmp 0x1f456
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1f406
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0x27700
cmpl $0x0, %eax
jne 0x1f404
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f406
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1f446
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x1f425
movq -0x18(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1f446
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x278f0
cmpl $0x0, %eax
jne 0x1f444
movl $0x0, -0x4(%rbp)
jmp 0x1f456
jmp 0x1f446
movl $0x1, -0x4(%rbp)
jmp 0x1f456
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop