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

```asm
<partition_float>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r10
  mov    %rsi,%rdi
  mov    %edx,%r12d
  mov    %rcx,%r13
  test   %edx,%edx
  jle    L13
  mov    %edx,%edx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
  mov    $0x0,%r11d
L65:
  movss  0x4(%r9,%rax,8),%xmm0
  subss  (%r9,%rax,8),%xmm0
  comiss %xmm1,%xmm0
  maxss  %xmm1,%xmm0
  movaps %xmm0,%xmm1
  cmova  %eax,%r11d
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L65
L51:
  lea    (%r11,%r11,1),%eax
  cltq
  movss  (%r9,%rax,4),%xmm0
  movss  0x4(%r9,%rax,4),%xmm1
  mov    $0x1,%eax
  comiss %xmm1,%xmm0
  jae    L135
  lea    0x0(%r13,%r8,1),%rax
  mov    %rax,-0x8(%rsp)
  lea    -0x1(%rax),%r15
  addss  %xmm1,%xmm0
  mulss  D9(%rip),%xmm0
  cmp    %r15,%r13
  ja     L54
  mov    %r15,%rdx
  mov    %r13,%rax
  movslq %r12d,%r9
  movslq %r11d,%rbx
  jmp    L83
L13:
  mov    $0x0,%r11d
  jmp    L51
L118:
  lea    (%rdi,%rdx,8),%rbp
  mov    0x0(%rbp),%r14
  mov    %r9,%rcx
  imul   %r14,%rcx
  add    %rbx,%rcx
  movss  (%r10,%rcx,4),%xmm1
  comiss %xmm0,%xmm1
  jb     L74
  test   %rdx,%rdx
  je     L217
  sub    $0x1,%rdx
  jmp    L57
L74:
  mov    %r14,(%r8)
  mov    %rsi,0x0(%rbp)
  add    $0x1,%rax
  sub    $0x1,%rdx
L57:
  cmp    %rdx,%rax
  ja     L217
L83:
  lea    (%rdi,%rax,8),%r8
  mov    (%r8),%rsi
  mov    %r9,%rcx
  imul   %rsi,%rcx
  add    %rbx,%rcx
  comiss (%r10,%rcx,4),%xmm0
  jbe    L118
  add    $0x1,%rax
  jmp    L57
L217:
  cmp    %rax,%r13
  je     L54
  cmp    %rax,-0x8(%rsp)
  je     L98
L150:
  mov    0x38(%rsp),%rdx
  mov    %r11d,(%rdx)
  mov    0x40(%rsp),%rdx
  movss  %xmm0,(%rdx)
  sub    %r13,%rax
  mov    0x48(%rsp),%rdx
  mov    %rax,(%rdx)
  mov    $0x0,%eax
L135:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L54:
  movslq %r12d,%r12
  lea    (%rdi,%r13,8),%r9
  mov    (%r9),%rbx
  movslq %r11d,%r8
  mov    %r12,%rax
  imul   %rbx,%rax
  add    %r8,%rax
  movss  (%r10,%rax,4),%xmm0
  lea    0x1(%r13),%rax
  cmp    %rax,%r15
  jb     L58
  mov    %rax,%rdx
  mov    %r13,%rsi
L151:
  mov    %r12,%rcx
  imul   (%rdi,%rdx,8),%rcx
  add    %r8,%rcx
  movss  (%r10,%rcx,4),%xmm1
  comiss %xmm1,%xmm0
  cmova  %rdx,%rsi
  minss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  add    $0x1,%rdx
  cmp    %rdx,%r15
  jae    L151
L4:
  lea    (%rdi,%rsi,8),%rdx
  mov    (%rdx),%rcx
  mov    %rbx,(%rdx)
  mov    %rcx,(%r9)
  jmp    L150
L58:
  mov    %r13,%rsi
  jmp    L4
L98:
  lea    (%rdi,%r15,8),%r8
  mov    (%r8),%rbp
  mov    %r9,%rdx
  imul   %rbp,%rdx
  add    %rbx,%rdx
  movss  (%r10,%rdx,4),%xmm0
  cmp    %r15,%r13
  jae    L214
  sub    $0x1,%rax
  mov    %r13,%rdx
  mov    %r15,%rsi
L7:
  mov    %r9,%rcx
  imul   (%rdi,%rdx,8),%rcx
  add    %rbx,%rcx
  movss  (%r10,%rcx,4),%xmm1
  comiss %xmm0,%xmm1
  cmova  %rdx,%rsi
  maxss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L7
L170:
  lea    (%rdi,%rsi,8),%rax
  mov    (%rax),%rdx
  mov    %rbp,(%rax)
  mov    %rdx,(%r8)
  mov    %r15,%rax
  jmp    L150
L214:
  mov    %r15,%rsi
  jmp    L170
```

tool_calls: name: disassemble_data
arguments: data_label: D9
type_infered: byte[4]

tool: {"D9": [0x00,0x00,0x00,0x3f]}

assistant: ```c
int partition_float(float *pa, uint32_t *pidx, int8_t no_dims, uint32_t start_idx, uint32_t n, float *bbox, int8_t *cut_dim, float *cut_val, uint32_t *n_lo) {
  int8_t dim = 0;
  uint32_t p, q;
  float size = 0, min_val, max_val, split, side_len, cur_val;
  uint32_t end_idx = start_idx + n - 1;
  for (int8_t i = 0; i < no_dims; i++) {
    side_len = bbox[2 * i + 1] - bbox[2 * i];
    if (side_len > size) {
      dim = i;
      size = side_len;
    }
  }
  min_val = bbox[2 * dim];
  max_val = bbox[2 * dim + 1];
  if (min_val >= max_val)
    return 1;
  split = (min_val + max_val) / 2;
  p = start_idx;
  q = end_idx;
  while (p <= q) {
    if ((pa[no_dims * pidx[p] + dim]) < split) {
      p++;
    } else if ((pa[no_dims * pidx[q] + dim]) >= split) {
      if (q > 0) {
        q--;
      } else {
        break;
      }
    } else {
      {
        uint32_t tmp = pidx[p];
        pidx[p] = pidx[q];
        pidx[q] = tmp;
      };
      p++;
      q--;
    }
  }
  if (p == start_idx) {
    uint32_t j = start_idx;
    split = (pa[no_dims * pidx[j] + dim]);
    for (uint32_t i = start_idx + 1; i <= end_idx; i++) {
      cur_val = (pa[no_dims * pidx[i] + dim]);
      if (cur_val < split) {
        j = i;
        split = cur_val;
      }
    }
    {
      uint32_t tmp = pidx[j];
      pidx[j] = pidx[start_idx];
      pidx[start_idx] = tmp;
    };
    p = start_idx + 1;
  } else if (p == end_idx + 1) {
    uint32_t j = end_idx;
    split = (pa[no_dims * pidx[j] + dim]);
    for (uint32_t i = start_idx; i < end_idx; i++) {
      cur_val = (pa[no_dims * pidx[i] + dim]);
      if (cur_val > split) {
        j = i;
        split = cur_val;
      }
    }
    {
      uint32_t tmp = pidx[j];
      pidx[j] = pidx[end_idx];
      pidx[end_idx] = tmp;
    };
    p = end_idx;
  }
  *cut_dim = dim;
  *cut_val = split;
  *n_lo = p - start_idx;
  return 0;
}
```