user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<getTextByHits>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    $0x100,%edi
  push   %rbx
  mov    %esi,%ebx
  sub    $0x28,%rsp
  call   <malloc@plt>
  mov    %rax,0x18(%rsp)
  test   %rbp,%rbp
  je     L116
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rax,0x10(%rsp)
  xor    %eax,%eax
  call   <getZVMLogLevel@plt>
  test   %eax,%eax
  jg     L120
L15:
  cmp    $0xffff27,%ebx
  ja     L116
  mov    0x18(%rsp),%r15
  cmp    $0x7ffda0,%ebx
  ja     L113
  mov    0x10(%rsp),%r13
  lea    -0x2(%rbx),%eax
  cmp    $0x1,%ebx
  cmova  %rax,%rbx
  sub    $0x1,%r13
  je     L116
  movq   $0x0,0x8(%rsp)
  xor    %r12d,%r12d
  xor    %r14d,%r14d
  movq   $0x0,(%rsp)
  jmp    L121
  nopw   0x0(%rax,%rax,1)
L70:
  add    $0x1,%r14
  cmp    %r14,%r13
  je     L116
L121:
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <isNewWord@plt>
  cmp    $0x1,%eax
  jne    L27
  mov    (%rsp),%rax
  mov    %r14,(%rsp)
  add    $0x1,%r12
  mov    %rax,0x8(%rsp)
L27:
  cmp    %r12,%rbx
  jne    L70
  mov    0x8(%rsp),%rax
  mov    $0x100,%ebx
  add    $0x100,%rax
  cmp    0x10(%rsp),%rax
  jb     L83
  mov    0x10(%rsp),%rax
  mov    %rax,%rbx
  sub    0x8(%rsp),%rbx
  cmp    $0xff,%rbx
  ja     L83
  cmp    $0x100,%rax
  jbe    L83
  sub    $0x100,%rax
  mov    $0x100,%ebx
  mov    %rax,0x8(%rsp)
L83:
  mov    0x18(%rsp),%r14
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdx
  add    %rbp,%rsi
  mov    %r14,%rdi
  call   <strncpy@plt>
  movb   $0x0,(%r14,%rbx,1)
  jmp    L138
  nopw   0x0(%rax,%rax,1)
L116:
  xor    %r15d,%r15d
L138:
  add    $0x28,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L120:
  mov    %ebx,%r8d
  lea    D29(%rip),%rcx
  mov    $0x1,%edx
  lea    D2(%rip),%rsi
  lea    D26(%rip),%rdi
  call   <printf@plt>
  jmp    L15
  nop
L113:
  mov    0x10(%rsp),%rax
  cmp    $0xff,%rax
  jbe    L129
  lea    -0x100(%rbp,%rax,1),%rsi
  mov    $0x100,%edx
  mov    %r15,%rdi
  call   <strncpy@plt>
  jmp    L138
  nopl   0x0(%rax)
L129:
  mov    %rax,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  add    $0x1,%rdx
  call   <strncpy@plt>
  jmp    L138
```

tool_calls: name: parse_data
arguments: data_label: D29
type_guessed: string
name: parse_data
arguments: data_label: D2
type_guessed: string
name: parse_data
arguments: data_label: D26
type_guessed: string

tool: D29: start pos

tool: D2: ***ZVMLog

tool: D26: %s [LogLevel=%d] [%s], 	%u 


assistant: ```c
char *getTextByHits(char *text, unsigned int uiStart, unsigned int uiEnd) {
  char *s = (char *)malloc(sizeof(char) * 256);
  size_t i;
  size_t tTextLength = 0;
  size_t tCurrentWordPos = 0;
  size_t tPosCount = 0;
  size_t tLastWordCharPos = 0, tStartCharPos = 0;
  unsigned int NotFoundPos = 16777000;
  unsigned int LastPosInFile = 8388000;
  size_t tSnippetSize = 0;
  int bFind = 0;
  if (text != NULL)
    tTextLength = strlen(text);
  else
    return NULL;
  if (getZVMLogLevel() >= 1) {
    printf("%s [LogLevel=%d] [%s], \t%"
           "u"
           " \n",
           "***ZVMLog", 1, "start pos", uiStart);
  };
  if (uiStart >= NotFoundPos) {
    return NULL;
  }
  if (uiStart > LastPosInFile) {
    if (tTextLength >= 256) {
      strncpy(s, text + (tTextLength - 256), 256);
    } else {
      strncpy(s, text, tTextLength + 1);
    }
    return s;
  }
  if (uiStart > 1)
    uiStart -= 2;
  for (i = 0; i < tTextLength - 1; i++) {
    if (isNewWord(text, i) == 1) {
      tLastWordCharPos = tCurrentWordPos;
      tCurrentWordPos = i;
      tPosCount++;
    }
    if (tPosCount == uiStart) {
      tStartCharPos = tLastWordCharPos;
      bFind = 1;
      break;
    }
  }
  if (bFind == 0)
    return NULL;
  if ((tStartCharPos + 256) < tTextLength)
    tSnippetSize = 256;
  else {
    tSnippetSize = tTextLength - tStartCharPos;
    if (tSnippetSize < 256 && tTextLength > 256) {
      tStartCharPos = tStartCharPos - (256 - tSnippetSize);
      tSnippetSize = 256;
    }
  }
  strncpy(s, text + tStartCharPos, tSnippetSize);
  s[tSnippetSize] = '\0';
  return s;
}
```