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

    yaml_node_pair_t pair;

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

    pair.key = key;
    pair.value = value;

    if (!PUSH(&context,
                document->nodes.start[mapping-1].data.mapping.pairs, pair))
        return 0;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x656e
jmp 0x658d
leaq 0x26389(%rip), %rdi     # 0x2c8fe
leaq 0x24af5(%rip), %rsi     # 0x2b071
movl $0x55b, %edx            # imm = 0x55B
leaq 0x25719(%rip), %rcx     # 0x2bca1
callq 0x2100
cmpl $0x0, -0x14(%rbp)
jle 0x65b1
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 0x65b1
jmp 0x65d0
leaq 0x25731(%rip), %rdi     # 0x2bce9
leaq 0x24ab2(%rip), %rsi     # 0x2b071
movl $0x55d, %edx            # imm = 0x55D
leaq 0x256d6(%rip), %rcx     # 0x2bca1
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 $0x3, (%rax)
jne 0x65ee
jmp 0x660d
leaq 0x2573a(%rip), %rdi     # 0x2bd2f
leaq 0x24a75(%rip), %rsi     # 0x2b071
movl $0x55f, %edx            # imm = 0x55F
leaq 0x25699(%rip), %rcx     # 0x2bca1
callq 0x2100
cmpl $0x0, -0x18(%rbp)
jle 0x6631
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 0x6631
jmp 0x6650
leaq 0x25732(%rip), %rdi     # 0x2bd6a
leaq 0x24a32(%rip), %rsi     # 0x2b071
movl $0x561, %edx            # imm = 0x561
leaq 0x25656(%rip), %rcx     # 0x2bca1
callq 0x2100
cmpl $0x0, -0x1c(%rbp)
jle 0x6674
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x6674
jmp 0x6693
leaq 0x2572d(%rip), %rdi     # 0x2bda8
leaq 0x249ef(%rip), %rsi     # 0x2b071
movl $0x563, %edx            # imm = 0x563
leaq 0x25613(%rip), %rcx     # 0x2bca1
callq 0x2100
movl -0x18(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x24(%rbp)
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 0x6737
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 0x676b
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rcx
movq 0x20(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x20(%rcx)
movq -0x28(%rbp), %rcx
movq %rcx, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x6781
jmp 0x6778
movl $0x1, -0x20(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x6781
movl $0x0, -0x4(%rbp)
jmp 0x6788
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)