// File: /workspace/github_cpp_makefile_star2_O3/IHorvalds[P]RomAna/./processing/special_characters.hpp
// Function: specialChars::cleanUpWord(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static std::string cleanUpWord(std::string word) {
    if (!word.empty()) {
      // First get rid of the punctuation of 1 byte, using "ispunct"
      word.erase(std::remove_if(word.begin(), word.end(), ::ispunct), word.end());
      
      // Also get rid of digits
      word.erase(std::remove_if(word.begin(), word.end(), ::isdigit), word.end());
      
      // And the white spaces
      word.erase(std::remove_if(word.begin(), word.end(), ::isspace), word.end());
#if 0
      // TODO: fix it
      // Then look at the punctuation of many more bytes
      for (int i = 0; i < word.size(); i++) {
        int amount = isPunctuation(&word[i]) + isdigit(word[i]);
        word.erase(i, amount);
        i -= (amount > 0);
      }
#endif
    }
    return word;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x5c7b
movq %rdi, (%rsp)
movq (%rbx), %r12
leaq (%r12,%rax), %r15
movq %rax, %r14
sarq $0x2, %r14
movq %r12, %rbp
testq %r14, %r14
jle 0x59ac
andq $-0x4, %rax
movq %rax, %rbp
addq %r12, %rbp
incq %r14
leaq 0x3(%r12), %r13
movsbl -0x3(%r13), %edi
callq 0x3500
testl %eax, %eax
jne 0x59f8
movsbl -0x2(%r13), %edi
callq 0x3500
testl %eax, %eax
jne 0x59fe
movsbl -0x1(%r13), %edi
callq 0x3500
testl %eax, %eax
jne 0x5a04
movsbl (%r13), %edi
callq 0x3500
testl %eax, %eax
jne 0x5a07
decq %r14
addq $0x4, %r13
cmpq $0x1, %r14
jg 0x5963
movq %r15, %rax
subq %rbp, %rax
cmpq $0x1, %rax
je 0x59e4
cmpq $0x2, %rax
je 0x59d4
cmpq $0x3, %rax
jne 0x5a3f
movsbl (%rbp), %edi
callq 0x3500
testl %eax, %eax
jne 0x59f3
incq %rbp
movsbl (%rbp), %edi
callq 0x3500
testl %eax, %eax
jne 0x59f3
incq %rbp
movsbl (%rbp), %edi
callq 0x3500
testl %eax, %eax
cmoveq %r15, %rbp
movq %rbp, %r13
jmp 0x5a07
addq $-0x3, %r13
jmp 0x5a07
addq $-0x2, %r13
jmp 0x5a07
decq %r13
cmpq %r15, %r13
sete %al
leaq 0x1(%r13), %r14
cmpq %r15, %r14
sete %cl
orb %al, %cl
jne 0x5a42
movb (%r14), %bpl
movsbl %bpl, %edi
callq 0x3500
testl %eax, %eax
jne 0x5a32
movb %bpl, (%r13)
incq %r13
incq %r14
cmpq %r15, %r14
jne 0x5a1b
movq (%rbx), %r12
jmp 0x5a42
movq %r15, %r13
movq %r13, %rax
subq %r12, %rax
movq %rax, 0x8(%rbx)
movb $0x0, (%r13)
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq (%rcx,%rdx), %rax
movq %rdx, %rdi
sarq $0x2, %rdi
movq %rcx, %rsi
testq %rdi, %rdi
jle 0x5ac4
andq $-0x4, %rdx
movq %rdx, %rsi
addq %rcx, %rsi
incq %rdi
leaq 0x3(%rcx), %rdx
movsbl -0x3(%rdx), %r8d
addl $-0x3a, %r8d
cmpl $-0xb, %r8d
ja 0x5b0a
movsbl -0x2(%rdx), %r8d
addl $-0x3a, %r8d
cmpl $-0xb, %r8d
ja 0x5b10
movsbl -0x1(%rdx), %r8d
addl $-0x3a, %r8d
cmpl $-0xb, %r8d
ja 0x5b16
movsbl (%rdx), %r8d
addl $-0x3a, %r8d
cmpl $-0xb, %r8d
ja 0x5b19
decq %rdi
addq $0x4, %rdx
cmpq $0x1, %rdi
jg 0x5a7c
movq %rax, %rdx
subq %rsi, %rdx
cmpq $0x1, %rdx
je 0x5af8
cmpq $0x2, %rdx
je 0x5aea
cmpq $0x3, %rdx
jne 0x5b4d
movsbl (%rsi), %edx
addl $-0x3a, %edx
cmpl $-0xb, %edx
ja 0x5b05
incq %rsi
movsbl (%rsi), %edx
addl $-0x3a, %edx
cmpl $-0xb, %edx
ja 0x5b05
incq %rsi
movsbl (%rsi), %edx
addl $-0x3a, %edx
cmpl $-0xa, %edx
cmovbq %rax, %rsi
movq %rsi, %rdx
jmp 0x5b19
addq $-0x3, %rdx
jmp 0x5b19
addq $-0x2, %rdx
jmp 0x5b19
decq %rdx
cmpq %rax, %rdx
sete %dil
leaq 0x1(%rdx), %rsi
cmpq %rax, %rsi
sete %r8b
orb %dil, %r8b
jne 0x5b50
movsbl (%rsi), %ecx
leal -0x3a(%rcx), %edi
cmpl $-0xb, %edi
ja 0x5b40
movb %cl, (%rdx)
incq %rdx
incq %rsi
cmpq %rax, %rsi
jne 0x5b30
movq (%rbx), %rcx
jmp 0x5b50
movq %rax, %rdx
movq %rdx, %rax
subq %rcx, %rax
movq %rax, 0x8(%rbx)
movb $0x0, (%rdx)
movq (%rbx), %r12
movq 0x8(%rbx), %rax
leaq (%r12,%rax), %r15
movq %rax, %r14
sarq $0x2, %r14
movq %r12, %rbp
testq %r14, %r14
jle 0x5bd2
andq $-0x4, %rax
movq %rax, %rbp
addq %r12, %rbp
incq %r14
leaq 0x3(%r12), %r13
movsbl -0x3(%r13), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c1e
movsbl -0x2(%r13), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c24
movsbl -0x1(%r13), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c2a
movsbl (%r13), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c2d
decq %r14
addq $0x4, %r13
cmpq $0x1, %r14
jg 0x5b89
movq %r15, %rax
subq %rbp, %rax
cmpq $0x1, %rax
je 0x5c0a
cmpq $0x2, %rax
je 0x5bfa
cmpq $0x3, %rax
jne 0x5c65
movsbl (%rbp), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c19
incq %rbp
movsbl (%rbp), %edi
callq 0x3070
testl %eax, %eax
jne 0x5c19
incq %rbp
movsbl (%rbp), %edi
callq 0x3070
testl %eax, %eax
cmoveq %r15, %rbp
movq %rbp, %r13
jmp 0x5c2d
addq $-0x3, %r13
jmp 0x5c2d
addq $-0x2, %r13
jmp 0x5c2d
decq %r13
cmpq %r15, %r13
sete %al
leaq 0x1(%r13), %r14
cmpq %r15, %r14
sete %cl
orb %al, %cl
jne 0x5c68
movb (%r14), %bpl
movsbl %bpl, %edi
callq 0x3070
testl %eax, %eax
jne 0x5c58
movb %bpl, (%r13)
incq %r13
incq %r14
cmpq %r15, %r14
jne 0x5c41
movq (%rbx), %r12
jmp 0x5c68
movq %r15, %r13
movq %r13, %rax
subq %r12, %rax
movq %rax, 0x8(%rbx)
movb $0x0, (%r13)
movq (%rsp), %rdi
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
movq (%rbx), %rdx
leaq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x5c9a
movq %rdx, (%rdi)
movq (%rax), %rcx
movq %rcx, 0x10(%rdi)
jmp 0x5ca0
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rdi)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq