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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D98(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  lea    -0x374(%rbp),%r13
  push   %r12
  lea    -0x340(%rbp),%r12
  push   %rbx
  lea    -0x2a0(%rbp),%rbx
  sub    $0x398,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    D87(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %r12,%rsi
  mov    $0x2,%edi
  movl   $0x3f,-0x374(%rbp)
  mov    %rbx,-0x340(%rbp)
  mov    %r13,-0x338(%rbp)
  call   <get_total_number_of_groups@plt>
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    -0x370(%rbp),%rdi
  mov    %eax,-0x370(%rbp)
  call   <swap_Nbyte@plt>
  mov    -0x370(%rbp),%esi
  lea    D37(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq -0x370(%rbp),%rax
  mov    %rsp,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L37
L219:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L219
L37:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L187
L71:
  lea    0x3(%rsp),%rdx
  mov    %rax,%r8
  mov    %rax,%rsi
  mov    %rsp,%rdi
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%r8
  and    $0xfffffffffffffffc,%rdx
  and    $0xfffffffffffffff0,%rsi
  shr    $0x2,%rcx
  sub    %r8,%rdi
L246:
  cmp    %rdi,%rsp
  je     L282
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L246
L187:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L71
L282:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  jne    L210
L147:
  lea    0x3(%rsp),%rsi
  mov    %rax,%rdi
  mov    %rsp,%r9
  and    $0xfffffffffffff000,%rax
  mov    %rsi,%r8
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffffffc,%rsi
  sub    %rax,%r9
  shr    $0x2,%r8
L171:
  cmp    %r9,%rsp
  je     L262
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L171
L210:
  orq    $0x0,-0x8(%rsp,%rsi,1)
  jmp    L147
L262:
  and    $0xfff,%edi
  sub    %rdi,%rsp
  test   %rdi,%rdi
  je     L233
  orq    $0x0,-0x8(%rsp,%rdi,1)
L233:
  lea    0x3(%rsp),%rax
  mov    %rcx,-0x390(%rbp)
  mov    $0x5,%edi
  lea    -0x1d0(%rbp),%r14
  mov    %rax,%rcx
  mov    %rsi,-0x328(%rbp)
  and    $0xfffffffffffffffc,%rax
  mov    %r12,%rsi
  shr    $0x2,%rcx
  mov    %r8,-0x398(%rbp)
  lea    -0x36c(%rbp),%r15
  mov    %rcx,-0x3a0(%rbp)
  mov    %rdx,-0x330(%rbp)
  mov    %rax,-0x320(%rbp)
  call   <get_group_catalogue@plt>
  lea    D47(%rip),%rsi
  mov    %r14,%rdi
  movl   $0x0,-0x36c(%rbp)
  call   <sprintf@plt>
  lea    -0x368(%rbp),%r10
  mov    %r12,%rsi
  mov    $0x4,%edi
  mov    %r10,-0x328(%rbp)
  mov    %r10,-0x388(%rbp)
  movl   $0x0,-0x368(%rbp)
  mov    %r14,-0x330(%rbp)
  call   <get_hash_table_size@plt>
  mov    $0x4,%edx
  mov    $0x1,%esi
  mov    %r15,%rdi
  mov    %eax,-0x36c(%rbp)
  call   <swap_Nbyte@plt>
  mov    $0x4,%edx
  mov    $0x1,%esi
  mov    -0x388(%rbp),%rdi
  call   <swap_Nbyte@plt>
  mov    -0x368(%rbp),%esi
  lea    D99(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    -0x36c(%rbp),%esi
  lea    D56(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq -0x36c(%rbp),%rax
  mov    %rsp,%rsi
  mov    -0x398(%rbp),%r8
  mov    -0x390(%rbp),%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rdx
  sub    %rdi,%rsi
L245:
  cmp    %rsi,%rsp
  je     L274
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L245
L274:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L234
  orq    $0x0,-0x8(%rsp,%rdx,1)
L234:
  mov    %rax,%rdi
  mov    %rax,%rdx
  mov    %rsp,%rsi
  mov    %rsp,%r10
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rdx
  sub    %rdi,%rsi
L91:
  cmp    %rsi,%rsp
  je     L154
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L91
L154:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L280
  orq    $0x0,-0x8(%rsp,%rdx,1)
L280:
  mov    %rax,%rdi
  mov    %rax,%rdx
  mov    %rsp,%rsi
  mov    %rsp,%r11
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rdx
  sub    %rdi,%rsi
L119:
  cmp    %rsi,%rsp
  je     L208
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L119
L208:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L284
  orq    $0x0,-0x8(%rsp,%rdx,1)
L284:
  mov    %rsp,-0x388(%rbp)
  mov    %rax,%rdx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rdx
  sub    %rax,%rsi
L133:
  cmp    %rsi,%rsp
  je     L270
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L133
L270:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L226
  orq    $0x0,-0x8(%rsp,%rax,1)
L226:
  mov    %rcx,-0x3b8(%rbp)
  mov    %rsp,%rax
  mov    %r12,%rsi
  mov    $0x8,%edi
  mov    -0x388(%rbp),%rcx
  mov    %r11,-0x320(%rbp)
  mov    %r11,-0x3b0(%rbp)
  mov    %r8,-0x3c0(%rbp)
  mov    %rcx,-0x318(%rbp)
  mov    %r10,-0x328(%rbp)
  mov    %r10,-0x398(%rbp)
  mov    %rax,-0x390(%rbp)
  mov    %rax,-0x310(%rbp)
  call   <get_hash_table@plt>
  mov    -0x36c(%rbp),%esi
  mov    $0x4,%edx
  mov    -0x398(%rbp),%r10
  mov    %r10,%rdi
  mov    %r10,-0x3a8(%rbp)
  call   <swap_Nbyte@plt>
  mov    -0x3c0(%rbp),%r8
  mov    -0x3b8(%rbp),%rcx
  lea    -0x100(%rbp),%rdi
  lea    D17(%rip),%rsi
  mov    %rdi,-0x398(%rbp)
  mov    0x4(,%r8,4),%eax
  mov    %eax,-0x364(%rbp)
  mov    -0x3a0(%rbp),%rax
  mov    0x4(,%rax,4),%eax
  mov    %eax,-0x360(%rbp)
  mov    0x4(,%rcx,4),%eax
  mov    %eax,-0x35c(%rbp)
  call   <sprintf@plt>
  mov    -0x35c(%rbp),%eax
  mov    %rsp,%rcx
  mov    -0x3b0(%rbp),%r11
  mov    -0x3a8(%rbp),%r10
  mov    -0x398(%rbp),%rdi
  lea    (%rax,%rax,2),%eax
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
L276:
  cmp    %rcx,%rsp
  je     L20
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L276
L20:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L16
  orq    $0x0,-0x8(%rsp,%rdx,1)
L16:
  mov    %rax,%rcx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  and    $0xfffffffffffffff0,%rcx
  sub    %rax,%rsi
L227:
  cmp    %rsi,%rsp
  je     L55
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L227
L55:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L117
  orq    $0x0,-0x8(%rsp,%rax,1)
L117:
  mov    -0x388(%rbp),%rax
  mov    %r12,%rsi
  mov    %rdi,-0x338(%rbp)
  mov    $0x10,%edi
  mov    %r10,-0x320(%rbp)
  mov    %rax,-0x308(%rbp)
  mov    -0x390(%rbp),%rax
  mov    %r11,-0x318(%rbp)
  mov    %rax,-0x300(%rbp)
  lea    -0x360(%rbp),%rax
  mov    %rax,-0x2f8(%rbp)
  lea    -0x364(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  lea    -0x35c(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  lea    -0x358(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  lea    -0x350(%rbp),%rax
  mov    %rax,-0x2c8(%rbp)
  lea    -0x348(%rbp),%rax
  mov    %rdx,-0x2d8(%rbp)
  movq   $0x0,-0x348(%rbp)
  mov    %rbx,-0x340(%rbp)
  mov    %r13,-0x330(%rbp)
  mov    %r14,-0x328(%rbp)
  mov    %r15,-0x310(%rbp)
  mov    %rsp,-0x2e0(%rbp)
  mov    %rax,-0x2c0(%rbp)
  call   <get_group_coordinates@plt>
  movsd  -0x358(%rbp),%xmm0
  mov    $0x1,%eax
  lea    D73(%rip),%rdi
  call   <printf@plt>
  movsd  -0x350(%rbp),%xmm0
  mov    $0x1,%eax
  lea    D82(%rip),%rdi
  call   <printf@plt>
  movsd  -0x348(%rbp),%xmm0
  mov    $0x1,%eax
  lea    D16(%rip),%rdi
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D98
data_type: string
name: retrieve_data
arguments: label: D87
data_type: string
name: retrieve_data
arguments: label: D37
data_type: string
name: retrieve_data
arguments: label: D47
data_type: string
name: retrieve_data
arguments: label: D99
data_type: string
name: retrieve_data
arguments: label: D56
data_type: string
name: retrieve_data
arguments: label: D17
data_type: string
name: retrieve_data
arguments: label: D73
data_type: string
name: retrieve_data
arguments: label: D82
data_type: string
name: retrieve_data
arguments: label: D16
data_type: string

tool: D98: 


tool: D87: /data/rw9/Millennium/snapdir_063

tool: D37: TotNgroups:%d


tool: D47: snap_millennium

tool: D99: NFiles:%d


tool: D56: HashTableSize:%d


tool: D17: /data/rw9/Millennium/postproc_063

tool: D73: Sx:%lf


tool: D82: Sy:%lf


tool: D16: Sz:%lf


assistant: ```c
int main() {
  printf("\n\n");
  void *Par[20];
  char OutputDir[200];
  sprintf(OutputDir, "/data/rw9/Millennium/snapdir_063");
  int num = 63;
  int TotNgroups;
  Par[0] = OutputDir;
  Par[1] = &num;
  TotNgroups = get_total_number_of_groups(2, Par);
  swap_Nbyte((char *)&TotNgroups, 1, 4);
  printf("TotNgroups:%d\n", TotNgroups);
  int GroupLen[TotNgroups];
  int GroupFileNr[TotNgroups], GroupNr[TotNgroups];
  Par[2] = &GroupLen[0];
  Par[3] = &GroupFileNr[0];
  Par[4] = &GroupNr[0];
  get_group_catalogue(5, Par);
  int HashTabsize = 0;
  char SnapBase[200];
  sprintf(SnapBase, "snap_millennium");
  int NFiles = 0;
  Par[2] = SnapBase;
  Par[3] = &NFiles;
  HashTabsize = get_hash_table_size(4, Par);
  swap_Nbyte((char *)&HashTabsize, 1, 4);
  swap_Nbyte((char *)&NFiles, 1, 4);
  printf("NFiles:%d\n", NFiles);
  printf("HashTableSize:%d\n", HashTabsize);
  int Hashtable[HashTabsize], Filetable[HashTabsize], LastHashCell[HashTabsize], NInFiles[HashTabsize];
  Par[3] = &Hashtable[0];
  Par[4] = &Filetable[0];
  Par[5] = &LastHashCell[0];
  Par[6] = &NInFiles[0];
  get_hash_table(8, Par);
  swap_Nbyte((char *)&Hashtable[0], HashTabsize, 4);
  int N = 1;
  int FiNr, GrNr, Len;
  FiNr = GroupFileNr[N];
  GrNr = GroupNr[N];
  Len = GroupLen[N];
  char PostProcDir[200];
  sprintf(PostProcDir, "/data/rw9/Millennium/postproc_063");
  float vel[Len * 3], pos[Len * 3];
  double Sx, Sy, Sz = 0.0;
  Par[0] = OutputDir;
  Par[1] = PostProcDir;
  Par[2] = &num;
  Par[3] = SnapBase;
  Par[4] = &Hashtable[0];
  Par[5] = &Filetable[0];
  Par[6] = &HashTabsize;
  Par[7] = &LastHashCell[0];
  Par[8] = &NInFiles[0];
  Par[9] = &GrNr;
  Par[10] = &FiNr;
  Par[11] = &Len;
  Par[12] = &pos[0];
  Par[13] = &vel[0];
  Par[14] = &Sx;
  Par[15] = &Sy;
  Par[16] = &Sz;
  get_group_coordinates(16, Par);
  printf("Sx:%lf\n", Sx);
  printf("Sy:%lf\n", Sy);
  printf("Sz:%lf\n", Sz);
  return 0;
}
```