// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/loader.c
// Function: yaml_parser_register_anchor
static int
yaml_parser_register_anchor(yaml_parser_t *parser,
        int index, yaml_char_t *anchor)
{
    yaml_alias_data_t data;
    yaml_alias_data_t *alias_data;

    if (!anchor) return 1;

    data.anchor = anchor;
    data.index = index;
    data.mark = parser->document->nodes.start[index-1].start_mark;

    for (alias_data = parser->aliases.start;
            alias_data != parser->aliases.top; alias_data ++) {
        if (strcmp((char *)alias_data->anchor, (char *)anchor) == 0) {
            yaml_free(anchor);
            return yaml_parser_set_composer_error_context(parser,
                    "found duplicate anchor; first occurence",
                    alias_data->mark, "second occurence", data.mark);
        }
    }

    if (!PUSH(parser, parser->aliases, data)) {
        yaml_free(anchor);
        return 0;
    }

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1e7f9
movl $0x1, -0x4(%rbp)
jmp 0x1e997
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x1d8(%rax), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x38(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x40(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x1c0(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x1d0(%rcx), %rax
je 0x1e8f4
movq -0x50(%rbp), %rax
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x2160
cmpl $0x0, %eax
jne 0x1e8e1
movq -0x20(%rbp), %rdi
callq 0x2140
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rcx
addq $0x10, %rcx
leaq -0x48(%rbp), %rax
addq $0x10, %rax
leaq 0xe36f(%rip), %rsi      # 0x2cc09
leaq 0xe390(%rip), %rdx      # 0x2cc31
movq (%rcx), %r8
movq %r8, (%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rsp)
movq (%rax), %rcx
movq %rcx, 0x18(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
callq 0x1e9b0
movl %eax, -0x4(%rbp)
jmp 0x1e997
jmp 0x1e8e3
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x50(%rbp)
jmp 0x1e84c
movq -0x10(%rbp), %rax
movq 0x1d0(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x1c8(%rcx), %rax
jne 0x1e93f
movq -0x10(%rbp), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
movq -0x10(%rbp), %rsi
addq $0x1c0, %rsi            # imm = 0x1C0
addq $0x10, %rsi
movq -0x10(%rbp), %rdx
addq $0x1c0, %rdx            # imm = 0x1C0
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x1e96e
movq -0x10(%rbp), %rax
movq 0x1d0(%rax), %rdi
movq %rdi, %rcx
addq $0x28, %rcx
movq %rcx, 0x1d0(%rax)
leaq -0x48(%rbp), %rsi
movl $0x28, %edx
callq 0x2180
movb $0x1, %al
testb $0x1, %al
jne 0x1e990
jmp 0x1e97e
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1e990
movq -0x20(%rbp), %rdi
callq 0x2140
movl $0x0, -0x4(%rbp)
jmp 0x1e997
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)