// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x20198
movq -0x10(%rbp), %rdi
leaq 0xcda2(%rip), %rsi      # 0x2cee6
movl $0x1, %ecx
xorl %r8d, %r8d
movl %ecx, %edx
callq 0x21060
cmpl $0x0, %eax
jne 0x20164
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x22a30
cmpl $0x0, %eax
jne 0x20185
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rax
movl 0x104(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x104(%rax)
movq -0x18(%rbp), %rax
cmpl $0xa, (%rax)
jne 0x20290
movq -0x10(%rbp), %rax
movl 0x104(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x104(%rax)
movq -0x10(%rbp), %rcx
movq 0xe0(%rcx), %rax
movq %rax, %rdx
addq $-0x4, %rdx
movq %rdx, 0xe0(%rcx)
movl -0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x100(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
je 0x20234
cmpl $0x0, -0x1c(%rbp)
jne 0x20234
movq -0x10(%rbp), %rdi
leaq 0xcce9(%rip), %rsi      # 0x2cee2
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x20218
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rdi
callq 0x213e0
cmpl $0x0, %eax
jne 0x20232
movl $0x0, -0x4(%rbp)
jmp 0x204a4
jmp 0x20234
movq -0x10(%rbp), %rdi
leaq 0xcca9(%rip), %rsi      # 0x2cee8
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x2025e
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $-0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl -0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xa8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x204a4
cmpl $0x0, -0x1c(%rbp)
jne 0x202c2
movq -0x10(%rbp), %rdi
leaq 0xcc41(%rip), %rsi      # 0x2cee2
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x202c0
movl $0x0, -0x4(%rbp)
jmp 0x204a4
jmp 0x202c2
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x202e2
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x84(%rcx), %eax
jle 0x202fe
movq -0x10(%rbp), %rdi
callq 0x213e0
cmpl $0x0, %eax
jne 0x202fc
movl $0x0, -0x4(%rbp)
jmp 0x204a4
jmp 0x202fe
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x203ce
movq -0x10(%rbp), %rdi
callq 0x27590
cmpl $0x0, %eax
je 0x203ce
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x98(%rcx), %rax
jne 0x20369
movq -0x10(%rbp), %rdi
addq $0x90, %rdi
movq -0x10(%rbp), %rsi
addq $0x90, %rsi
addq $0x10, %rsi
movq -0x10(%rbp), %rdx
addq $0x90, %rdx
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x20390
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl $0x9, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x203ac
jmp 0x203a0
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x203ac
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %ecx, %ecx
movl $0x1, %r9d
movl %ecx, %edx
movl %r9d, %r8d
callq 0x22010
movl %eax, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rdi
leaq 0xcb11(%rip), %rsi      # 0x2ceea
movl $0x1, %edx
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x203fa
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x98(%rcx), %rax
jne 0x20445
movq -0x10(%rbp), %rdi
addq $0x90, %rdi
movq -0x10(%rbp), %rsi
addq $0x90, %rsi
addq $0x10, %rsi
movq -0x10(%rbp), %rdx
addq $0x90, %rdx
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x2046c
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl $0xa, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x20485
jmp 0x2047c
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x20485
movl $0x0, -0x4(%rbp)
jmp 0x204a4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %r9d, %r9d
movl $0x1, %r8d
movl %r9d, %edx
movl %r9d, %ecx
callq 0x22010
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)