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

```asm
<intToRoman>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %edi,-0xf4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc0(%rbp)
  movb   $0x0,-0xbc(%rbp)
  movl   $0x49,-0xbb(%rbp)
  movb   $0x0,-0xb7(%rbp)
  movl   $0x4949,-0xb6(%rbp)
  movb   $0x0,-0xb2(%rbp)
  movl   $0x494949,-0xb1(%rbp)
  movb   $0x0,-0xad(%rbp)
  movl   $0x5649,-0xac(%rbp)
  movb   $0x0,-0xa8(%rbp)
  movl   $0x56,-0xa7(%rbp)
  movb   $0x0,-0xa3(%rbp)
  movl   $0x4956,-0xa2(%rbp)
  movb   $0x0,-0x9e(%rbp)
  movl   $0x494956,-0x9d(%rbp)
  movb   $0x0,-0x99(%rbp)
  movl   $0x49494956,-0x98(%rbp)
  movb   $0x0,-0x94(%rbp)
  movl   $0x5849,-0x93(%rbp)
  movb   $0x0,-0x8f(%rbp)
  movl   $0x0,-0x80(%rbp)
  movb   $0x0,-0x7c(%rbp)
  movl   $0x58,-0x7b(%rbp)
  movb   $0x0,-0x77(%rbp)
  movl   $0x5858,-0x76(%rbp)
  movb   $0x0,-0x72(%rbp)
  movl   $0x585858,-0x71(%rbp)
  movb   $0x0,-0x6d(%rbp)
  movl   $0x4c58,-0x6c(%rbp)
  movb   $0x0,-0x68(%rbp)
  movl   $0x4c,-0x67(%rbp)
  movb   $0x0,-0x63(%rbp)
  movl   $0x584c,-0x62(%rbp)
  movb   $0x0,-0x5e(%rbp)
  movl   $0x58584c,-0x5d(%rbp)
  movb   $0x0,-0x59(%rbp)
  movl   $0x5858584c,-0x58(%rbp)
  movb   $0x0,-0x54(%rbp)
  movl   $0x4358,-0x53(%rbp)
  movb   $0x0,-0x4f(%rbp)
  movl   $0x0,-0x40(%rbp)
  movb   $0x0,-0x3c(%rbp)
  movl   $0x43,-0x3b(%rbp)
  movb   $0x0,-0x37(%rbp)
  movl   $0x4343,-0x36(%rbp)
  movb   $0x0,-0x32(%rbp)
  movl   $0x434343,-0x31(%rbp)
  movb   $0x0,-0x2d(%rbp)
  movl   $0x4443,-0x2c(%rbp)
  movb   $0x0,-0x28(%rbp)
  movl   $0x44,-0x27(%rbp)
  movb   $0x0,-0x23(%rbp)
  movl   $0x4344,-0x22(%rbp)
  movb   $0x0,-0x1e(%rbp)
  movl   $0x434344,-0x1d(%rbp)
  movb   $0x0,-0x19(%rbp)
  movl   $0x43434344,-0x18(%rbp)
  movb   $0x0,-0x14(%rbp)
  movl   $0x4d43,-0x13(%rbp)
  movb   $0x0,-0xf(%rbp)
  movl   $0x0,-0xe0(%rbp)
  movb   $0x0,-0xdc(%rbp)
  movl   $0x4d,-0xdb(%rbp)
  movb   $0x0,-0xd7(%rbp)
  movl   $0x4d4d,-0xd6(%rbp)
  movb   $0x0,-0xd2(%rbp)
  movl   $0x4d4d4d,-0xd1(%rbp)
  movb   $0x0,-0xcd(%rbp)
  mov    $0x10,%edi
  call   <malloc@plt>
  mov    %rax,-0xe8(%rbp)
  mov    -0xe8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    -0xe0(%rbp),%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0xe8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x3e8,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0xf4(%rbp)
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    -0x40(%rbp),%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0xe8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x64,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0xf4(%rbp)
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    -0x80(%rbp),%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0xe8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0xf4(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xf4(%rbp)
  lea    -0xc0(%rbp),%rcx
  mov    -0xf4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0xe8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0xe8(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

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