// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_emit_block_mapping_key
static int
yaml_emitter_emit_block_mapping_key(yaml_emitter_t *emitter,
        yaml_event_t *event, int first)
{
    if (first)
    {
        if (!yaml_emitter_increase_indent(emitter, 0, 0))
            return 0;
    }

    if (event->type == YAML_MAPPING_END_EVENT)
    {
        emitter->indent = POP(emitter, emitter->indents);
        emitter->state = POP(emitter, emitter->states);

        return 1;
    }

    if (!yaml_emitter_write_indent(emitter))
        return 0;

    if (yaml_emitter_check_simple_key(emitter))
    {
        if (!PUSH(emitter, emitter->states,
                    YAML_EMIT_BLOCK_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, 1))
            return 0;
        if (!PUSH(emitter, emitter->states,
                    YAML_EMIT_BLOCK_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 0x20829
movq -0x10(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x22a30
cmpl $0x0, %eax
jne 0x20827
movl $0x0, -0x4(%rbp)
jmp 0x20a3c
jmp 0x20829
movq -0x18(%rbp), %rax
cmpl $0xa, (%rax)
jne 0x2088a
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), %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 0x20a3c
movq -0x10(%rbp), %rdi
callq 0x213e0
cmpl $0x0, %eax
jne 0x208a4
movl $0x0, -0x4(%rbp)
jmp 0x20a3c
movq -0x10(%rbp), %rdi
callq 0x27590
cmpl $0x0, %eax
je 0x20966
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x98(%rcx), %rax
jne 0x20901
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 0x20928
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl $0xf, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x20944
jmp 0x20938
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x20944
movl $0x0, -0x4(%rbp)
jmp 0x20a3c
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 0x20a3c
movq -0x10(%rbp), %rdi
leaq 0xc579(%rip), %rsi      # 0x2ceea
movl $0x1, %r8d
xorl %ecx, %ecx
movl %r8d, %edx
callq 0x21060
cmpl $0x0, %eax
jne 0x20992
movl $0x0, -0x4(%rbp)
jmp 0x20a3c
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x98(%rcx), %rax
jne 0x209dd
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 0x20a04
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl $0x10, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x20a1d
jmp 0x20a14
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x20a1d
movl $0x0, -0x4(%rbp)
jmp 0x20a3c
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
nopw %cs:(%rax,%rax)