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

```asm
<safeId>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movsbl (%rdi),%ebp
  test   %bpl,%bpl
  jne    L79
  pop    %rbx
  lea    D18(%rip),%rdi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    20b0 <sqlite3_mprintf@plt>
  nopw   0x0(%rax,%rax,1)
L79:
  mov    %rdi,%r12
  xor    %ebx,%ebx
  xor    %r13d,%r13d
  test   %ebp,%ebp
  je     L8
L136:
  mov    %ebp,%edi
  call   <isalpha@plt>
  cmp    $0x5f,%ebp
  je     L81
  test   %eax,%eax
  jne    L81
  test   %rbx,%rbx
  jne    L53
L36:
  mov    %r12,%rsi
  lea    D16(%rip),%rdi
L49:
  xor    %eax,%eax
L43:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    20b0 <sqlite3_mprintf@plt>
L53:
  mov    %ebp,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L36
  add    $0x1,%r13d
  nopw   0x0(%rax,%rax,1)
L81:
  movsbl 0x1(%r12,%rbx,1),%ebp
  add    $0x1,%rbx
  test   %ebp,%ebp
  jne    L136
  test   %r13d,%r13d
  jne    L25
L8:
  lea    D10(%rip),%rdi
  mov    $0x7b,%r13d
  xor    %r14d,%r14d
  mov    $0x7b,%eax
  lea    D35(%rip),%rbp
  jmp    L12
  nopl   0x0(%rax)
L37:
  lea    -0x1(%rbx),%r13d
L93:
  cmp    %r13d,%r14d
  jg     L25
  lea    (%r14,%r13,1),%eax
  mov    %eax,%edx
  sar    %edx
  movslq %edx,%rdx
  mov    0x0(%rbp,%rdx,8),%rdi
L12:
  sar    %eax
  mov    %r12,%rsi
  mov    %eax,%ebx
  call   <sqlite3_stricmp@plt>
  test   %eax,%eax
  je     L140
  jns    L37
  lea    0x1(%rbx),%r14d
  jmp    L93
  nopl   0x0(%rax)
L25:
  mov    %r12,%rsi
  lea    D40(%rip),%rdi
  jmp    L49
  nop
L140:
  mov    %r12,%rsi
  lea    D16(%rip),%rdi
  jmp    L43
```

tool_calls: name: parse_data
arguments: data_label: D18
datatype: string
name: parse_data
arguments: data_label: D16
datatype: string
name: parse_data
arguments: data_label: D10
datatype: string
name: parse_data
arguments: data_label: D40
datatype: string

tool: D18: ""

tool: D16: "%w"

tool: D10: INITIALLY

tool: D40: %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);
}
```