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

```asm
<is_binary>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0xffffffff,-0xc(%rbp)
  movb   $0x0,-0x13(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x12(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L129
L91:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  cmpb   $0x28,-0x11(%rbp)
  jne    L90
  addl   $0x1,-0x4(%rbp)
  jmp    L20
L90:
  cmpb   $0x29,-0x11(%rbp)
  jne    L20
  subl   $0x1,-0x4(%rbp)
L20:
  cmpl   $0x0,-0x4(%rbp)
  jg     L241
  cmpb   $0x2b,-0x11(%rbp)
  jne    L352
  cmpb   $0x2a,-0x13(%rbp)
  je     L43
  cmpb   $0x2f,-0x13(%rbp)
  je     L43
  cmpb   $0x2b,-0x13(%rbp)
  je     L43
  cmpb   $0x2d,-0x13(%rbp)
  je     L43
  cmpb   $0x5e,-0x13(%rbp)
  je     L43
  cmpb   $0x0,-0x13(%rbp)
  je     L43
  movl   $0x1,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L43
L352:
  cmpb   $0x2d,-0x11(%rbp)
  jne    L263
  cmpb   $0x2a,-0x13(%rbp)
  je     L43
  cmpb   $0x2f,-0x13(%rbp)
  je     L43
  cmpb   $0x2b,-0x13(%rbp)
  je     L43
  cmpb   $0x2d,-0x13(%rbp)
  je     L43
  cmpb   $0x5e,-0x13(%rbp)
  je     L43
  cmpb   $0x0,-0x13(%rbp)
  je     L43
  movl   $0x2,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L43
L263:
  cmpb   $0x2a,-0x11(%rbp)
  jne    L78
  cmpl   $0x0,-0x10(%rbp)
  je     L330
  cmpl   $0x3,-0x10(%rbp)
  je     L330
  cmpl   $0x4,-0x10(%rbp)
  je     L330
  cmpl   $0x5,-0x10(%rbp)
  jne    L43
L330:
  movl   $0x3,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L43
L78:
  cmpb   $0x2f,-0x11(%rbp)
  jne    L307
  cmpl   $0x0,-0x10(%rbp)
  je     L54
  cmpl   $0x3,-0x10(%rbp)
  je     L54
  cmpl   $0x4,-0x10(%rbp)
  je     L54
  cmpl   $0x5,-0x10(%rbp)
  jne    L43
L54:
  movl   $0x4,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L43
L307:
  cmpb   $0x5e,-0x11(%rbp)
  jne    L43
  cmpl   $0x0,-0x10(%rbp)
  jne    L43
  cmpb   $0x2d,-0x12(%rbp)
  je     L43
  cmpb   $0x2b,-0x12(%rbp)
  je     L43
  movl   $0x5,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
L43:
  movzbl -0x11(%rbp),%eax
  mov    %al,-0x13(%rbp)
  jmp    L315
L241:
  nop
L315:
  addl   $0x1,-0x8(%rbp)
L129:
  mov    -0x8(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L91
  mov    -0x38(%rbp),%rax
  mov    -0xc(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%eax
  pop    %rbp
  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;
}
```