user: What is the c source code of the assembly code below?

```asm
<flip_data>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    (%rdx),%esi
  mov    %esi,-0x18(%rsp)
  test   %esi,%esi
  jle    L112
  mov    0x4(%rdx),%r14d
  mov    %r14d,-0x4c(%rsp)
  test   %r14d,%r14d
  jle    L112
  movslq 0x8(%rdx),%rax
  mov    %rdi,%r11
  movl   $0x0,-0x30(%rsp)
  lea    -0x1(%rax),%edi
  mov    %rax,%r8
  mov    %eax,%r13d
  mov    %rax,-0x10(%rsp)
  mov    %r8d,%ebp
  mov    %edi,-0x40(%rsp)
  imul   %r8d,%r14d
  neg    %r13
  lea    0x0(,%rax,4),%r10
  shr    $0x2,%eax
  and    $0xfffffffc,%ebp
  shl    $0x2,%r13
  sub    $0x1,%eax
  lea    0x1(%rbp),%r12d
  lea    0x2(%rbp),%esi
  shl    $0x4,%rax
  mov    %esi,-0x38(%rsp)
  mov    %rax,%rcx
  mov    %edi,%eax
  sub    %ebp,%edi
  mov    %r14d,-0x14(%rsp)
  mov    %edi,-0x3c(%rsp)
  mov    %eax,%edi
  lea    0x10(%r13),%r14
  sub    %r12d,%edi
  mov    %edi,-0x34(%rsp)
  mov    %eax,%edi
  cltq
  sub    %esi,%edi
  mov    %edi,-0x2c(%rsp)
  mov    %rax,%rdi
  shl    $0x2,%rax
  sub    %r10,%rax
  mov    %edi,%edx
  mov    %rax,%rsi
  mov    $0xfffffffffffffff0,%rax
  sub    %rcx,%rax
  mov    %rax,-0x48(%rsp)
  lea    0x10(%rsi),%rax
  mov    %rax,-0x28(%rsp)
  lea    0x4(,%rdx,4),%rax
  mov    %rax,-0x20(%rsp)
  nopl   0x0(%rax,%rax,1)
L35:
  mov    -0x14(%rsp),%esi
  imul   -0x30(%rsp),%esi
  test   %r8d,%r8d
  jle    L124
  movslq %esi,%rax
  xor    %r9d,%r9d
  lea    (%rbx,%rax,4),%rdi
  add    -0x10(%rsp),%rax
  lea    -0x10(%r11,%rax,4),%rcx
  cs nopw 0x0(%rax,%rax,1)
L12:
  mov    %rdi,%rdx
  lea    (%r14,%rcx,1),%rax
  sub    %r13,%rdx
  cmp    %rax,%rdx
  lea    0x10(%rcx),%rax
  setbe  %dl
  cmp    %rax,%rdi
  setae  %al
  or     %dl,%al
  je     L99
  mov    -0x48(%rsp),%rax
  cmpl   $0x2,-0x40(%rsp)
  mov    %rdi,%rdx
  lea    (%rax,%rcx,1),%r15
  mov    %rcx,%rax
  jbe    L99
  nopl   0x0(%rax)
L76:
  movups (%rax),%xmm0
  sub    $0x10,%rax
  add    $0x10,%rdx
  shufps $0x1b,%xmm0,%xmm0
  movups %xmm0,-0x10(%rdx)
  cmp    %r15,%rax
  jne    L76
  cmp    %ebp,%r8d
  je     L79
  mov    -0x3c(%rsp),%eax
  add    %esi,%eax
  cltq
  movss  (%r11,%rax,4),%xmm0
  lea    (%rsi,%rbp,1),%eax
  cltq
  movss  %xmm0,(%rbx,%rax,4)
  cmp    %r12d,%r8d
  jle    L79
  mov    -0x34(%rsp),%eax
  mov    -0x38(%rsp),%edx
  add    %esi,%eax
  cltq
  movss  (%r11,%rax,4),%xmm0
  lea    (%rsi,%r12,1),%eax
  cltq
  movss  %xmm0,(%rbx,%rax,4)
  cmp    %edx,%r8d
  jle    L79
  mov    -0x2c(%rsp),%eax
  add    %esi,%eax
  cltq
  movss  (%r11,%rax,4),%xmm0
  lea    (%rsi,%rdx,1),%eax
  cltq
  movss  %xmm0,(%rbx,%rax,4)
L79:
  add    $0x1,%r9d
  add    %r10,%rdi
  add    %r8d,%esi
  add    %r10,%rcx
  cmp    -0x4c(%rsp),%r9d
  jne    L12
L124:
  addl   $0x1,-0x30(%rsp)
  mov    -0x30(%rsp),%eax
  cmp    -0x18(%rsp),%eax
  jne    L35
L112:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L99:
  mov    -0x28(%rsp),%rax
  lea    (%rax,%rcx,1),%rdx
  mov    -0x20(%rsp),%rax
  lea    (%rax,%rdi,1),%r15
  mov    %rdi,%rax
  nopl   (%rax)
L93:
  movss  (%rdx),%xmm0
  add    $0x4,%rax
  sub    $0x4,%rdx
  movss  %xmm0,-0x4(%rax)
  cmp    %r15,%rax
  jne    L93
  jmp    L79
```

assistant: ```c
int flip_data(float *data, float *result, int *sizes) {
  int i, j, k, index1, index2;
  for (i = 0; i < sizes[0]; i++) {
    for (j = 0; j < sizes[1]; j++) {
      for (k = 0; k < sizes[2]; k++) {
        index1 = i * sizes[2] * sizes[1] + j * sizes[2] + k;
        index2 = i * sizes[2] * sizes[1] + j * sizes[2] + (sizes[2] - 1 - k);
        result[index1] = data[index2];
      }
    }
  }
  return 0;
}
```