// File: /workspace/github_c_makefile_star2_O2/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_emit_flow_mapping_key
static int
yaml_emitter_emit_flow_mapping_key(yaml_emitter_t *emitter,
        yaml_event_t *event, int first)
{
    if (first)
    {
        if (!yaml_emitter_write_indicator(emitter, "{", 1, 1, 0))
            return 0;
        if (!yaml_emitter_increase_indent(emitter, 1, 0))
            return 0;
        emitter->flow_level ++;
    }

    if (event->type == YAML_MAPPING_END_EVENT)
    {
        emitter->flow_level --;
        emitter->indent = POP(emitter, emitter->indents);
        if (emitter->canonical && !first) {
            if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
                return 0;
            if (!yaml_emitter_write_indent(emitter))
                return 0;
        }
        if (!yaml_emitter_write_indicator(emitter, "}", 0, 0, 0))
            return 0;
        emitter->state = POP(emitter, emitter->states);

        return 1;
    }

    if (!first) {
        if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
            return 0;
    }
    if (emitter->canonical || emitter->column > emitter->best_width) {
        if (!yaml_emitter_write_indent(emitter))
            return 0;
    }

    if (!emitter->canonical && yaml_emitter_check_simple_key(emitter))
    {
        if (!PUSH(emitter, emitter->states,
                    YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE))
            return 0;

        return yaml_emitter_emit_node(emitter, event, 0, 0, 1, 1);
    }
    else
    {
        if (!yaml_emitter_write_indicator(emitter, "?", 1, 0, 0))
            return 0;
        if (!PUSH(emitter, emitter->states,
                    YAML_EMIT_FLOW_MAPPING_VALUE_STATE))
            return 0;

        return yaml_emitter_emit_node(emitter, event, 0, 0, 1, 0);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
je 0x119a8
leaq 0x65c1(%rip), %rsi      # 0x17f1e
pushq $0x1
popq %rcx
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ecx, %edx
xorl %r8d, %r8d
callq 0x120e9
testl %eax, %eax
je 0x11b9d
pushq $0x1
popq %rsi
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
callq 0x14ad3
testl %eax, %eax
je 0x11b9d
movl 0x104(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x104(%rbx)
cmpl $0xa, (%r14)
je 0x119ba
jmp 0x11a79
cmpl $0xa, (%r14)
jne 0x11a59
movl 0x104(%rbx), %eax
decl %eax
movq 0xe0(%rbx), %rcx
leaq -0x4(%rcx), %rdx
movl %eax, 0x104(%rbx)
movq %rdx, 0xe0(%rbx)
movl -0x4(%rcx), %eax
movl %eax, 0x100(%rbx)
testl %r15d, %r15d
jne 0x11a16
cmpl $0x0, 0x7c(%rbx)
je 0x11a16
leaq 0x652d(%rip), %rsi      # 0x17f1a
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x120e9
testl %eax, %eax
je 0x11b9d
movq %rbx, %rdi
callq 0x12283
testl %eax, %eax
je 0x11b9d
leaq 0x6503(%rip), %rsi      # 0x17f20
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x120e9
testl %eax, %eax
je 0x11b9d
movq 0xa0(%rbx), %rax
leaq -0x4(%rax), %rcx
movq %rcx, 0xa0(%rbx)
movl -0x4(%rax), %eax
movl %eax, 0xa8(%rbx)
pushq $0x1
popq %rbp
jmp 0x11b9d
leaq 0x64ba(%rip), %rsi      # 0x17f1a
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x120e9
testl %eax, %eax
je 0x11b9d
cmpl $0x0, 0x7c(%rbx)
jne 0x11a8d
movl 0x11c(%rbx), %eax
cmpl 0x84(%rbx), %eax
jle 0x11aa3
movq %rbx, %rdi
callq 0x12283
testl %eax, %eax
je 0x11b9b
cmpl $0x0, 0x7c(%rbx)
jne 0x11b0b
movq %rbx, %rdi
callq 0x14d33
testl %eax, %eax
je 0x11b0b
movq 0xa0(%rbx), %rax
cmpq 0x98(%rbx), %rax
jne 0x11ae7
leaq 0xa0(%rbx), %r15
leaq 0x98(%rbx), %rdx
leaq 0x90(%rbx), %rdi
movq %r15, %rsi
callq 0x20e0
testl %eax, %eax
je 0x11b95
movq (%r15), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0xa0(%rbx)
movl $0x9, (%rax)
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r8d, %r9d
jmp 0x11b7e
leaq 0x6410(%rip), %rsi      # 0x17f22
pushq $0x1
popq %rdx
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x120e9
testl %eax, %eax
je 0x11b9d
movq 0xa0(%rbx), %rax
cmpq 0x98(%rbx), %rax
jne 0x11b5c
leaq 0xa0(%rbx), %r15
leaq 0x98(%rbx), %rdx
leaq 0x90(%rbx), %rdi
movq %r15, %rsi
callq 0x20e0
testl %eax, %eax
je 0x11b8d
movq (%r15), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0xa0(%rbx)
movl $0xa, (%rax)
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x127b2
movl $0x1, (%rbx)
jmp 0x11b9d
movl $0x1, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq