// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_write_tag_content
static int
yaml_emitter_write_tag_content(yaml_emitter_t *emitter,
        yaml_char_t *value, size_t length,
        int need_whitespace)
{
    yaml_string_t string;
    STRING_ASSIGN(string, value, length);

    if (need_whitespace && !emitter->whitespace) {
        if (!PUT(emitter, ' ')) return 0;
    }

    while (string.pointer != string.end) {
        if (IS_ALPHA(string)
                || CHECK(string, ';') || CHECK(string, '/')
                || CHECK(string, '?') || CHECK(string, ':')
                || CHECK(string, '@') || CHECK(string, '&')
                || CHECK(string, '=') || CHECK(string, '+')
                || CHECK(string, '$') || CHECK(string, ',')
                || CHECK(string, '_') || CHECK(string, '.')
                || CHECK(string, '~') || CHECK(string, '*')
                || CHECK(string, '\'') || CHECK(string, '(')
                || CHECK(string, ')') || CHECK(string, '[')
                || CHECK(string, ']')) {
            if (!WRITE(emitter, string)) return 0;
        }
        else {
            int width = WIDTH(string);
            unsigned int value;
            while (width --) {
                value = *(string.pointer++);
                if (!PUT(emitter, '%')) return 0;
                if (!PUT(emitter, (value >> 4)
                            + ((value >> 4) < 10 ? '0' : 'A' - 10)))
                    return 0;
                if (!PUT(emitter, (value & 0x0F)
                            + ((value & 0x0F) < 10 ? '0' : 'A' - 10)))
                    return 0;
            }
        }
    }

    emitter->whitespace = 0;
    emitter->indention = 0;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x219d7
movq -0x10(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jne 0x219d7
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x2199a
movq -0x10(%rbp), %rdi
callq 0x21a0
cmpl $0x0, %eax
je 0x219c9
movq -0x10(%rbp), %rcx
movq 0x48(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x48(%rcx)
movb $0x20, (%rax)
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x11c(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x219d5
movl $0x0, -0x4(%rbp)
jmp 0x21ff2
jmp 0x219d7
jmp 0x219d9
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x21fcf
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x30, %eax
jl 0x21a03
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x39, %eax
jle 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x41, %eax
jl 0x21a1f
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5a, %eax
jle 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x61, %eax
jl 0x21a3b
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7a, %eax
jle 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2d, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x3b, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2f, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x3f, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x3a, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x40, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x26, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x3d, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2b, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x24, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2c, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2e, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7e, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2a, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x27, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x28, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x29, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5b, %eax
je 0x21b63
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x21dbb
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x21b8b
movq -0x10(%rbp), %rdi
callq 0x21a0
cmpl $0x0, %eax
je 0x21daa
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x21bca
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %al, (%rcx)
movzbl %al, %eax
jmp 0x21d91
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0xe0, %eax
cmpl $0xc0, %eax
jne 0x21c34
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %al, (%rcx)
movzbl %al, %eax
movl %eax, -0x4c(%rbp)
jmp 0x21d8e
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0xf0, %eax
cmpl $0xe0, %eax
jne 0x21cc4
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %al, (%rcx)
movzbl %al, %eax
movl %eax, -0x50(%rbp)
jmp 0x21d88
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0xf8, %eax
cmpl $0xf0, %eax
jne 0x21d7b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %al, (%rcx)
movzbl %al, %eax
movl %eax, -0x54(%rbp)
jmp 0x21d82
xorl %eax, %eax
movl %eax, -0x54(%rbp)
jmp 0x21d82
movl -0x54(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x11c(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x21db6
movl $0x0, -0x4(%rbp)
jmp 0x21ff2
jmp 0x21fca
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x21dd6
movl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x21e3c
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0xe0, %eax
cmpl $0xc0, %eax
jne 0x21df3
movl $0x2, %eax
movl %eax, -0x5c(%rbp)
jmp 0x21e36
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
andl $0xf0, %eax
cmpl $0xe0, %eax
jne 0x21e10
movl $0x3, %eax
movl %eax, -0x60(%rbp)
jmp 0x21e30
movq -0x30(%rbp), %rax
movzbl (%rax), %edx
andl $0xf8, %edx
xorl %eax, %eax
movl $0x4, %ecx
cmpl $0xf0, %edx
cmovel %ecx, %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x44(%rbp)
cmpl $0x0, %eax
je 0x21fc8
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x21e8f
movq -0x10(%rbp), %rdi
callq 0x21a0
cmpl $0x0, %eax
je 0x21ebe
movq -0x10(%rbp), %rcx
movq 0x48(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x48(%rcx)
movb $0x25, (%rax)
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x11c(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x21eca
movl $0x0, -0x4(%rbp)
jmp 0x21ff2
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x21eee
movq -0x10(%rbp), %rdi
callq 0x21a0
cmpl $0x0, %eax
je 0x21f3c
movl -0x48(%rbp), %eax
shrl $0x4, %eax
movl -0x48(%rbp), %esi
shrl $0x4, %esi
movl $0x37, %ecx
movl $0x30, %edx
cmpl $0xa, %esi
cmovbl %edx, %ecx
addl %ecx, %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x11c(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x21f48
movl $0x0, -0x4(%rbp)
jmp 0x21ff2
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x21f6c
movq -0x10(%rbp), %rdi
callq 0x21a0
cmpl $0x0, %eax
je 0x21fba
movl -0x48(%rbp), %eax
andl $0xf, %eax
movl -0x48(%rbp), %esi
andl $0xf, %esi
movl $0x37, %ecx
movl $0x30, %edx
cmpl $0xa, %esi
cmovbl %edx, %ecx
addl %ecx, %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x11c(%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x21fc3
movl $0x0, -0x4(%rbp)
jmp 0x21ff2
jmp 0x21e42
jmp 0x21fca
jmp 0x219d9
movq -0x10(%rbp), %rax
movl $0x0, 0x120(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x124(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)