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

```asm
<cruzamiento>:
  endbr64
  push   %r14
  movd   %xmm0,%r14d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  lea    D4(%rip),%rdi
  lea    0x960(%rbx),%rbp
  sub    $0x8,%rsp
  call   <printf@plt>
  jmp    L82
  nopl   0x0(%rax,%rax,1)
L27:
  add    $0xa0,%rbx
  cmp    %rbp,%rbx
  je     L95
L82:
  xor    %eax,%eax
  call   <drand48@plt>
  pxor   %xmm0,%xmm0
  movd   %r14d,%xmm1
  cvtsi2ss %eax,%xmm0
  comiss %xmm0,%xmm1
  jbe    L27
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%r12
  cltd
  imul   $0x66666667,%r12,%r12
  sar    $0x23,%r12
  sub    %edx,%r12d
  lea    (%r12,%r12,4),%edx
  shl    $0x2,%edx
  sub    %edx,%eax
  mov    %eax,%r12d
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x23,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  shl    $0x2,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  cmp    %eax,%r12d
  jg     L36
  je     L15
  mov    %r12d,%edx
  mov    %eax,%r12d
L36:
  mov    %r12d,%esi
  lea    0x50(%rbx),%rcx
  xor    %eax,%eax
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L15
  nopl   0x0(%rax)
L90:
  cmp    %eax,%edx
  jg     L102
  cmp    %eax,%r12d
  jl     L102
  mov    (%rbx,%rax,4),%esi
  mov    (%rcx,%rax,4),%edi
  mov    %edi,(%rbx,%rax,4)
  mov    %esi,(%rcx,%rax,4)
L102:
  add    $0x1,%rax
  cmp    $0x14,%rax
  jne    L90
  add    $0xa0,%rbx
  cmp    %rbp,%rbx
  jne    L82
L95:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L15:
  lea    0x50(%rbx),%rdx
  xor    %eax,%eax
  jmp    L100
L32:
  mov    (%rbx,%rax,4),%ecx
  mov    (%rdx,%rax,4),%esi
  mov    %esi,(%rbx,%rax,4)
  mov    %ecx,(%rdx,%rax,4)
L26:
  add    $0x1,%rax
L100:
  cmp    $0x2,%rax
  jbe    L32
  cmp    $0x13,%rax
  jne    L26
  mov    0x4c(%rbx),%eax
  mov    0x9c(%rbx),%edx
  mov    %eax,0x9c(%rbx)
  mov    %edx,0x4c(%rbx)
  jmp    L27
```

tool_calls: name: parse_data
arguments: label: D4
type_infered: string

tool: D4: 
Probabilidad de cruzamiento: %f


assistant: ```c
void cruzamiento(float pc, int selec[][20]) {
  int i, ren, col, temp, lim1, lim2, lim3, lim4;
  float numAl;
  printf("\nProbabilidad de cruzamiento: %f\n", pc);
  for (ren = 0; ren < 30; ren = ren + 2) {
    numAl = drand48() * 1;
    if (numAl < pc) {
      lim1 = rand() % 20;
      lim2 = rand() % 20;
      if (lim2 < lim1) {
        temp = lim2;
        lim2 = lim1;
        lim1 = temp;
      }
      if ((lim2 - lim1) == 0 || (lim2 - lim1) == 1) {
        lim1 = 0;
        lim2 = 2;
        lim3 = 20 - 1;
        lim4 = 20;
        for (col = 0; col < 20; col++) {
          if (col >= lim1 && col <= lim2) {
            temp = selec[ren][col];
            selec[ren][col] = selec[ren + 1][col];
            selec[ren + 1][col] = temp;
          }
        }
        for (col = 0; col < 20; col++) {
          if (col >= lim3 && col <= lim4) {
            temp = selec[ren][col];
            selec[ren][col] = selec[ren + 1][col];
            selec[ren + 1][col] = temp;
          }
        }
      } else {
        for (col = 0; col < 20; col++) {
          if (col >= lim1 && col <= lim2) {
            temp = selec[ren][col];
            selec[ren][col] = selec[ren + 1][col];
            selec[ren + 1][col] = temp;
          }
        }
      }
    }
  }
}
```