user: Please show me the C implementation that matches the assembly code listed below:

```asm
<string_word>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %r12,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  jmp    L42
  nopl   (%rax)
L245:
  movsbl (%rbx),%edi
  add    $0x1,%rbx
  test   %dil,%dil
  je     L156
  add    $0x1,%r14d
L42:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L245
  sub    $0x1,%r13d
  movsbl (%rbx),%edi
  test   %r13d,%r13d
  jle    L146
L210:
  xor    %ebp,%ebp
  nopw   0x0(%rax,%rax,1)
L165:
  mov    %r14d,%ebx
  test   %dil,%dil
  je     L147
  movslq %r14d,%rax
  mov    %r14d,%ebx
  lea    0x1(%r12,%rax,1),%r15
  jmp    L31
  nopl   (%rax)
L341:
  movsbl (%r15),%edi
  add    $0x1,%r15
  add    $0x1,%ebx
  test   %dil,%dil
  je     L147
L31:
  call   <isspace@plt>
  test   %rax,%rax
  je     L341
L147:
  movslq %ebx,%r15
  add    %r12,%r15
  sub    %r15d,%ebx
  jmp    L183
  nopl   (%rax)
L260:
  movsbl (%r15),%edi
  add    $0x1,%r15
  test   %dil,%dil
  je     L116
L183:
  movsbl (%r15),%edi
  lea    (%rbx,%r15,1),%r14d
  call   <isspace@plt>
  test   %rax,%rax
  jne    L260
  movsbl (%r15),%edi
L116:
  add    $0x1,%ebp
  cmp    %ebp,%r13d
  jne    L165
L146:
  test   %dil,%dil
  je     L218
  movslq %r14d,%rbp
  mov    %r14d,%ebx
  lea    0x1(%r12,%rbp,1),%r13
  jmp    L76
  nopl   0x0(%rax)
L33:
  movsbl 0x0(%r13),%edi
  add    $0x1,%r13
  add    $0x1,%ebx
  test   %dil,%dil
  je     L137
L76:
  call   <isspace@plt>
  test   %rax,%rax
  je     L33
  sub    $0x1,%ebx
L137:
  mov    %r12,%rax
  cmp    %r14d,%ebx
  jl     L1
L59:
  mov    %ebx,%ecx
  sub    %r14d,%ecx
  cmp    $0x6,%ecx
  jbe    L51
  cmp    %r14d,%ebx
  jl     L51
  lea    0x1(%rcx),%esi
  mov    $0x1,%eax
  cmovge %esi,%eax
  mov    %eax,%edx
  cmp    $0xe,%ecx
  jbe    L61
  mov    %eax,%ecx
  lea    (%r12,%rbp,1),%rdi
  xor    %eax,%eax
  shr    $0x4,%ecx
  shl    $0x4,%rcx
  xchg   %ax,%ax
L85:
  movdqu (%rdi,%rax,1),%xmm0
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L85
  mov    %edx,%ecx
  and    $0xfffffff0,%ecx
  mov    %ecx,%r8d
  lea    (%rcx,%r14,1),%edi
  cmp    %ecx,%edx
  je     L229
L219:
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    -0x1(%rax),%edx
  cmp    $0x6,%edx
  jbe    L222
  add    %r12,%rbp
  mov    0x0(%rbp,%rcx,1),%rdx
  mov    %rdx,(%r12,%rcx,1)
  mov    %eax,%edx
  and    $0xfffffff8,%edx
  add    %edx,%edi
  add    %edx,%r8d
  cmp    %edx,%eax
  je     L229
L222:
  movslq %edi,%rdx
  lea    0x1(%rdi),%eax
  lea    0x1(%r8),%ecx
  movzbl (%r12,%rdx,1),%r9d
  movslq %r8d,%rdx
  mov    %r9b,(%r12,%rdx,1)
  cmp    %eax,%ebx
  jl     L229
  cltq
  lea    0x2(%rdi),%edx
  lea    0x2(%r8),%r9d
  movzbl (%r12,%rax,1),%r10d
  movslq %ecx,%rax
  mov    %r10b,(%r12,%rax,1)
  cmp    %edx,%ebx
  jl     L229
  movslq %edx,%rdx
  lea    0x3(%rdi),%eax
  lea    0x3(%r8),%ecx
  movslq %r9d,%r9
  movzbl (%r12,%rdx,1),%edx
  mov    %dl,(%r12,%r9,1)
  cmp    %eax,%ebx
  jl     L229
  cltq
  lea    0x4(%rdi),%edx
  lea    0x4(%r8),%r9d
  movslq %ecx,%rcx
  movzbl (%r12,%rax,1),%eax
  mov    %al,(%r12,%rcx,1)
  cmp    %edx,%ebx
  jl     L229
  movslq %edx,%rdx
  lea    0x5(%rdi),%eax
  lea    0x5(%r8),%ecx
  movslq %r9d,%r9
  movzbl (%r12,%rdx,1),%edx
  mov    %dl,(%r12,%r9,1)
  cmp    %eax,%ebx
  jl     L229
  cltq
  add    $0x6,%edi
  add    $0x6,%r8d
  movzbl (%r12,%rax,1),%edx
  movslq %ecx,%rax
  mov    %dl,(%r12,%rax,1)
  cmp    %edi,%ebx
  jl     L229
  movslq %edi,%rdi
  movslq %r8d,%r8
  movzbl (%r12,%rdi,1),%eax
  mov    %al,(%r12,%r8,1)
L229:
  cmp    %r14d,%ebx
  mov    $0x1,%eax
  cmovge %esi,%eax
  cltq
  add    %r12,%rax
L1:
  movb   $0x0,(%rax)
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L156:
  sub    $0x1,%r13d
  test   %r13d,%r13d
  jg     L210
L218:
  mov    %r14d,%ebx
  movslq %r14d,%rbp
  jmp    L59
L51:
  mov    %r12,%rdx
  sub    %rbp,%rdx
L254:
  movzbl (%r12,%rbp,1),%eax
  mov    %al,(%rdx,%rbp,1)
  add    $0x1,%rbp
  cmp    %ebp,%ebx
  jge    L254
  lea    0x1(%rcx),%esi
  jmp    L229
L61:
  mov    %r14d,%edi
  xor    %ecx,%ecx
  xor    %r8d,%r8d
  jmp    L219
```

assistant: ```c
char *string_word(char *s, int wordNumber) {
  int i = 0;
  int j = strlen(s) - 1;
  int k = 0;
  int word;
  while (isspace(s[i]) && s[i] != '\0')
    i++;
  for (word = 0; word < (wordNumber - 1); word++) {
    while (s[i] != '\0') {
      if (isspace(s[i]))
        break;
      i++;
    }
    while (isspace(s[i]) && s[i] != '\0')
      i++;
  }
  j = i;
  while (s[j] != '\0') {
    if (isspace(s[j])) {
      j--;
      break;
    }
    j++;
  }
  while (i <= j)
    s[k++] = s[i++];
  s[k] = '\0';
  return s;
}
```