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

```asm
<is_binary>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  movzbl (%rdi),%r11d
  test   %esi,%esi
  jle    L208
  mov    %rdi,%r8
  mov    %esi,%edi
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    $0x0,%ecx
  mov    $0xffffffff,%ebp
  mov    $0x0,%r10d
  movabs $0xac0000000001,%r13
  sub    $0x2b,%r11d
  and    $0xfffffffd,%r11d
  mov    $0x5,%r12d
  jmp    L176
L120:
  add    $0x1,%esi
  jmp    L92
L141:
  cmp    $0x2a,%al
  je     L34
  cmp    $0x2b,%al
  jne    L42
  cmp    $0x5e,%cl
  setne  %r9b
  mov    $0x1,%r15d
  cmp    $0x2f,%cl
  ja     L275
  mov    %r13,%r15
  shr    %cl,%r15
  xor    $0x1,%r15
  and    $0x1,%r15d
L275:
  test   %r9b,%r9b
  je     L161
  test   %r15b,%r15b
  je     L161
  mov    %eax,%ecx
  mov    %r14d,%ebp
  mov    $0x1,%r10d
  jmp    L101
L42:
  mov    %eax,%ecx
  jmp    L101
L247:
  mov    %eax,%ecx
  jmp    L101
L284:
  cmp    $0x5e,%cl
  setne  %r9b
  mov    $0x1,%r15d
  cmp    $0x2f,%cl
  ja     L186
  mov    %r13,%r15
  shr    %cl,%r15
  xor    $0x1,%r15
  and    $0x1,%r15d
L186:
  test   %r9b,%r9b
  je     L21
  test   %r15b,%r15b
  je     L21
  mov    %eax,%ecx
  mov    %r14d,%ebp
  mov    $0x2,%r10d
  jmp    L101
L34:
  lea    -0x3(%r10),%ecx
  cmp    $0x2,%ecx
  jbe    L13
  mov    %eax,%ecx
  test   %r10d,%r10d
  jne    L101
L13:
  mov    %eax,%ecx
  mov    %r14d,%ebp
  mov    $0x3,%r10d
L101:
  add    $0x1,%rdx
  cmp    %rdx,%rdi
  je     L90
L176:
  mov    %edx,%r14d
  movzbl (%r8,%rdx,1),%eax
  cmp    $0x28,%al
  je     L120
  cmp    $0x29,%al
  sete   %r9b
  movzbl %r9b,%r9d
  sub    %r9d,%esi
L92:
  test   %esi,%esi
  jg     L101
  cmp    $0x2d,%al
  je     L284
  jle    L141
  cmp    $0x2f,%al
  je     L150
  cmp    $0x5e,%al
  jne    L247
  mov    %eax,%ecx
  test   %r10d,%r10d
  jne    L101
  test   %r11b,%r11b
  cmovne %r14d,%ebp
  cmovne %r12d,%r10d
  jmp    L101
L150:
  lea    -0x3(%r10),%ecx
  cmp    $0x2,%ecx
  jbe    L157
  mov    %eax,%ecx
  test   %r10d,%r10d
  jne    L101
L157:
  mov    %eax,%ecx
  mov    %r14d,%ebp
  mov    $0x4,%r10d
  jmp    L101
L161:
  mov    %eax,%ecx
  jmp    L101
L21:
  mov    %eax,%ecx
  jmp    L101
L208:
  mov    $0xffffffff,%ebp
  mov    $0x0,%r10d
L90:
  mov    %ebp,(%rbx)
  mov    %r10d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int is_binary(const char *string, int length, int *bindex) {
  int op = 0, op_index = -1;
  char c, p = '\0';
  int i, pcount = 0;
  char str0 = string[0];
  for (i = 0; i < length; i++) {
    c = string[i];
    if (c == '(') {
      pcount++;
    } else if (c == ')') {
      pcount--;
    }
    if (pcount > 0)
      continue;
    if (c == '+') {
      if (p != '*' && p != '/' && p != '+' && p != '-' && p != '^' && p != '\0') {
        op = 1;
        op_index = i;
      }
    } else if (c == '-') {
      if (p != '*' && p != '/' && p != '+' && p != '-' && p != '^' && p != '\0') {
        op = 2;
        op_index = i;
      }
    } else if (c == '*') {
      if (op == 0 || op == 3 || op == 4 || op == 5) {
        op = 3;
        op_index = i;
      }
    } else if (c == '/') {
      if (op == 0 || op == 3 || op == 4 || op == 5) {
        op = 4;
        op_index = i;
      }
    } else if (c == '^') {
      if (op == 0 && (str0 != '-' && str0 != '+')) {
        op = 5;
        op_index = i;
      }
    }
    p = c;
  }
  *bindex = op_index;
  return op;
}
```