// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/api.c
// Function: yaml_scalar_event_initialize
YAML_DECLARE(int)
yaml_scalar_event_initialize(yaml_event_t *event,
        yaml_char_t *anchor, yaml_char_t *tag,
        yaml_char_t *value, int length,
        int plain_implicit, int quoted_implicit,
        yaml_scalar_style_t style)
{
    yaml_mark_t mark = { 0, 0, 0 };
    yaml_char_t *anchor_copy = NULL;
    yaml_char_t *tag_copy = NULL;
    yaml_char_t *value_copy = NULL;

    assert(event);      /* Non-NULL event object is expected. */
    assert(value);      /* Non-NULL anchor is expected. */

    if (anchor) {
        if (!yaml_check_utf8(anchor, strlen((char *)anchor))) goto error;
        anchor_copy = yaml_strdup(anchor);
        if (!anchor_copy) goto error;
    }

    if (tag) {
        if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error;
        tag_copy = yaml_strdup(tag);
        if (!tag_copy) goto error;
    }

    if (length < 0) {
        length = strlen((char *)value);
    }

    if (!yaml_check_utf8(value, length)) goto error;
    value_copy = yaml_malloc(length+1);
    if (!value_copy) goto error;
    memcpy(value_copy, value, length);
    value_copy[length] = '\0';

    SCALAR_EVENT_INIT(*event, anchor_copy, tag_copy, value_copy, length,
            plain_implicit, quoted_implicit, style, mark, mark);

    return 1;

error:
    yaml_free(anchor_copy);
    yaml_free(tag_copy);
    yaml_free(value_copy);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2120
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4db7
jmp 0x4dd6
leaq 0x26746(%rip), %rdi     # 0x2b504
leaq 0x262ac(%rip), %rsi     # 0x2b071
movl $0x33a, %edx            # imm = 0x33A
leaq 0x26944(%rip), %rcx     # 0x2b715
callq 0x2100
cmpq $0x0, -0x28(%rbp)
je 0x4ddf
jmp 0x4dfe
leaq 0x269b1(%rip), %rdi     # 0x2b797
leaq 0x26284(%rip), %rsi     # 0x2b071
movl $0x33b, %edx            # imm = 0x33B
leaq 0x2691c(%rip), %rcx     # 0x2b715
callq 0x2100
cmpq $0x0, -0x18(%rbp)
je 0x4e47
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
callq 0x20d0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x4940
cmpl $0x0, %eax
jne 0x4e2c
jmp 0x4f9d
movq -0x18(%rbp), %rdi
callq 0x20c0
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x4e45
jmp 0x4f9d
jmp 0x4e47
cmpq $0x0, -0x20(%rbp)
je 0x4e90
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
callq 0x20d0
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x4940
cmpl $0x0, %eax
jne 0x4e75
jmp 0x4f9d
movq -0x20(%rbp), %rdi
callq 0x20c0
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x4e8e
jmp 0x4f9d
jmp 0x4e90
cmpl $0x0, -0x2c(%rbp)
jge 0x4ea2
movq -0x28(%rbp), %rdi
callq 0x20d0
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x2c(%rbp), %rsi
callq 0x4940
cmpl $0x0, %eax
jne 0x4eb9
jmp 0x4f9d
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2080
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x4ed7
jmp 0x4f9d
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
movslq -0x2c(%rbp), %rdx
callq 0x2180
movq -0x60(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2120
movq -0x10(%rbp), %rax
movl $0x6, (%rax)
movq -0x10(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, 0x38(%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x40(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, 0x50(%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x58(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x60(%rax)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movslq -0x2c(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x30(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x28(%rax)
movl 0x10(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2c(%rax)
movl 0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x30(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4fbf
movq -0x50(%rbp), %rdi
callq 0x2140
movq -0x58(%rbp), %rdi
callq 0x2140
movq -0x60(%rbp), %rdi
callq 0x2140
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)