user: What would the C source look like for the assembly code provided here:

```asm
<calcular_fitness>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x1,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x1,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x2,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x1,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x2,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x2,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    $0x3,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <absolute@plt>
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L17
  mov    $0x3b9aca00,%eax
  jmp    L1
L17:
  mov    $0xf4240,%eax
  sub    -0x4(%rbp),%eax
L1:
  leave
  ret
```

assistant: ```c
int calcular_fitness(char *results, int num_samples) {
  int soma_distancias = 0;
  soma_distancias += results[0];
  soma_distancias += absolute(results[1 * num_samples] - 1);
  soma_distancias += absolute(results[2 * num_samples] - 1);
  soma_distancias += absolute(results[3 * num_samples] - 2);
  soma_distancias += absolute(results[4 * num_samples] - 1);
  soma_distancias += absolute(results[5 * num_samples] - 2);
  soma_distancias += absolute(results[6 * num_samples] - 2);
  soma_distancias += absolute(results[7 * num_samples] - 3);
  if (soma_distancias == 0) {
    return 1000000000;
  }
  return 1000000 - soma_distancias;
}
```