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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x3(%rsp),%r12
  mov    %r12,%rsi
  lea    D15(%rip),%rdi
  call   <scanf@plt>
  mov    %r12,%rbx
  mov    $0x0,%ebp
  mov    %r12,%r13
  jmp    L2
L132:
  cmpb   $0x49,-0x1(%rbx)
  je     L3
  add    $0x64,%ebp
L238:
  cmp    $0x56,%al
  jne    L140
  cmpb   $0x49,-0x1(%rdx)
  je     L66
  add    $0x5,%ebp
  jmp    L185
L3:
  add    $0x63,%ebp
  jmp    L238
L277:
  cmpb   $0x49,-0x2(%rbx)
  je     L140
  add    $0x31,%ebp
  jmp    L140
L156:
  cmp    $0x58,%al
  jne    L238
  cmpb   $0x49,-0x1(%rbx)
  je     L112
  add    $0xa,%ebp
L185:
  add    $0x1,%rbx
L2:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  sub    %r12d,%eax
  cmp    %eax,%edx
  jle    L124
  mov    %rbx,%rdx
  movzbl (%rbx),%eax
  cmp    $0x43,%al
  je     L132
  cmp    $0x4c,%al
  jne    L156
  cmpb   $0x49,-0x1(%rbx)
  je     L277
  add    $0x32,%ebp
L140:
  cmp    $0x49,%al
  jne    L185
  movzbl 0x1(%rdx),%eax
  test   %al,%al
  jne    L186
  cmpb   $0x49,-0x1(%rdx)
  je     L185
  add    $0x1,%ebp
  jmp    L185
L112:
  cmpb   $0x49,-0x2(%rbx)
  je     L75
  add    $0x9,%ebp
  jmp    L185
L75:
  add    $0x8,%ebp
  jmp    L185
L66:
  add    $0x4,%ebp
  jmp    L185
L186:
  cmp    $0x49,%al
  jne    L185
  cmpb   $0x49,-0x1(%rdx)
  je     L26
  cmpb   $0x0,0x2(%rdx)
  jne    L26
  add    $0x2,%ebp
  jmp    L185
L124:
  mov    %ebp,%esi
  lea    D14(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L152
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L26:
  cmpb   $0x49,0x2(%rdx)
  jne    L185
  cmpb   $0x0,0x3(%rdx)
  jne    L185
  add    $0x3,%ebp
  jmp    L185
L152:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D15
type: string
name: extract_symbolic_data
arguments: data_label: D14
type: string

tool: D15: %s

tool: D14: Desetichno = %d


assistant: ```c
int main() {
  char rome[5];
  int j, fin = 0;
  int C = 100, L = 50, X = 10, V = 5, I = 1, Null = 0;
  scanf("%s", rome);
  for (j = 0; j < strlen(rome); j++) {
    if (rome[j] == 'C') {
      if (rome[j - 1] != 'I')
        fin = fin + C;
      else if (rome[j - 1] == 'I')
        fin = fin + (C - I);
    }
    if (rome[j] == 'L') {
      if (rome[j - 1] != 'I')
        fin = fin + L;
      else if (rome[j - 1] == 'I') {
        if (rome[j - 2] != 'I')
          fin = fin + (L - I);
      }
    }
    if (rome[j] == 'X') {
      if (rome[j - 1] != 'I')
        fin = fin + X;
      else if (rome[j - 1] == 'I') {
        if (rome[j - 2] != 'I')
          fin = fin + (X - I);
        else if (rome[j - 2] == 'I')
          fin = fin + (X - (I + I));
      }
    }
    if (rome[j] == 'V') {
      if (rome[j - 1] != 'I')
        fin = fin + V;
      else if (rome[j - 1] == 'I')
        fin = fin + (V - I);
    }
    if (rome[j] == 'I') {
      if (rome[j + 1] == Null) {
        if (rome[j - 1] != 'I')
          fin = fin + I;
      }
      if (rome[j + 1] == 'I') {
        if (rome[j - 1] != 'I')
          if (rome[j + 2] == Null)
            fin = fin + 2 * I;
      }
      if (rome[j + 1] == 'I') {
        if (rome[j + 2] == 'I')
          if (rome[j + 3] == Null)
            fin = fin + 3 * I;
      }
    }
  }
  printf("Desetichno = %d\n", fin);
  return 0;
}
```