user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  lea    D0(%rip),%rdi
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x3(%rsp),%rbp
  mov    %rbp,%rsi
  mov    %rbp,%rbx
  call   <scanf@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %ebx,%edx
  sub    %ebp,%edx
  cmp    %eax,%edx
  jge    L46
L238:
  movzbl (%rbx),%eax
  cmp    $0x43,%al
  je     L196
  cmp    $0x4c,%al
  je     L116
  cmp    $0x58,%al
  jne    L252
  cmpb   $0x49,-0x1(%rbx)
  je     L94
  add    $0xa,%r12d
  nopw   0x0(%rax,%rax,1)
L27:
  add    $0x1,%rbx
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %ebx,%edx
  sub    %ebp,%edx
  cmp    %eax,%edx
  jl     L238
L46:
  mov    %r12d,%esi
  lea    D13(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L319
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L252:
  cmp    $0x56,%al
  jne    L50
  cmpb   $0x49,-0x1(%rbx)
  je     L295
  add    $0x5,%r12d
  jmp    L27
  cs nopw 0x0(%rax,%rax,1)
L116:
  cmpb   $0x49,-0x1(%rbx)
  je     L110
  add    $0x32,%r12d
  jmp    L27
  nopl   0x0(%rax)
L196:
  cmpb   $0x49,-0x1(%rbx)
  je     L37
  add    $0x64,%r12d
  jmp    L27
L50:
  cmp    $0x49,%al
  jne    L27
  movzbl 0x1(%rbx),%eax
  test   %al,%al
  jne    L101
  cmpb   $0x49,-0x1(%rbx)
  je     L27
  add    $0x1,%r12d
  jmp    L27
L101:
  cmp    $0x49,%al
  jne    L27
  cmpb   $0x49,-0x1(%rbx)
  movzbl 0x2(%rbx),%eax
  je     L53
  test   %al,%al
  jne    L53
  add    $0x2,%r12d
  jmp    L27
L37:
  add    $0x63,%r12d
  jmp    L27
L110:
  cmpb   $0x49,-0x2(%rbx)
  je     L27
  add    $0x31,%r12d
  jmp    L27
L295:
  add    $0x4,%r12d
  jmp    L27
L94:
  cmpb   $0x49,-0x2(%rbx)
  je     L182
  add    $0x9,%r12d
  jmp    L27
L53:
  cmp    $0x49,%al
  jne    L27
  cmpb   $0x0,0x3(%rbx)
  jne    L27
  add    $0x3,%r12d
  jmp    L27
L182:
  add    $0x8,%r12d
  jmp    L27
L319:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
datatype: string
name: disassemble_data
arguments: data_tag: D13
datatype: string

tool: D0: %s

tool: D13: 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;
}
```