user: Translate the below assembly code into C programming language:

```asm
<sfpr_str_split>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0x138(%rbp)
  mov    %rsi,-0x140(%rbp)
  mov    %edx,-0x144(%rbp)
  mov    %rcx,-0x150(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x150(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  movl   $0x0,-0x120(%rbp)
  movl   $0x0,-0x11c(%rbp)
  cmpq   $0x0,-0x138(%rbp)
  je     L96
  cmpq   $0x0,-0x140(%rbp)
  je     L96
  cmpl   $0x0,-0x144(%rbp)
  jg     L67
L96:
  mov    $0x0,%eax
  jmp    L104
L67:
  lea    -0x110(%rbp),%rax
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  cmpq   $0x0,-0x118(%rbp)
  jne    L110
  lea    D7(%rip),%rax
  mov    %rax,-0x118(%rbp)
  jmp    L110
L149:
  mov    -0x118(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x118(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  cltq
  movb   $0x1,-0x110(%rbp,%rax,1)
L110:
  mov    -0x118(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L149
  movb   $0x2,-0x110(%rbp)
  movb   $0x2,-0x106(%rbp)
  mov    -0x138(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  jmp    L156
L4:
  cmpb   $0x1,-0x121(%rbp)
  jne    L137
  addq   $0x1,-0x118(%rbp)
L156:
  mov    -0x118(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  mov    %al,-0x121(%rbp)
  cmpb   $0x2,-0x121(%rbp)
  jne    L4
  jmp    L176
L137:
  nop
L176:
  mov    -0x120(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x120(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rax,%rdx
  mov    -0x118(%rbp),%rax
  mov    %rax,(%rdx)
  jmp    L126
L16:
  cmpb   $0x1,-0x121(%rbp)
  jne    L157
  mov    -0x118(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x118(%rbp)
  movb   $0x0,(%rax)
  jmp    L9
L112:
  cmpb   $0x1,-0x121(%rbp)
  jne    L210
  addq   $0x1,-0x118(%rbp)
L9:
  mov    -0x118(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  mov    %al,-0x121(%rbp)
  cmpb   $0x2,-0x121(%rbp)
  jne    L112
  jmp    L207
L210:
  nop
L207:
  cmpb   $0x2,-0x121(%rbp)
  je     L78
  mov    -0x120(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x120(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rax,%rdx
  mov    -0x118(%rbp),%rax
  mov    %rax,(%rdx)
L78:
  mov    -0x120(%rbp),%eax
  cmp    -0x144(%rbp),%eax
  je     L30
L157:
  addq   $0x1,-0x118(%rbp)
L126:
  mov    -0x118(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  mov    %al,-0x121(%rbp)
  cmpb   $0x2,-0x121(%rbp)
  jne    L16
  jmp    L131
L30:
  nop
L131:
  mov    -0x120(%rbp),%eax
L104:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L158
  call   <__stack_chk_fail@plt>
L158:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D7
type: string

tool: D7:  	

assistant: ```c
int sfpr_str_split(char *pdata, char *array[], int num, char *sep) {
  char sepv[256];
  unsigned char c, *poffset = (unsigned char *)sep;
  int count = 0, sep_count = 0;
  if (!pdata || !array || num < 1) {
    return 0;
  }
  memset(sepv, 0, sizeof(sepv));
  if (!poffset) {
    poffset = (unsigned char *)" \t";
  }
  while (*poffset) {
    sepv[*poffset++] = 1;
  }
  sepv[0] = 2;
  sepv['\n'] = 2;
  poffset = (unsigned char *)pdata;
  while ((c = sepv[*poffset]) != 2) {
    if (c != 1)
      break;
    poffset++;
  }
  array[count++] = poffset;
  while ((c = sepv[*poffset]) != 2) {
    if (c == 1) {
      *poffset++ = 0;
      while ((c = sepv[*poffset]) != 2) {
        if (c != 1)
          break;
        poffset++;
      }
      if (c != 2)
        array[count++] = poffset;
      if (count == num) {
        break;
      }
    }
    poffset++;
  }
  return count;
}
```