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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x1,-0x4c(%rbp)
  movl   $0xf,-0x48(%rbp)
  movl   $0x1,-0x44(%rbp)
  movl   $0x2,-0x40(%rbp)
  movl   $0x2710,-0x3c(%rbp)
  movl   $0xa,-0x38(%rbp)
  movsd  D36(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movl   $0x1f4,-0x34(%rbp)
  mov    -0x40(%rbp),%ecx
  mov    -0x44(%rbp),%edx
  mov    -0x48(%rbp),%esi
  mov    -0x4c(%rbp),%eax
  mov    %eax,%edi
  call   <initialiseParameters@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  lea    D57(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <addNodeFunction@plt>
  mov    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  movq   %rdx,%xmm0
  mov    %rax,%rdi
  call   <setTargetFitness@plt>
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <setUpdateFrequency@plt>
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <initialiseDataSetFromFile@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <repeatCGP@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <getAverageFitness@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x20(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <getChromosome@plt>
  mov    %rax,-0x18(%rbp)
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x18(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <printChromosome@plt>
  mov    -0x20(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <saveResults@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <freeDataSet@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <freeChromosome@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <freeResults@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <freeParameters@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D36
type_infered: f64
name: extract_symbolic_data
arguments: label: D57
type_infered: string
name: extract_symbolic_data
arguments: label: D39
type_infered: string
name: extract_symbolic_data
arguments: label: D21
type_infered: string
name: extract_symbolic_data
arguments: label: D58
type_infered: string
name: extract_symbolic_data
arguments: label: D32
type_infered: string

tool: D36: 0.1

tool: D57: add,sub,mul,div,sin

tool: D39: ./dataSets/symbolic.data

tool: D21: The average chromosome fitness is: %f


tool: D58: The best chromosome found on run 4:

tool: D32: results.csv

assistant: ```c
int main(void) {
  struct parameters *params = NULL;
  struct dataSet *trainingData = NULL;
  struct results *rels = NULL;
  struct chromosome *chromo = NULL;
  int numInputs = 1;
  int numNodes = 15;
  int numOutputs = 1;
  int nodeArity = 2;
  int numGens = 10000;
  int numRuns = 10;
  double targetFitness = 0.1;
  int updateFrequency = 500;
  double averageFitness;
  params = initialiseParameters(numInputs, numNodes, numOutputs, nodeArity);
  addNodeFunction(params, "add,sub,mul,div,sin");
  setTargetFitness(params, targetFitness);
  setUpdateFrequency(params, updateFrequency);
  trainingData = initialiseDataSetFromFile("./dataSets/symbolic.data");
  rels = repeatCGP(params, trainingData, numGens, numRuns);
  averageFitness = getAverageFitness(rels);
  printf("The average chromosome fitness is: %f\n", averageFitness);
  chromo = getChromosome(rels, 4);
  printf("The best chromosome found on run 4:\n");
  printChromosome(chromo, 0);
  saveResults(rels, "results.csv");
  freeDataSet(trainingData);
  freeChromosome(chromo);
  freeResults(rels);
  freeParameters(params);
  return 0;
}
```