user: What is the c source code of the assembly code below?

```asm
<tng_compress_pos_int>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %edx,-0x60(%rbp)
  mov    %rcx,-0x68(%rbp)
  mov    %r8,-0x70(%rbp)
  mov    %r9d,-0x74(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x80(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x5c(%rbp),%eax
  imul   -0x60(%rbp),%eax
  imul   $0xe,%eax,%eax
  add    $0x2c,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x5c(%rbp),%eax
  imul   -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x5c(%rbp),%eax
  imul   -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  cmpl   $0x0,-0x74(%rbp)
  jne    L131
  movl   $0x2,-0x74(%rbp)
L131:
  cmpl   $0x0,-0x74(%rbp)
  jg     L17
  movl   $0x1,-0x74(%rbp)
L17:
  cmpl   $0x6,-0x74(%rbp)
  jle    L87
  movl   $0x6,-0x74(%rbp)
L87:
  mov    -0x80(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x80(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x80(%rbp),%rax
  mov    0x8(%rax),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x80(%rbp),%rax
  mov    0xc(%rax),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x20(%rbp),%rcx
  mov    -0x60(%rbp),%edx
  mov    -0x5c(%rbp),%esi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <quant_inter_differences@plt>
  mov    -0x28(%rbp),%rcx
  mov    -0x60(%rbp),%edx
  mov    -0x5c(%rbp),%esi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <quant_intra_differences@plt>
  mov    -0x48(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L147
  movl   $0xffffffff,-0x44(%rbp)
  mov    -0x70(%rbp),%r9
  mov    -0x68(%rbp),%r8
  mov    -0x74(%rbp),%ecx
  mov    -0x5c(%rbp),%edx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  lea    -0x44(%rbp),%rdi
  push   %rdi
  lea    -0x48(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <determine_best_pos_initial_coding@plt>
  add    $0x10,%rsp
  jmp    L13
L147:
  mov    -0x44(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L13
  mov    -0x70(%rbp),%r9
  mov    -0x68(%rbp),%r8
  mov    -0x74(%rbp),%ecx
  mov    -0x5c(%rbp),%edx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  lea    -0x44(%rbp),%rdi
  push   %rdi
  lea    -0x48(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <determine_best_pos_initial_coding@plt>
  add    $0x10,%rsp
L13:
  cmpl   $0x1,-0x60(%rbp)
  jne    L6
  movl   $0x0,-0x40(%rbp)
  movl   $0x0,-0x3c(%rbp)
L6:
  cmpl   $0x1,-0x60(%rbp)
  jle    L156
  mov    -0x40(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L39
  movl   $0xffffffff,-0x3c(%rbp)
  mov    -0x74(%rbp),%r9d
  mov    -0x60(%rbp),%r8d
  mov    -0x5c(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  lea    -0x3c(%rbp),%rdi
  push   %rdi
  lea    -0x40(%rbp),%rdi
  push   %rdi
  push   -0x70(%rbp)
  push   -0x68(%rbp)
  mov    %rax,%rdi
  call   <determine_best_pos_coding@plt>
  add    $0x20,%rsp
  jmp    L156
L39:
  mov    -0x3c(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L156
  mov    -0x74(%rbp),%r9d
  mov    -0x60(%rbp),%r8d
  mov    -0x5c(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  lea    -0x3c(%rbp),%rdi
  push   %rdi
  lea    -0x40(%rbp),%rdi
  push   %rdi
  push   -0x70(%rbp)
  push   -0x68(%rbp)
  mov    %rax,%rdi
  call   <determine_best_pos_coding@plt>
  add    $0x20,%rsp
L156:
  mov    -0x3c(%rbp),%r10d
  mov    -0x40(%rbp),%r9d
  mov    -0x44(%rbp),%r8d
  mov    -0x48(%rbp),%edi
  mov    -0x74(%rbp),%ebx
  mov    -0x60(%rbp),%r11d
  mov    -0x5c(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  push   -0x38(%rbp)
  push   -0x88(%rbp)
  push   -0x70(%rbp)
  push   -0x68(%rbp)
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  mov    %ebx,%r9d
  mov    %r11d,%r8d
  mov    %rax,%rdi
  call   <compress_quantized_pos@plt>
  add    $0x40,%rsp
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x80(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L90
  mov    -0x48(%rbp),%edx
  mov    -0x80(%rbp),%rax
  mov    %edx,(%rax)
L90:
  mov    -0x80(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L143
  mov    -0x80(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x44(%rbp),%eax
  mov    %eax,(%rdx)
L143:
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L158
  mov    -0x80(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x40(%rbp),%eax
  mov    %eax,(%rdx)
L158:
  mov    -0x80(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L92
  mov    -0x80(%rbp),%rax
  lea    0xc(%rax),%rdx
  mov    -0x3c(%rbp),%eax
  mov    %eax,(%rdx)
L92:
  mov    -0x38(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L2
  call   <__stack_chk_fail@plt>
L2:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char *tng_compress_pos_int(int *pos, const int natoms, const int nframes, const unsigned long prec_hi, const unsigned long prec_lo, int speed, int *algo, int *nitems) {
  char *data = malloc(natoms * nframes * 14 + 11 * 4);
  int *quant = pos;
  int *quant_intra = malloc(natoms * nframes * 3 * sizeof *quant_intra);
  int *quant_inter = malloc(natoms * nframes * 3 * sizeof *quant_inter);
  int initial_coding, initial_coding_parameter;
  int coding, coding_parameter;
  if (speed == 0)
    speed = 2;
  if (speed < 1)
    speed = 1;
  if (speed > 6)
    speed = 6;
  initial_coding = algo[0];
  initial_coding_parameter = algo[1];
  coding = algo[2];
  coding_parameter = algo[3];
  quant_inter_differences(quant, natoms, nframes, quant_inter);
  quant_intra_differences(quant, natoms, nframes, quant_intra);
  if (initial_coding == -1) {
    initial_coding_parameter = -1;
    determine_best_pos_initial_coding(quant, quant_intra, natoms, speed, prec_hi, prec_lo, &initial_coding, &initial_coding_parameter);
  } else if (initial_coding_parameter == -1) {
    determine_best_pos_initial_coding(quant, quant_intra, natoms, speed, prec_hi, prec_lo, &initial_coding, &initial_coding_parameter);
  }
  if (nframes == 1) {
    coding = 0;
    coding_parameter = 0;
  }
  if (nframes > 1) {
    if (coding == -1) {
      coding_parameter = -1;
      determine_best_pos_coding(quant, quant_inter, quant_intra, natoms, nframes, speed, prec_hi, prec_lo, &coding, &coding_parameter);
    } else if (coding_parameter == -1) {
      determine_best_pos_coding(quant, quant_inter, quant_intra, natoms, nframes, speed, prec_hi, prec_lo, &coding, &coding_parameter);
    }
  }
  compress_quantized_pos(quant, quant_inter, quant_intra, natoms, nframes, speed, initial_coding, initial_coding_parameter, coding, coding_parameter, prec_hi, prec_lo, nitems, data);
  free(quant_inter);
  free(quant_intra);
  if (algo[0] == -1)
    algo[0] = initial_coding;
  if (algo[1] == -1)
    algo[1] = initial_coding_parameter;
  if (algo[2] == -1)
    algo[2] = coding;
  if (algo[3] == -1)
    algo[3] = coding_parameter;
  return data;
}
```