// File: /workspace/github_c_makefile_star2_O2/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, %r15
movl %esi, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
pushq $0x10
popq %rdi
callq 0x2080
movq %rax, (%rsp)
testq %rax, %rax
je 0xbdf5
movq %rax, %r14
movq %r15, 0x18(%rsp)
movq %rax, 0x10(%rsp)
addq $0x10, %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
cmpq $0x0, 0xa8(%rbx)
jne 0xbad4
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xbdfb
leaq 0x60(%rsp), %rdx
movq 0x98(%rbx), %rax
cmpb $0x21, (%rax)
jne 0xbc99
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq %r14, %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movb %al, (%r14)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jne 0xbb2e
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xbdfb
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
leaq 0xe0(%rbx), %rax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %r13
movq %rsp, %r14
movq 0x98(%rbx), %rax
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
jb 0xbb7a
movl %ecx, %edx
andb $-0x21, %dl
addb $-0x41, %dl
cmpb $0x1a, %dl
jb 0xbb7a
movzbl %cl, %edx
cmpl $0x2d, %edx
je 0xbb7a
cmpl $0x5f, %edx
jne 0xbcec
movq 0x10(%rsp), %rdx
addq $0x5, %rdx
cmpq 0x8(%rsp), %rdx
jb 0xbba9
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xbdf5
movq 0x98(%rbx), %rax
movb (%rax), %cl
testb %cl, %cl
jns 0xbc49
movzbl %cl, %ecx
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xbc25
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xbc01
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xbc66
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 0xbb4b
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2060
testl %eax, %eax
jne 0xbb4b
jmp 0xbdfb
testl %ebp, %ebp
leaq 0xb704(%rip), %rax      # 0x173a6
leaq 0xb6de(%rip), %rcx      # 0x17387
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 0xb6ee(%rip), %rax      # 0x173bb
movq %rax, 0x8(%rbx)
movups 0xe0(%rbx), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0xf0(%rbx), %rax
movq %rax, 0x30(%rbx)
jmp 0xbdfb
cmpl $0x21, %edx
jne 0xbe15
movq 0x10(%rsp), %rcx
addq $0x5, %rcx
cmpq 0x8(%rsp), %rcx
jb 0xbdc6
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xbdf5
movq 0x98(%rbx), %rax
movzbl (%rax), %ecx
testb %cl, %cl
jns 0xbdc6
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xbda2
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xbd7e
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xbdda
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
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
movq (%rsp), %rax
jmp 0xbe72
movl $0x1, (%rbx)
movq (%rsp), %rdi
callq 0x2140
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
testl %ebp, %ebp
je 0xbe72
cmpb $0x21, (%rax)
movq 0x18(%rsp), %rcx
jne 0xbe2d
cmpb $0x0, 0x1(%rax)
je 0xbe77
movl $0x3, (%rbx)
leaq 0xb59b(%rip), %rax      # 0x173d5
movq %rax, 0x38(%rbx)
leaq 0x60(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rbx)
leaq 0xb562(%rip), %rax      # 0x173bb
movq %rax, 0x8(%rbx)
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x10(%rax), %rax
jmp 0xbce3
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
pushq $0x1
popq %rax
jmp 0xbe06