user: 请将以下的汇编代码转换成C语言代码:

```asm
<intToRoman>:
  endbr64
  push   %r14
  lea    D176(%rip),%rcx
  lea    D144(%rip),%rsi
  push   %r13
  lea    D247(%rip),%rdx
  push   %r12
  push   %rbp
  movslq %edi,%rbp
  lea    D243(%rip),%rdi
  push   %rbx
  imul   $0x10624dd3,%rbp,%r14
  mov    %ebp,%r12d
  mov    %rbp,%rbx
  sar    $0x1f,%r12d
  sub    $0x120,%rsp
  sar    $0x26,%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  lea    D235(%rip),%rax
  mov    %rcx,0x8(%rsp)
  sub    %r12d,%r14d
  lea    D195(%rip),%rcx
  mov    %rcx,0x10(%rsp)
  lea    D53(%rip),%rcx
  mov    %rcx,0x18(%rsp)
  lea    D234(%rip),%rcx
  mov    %rcx,0x28(%rsp)
  lea    D264(%rip),%rcx
  mov    %rcx,0x30(%rsp)
  lea    D197(%rip),%rcx
  mov    %rdi,0x38(%rsp)
  lea    D192(%rip),%rdi
  mov    %rcx,0x40(%rsp)
  lea    D303(%rip),%rcx
  mov    %rdi,0x48(%rsp)
  lea    D222(%rip),%rdi
  mov    %rcx,0x50(%rsp)
  lea    D30(%rip),%rcx
  mov    %rsi,0x58(%rsp)
  lea    D47(%rip),%rsi
  mov    %rdi,0x60(%rsp)
  lea    D59(%rip),%rdi
  mov    %rcx,0x68(%rsp)
  lea    D74(%rip),%rcx
  mov    %rsi,0x78(%rsp)
  lea    D215(%rip),%rsi
  mov    %rdi,0x80(%rsp)
  lea    D188(%rip),%rdi
  mov    %rdx,0x88(%rsp)
  lea    D153(%rip),%rdx
  mov    %rcx,0x90(%rsp)
  lea    D25(%rip),%rcx
  mov    %rsi,0x98(%rsp)
  lea    D191(%rip),%rsi
  mov    %rcx,0xb0(%rsp)
  mov    %rdx,0xa8(%rsp)
  mov    %rsi,0xb8(%rsp)
  mov    %rax,(%rsp)
  mov    %rax,0x20(%rsp)
  mov    %rax,0x70(%rsp)
  mov    %rdi,0xa0(%rsp)
  mov    $0x14,%edi
  mov    %rax,0xc0(%rsp)
  lea    D295(%rip),%rax
  mov    %rax,0xc8(%rsp)
  lea    D148(%rip),%rax
  mov    %rax,0xd0(%rsp)
  lea    D41(%rip),%rax
  mov    %rax,0xd8(%rsp)
  lea    D165(%rip),%rax
  mov    %rax,0xe0(%rsp)
  lea    D146(%rip),%rax
  mov    %rax,0xe8(%rsp)
  lea    D212(%rip),%rax
  mov    %rax,0xf0(%rsp)
  lea    D140(%rip),%rax
  mov    %rax,0xf8(%rsp)
  lea    D112(%rip),%rax
  mov    %rax,0x100(%rsp)
  lea    D251(%rip),%rax
  mov    %rax,0x108(%rsp)
  call   <malloc@plt>
  mov    %rax,%r13
  movb   $0x0,(%rax)
  movslq %r14d,%rax
  mov    (%rsp,%rax,8),%rsi
  imul   $0x3e8,%r14d,%r14d
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %ebp,%edx
  mov    %r13,%rdi
  sub    %r14d,%edx
  movslq %edx,%rax
  sar    $0x1f,%edx
  imul   $0x51eb851f,%rax,%rax
  sar    $0x25,%rax
  sub    %edx,%eax
  cltq
  mov    0x20(%rsp,%rax,8),%rsi
  call   <strcat@plt>
  imul   $0x51eb851f,%rbp,%rax
  mov    %ebp,%edx
  mov    %r13,%rdi
  imul   $0x66666667,%rbp,%rbp
  sar    $0x25,%rax
  sub    %r12d,%eax
  sar    $0x22,%rbp
  imul   $0x64,%eax,%eax
  sub    %r12d,%ebp
  sub    %eax,%edx
  movslq %edx,%rax
  sar    $0x1f,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sub    %edx,%eax
  cltq
  mov    0x70(%rsp,%rax,8),%rsi
  call   <strcat@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  mov    %r13,%rdi
  add    %eax,%eax
  sub    %eax,%ebx
  movslq %ebx,%rbx
  mov    0xc0(%rsp,%rbx,8),%rsi
  call   <strcat@plt>
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x120,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D176
type_infered: string
name: unpack_data
arguments: data_label: D144
type_infered: string
name: unpack_data
arguments: data_label: D247
type_infered: string
name: unpack_data
arguments: data_label: D243
type_infered: string
name: unpack_data
arguments: data_label: D235
type_infered: string
name: unpack_data
arguments: data_label: D195
type_infered: string
name: unpack_data
arguments: data_label: D53
type_infered: string
name: unpack_data
arguments: data_label: D234
type_infered: string
name: unpack_data
arguments: data_label: D264
type_infered: string
name: unpack_data
arguments: data_label: D197
type_infered: string
name: unpack_data
arguments: data_label: D192
type_infered: string
name: unpack_data
arguments: data_label: D303
type_infered: string
name: unpack_data
arguments: data_label: D222
type_infered: string
name: unpack_data
arguments: data_label: D30
type_infered: string
name: unpack_data
arguments: data_label: D47
type_infered: string
name: unpack_data
arguments: data_label: D59
type_infered: string
name: unpack_data
arguments: data_label: D74
type_infered: string
name: unpack_data
arguments: data_label: D215
type_infered: string
name: unpack_data
arguments: data_label: D188
type_infered: string
name: unpack_data
arguments: data_label: D153
type_infered: string
name: unpack_data
arguments: data_label: D25
type_infered: string
name: unpack_data
arguments: data_label: D191
type_infered: string
name: unpack_data
arguments: data_label: D295
type_infered: string
name: unpack_data
arguments: data_label: D148
type_infered: string
name: unpack_data
arguments: data_label: D41
type_infered: string
name: unpack_data
arguments: data_label: D165
type_infered: string
name: unpack_data
arguments: data_label: D146
type_infered: string
name: unpack_data
arguments: data_label: D212
type_infered: string
name: unpack_data
arguments: data_label: D140
type_infered: string
name: unpack_data
arguments: data_label: D112
type_infered: string
name: unpack_data
arguments: data_label: D251
type_infered: string

tool: D176: M

tool: D144: DCC

tool: D247: XXX

tool: D243: CCC

tool: 

tool: D195: MM

tool: D53: MMM

tool: D234: C

tool: D264: CC

tool: D197: CD

tool: D192: D

tool: D303: DC

tool: D222: DCCC

tool: D30: CM

tool: D47: X

tool: D59: XX

tool: D74: XL

tool: D215: L

tool: D188: LX

tool: D153: LXX

tool: D25: LXXX

tool: D191: XC

tool: D295: I

tool: D148: II

tool: D41: III

tool: D165: IV

tool: D146: V

tool: D212: VI

tool: D140: VII

tool: D112: VIII

tool: D251: IX

assistant: ```c
char *intToRoman(int num) {
  char *M[] = {"", "M", "MM", "MMM"};
  char *C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"};
  char *X[] = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"};
  char *I[] = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"};
  char *s = (char *)malloc(sizeof(char) * 20);
  *s = '\0';
  strcat(s, M[num / 1000]);
  strcat(s, C[(num % 1000) / 100]);
  strcat(s, X[(num % 100) / 10]);
  strcat(s, I[(num % 10)]);
  return s;
}
```