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

```asm
<simp1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9,-0x48(%rbp)
  cmpl   $0x0,-0x30(%rbp)
  jg     L25
  mov    0x10(%rbp),%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  jmp    L62
L25:
  mov    -0x38(%rbp),%rax
  mov    0x4(%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    0x10(%rbp),%rax
  movss  %xmm0,(%rax)
  movl   $0x2,-0x18(%rbp)
  jmp    L60
L45:
  cmpl   $0x0,-0x3c(%rbp)
  jne    L0
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    0x10(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  jmp    L14
L0:
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%ebx
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movaps %xmm0,%xmm1
  movd   %ebx,%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
L14:
  movss  -0x14(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L67
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    0x10(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
L67:
  addl   $0x1,-0x18(%rbp)
L60:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L45
L62:
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void simp1(float **a, int mm, int ll[], int nll, int iabf, int *kp, float *bmax) {
  int k;
  float test;
  if (nll <= 0)
    *bmax = 0.0;
  else {
    *kp = ll[1];
    *bmax = a[mm + 1][*kp + 1];
    for (k = 2; k <= nll; k++) {
      if (iabf == 0)
        test = a[mm + 1][ll[k] + 1] - (*bmax);
      else
        test = fabs(a[mm + 1][ll[k] + 1]) - fabs(*bmax);
      if (test > 0.0) {
        *bmax = a[mm + 1][ll[k] + 1];
        *kp = ll[k];
      }
    }
  }
}
```