// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/api.c
// Function: yaml_document_append_sequence_item
YAML_DECLARE(int)
yaml_document_append_sequence_item(yaml_document_t *document,
        int sequence, int item)
{
    struct {
        yaml_error_type_t error;
    } context;

    assert(document);       /* Non-NULL document is required. */
    assert(sequence > 0
            && document->nodes.start + sequence <= document->nodes.top);
                            /* Valid sequence id is required. */
    assert(document->nodes.start[sequence-1].type == YAML_SEQUENCE_NODE);
                            /* A sequence node is required. */
    assert(item > 0 && document->nodes.start + item <= document->nodes.top);
                            /* Valid item id is required. */

    if (!PUSH(&context,
                document->nodes.start[sequence-1].data.sequence.items, item))
        return 0;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x637b
jmp 0x639a
leaq 0x2657c(%rip), %rdi     # 0x2c8fe
leaq 0x24ce8(%rip), %rsi     # 0x2b071
movl $0x53d, %edx            # imm = 0x53D
leaq 0x25803(%rip), %rcx     # 0x2bb98
callq 0x2100
cmpl $0x0, -0x14(%rbp)
jle 0x63be
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x63be
jmp 0x63dd
leaq 0x25817(%rip), %rdi     # 0x2bbdc
leaq 0x24ca5(%rip), %rsi     # 0x2b071
movl $0x53f, %edx            # imm = 0x53F
leaq 0x257c0(%rip), %rcx     # 0x2bb98
callq 0x2100
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
jne 0x63fb
jmp 0x641a
leaq 0x25822(%rip), %rdi     # 0x2bc24
leaq 0x24c68(%rip), %rsi     # 0x2b071
movl $0x541, %edx            # imm = 0x541
leaq 0x25783(%rip), %rcx     # 0x2bb98
callq 0x2100
cmpl $0x0, -0x18(%rbp)
jle 0x643e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x643e
jmp 0x645d
leaq 0x2581c(%rip), %rdi     # 0x2bc61
leaq 0x24c25(%rip), %rsi     # 0x2b071
movl $0x543, %edx            # imm = 0x543
leaq 0x25740(%rip), %rcx     # 0x2bb98
callq 0x2100
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl -0x14(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x18(%rcx), %rax
jne 0x64f5
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rdi
addq $0x10, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rsi
addq $0x10, %rsi
addq $0x10, %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rdx
addq $0x10, %rdx
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x6527
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rdx
movq 0x20(%rdx), %rax
movq %rax, %rsi
addq $0x4, %rsi
movq %rsi, 0x20(%rdx)
movl %ecx, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x653d
jmp 0x6534
movl $0x1, -0x1c(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x653d
movl $0x0, -0x4(%rbp)
jmp 0x6544
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)