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

```asm
<safeId>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L57
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sqlite3_mprintf@plt>
  jmp    L73
L57:
  movl   $0x0,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L37
L39:
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L115
  cmpl   $0x5f,-0x8(%rbp)
  je     L115
  cmpl   $0x0,-0x10(%rbp)
  jle    L78
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L78
  addl   $0x1,-0xc(%rbp)
  jmp    L115
L78:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sqlite3_mprintf@plt>
  jmp    L73
L115:
  addl   $0x1,-0x10(%rbp)
L37:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jne    L39
  cmpl   $0x0,-0xc(%rbp)
  je     L35
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sqlite3_mprintf@plt>
  jmp    L73
L35:
  movl   $0x0,-0x18(%rbp)
  movl   $0x7b,-0x14(%rbp)
  jmp    L45
L147:
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  lea    D45(%rip),%rax
  mov    (%rdx,%rax,1),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sqlite3_stricmp@plt>
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jne    L138
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sqlite3_mprintf@plt>
  jmp    L73
L138:
  cmpl   $0x0,-0x8(%rbp)
  jns    L119
  mov    -0x4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L45
L119:
  mov    -0x4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
L45:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L147
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sqlite3_mprintf@plt>
L73:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D39
type: string
name: extract_symbolic_data
arguments: label: D51
type: string
name: extract_symbolic_data
arguments: label: D25
type: string

tool: D39: ""

tool: D51: "%w"

tool: D25: %s

assistant: ```c
char *safeId(const char *zId) {
  static const char *azKeywords[] = {
      "ABORT", "ACTION", "ADD", "AFTER", "ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ATTACH", "AUTOINCREMENT", "BEFORE", "BEGIN", "BETWEEN", "BY", "CASCADE", "CASE", "CAST", "CHECK", "COLLATE", "COLUMN", "COMMIT", "CONFLICT", "CONSTRAINT", "CREATE", "CROSS", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DATABASE", "DEFAULT", "DEFERRABLE", "DEFERRED", "DELETE", "DESC", "DETACH", "DISTINCT", "DROP", "EACH", "ELSE", "END", "ESCAPE", "EXCEPT", "EXCLUSIVE", "EXISTS", "EXPLAIN", "FAIL", "FOR", "FOREIGN", "FROM", "FULL", "GLOB", "GROUP", "HAVING", "IF", "IGNORE", "IMMEDIATE", "IN", "INDEX", "INDEXED", "INITIALLY", "INNER", "INSERT", "INSTEAD", "INTERSECT", "INTO", "IS", "ISNULL", "JOIN", "KEY", "LEFT", "LIKE", "LIMIT", "MATCH", "NATURAL", "NO", "NOT", "NOTNULL", "NULL", "OF", "OFFSET", "ON", "OR", "ORDER", "OUTER", "PLAN", "PRAGMA", "PRIMARY", "QUERY", "RAISE", "RECURSIVE", "REFERENCES", "REGEXP", "REINDEX", "RELEASE", "RENAME", "REPLACE", "RESTRICT", "RIGHT", "ROLLBACK", "ROW", "SAVEPOINT", "SELECT", "SET", "TABLE", "TEMP", "TEMPORARY", "THEN", "TO", "TRANSACTION", "TRIGGER", "UNION", "UNIQUE", "UPDATE", "USING", "VACUUM", "VALUES", "VIEW", "VIRTUAL", "WHEN", "WHERE", "WITH", "WITHOUT",
  };
  int lwr, upr, mid, c, i, x;
  if (zId[0] == 0)
    return sqlite3_mprintf("\"\"");
  for (i = x = 0; (c = zId[i]) != 0; i++) {
    if (!isalpha(c) && c != '_') {
      if (i > 0 && isdigit(c)) {
        x++;
      } else {
        return sqlite3_mprintf("\"%w\"", zId);
      }
    }
  }
  if (x)
    return sqlite3_mprintf("%s", zId);
  lwr = 0;
  upr = sizeof(azKeywords) / sizeof(azKeywords[0]) - 1;
  while (lwr <= upr) {
    mid = (lwr + upr) / 2;
    c = sqlite3_stricmp(azKeywords[mid], zId);
    if (c == 0)
      return sqlite3_mprintf("\"%w\"", zId);
    if (c < 0) {
      lwr = mid + 1;
    } else {
      upr = mid - 1;
    }
  }
  return sqlite3_mprintf("%s", zId);
}
```