user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<test_intcelcon>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  cmp    %eax,%edx
  jne    L96
  movl   $0x0,-0x1c(%rbp)
  jmp    L47
L73:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  addl   $0x1,-0x1c(%rbp)
L47:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L73
  jmp    L78
L96:
  movl   $0x0,-0x1c(%rbp)
  jmp    L41
L98:
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x1c(%rbp)
L41:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L98
L78:
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L13
L95:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x18(%rbp)
L13:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L95
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jne    L60
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%eax
  mov    -0x10(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <check_intcelcon@plt>
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%eax
  mov    -0x10(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <write_integer_lifted_supports@plt>
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <intcelcon_make_subdivision@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <write_integer_mixed_cells@plt>
  jmp    L76
L60:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L76:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L57
  call   <__stack_chk_fail@plt>
L57:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D113
data_type: string
name: read_data
arguments: label: D63
data_type: string
name: read_data
arguments: label: D83
data_type: string
name: read_data
arguments: label: D74
data_type: string
name: read_data
arguments: label: D9
data_type: string
name: read_data
arguments: label: D36
data_type: string
name: read_data
arguments: label: D56
data_type: string
name: read_data
arguments: label: D104
data_type: string
name: read_data
arguments: label: D41
data_type: string
name: read_data
arguments: label: D122
data_type: string
name: read_data
arguments: label: D58
data_type: string

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

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

tool: D83: %d

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

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

tool: D36: The mixture : 

tool: D56:  %d

tool: D104:  = %d

tool: D41:   okay

tool: D122: computing the mixed cells ...

tool: D58:  != %d


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);
  }
}
```