// File: /workspace/github_c_makefile_star2_O3/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
movups %xmm0, 0x10(%rsp)
movl $0x10, %edi
callq 0x2080
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xc66b
movq %rax, %r15
movq %rax, 0x18(%rsp)
addq $0x10, %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
cmpq $0x0, 0xa8(%rbx)
jne 0xc345
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xc671
leaq 0x60(%rsp), %rdx
movq 0x98(%rbx), %rax
cmpb $0x21, (%rax)
jne 0xc50c
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq %r15, %rcx
incq %rcx
movq %rcx, 0x18(%rsp)
movb %al, (%r15)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jne 0xc3a1
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
je 0xc671
leaq 0x18(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0xe0(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x8(%rsp), %r13
movq 0x98(%rbx), %rax
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
jb 0xc3eb
movl %ecx, %edx
andb $-0x21, %dl
addb $-0x41, %dl
cmpb $0x1a, %dl
jb 0xc3eb
movzbl %cl, %edx
cmpl $0x2d, %edx
je 0xc3eb
cmpl $0x5f, %edx
jne 0xc55f
movq 0x18(%rsp), %rdx
addq $0x5, %rdx
cmpq 0x10(%rsp), %rdx
jb 0xc41a
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xc66b
movq 0x98(%rbx), %rax
movb (%rax), %cl
testb %cl, %cl
jns 0xc4ba
movzbl %cl, %ecx
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xc496
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xc472
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xc4d7
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
jne 0xc3bc
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2060
testl %eax, %eax
jne 0xc3bc
jmp 0xc671
testl %ebp, %ebp
leaq 0xbea1(%rip), %rax      # 0x183b6
leaq 0xbe7b(%rip), %rcx      # 0x18397
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 0xbe8b(%rip), %rax      # 0x183cb
movq %rax, 0x8(%rbx)
movups 0xe0(%rbx), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0xf0(%rbx), %rax
movq %rax, 0x30(%rbx)
jmp 0xc671
cmpl $0x21, %edx
jne 0xc68c
movq 0x18(%rsp), %rcx
addq $0x5, %rcx
cmpq 0x10(%rsp), %rcx
jb 0xc63b
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
je 0xc66b
movq 0x98(%rbx), %rax
movzbl (%rax), %ecx
testb %cl, %cl
jns 0xc63b
movl %ecx, %edx
andl $-0x20, %edx
cmpl $0xc0, %edx
je 0xc617
movl %ecx, %edx
andl $-0x10, %edx
cmpl $0xe0, %edx
je 0xc5f3
andl $-0x8, %ecx
cmpl $0xf0, %ecx
jne 0xc64f
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movb %al, (%rcx)
movq 0x98(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rbx)
movb (%rax), %al
movq 0x18(%rsp), %rcx
movb %al, (%rcx)
incq 0xe0(%rbx)
incq 0xf0(%rbx)
decq 0xa8(%rbx)
movq 0x8(%rsp), %rax
jmp 0xc6e5
movl $0x1, (%rbx)
movq 0x8(%rsp), %rdi
callq 0x2140
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
testl %ebp, %ebp
je 0xc6e5
cmpb $0x21, (%rax)
jne 0xc6a0
cmpb $0x0, 0x1(%rax)
je 0xc6e5
movl $0x3, (%rbx)
leaq 0xbd38(%rip), %rax      # 0x183e5
movq %rax, 0x38(%rbx)
leaq 0x60(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rbx)
leaq 0xbcff(%rip), %rax      # 0x183cb
movq %rax, 0x8(%rbx)
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x10(%rax), %rax
jmp 0xc556
movq %rax, (%r14)
movl $0x1, %eax
jmp 0xc67d