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

```asm
<subString>:
  endbr64
  push   %r13
  mov    %esi,%r13d
  mov    $0x1,%esi
  push   %r12
  mov    %rdi,%r12
  lea    0x1(%rdx),%edi
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x8,%rsp
  call   <calloc@plt>
  movslq %ebx,%rdx
  movb   $0x0,(%rax,%rdx,1)
  mov    %rax,%r8
  test   %ebx,%ebx
  jle    L182
  movslq %r13d,%rdi
  mov    %ebx,%r9d
  lea    -0x1(%rbx),%ecx
  lea    0x1(%r12,%rdi,1),%rsi
  sub    %rsi,%rax
  cmp    $0xe,%rax
  jbe    L141
  cmp    $0x6,%ecx
  jbe    L141
  cmp    $0xe,%ecx
  jbe    L204
  mov    %ebx,%esi
  mov    %rdi,%r9
  mov    %r8,%rax
  shr    $0x4,%esi
  sub    %r8,%r9
  shl    $0x4,%rsi
  add    %r12,%r9
  add    %r8,%rsi
  nopl   0x0(%rax)
L40:
  movdqu (%rax,%r9,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rsi,%rax
  jne    L40
  mov    %ebx,%esi
  and    $0xfffffff0,%esi
  mov    %esi,%eax
  cmp    %esi,%ebx
  je     L146
  mov    %ebx,%r9d
  sub    %esi,%r9d
  lea    -0x1(%r9),%r10d
  cmp    $0x6,%r10d
  jbe    L29
L75:
  add    %r12,%rdi
  mov    (%rdi,%rsi,1),%rdi
  mov    %rdi,(%r8,%rsi,1)
  mov    %r9d,%esi
  and    $0xfffffff8,%esi
  add    %esi,%eax
  cmp    %r9d,%esi
  je     L146
L29:
  lea    0x0(%r13,%rax,1),%esi
  movslq %esi,%rsi
  movzbl (%r12,%rsi,1),%edi
  movslq %eax,%rsi
  mov    %dil,(%r8,%rsi,1)
  lea    0x1(%rax),%esi
  cmp    %esi,%ebx
  jle    L146
  lea    0x0(%r13,%rsi,1),%edi
  movslq %esi,%rsi
  movslq %edi,%rdi
  movzbl (%r12,%rdi,1),%edi
  mov    %dil,(%r8,%rsi,1)
  lea    0x2(%rax),%esi
  cmp    %esi,%ebx
  jle    L146
  lea    0x0(%r13,%rsi,1),%edi
  movslq %esi,%rsi
  movslq %edi,%rdi
  movzbl (%r12,%rdi,1),%edi
  mov    %dil,(%r8,%rsi,1)
  lea    0x3(%rax),%esi
  cmp    %esi,%ebx
  jle    L146
  lea    0x0(%r13,%rsi,1),%edi
  movslq %esi,%rsi
  movslq %edi,%rdi
  movzbl (%r12,%rdi,1),%edi
  mov    %dil,(%r8,%rsi,1)
  lea    0x4(%rax),%esi
  cmp    %esi,%ebx
  jle    L146
  lea    0x0(%r13,%rsi,1),%edi
  movslq %esi,%rsi
  movslq %edi,%rdi
  movzbl (%r12,%rdi,1),%edi
  mov    %dil,(%r8,%rsi,1)
  lea    0x5(%rax),%esi
  cmp    %esi,%ebx
  jle    L146
  lea    0x0(%r13,%rsi,1),%edi
  add    $0x6,%eax
  movslq %esi,%rsi
  movslq %edi,%rdi
  movzbl (%r12,%rdi,1),%edi
  mov    %dil,(%r8,%rsi,1)
  cmp    %eax,%ebx
  jle    L146
  add    %eax,%r13d
  cltq
  movslq %r13d,%r13
  movzbl (%r12,%r13,1),%esi
  mov    %sil,(%r8,%rax,1)
L146:
  cmp    $0x1,%ebp
  je     L84
L182:
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L84:
  movslq %ecx,%rax
  sub    $0x2,%rdx
  mov    %ecx,%ecx
  sub    %rcx,%rdx
  add    %r8,%rax
  add    %r8,%rdx
  jmp    L24
  nopl   0x0(%rax)
L53:
  movb   $0x0,(%rax)
  sub    $0x1,%rax
  cmp    %rdx,%rax
  je     L182
L24:
  cmpb   $0x20,(%rax)
  je     L53
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L141:
  mov    %ebx,%ebx
  sub    %r8,%rdi
  mov    %r8,%rax
  add    %r8,%rbx
  add    %rdi,%r12
  xchg   %ax,%ax
L14:
  movzbl (%r12,%rax,1),%esi
  add    $0x1,%rax
  mov    %sil,-0x1(%rax)
  cmp    %rbx,%rax
  jne    L14
  jmp    L146
L204:
  xor    %esi,%esi
  xor    %eax,%eax
  jmp    L75
```

assistant: ```c
char *subString(char *text, int first, int length, int spcKill) {
  char *ret = (char *)calloc(length + 1, sizeof(char));
  int i;
  ret[length] = 0;
  for (i = 0; i < length; i++) {
    ret[i] = text[i + first];
  }
  if (spcKill == 1) {
    for (i = length - 1; i >= 0; i--) {
      if (ret[i] == 32)
        ret[i] = 0;
      else
        i = -1;
    }
  }
  return ret;
}
```