// File: /workspace/github_c_makefile_star2_O1/mijallen[P]SimpleHTTPServer/lib/libyaml/src/scanner.c
// Function: yaml_parser_scan_tag_handle
static int
yaml_parser_scan_tag_handle(yaml_parser_t *parser, int directive,
        yaml_mark_t start_mark, yaml_char_t **handle)
{
    yaml_string_t string = NULL_STRING;

    if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error;

    /* Check the initial '!' character. */

    if (!CACHE(parser, 1)) goto error;

    if (!CHECK(parser->buffer, '!')) {
        yaml_parser_set_scanner_error(parser, directive ?
                "while scanning a tag directive" : "while scanning a tag",
                start_mark, "did not find expected '!'");
        goto error;
    }

    /* Copy the '!' character. */

    if (!READ(parser, string)) goto error;

    /* Copy all subsequent alphabetical and numerical characters. */

    if (!CACHE(parser, 1)) goto error;

    while (IS_ALPHA(parser->buffer))
    {
        if (!READ(parser, string)) goto error;
        if (!CACHE(parser, 1)) goto error;
    }

    /* Check if the trailing character is '!' and copy it. */

    if (CHECK(parser->buffer, '!'))
    {
        if (!READ(parser, string)) goto error;
    }
    else
    {
        /*
         * It's either the '!' tag or not really a tag handle.  If it's a %TAG
         * directive, it's an error.  If it's a tag token, it must be a part of
         * URI.
         */

        if (directive && !(string.start[0] == '!' && string.start[1] == '\0')) {
            yaml_parser_set_scanner_error(parser, "while parsing a tag directive",
                    start_mark, "did not find expected '!'");
            goto error;
        }
    }

    *handle = string.start;

    return 1;

error:
    STRING_DEL(parser, string);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x10, %edi
callq 0x2080
movq %rax, (%rsp)
testq %rax, %rax
je 0xcea3
movq %rax, 0x10(%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
cmpq $0x0, 0xa8(%rbx)
jne 0xcab4
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xcea9
leaq 0x60(%rsp), %rdx
movq 0x98(%rbx), %rax
cmpb $0x21, (%rax)
jne 0xcd43
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movq 0x8(%r12), %rax
addq $0x5, %rax
cmpq (%r12), %rax
jb 0xcaf8
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xcea3
movq 0x98(%rbx), %rax
movzbl (%rax), %ecx
testb %cl, %cl
jns 0xcb9f
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xcb7b
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xcb57
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xcbbc
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jne 0xcbe8
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xcea9
leaq 0xe0(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rsp, %r13
movq 0x98(%rbx), %rax
movzbl (%rax), %eax
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
jb 0xcc24
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x1a, %cl
jb 0xcc24
cmpl $0x2d, %eax
je 0xcc24
cmpl $0x5f, %eax
jne 0xcd96
movq 0x10(%rsp), %rax
addq $0x5, %rax
cmpq 0x8(%rsp), %rax
jb 0xcc4a
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xcea3
movq 0x98(%rbx), %rax
movzbl (%rax), %ecx
testb %cl, %cl
jns 0xccf1
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xcccd
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xcca9
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xcd0e
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jne 0xcbf7
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
jne 0xcbf7
jmp 0xcea9
testl %ebp, %ebp
leaq 0xc5ee(%rip), %rax      # 0x1933a
leaq 0xc5c8(%rip), %rcx      # 0x1931b
cmoveq %rax, %rcx
movl $0x3, (%rbx)
movq %rcx, 0x38(%rbx)
movups (%rdx), %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x10(%rdx), %rax
movq %rax, 0x50(%rbx)
leaq 0xc5d8(%rip), %rax      # 0x1934f
movq %rax, 0x8(%rbx)
movups 0xe0(%rbx), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0xf0(%rbx), %rax
movq %rax, 0x30(%rbx)
jmp 0xcea9
cmpl $0x21, %eax
jne 0xced3
movq 0x10(%rsp), %rax
addq $0x5, %rax
cmpq 0x8(%rsp), %rax
jb 0xcdc5
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xcea3
movq 0x98(%rbx), %rax
movzbl (%rax), %ecx
testb %cl, %cl
jns 0xce6c
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xce48
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xce24
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xce89
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jmp 0xcf2b
movl $0x1, (%rbx)
movq (%rsp), %rdi
callq 0x2140
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebp, %ebp
je 0xcf2b
movq (%rsp), %rax
cmpb $0x21, (%rax)
jne 0xcee6
cmpb $0x0, 0x1(%rax)
je 0xcf2b
movl $0x3, (%rbx)
leaq 0xc476(%rip), %rax      # 0x19369
movq %rax, 0x38(%rbx)
leaq 0x60(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rbx)
leaq 0xc43d(%rip), %rax      # 0x1934f
movq %rax, 0x8(%rbx)
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x10(%rax), %rax
jmp 0xcd8d
movq (%rsp), %rax
movq %rax, (%r14)
movl $0x1, %eax
jmp 0xcec4