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

```asm
<permut_allelesizes_among_2pop_alleles>:
  endbr64
  push   %r15
  mov    %rdx,%rax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xfd8,%rsp
  mov    %edi,0xc(%rsp)
  mov    0x1010(%rsp),%r14
  mov    %r9,0x18(%rsp)
  mov    0x1018(%rsp),%r12
  mov    %fs:0x28,%rdx
  mov    %rdx,0xfc8(%rsp)
  xor    %edx,%edx
  test   %edi,%edi
  jle    L6
  movslq %ecx,%rcx
  movslq %r8d,%r8
  mov    $0x1,%ebp
  mov    %rsi,%rbx
  lea    (%rax,%rcx,8),%r13
  lea    (%rax,%r8,8),%r15
  add    $0x4,%rbx
  add    $0x8,%r14
  lea    0x20(%rsp),%rax
  pxor   %xmm0,%xmm0
  mov    %rax,0x10(%rsp)
  mov    %r13,%rax
  mov    %rbp,%r13
  mov    %rax,%rbp
  nopl   0x0(%rax)
L118:
  mov    (%rbx),%eax
  test   %eax,%eax
  jle    L90
  mov    0x18(%rsp),%rax
  mov    (%r14),%rsi
  lea    0x0(,%r13,8),%r11
  mov    (%rax,%r13,8),%rcx
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L75:
  mov    (%rcx,%rax,4),%edx
  mov    %edx,(%rsi,%rax,4)
  mov    (%rbx),%edx
  add    $0x1,%rax
  cmp    %eax,%edx
  jge    L75
  test   %edx,%edx
  jle    L90
  mov    0x0(%rbp),%rax
  lea    0x1(%rdx),%edi
  xor    %edx,%edx
  shl    $0x2,%rdi
  mov    (%rax,%r11,1),%r10
  mov    $0x4,%eax
  xchg   %ax,%ax
L171:
  ucomiss (%r10,%rax,1),%xmm0
  jp     L142
  jne    L142
  mov    (%r15),%rsi
  mov    (%rsi,%r11,1),%rsi
  ucomiss (%rsi,%rax,1),%xmm0
  jp     L142
  je     L159
L142:
  mov    (%rcx,%rax,1),%r8d
  add    $0x1,%edx
  movslq %edx,%rsi
  mov    %r8d,0x20(%rsp,%rsi,4)
L159:
  add    $0x4,%rax
  cmp    %rax,%rdi
  jne    L171
L11:
  mov    0x10(%rsp),%rdi
  mov    %r12,%rcx
  mov    $0x1,%esi
  call   <resample_shuffle@plt>
  mov    (%rbx),%edx
  pxor   %xmm0,%xmm0
  test   %edx,%edx
  jle    L173
  mov    0x0(%rbp),%rax
  lea    0x0(,%r13,8),%r11
  xor    %edx,%edx
  mov    (%rax,%r13,8),%r10
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L169:
  ucomiss (%r10,%rax,4),%xmm0
  lea    0x0(,%rax,4),%rcx
  jp     L154
  jne    L154
  mov    (%r15),%rsi
  mov    (%rsi,%r11,1),%rsi
  ucomiss (%rsi,%rcx,1),%xmm0
  jp     L154
  je     L127
L154:
  add    $0x1,%edx
  movslq %edx,%rsi
  mov    0x20(%rsp,%rsi,4),%edi
  mov    (%r14),%rsi
  mov    %edi,(%rsi,%rcx,1)
L127:
  add    $0x1,%rax
  cmp    %eax,(%rbx)
  jge    L169
L173:
  add    $0x1,%r13
  add    $0x4,%rbx
  add    $0x8,%r14
  cmp    %r13d,0xc(%rsp)
  jge    L118
L6:
  mov    0xfc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0xfd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L90:
  xor    %edx,%edx
  jmp    L11
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void permut_allelesizes_among_2pop_alleles(int m, int *Nallelel, float ***Ppla, int pop1, int pop2, int **allelesizela, int **allelesizelamix, long *seed) {
  int a, l, twopopa, size2popa[1000];
  for (l = 1; l <= m; l++) {
    for (a = 1; a <= Nallelel[l]; a++)
      allelesizelamix[l][a] = allelesizela[l][a];
    twopopa = 0;
    for (a = 1; a <= Nallelel[l]; a++)
      if (Ppla[pop1][l][a] || Ppla[pop2][l][a]) {
        twopopa++;
        size2popa[twopopa] = allelesizela[l][a];
      }
    resample_shuffle(size2popa, 1, twopopa, seed);
    twopopa = 0;
    for (a = 1; a <= Nallelel[l]; a++)
      if (Ppla[pop1][l][a] || Ppla[pop2][l][a]) {
        twopopa++;
        allelesizelamix[l][a] = size2popa[twopopa];
      }
  }
}
```