user: 请从给定的汇编指令推导出C源代码：

```asm
<tokenize>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    $0x1f,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L218
L40:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L18
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L80
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L18
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  je     L80
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x21,%al
  je     L80
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L80
L18:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <readDouble@plt>
  mov    %eax,-0xc(%rbp)
  mov    $0x1f,%edi
  call   <malloc@plt>
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  addl   $0x1,-0x14(%rbp)
  mov    -0xc(%rbp),%eax
  mov    $0x1,%edx
  test   %eax,%eax
  cmovle %edx,%eax
  sub    $0x1,%eax
  add    %eax,-0x10(%rbp)
  jmp    L57
L80:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    $0x2,%edx
  lea    D38(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L142
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D38(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x10(%rbp)
  jmp    L57
L142:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%edx
  lea    D99(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L57
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D99(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  addl   $0x3,-0x10(%rbp)
L57:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x2f,%eax
  jg     L127
  cmp    $0x21,%eax
  jl     L48
  sub    $0x21,%eax
  cmp    $0xe,%eax
  ja     L48
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D18(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D18(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
L127:
  cmp    $0x65,%eax
  jne    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D17(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D48(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D104(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D121(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D52(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D85(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D108(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  jmp    L48
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  lea    D56(%rip),%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x14(%rbp)
  nop
L48:
  addl   $0x1,-0x10(%rbp)
L218:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x10(%rbp)
  jl     L40
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x14(%rbp),%eax
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D38
datatype: string
name: read_data
arguments: data_label: D99
datatype: string
name: read_data
arguments: data_label: D17
datatype: string
name: read_data
arguments: data_label: D48
datatype: string
name: read_data
arguments: data_label: D104
datatype: string
name: read_data
arguments: data_label: D121
datatype: string
name: read_data
arguments: data_label: D52
datatype: string
name: read_data
arguments: data_label: D85
datatype: string
name: read_data
arguments: data_label: D108
datatype: string
name: read_data
arguments: data_label: D56
datatype: string

tool: D38: pi

tool: D99: sqrt

tool: D17: e

tool: D48: +

tool: D104: -

tool: D121: *

tool: D52: /

tool: D85: (

tool: D108: )

tool: D56: !

assistant: ```c
int tokenize(char *string, char **tokens) {
  char *currentToken = (char *)malloc(30 + 1);
  currentToken = memset(currentToken, '\0', strlen(string));
  int j = 0;
  for (int i = 0; i < strlen(string); i++) {
    if (isdigit(string[i]) || (string[i] == '-' && (string[i - 1] == ' ' || (string[i - 1] != ')' && string[i - 1] != '!' && !isdigit(string[i - 1]))))) {
      int howMany = readDouble(currentToken, string + i);
      tokens[j] = (char *)malloc(30 + 1);
      strcpy(tokens[j], currentToken);
      j++;
      i += (howMany > 1) ? howMany - 1 : 0;
    } else if (strncmp(string + i, "pi", 2) == 0) {
      tokens[j] = "pi";
      j++;
      i++;
    } else if (strncmp(string + i, "sqrt", 4) == 0) {
      tokens[j] = "sqrt";
      j++;
      i += 3;
    }
    switch (string[i]) {
    case 'e':
      tokens[j] = "e";
      j++;
      break;
    case '+':
      tokens[j] = "+";
      j++;
      break;
    case '-':
      tokens[j] = "-";
      j++;
      break;
    case '*':
      tokens[j] = "*";
      j++;
      break;
    case '/':
      tokens[j] = "/";
      j++;
      break;
    case '(':
      tokens[j] = "(";
      j++;
      break;
    case ')':
      tokens[j] = ")";
      j++;
      break;
    case '!':
      tokens[j] = "!";
      j++;
      break;
    }
  }
  free(currentToken);
  return j;
}
```