user: Converte this assembly snippet into its equivalent C code:

```asm
<ieee_p_1242562249_sub_17249857350030274602_1035706684>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    0xc(%rcx),%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %ebx,%ebx
  je     L23
  mov    %rsp,%rsi
  call   <ieee_p_1242562249_sub_18075413680674704129_1035706684@plt>
  mov    0xc(%rsp),%r14d
  mov    %rax,%r13
  mov    %r14d,%edi
  call   <xsi_get_transient_memory@plt>
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <memcpy@plt>
  movq   (%rsp),%xmm0
  mov    0x8(%rsp),%eax
  movd   %xmm0,%edx
  pshufd $0xe5,%xmm0,%xmm1
  movd   %xmm1,%ebx
  sub    %edx,%ebx
  imul   %eax,%ebx
  add    $0x1,%ebx
L27:
  mov    %eax,0x8(%rbp)
  mov    %ebx,0xc(%rbp)
  movq   %xmm0,0x0(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x20,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L23:
  mov    0x508(%rdi),%r13
  xor    %edi,%edi
  call   <xsi_get_transient_memory@plt>
  xor    %edx,%edx
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <memcpy@plt>
  mov    $0xffffffff,%eax
  movq   D8(%rip),%xmm0
  jmp    L27
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D8
data_type: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

assistant: ```c
char *ieee_p_1242562249_sub_17249857350030274602_1035706684(char *t1, char *t2, char *t3, char *t4, int t5) {
  char t7[24];
  char t20[16];
  char *t0;
  char *t8;
  unsigned char t9;
  char *t10;
  char *t11;
  char *t12;
  unsigned int t13;
  unsigned char t14;
  char *t15;
  char *t16;
  char *t17;
  int t18;
  unsigned int t19;
  int t21;
  char *t22;
  int t23;
  char *t24;
  char *t25;
  int t26;
LAB0:
  t8 = (t7 + 4U);
  t9 = (t3 != 0);
  if (t9 == 1)
    goto LAB3;
LAB2:
  t10 = (t7 + 12U);
  *((char **)t10) = t4;
  t11 = (t7 + 20U);
  *((int *)t11) = t5;
  t12 = (t4 + 12U);
  t13 = *((unsigned int *)t12);
  t14 = (t13 < 1);
  if (t14 != 0)
    goto LAB4;
LAB6:
LAB5:
  t12 = ieee_p_1242562249_sub_18075413680674704129_1035706684(t1, t20, t3, t4, t5);
  t15 = (t20 + 12U);
  t13 = *((unsigned int *)t15);
  t13 = (t13 * 1U);
  t0 = xsi_get_transient_memory(t13);
  memcpy(t0, t12, t13);
  t16 = (t20 + 0U);
  t18 = *((int *)t16);
  t17 = (t20 + 4U);
  t21 = *((int *)t17);
  t22 = (t20 + 8U);
  t23 = *((int *)t22);
  t24 = (t2 + 0U);
  t25 = (t24 + 0U);
  *((int *)t25) = t18;
  t25 = (t24 + 4U);
  *((int *)t25) = t21;
  t25 = (t24 + 8U);
  *((int *)t25) = t23;
  t26 = (t21 - t18);
  t19 = (t26 * t23);
  t19 = (t19 + 1);
  t25 = (t24 + 12U);
  *((unsigned int *)t25) = t19;
LAB1:
  return t0;
LAB3:
  *((char **)t8) = t3;
  goto LAB2;
LAB4:
  t15 = (t1 + 1288U);
  t16 = *((char **)t15);
  t0 = xsi_get_transient_memory(0U);
  memcpy(t0, t16, 0U);
  t15 = (t2 + 0U);
  t17 = (t15 + 0U);
  *((int *)t17) = 0;
  t17 = (t15 + 4U);
  *((int *)t17) = 1;
  t17 = (t15 + 8U);
  *((int *)t17) = -1;
  t18 = (1 - 0);
  t19 = (t18 * -1);
  t19 = (t19 + 1);
  t17 = (t15 + 12U);
  *((unsigned int *)t17) = t19;
  goto LAB1;
LAB7:
  goto LAB5;
LAB8:;
}
```