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

```asm
<intToRoman>:
  endbr64
  push   %r15
  xor    %edx,%edx
  mov    $0x1,%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x118,%rsp
  movdqa D54(%rip),%xmm0
  mov    %edi,(%rsp)
  mov    $0x20,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  movabs $0x1f400000384,%rax
  movaps %xmm0,0x50(%rsp)
  movdqa D77(%rip),%xmm0
  mov    %rdx,0x88(%rsp)
  xor    %edx,%edx
  movaps %xmm0,0x60(%rsp)
  movdqa D74(%rip),%xmm0
  mov    %rdx,0xc8(%rsp)
  movaps %xmm0,0x70(%rsp)
  movdqa D72(%rip),%xmm0
  mov    %rax,0x14(%rsp)
  movabs $0x6400000190,%rax
  mov    %rax,0x1c(%rsp)
  movabs $0x320000005a,%rax
  mov    %rax,0x24(%rsp)
  movabs $0xa00000028,%rax
  mov    %rax,0x2c(%rsp)
  movabs $0x500000009,%rax
  movaps %xmm0,0x90(%rsp)
  movdqa D4(%rip),%xmm0
  mov    %rax,0x34(%rsp)
  movabs $0x100000004,%rax
  mov    %rax,0x3c(%rsp)
  movabs $0x4300000000,%rax
  movaps %xmm0,0xa0(%rsp)
  movdqa D44(%rip),%xmm0
  mov    %rax,0x80(%rsp)
  movabs $0x58490000000000,%rax
  mov    %rax,0xc0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movdqa D1(%rip),%xmm0
  movq   $0x0,0xf0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movdqa D6(%rip),%xmm0
  movb   $0x0,0xf8(%rsp)
  movaps %xmm0,0xe0(%rsp)
  call   <calloc@plt>
  mov    %rax,%r13
  test   %ebx,%ebx
  jle    L48
  lea    0x14(%rsp),%rax
  movl   $0x3e8,0x4(%rsp)
  lea    0x50(%rsp),%rbp
  xor    %ebx,%ebx
  mov    %rax,0x8(%rsp)
  mov    (%rsp),%eax
  cltd
  idivl  0x4(%rsp)
  mov    %eax,%r12d
  test   %eax,%eax
  jle    L5
  nopw   0x0(%rax,%rax,1)
L4:
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L15:
  mov    %rbp,%rdi
  add    $0x1,%r15d
  call   <strlen@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rsi
  mov    %rax,%r14
  add    %r13,%rdi
  mov    %rax,%rdx
  call   <strncat@plt>
  add    %r14d,%ebx
  cmp    %r15d,%r12d
  jne    L15
  mov    0x4(%rsp),%eax
  sub    $0x1,%r12d
  mov    (%rsp),%r14d
  add    $0xd,%rbp
  imul   %eax,%r12d
  sub    %eax,%r14d
  sub    %r12d,%r14d
  mov    %r14d,(%rsp)
  test   %r14d,%r14d
  jle    L48
L57:
  mov    0x8(%rsp),%rax
  mov    (%rax),%ecx
  add    $0x4,%rax
  mov    %rax,0x8(%rsp)
  mov    (%rsp),%eax
  mov    %ecx,0x4(%rsp)
  cltd
  idivl  0x4(%rsp)
  mov    %eax,%r12d
  test   %eax,%eax
  jg     L4
L5:
  add    $0xd,%rbp
  jmp    L57
  nopl   0x0(%rax)
L48:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x118,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D54
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D77
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D74
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D72
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D4
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D44
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D1
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D6
type_infered: byte[16]

tool: {"D54": [0x4d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x4d,0x00]}

tool: {"D77": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x00,0x00]}

tool: {"D74": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D72": [0x00,0x58,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,0x00]}

tool: {"D4": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x4c,0x00,0x00,0x00]}

tool: {"D44": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D1": [0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49]}

tool: {"D6": [0x56,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x00,0x00,0x00]}

assistant: ```c
char *intToRoman(int num) {
  int values[] = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1};
  char symbols[13][13] = {"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"};
  char *ret = (char *)malloc(sizeof(char) * 32);
  int i = 0;
  int j = 0;
  int cur = 0;
  int len = 0;
  memset(ret, 0, sizeof(char) * 32);
  while (num > 0) {
    int k = num / values[i];
    for (j = 0; j < k; j++) {
      len = strlen(symbols[i]);
      strncat(ret + cur, symbols[i], len);
      cur += len;
      num -= values[i];
    }
    i++;
  }
  return ret;
}
```