user: Please show me the C implementation that matches the assembly code listed below:

```asm
<intToRoman>:
  endbr64
  push   %r15
  mov    $0x28,%ecx
  lea    D25(%rip),%rsi
  lea    D257(%rip),%rdx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %edi,%rbp
  push   %rbx
  imul   $0x10624dd3,%rbp,%r13
  mov    %ebp,%r15d
  mov    %rbp,%rbx
  sar    $0x1f,%r15d
  sub    $0x178,%rsp
  sar    $0x26,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x168(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  sub    %r15d,%r13d
  rep stos %rax,%es:(%rdi)
  lea    D135(%rip),%rcx
  mov    %rsi,0x48(%rsp)
  lea    D139(%rip),%rsi
  mov    %rcx,0x28(%rsp)
  lea    D20(%rip),%rcx
  lea    D15(%rip),%rdi
  mov    %rcx,0x30(%rsp)
  lea    D129(%rip),%rcx
  lea    D295(%rip),%rax
  mov    %rcx,0x38(%rsp)
  lea    D110(%rip),%rcx
  mov    %rcx,0x40(%rsp)
  lea    D78(%rip),%rcx
  mov    %rcx,0x50(%rsp)
  lea    D194(%rip),%rcx
  mov    %rsi,0x58(%rsp)
  lea    D162(%rip),%rsi
  mov    %rcx,0x60(%rsp)
  lea    D307(%rip),%rcx
  mov    %rsi,0x68(%rsp)
  lea    D173(%rip),%rsi
  mov    %rcx,0x78(%rsp)
  lea    D244(%rip),%rcx
  mov    %rsi,0x80(%rsp)
  lea    D113(%rip),%rsi
  mov    %rdx,0x88(%rsp)
  lea    D51(%rip),%rdx
  mov    %rdi,0x90(%rsp)
  lea    D122(%rip),%rdi
  mov    %rcx,0x98(%rsp)
  lea    D71(%rip),%rcx
  mov    %rsi,0xa0(%rsp)
  lea    D144(%rip),%rsi
  mov    %rdx,0xa8(%rsp)
  lea    D120(%rip),%rdx
  mov    %rax,0x20(%rsp)
  mov    %rax,0x70(%rsp)
  mov    %rdi,0xb0(%rsp)
  lea    D249(%rip),%rdi
  mov    %rcx,0xb8(%rsp)
  lea    D27(%rip),%rcx
  mov    %rax,0xc0(%rsp)
  mov    %rsi,0xc8(%rsp)
  lea    D192(%rip),%rsi
  mov    %rdx,0xd0(%rsp)
  lea    D40(%rip),%rdx
  mov    %rax,0x110(%rsp)
  lea    D263(%rip),%rax
  mov    %rax,0x118(%rsp)
  lea    D3(%rip),%rax
  mov    %rax,0x120(%rsp)
  lea    D41(%rip),%rax
  mov    %rax,0x128(%rsp)
  movslq %r13d,%rax
  imul   $0x3e8,%r13d,%r13d
  mov    %rsi,0xe8(%rsp)
  lea    D108(%rip),%rsi
  mov    %rsi,0x108(%rsp)
  mov    0x110(%rsp,%rax,8),%rsi
  mov    %rdi,0xd8(%rsp)
  lea    D19(%rip),%rdi
  mov    %rcx,0xe0(%rsp)
  lea    D70(%rip),%rcx
  mov    %rdi,0xf8(%rsp)
  mov    %rsi,%rdi
  mov    %rcx,0x100(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %rdx,0xf0(%rsp)
  call   <strlen@plt>
  mov    %ebp,%edx
  sub    %r13d,%edx
  mov    %rax,%r12
  movslq %edx,%rax
  sar    $0x1f,%edx
  imul   $0x51eb851f,%rax,%rax
  sar    $0x25,%rax
  sub    %edx,%eax
  cltq
  mov    0xc0(%rsp,%rax,8),%r14
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %ebp,%edx
  mov    %rax,0x8(%rsp)
  imul   $0x51eb851f,%rbp,%rax
  imul   $0x66666667,%rbp,%rbp
  sar    $0x25,%rax
  sub    %r15d,%eax
  sar    $0x22,%rbp
  imul   $0x64,%eax,%eax
  sub    %r15d,%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),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %rax,0x10(%rsp)
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%ebx
  movslq %ebx,%rbx
  mov    0x20(%rsp,%rbx,8),%rbp
  mov    %rbp,%rdi
  call   <strlen@plt>
  add    0x8(%rsp),%r12
  add    0x10(%rsp),%r12
  lea    0x1(%r12,%rax,1),%rdi
  call   <malloc@plt>
  mov    0x18(%rsp),%rsi
  mov    %rax,%r12
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    0x168(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x178,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D25
type_guessed: string
name: unpack_data
arguments: tag: D257
type_guessed: string
name: unpack_data
arguments: tag: D135
type_guessed: string
name: unpack_data
arguments: tag: D139
type_guessed: string
name: unpack_data
arguments: tag: D20
type_guessed: string
name: unpack_data
arguments: tag: D15
type_guessed: string
name: unpack_data
arguments: tag: D129
type_guessed: string
name: unpack_data
arguments: tag: D295
type_guessed: string
name: unpack_data
arguments: tag: D110
type_guessed: string
name: unpack_data
arguments: tag: D78
type_guessed: string
name: unpack_data
arguments: tag: D194
type_guessed: string
name: unpack_data
arguments: tag: D162
type_guessed: string
name: unpack_data
arguments: tag: D307
type_guessed: string
name: unpack_data
arguments: tag: D173
type_guessed: string
name: unpack_data
arguments: tag: D244
type_guessed: string
name: unpack_data
arguments: tag: D113
type_guessed: string
name: unpack_data
arguments: tag: D51
type_guessed: string
name: unpack_data
arguments: tag: D122
type_guessed: string
name: unpack_data
arguments: tag: D71
type_guessed: string
name: unpack_data
arguments: tag: D144
type_guessed: string
name: unpack_data
arguments: tag: D120
type_guessed: string
name: unpack_data
arguments: tag: D249
type_guessed: string
name: unpack_data
arguments: tag: D27
type_guessed: string
name: unpack_data
arguments: tag: D192
type_guessed: string
name: unpack_data
arguments: tag: D40
type_guessed: string
name: unpack_data
arguments: tag: D263
type_guessed: string
name: unpack_data
arguments: tag: D3
type_guessed: string
name: unpack_data
arguments: tag: D41
type_guessed: string
name: unpack_data
arguments: tag: D108
type_guessed: string
name: unpack_data
arguments: tag: D19
type_guessed: string
name: unpack_data
arguments: tag: D70
type_guessed: string

tool: D25: V

tool: D257: XXX

tool: D135: I

tool: D139: VII

tool: D20: II

tool: D15: XL

tool: D129: III

tool: 

tool: D110: IV

tool: D78: VI

tool: D194: VIII

tool: D162: IX

tool: D307: X

tool: D173: XX

tool: D244: L

tool: D113: LX

tool: D51: LXX

tool: D122: LXXX

tool: D71: XC

tool: D144: C

tool: D120: CC

tool: D249: CCC

tool: D27: CD

tool: D192: D

tool: D40: DC

tool: D263: M

tool: D3: MM

tool: D41: MMM

tool: D108: CM

tool: D19: DCC

tool: D70: DCCC

assistant: ```c
char *intToRoman(int num) {
  char *table[4][10] = {{"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}, {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"}, {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"}, {"", "M", "MM", "MMM"}};
  int m = num / 1000, c = num % 1000 / 100, x = num % 100 / 10, i = num % 10;
  char *result = (char *)malloc(strlen(table[3][m]) + strlen(table[2][c]) + strlen(table[1][x]) + strlen(table[0][i]) + 1);
  strcpy(result, table[3][m]);
  strcat(result, table[2][c]);
  strcat(result, table[1][x]);
  strcat(result, table[0][i]);
  return result;
}
```