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

```asm
<test_intcelcon>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D38(%rip),%rdi
  call   <puts@plt>
  lea    D93(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D2(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D115(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x4,%esi
  mov    0x4(%rsp),%edi
  call   <calloc@plt>
  mov    %rax,%r13
  mov    0x4(%rsp),%edx
  mov    (%rsp),%eax
  sub    $0x1,%eax
  cmp    %edx,%eax
  je     L88
  mov    %r13,%rbp
  mov    $0x0,%ebx
  lea    D110(%rip),%r14
  lea    D2(%rip),%r12
  test   %edx,%edx
  jle    L10
L84:
  add    $0x1,%ebx
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  add    $0x4,%rbp
  cmp    0x4(%rsp),%ebx
  jl     L84
L10:
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x4(%rsp)
  jle    L106
  mov    %r13,%rbx
  mov    $0x0,%r12d
  mov    $0x0,%ebp
  lea    D84(%rip),%r14
L58:
  mov    (%rbx),%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  add    (%rbx),%r12d
  add    $0x4,%rbx
  cmp    %ebp,0x4(%rsp)
  jg     L58
L66:
  mov    %r12d,%esi
  lea    D100(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    (%rsp),%eax
  lea    -0x1(%rax),%esi
  cmp    %r12d,%esi
  je     L87
  lea    D90(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L74:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L88:
  test   %edx,%edx
  jle    L10
  mov    %r13,%rdx
  mov    $0x0,%eax
L62:
  movl   $0x1,(%rdx)
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,0x4(%rsp)
  jg     L62
  jmp    L10
L106:
  mov    $0x0,%r12d
  jmp    L66
L87:
  lea    D20(%rip),%rdi
  call   <puts@plt>
  mov    %r13,%rdx
  mov    0x4(%rsp),%esi
  mov    (%rsp),%edi
  call   <check_intcelcon@plt>
  mov    %r13,%rdx
  mov    0x4(%rsp),%esi
  mov    (%rsp),%edi
  call   <write_integer_lifted_supports@plt>
  lea    D62(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <intcelcon_make_subdivision@plt>
  mov    (%rsp),%edi
  call   <write_integer_mixed_cells@plt>
  jmp    L74
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D38
data_type: string
name: parse_data
arguments: data_label: D93
data_type: string
name: parse_data
arguments: data_label: D2
data_type: string
name: parse_data
arguments: data_label: D115
data_type: string
name: parse_data
arguments: data_label: D110
data_type: string
name: parse_data
arguments: data_label: D22
data_type: string
name: parse_data
arguments: data_label: D84
data_type: string
name: parse_data
arguments: data_label: D100
data_type: string
name: parse_data
arguments: data_label: D90
data_type: string
name: parse_data
arguments: data_label: D20
data_type: string
name: parse_data
arguments: data_label: D62
data_type: string

tool: D38: 
Testing the integer cells container ...

tool: D93: -> give the size of the lifted points : 

tool: D2: %d

tool: D115: -> give the number of distinct supports : 

tool: D110: -> give frequency of support %d : 

tool: D22: The mixture : 

tool: D84:  %d

tool: D100:  = %d

tool: D90:  != %d


tool: D20:   okay

tool: D62: computing the mixed cells ...

assistant: ```c
void test_intcelcon(void) {
  int n, r, i, fail;
  printf("\nTesting the integer cells container ...\n");
  printf("-> give the size of the lifted points : ");
  scanf("%d", &n);
  printf("-> give the number of distinct supports : ");
  scanf("%d", &r);
  {
    int smx;
    int *mix;
    mix = (int *)calloc(r, sizeof(int));
    if (r == n - 1)
      for (i = 0; i < r; i++)
        mix[i] = 1;
    else {
      for (i = 0; i < r; i++) {
        printf("-> give frequency of support %d : ", i + 1);
        scanf("%d", &mix[i]);
      }
    }
    printf("The mixture : ");
    for (i = 0, smx = 0; i < r; smx += mix[i++])
      printf(" %d", mix[i]);
    printf(" = %d", smx);
    if (smx == n - 1) {
      printf("  okay\n");
      check_intcelcon(n, r, mix);
      write_integer_lifted_supports(n, r, mix);
      printf("computing the mixed cells ...\n");
      fail = intcelcon_make_subdivision();
      write_integer_mixed_cells(n);
    } else
      printf(" != %d\n", n - 1);
  }
}
```