// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_emit_flow_sequence_item
static int
yaml_emitter_emit_flow_sequence_item(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_SEQUENCE_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 (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE))
        return 0;

    return yaml_emitter_emit_node(emitter, event, 0, 1, 0, 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 0x1ff08
movq -0x10(%rbp), %rdi
leaq 0xd02c(%rip), %rsi      # 0x2cee0
movl $0x1, %ecx
xorl %r8d, %r8d
movl %ecx, %edx
callq 0x21060
cmpl $0x0, %eax
jne 0x1fed4
movl $0x0, -0x4(%rbp)
jmp 0x20117
movq -0x10(%rbp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x22a30
cmpl $0x0, %eax
jne 0x1fef5
movl $0x0, -0x4(%rbp)
jmp 0x20117
movq -0x10(%rbp), %rax
movl 0x104(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x104(%rax)
movq -0x18(%rbp), %rax
cmpl $0x8, (%rax)
jne 0x20000
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 0x1ffa4
cmpl $0x0, -0x1c(%rbp)
jne 0x1ffa4
movq -0x10(%rbp), %rdi
leaq 0xcf79(%rip), %rsi      # 0x2cee2
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x1ff88
movl $0x0, -0x4(%rbp)
jmp 0x20117
movq -0x10(%rbp), %rdi
callq 0x213e0
cmpl $0x0, %eax
jne 0x1ffa2
movl $0x0, -0x4(%rbp)
jmp 0x20117
jmp 0x1ffa4
movq -0x10(%rbp), %rdi
leaq 0xcf35(%rip), %rsi      # 0x2cee4
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x1ffce
movl $0x0, -0x4(%rbp)
jmp 0x20117
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 0x20117
cmpl $0x0, -0x1c(%rbp)
jne 0x20032
movq -0x10(%rbp), %rdi
leaq 0xced1(%rip), %rsi      # 0x2cee2
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x21060
cmpl $0x0, %eax
jne 0x20030
movl $0x0, -0x4(%rbp)
jmp 0x20117
jmp 0x20032
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x20052
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x84(%rcx), %eax
jle 0x2006e
movq -0x10(%rbp), %rdi
callq 0x213e0
cmpl $0x0, %eax
jne 0x2006c
movl $0x0, -0x4(%rbp)
jmp 0x20117
jmp 0x2006e
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x98(%rcx), %rax
jne 0x200b9
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 0x200e0
movq -0x10(%rbp), %rcx
movq 0xa0(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xa0(%rcx)
movl $0x6, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x200f9
jmp 0x200f0
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x200f9
movl $0x0, -0x4(%rbp)
jmp 0x20117
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %r9d, %r9d
movl $0x1, %ecx
movl %r9d, %edx
movl %r9d, %r8d
callq 0x22010
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq