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

```asm
<abbreviate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L109
L140:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D35(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L105
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D106(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L105:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D88(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L93
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L93:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D80(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L30
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D58(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L30:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D10(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L9
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D78(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L9:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D81(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L124
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D5(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L124:
  lea    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  lea    D115(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <is_substitutable_sequence@plt>
  test   %rax,%rax
  je     L3
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D99(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_abbreviation@plt>
  jmp    L122
L3:
  mov    -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x1c(%rbp),%edx
  mov    %edx,%ecx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
L122:
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
L109:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  ja     L140
  mov    -0x10(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L26
  call   <__stack_chk_fail@plt>
L26:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D35
type_guessed: string
name: read_data
arguments: data_label: D106
type_guessed: string
name: read_data
arguments: data_label: D88
type_guessed: string
name: read_data
arguments: data_label: D2
type_guessed: string
name: read_data
arguments: data_label: D80
type_guessed: string
name: read_data
arguments: data_label: D58
type_guessed: string
name: read_data
arguments: data_label: D10
type_guessed: string
name: read_data
arguments: data_label: D78
type_guessed: string
name: read_data
arguments: data_label: D81
type_guessed: string
name: read_data
arguments: data_label: D5
type_guessed: string
name: read_data
arguments: data_label: D115
type_guessed: string
name: read_data
arguments: data_label: D99
type_guessed: string

tool: D35: DCCCC

tool: D106: CM

tool: D88: CCCC

tool: D2: CD

tool: D80: LXXXX

tool: D58: XC

tool: D10: XXXX

tool: D78: XL

tool: D81: VIIII

tool: D5: IX

tool: D115: IIII

tool: D99: IV

assistant: ```c
char *abbreviate(char original[]) {
  unsigned int original_length = strlen(original);
  char *abbreviated = calloc(original_length + 1, sizeof(char));
  unsigned int j = 0;
  unsigned int i;
  for (i = 0; i < original_length; i++) {
    if (is_substitutable_sequence(original, &i, "DCCCC")) {
      insert_abbreviation(abbreviated, "CM", &j);
    } else if (is_substitutable_sequence(original, &i, "CCCC")) {
      insert_abbreviation(abbreviated, "CD", &j);
    } else if (is_substitutable_sequence(original, &i, "LXXXX")) {
      insert_abbreviation(abbreviated, "XC", &j);
    } else if (is_substitutable_sequence(original, &i, "XXXX")) {
      insert_abbreviation(abbreviated, "XL", &j);
    } else if (is_substitutable_sequence(original, &i, "VIIII")) {
      insert_abbreviation(abbreviated, "IX", &j);
    } else if (is_substitutable_sequence(original, &i, "IIII")) {
      insert_abbreviation(abbreviated, "IV", &j);
    } else {
      abbreviated[j] = original[i];
      j += 1;
    }
  }
  return abbreviated;
}
```