user: What is the c source code of the assembly code below?

```asm
<GScr_StrTokByPixLen>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x818,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x808(%rsp)
  xor    %eax,%eax
  call   <Scr_GetNumParam@plt>
  cmp    $0x2,%eax
  je     L17
  lea    D0(%rip),%rdi
  call   <Scr_Error@plt>
L17:
  xor    %edi,%edi
  call   <Scr_GetString@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L104
  mov    %rsp,%r12
  mov    $0x800,%edx
  mov    %r12,%rdi
  call   <Q_strncpyz@plt>
  mov    $0x1,%edi
  call   <Scr_GetFloat@plt>
  xor    %eax,%eax
  addsd  %xmm0,%xmm0
  cvttsd2si %xmm0,%ebx
  call   <Scr_MakeArray@plt>
  movzbl (%rsp),%eax
  test   %al,%al
  je     L104
  movslq %ebx,%rbp
  mov    %ebx,%edx
  xor    %esi,%esi
  xor    %r8d,%r8d
  imul   $0x55555556,%rbp,%rbp
  sar    $0x1f,%edx
  xor    %r15d,%r15d
  mov    %r12,%r13
  mov    %r12,%rdi
  lea    D1(%rip),%r14
  shr    $0x20,%rbp
  sub    %edx,%ebp
L268:
  cmp    $0x6e,%al
  jg     L200
  cmp    $0x1f,%al
  jle    L86
  sub    $0x20,%eax
  cmp    $0x4e,%al
  ja     L86
  movzbl %al,%eax
  movslq (%r14,%rax,4),%rax
  add    %r14,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
L207:
  cmp    $0x7c,%al
  je     L48
  jle    L54
  cmp    $0x7d,%al
  je     L232
  cmp    $0x7e,%al
  jne    L86
  add    $0xb,%esi
  nopl   0x0(%rax)
L265:
  cmp    %ebx,%esi
  jl     L83
L362:
  cmp    $0x1f,%r15d
  jg     L16
  cmp    %r8d,%ebp
  jg     L199
  movb   $0x0,(%r12)
  call   <Scr_AddString@plt>
  xor    %eax,%eax
  call   <Scr_AddArray@plt>
  lea    0x1(%r12),%rdi
L136:
  add    $0x1,%r15d
  mov    %rdi,%r13
  xor    %esi,%esi
  xor    %r8d,%r8d
L159:
  movzbl 0x0(%r13),%eax
  test   %al,%al
  jne    L268
L16:
  cmpb   $0x0,(%rdi)
  jne    L97
L104:
  mov    0x808(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L68
  add    $0x818,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  mov    %esi,%r8d
  mov    %r13,%r12
  cs nopw 0x0(%rax,%rax,1)
  add    $0xa,%esi
  cmp    %ebx,%esi
  jge    L362
  nopl   0x0(%rax,%rax,1)
L83:
  add    $0x1,%r13
  jmp    L159
  cs nopw 0x0(%rax,%rax,1)
L193:
  add    $0x9,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
  add    $0x4,%esi
  jmp    L265
L54:
  cmp    $0x7b,%al
  je     L232
  nopl   0x0(%rax)
L86:
  add    $0xc,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
L59:
  add    $0x6,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
  add    $0x7,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
L48:
  add    $0x5,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
  add    $0xe,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
L232:
  add    $0x8,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
  add    $0xf,%esi
  add    $0xc,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
L200:
  cmp    $0x7a,%al
  jg     L207
  cmp    $0x71,%al
  jle    L86
  lea    -0x72(%rax),%ecx
  mov    $0x1,%edx
  shl    %cl,%rdx
  test   $0x152,%edx
  jne    L193
  and    $0x5,%edx
  jne    L59
  cmp    $0x77,%al
  jne    L86
  add    $0xd,%esi
  jmp    L265
  nopl   0x0(%rax)
  add    $0x2,%esi
  jmp    L265
  nopl   0x0(%rax,%rax,1)
L199:
  movb   $0x0,0x0(%r13)
  call   <Scr_AddString@plt>
  xor    %eax,%eax
  call   <Scr_AddArray@plt>
  lea    0x1(%r13),%rdi
  jmp    L136
  nopw   0x0(%rax,%rax,1)
L97:
  call   <Scr_AddString@plt>
  xor    %eax,%eax
  call   <Scr_AddArray@plt>
  jmp    L104
L68:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D0
type: string

tool: D0: Usage: StrTokByPixLen(<string>, <float>)

assistant: ```c
void GScr_StrTokByPixLen() {
  char buffer[2048];
  char *string = buffer;
  if (Scr_GetNumParam() != 2) {
    Scr_Error("Usage: StrTokByPixLen(<string>, <float>)");
  }
  char *src = Scr_GetString(0);
  if (!src)
    return;
  else
    Q_strncpyz(buffer, src, sizeof(buffer));
  char *countstring = string;
  char *lastWordSpace = string;
  int lineBreakIndex = 0;
  int lWSHalfPixelCounter = 0;
  int halfPixelCounter = 0;
  int maxHalfPixel = 2.0 * Scr_GetFloat(1);
  Scr_MakeArray();
  while (*countstring) {
    switch (*countstring) {
    case '\'':
      halfPixelCounter += 2;
      break;
    case 'i':
    case 'j':
    case 'l':
    case '.':
    case ',':
    case ':':
    case ';':
    case '_':
    case '%':
      halfPixelCounter += 4;
      break;
    case 'f':
    case 'I':
    case '-':
    case '|':
      halfPixelCounter += 5;
      break;
    case 't':
    case 'r':
    case '!':
    case '/':
    case '\\':
    case '"':
      halfPixelCounter += 6;
      break;
    case '(':
    case ')':
    case '[':
    case ']':
      halfPixelCounter += 7;
      break;
    case 'T':
    case '{':
    case '}':
    case '*':
      halfPixelCounter += 8;
      break;
    case 'a':
    case 'c':
    case 'g':
    case 'k':
    case 's':
    case 'v':
    case 'x':
    case 'z':
    case 'F':
    case 'J':
    case 'L':
    case 'Y':
    case 'Z':
      halfPixelCounter += 9;
      break;
    case ' ':
      lWSHalfPixelCounter = halfPixelCounter;
      lastWordSpace = countstring;
    case 'd':
    case 'h':
    case 'n':
    case 'A':
    case 'P':
    case 'S':
    case 'V':
    case 'X':
    case '?':
      halfPixelCounter += 10;
      break;
    case 'B':
    case 'D':
    case 'G':
    case 'K':
    case 'O':
    case 'Q':
    case 'R':
    case 'U':
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
    case '$':
    case '<':
    case '>':
    case '=':
    case '+':
    case '^':
    case '~':
      halfPixelCounter += 11;
      break;
    case 'H':
    case 'N':
    case '#':
      halfPixelCounter += 12;
      break;
    case 'w':
    case '&':
      halfPixelCounter += 13;
      break;
    case 'W':
    case 'M':
    case '@':
      halfPixelCounter += 14;
      break;
    case 'm':
      halfPixelCounter += 15;
    default:
      halfPixelCounter += 12;
    }
    if (halfPixelCounter >= maxHalfPixel) {
      if (lineBreakIndex >= 32) {
        break;
      }
      if (lWSHalfPixelCounter >= maxHalfPixel / 3) {
        *lastWordSpace = 0;
        Scr_AddString(string);
        Scr_AddArray();
        string = &lastWordSpace[1];
        countstring = &lastWordSpace[1];
        lWSHalfPixelCounter = 0;
        halfPixelCounter = 0;
      } else {
        *countstring = 0;
        Scr_AddString(string);
        Scr_AddArray();
        string = &countstring[1];
        countstring = &countstring[1];
        lWSHalfPixelCounter = 0;
        halfPixelCounter = 0;
      }
      lineBreakIndex++;
    } else {
      countstring++;
    }
  }
  if (*string) {
    Scr_AddString(string);
    Scr_AddArray();
  }
}
```