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

```asm
<NumberIO_StrToBinInt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %eax,%edx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  mov    %eax,%edx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  mov    %eax,%edx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L119:
  cmp    %rdx,%rsp
  je     L67
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L119
L67:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L0
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L0:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x4c(%rbp),%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x4c(%rbp),%esi
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <StrLib_StrRemoveWhitePrefix@plt>
  mov    -0x4c(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <StrLib_StrLen@plt>
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x1,-0x30(%rbp)
  jmp    L137
L151:
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L156
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L142
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x31,%al
  jle    L4
L142:
  addl   $0x1,-0x34(%rbp)
  jmp    L137
L4:
  movl   $0x0,-0x30(%rbp)
  jmp    L137
L156:
  movl   $0x0,-0x30(%rbp)
L137:
  cmpl   $0x0,-0x30(%rbp)
  jne    L151
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L152
  movl   $0x1,-0x30(%rbp)
L45:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L13
  addl   $0x1,-0x34(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L148
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x31,%al
  jle    L7
L148:
  movl   $0x0,-0x30(%rbp)
  jmp    L7
L13:
  movl   $0x0,-0x30(%rbp)
L7:
  cmpl   $0x0,-0x30(%rbp)
  jne    L45
L152:
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void NumberIO_StrToBinInt(char *a_, unsigned int _a_high, int *x) {
  unsigned int i;
  unsigned int ok;
  unsigned int higha;
  char a[_a_high + 1];
  memcpy(a, a_, _a_high + 1);
  StrLib_StrRemoveWhitePrefix((char *)a, _a_high, (char *)a, _a_high);
  higha = StrLib_StrLen((char *)a, _a_high);
  i = 0;
  ok = (1 == 1);
  while (ok) {
    if (i < higha) {
      if ((a[i] < '0') || (a[i] > '1')) {
        i += 1;
      } else {
        ok = (1 == 0);
      }
    } else {
      ok = (1 == 0);
    }
  }
  (*x) = 0;
  if (i < higha) {
    ok = (1 == 1);
    do {
      (*x) = (2 * (*x)) + ((int)(((unsigned int)(a[i])) - ((unsigned int)('0'))));
      if (i < higha) {
        i += 1;
        if ((a[i] < '0') || (a[i] > '1')) {
          ok = (1 == 0);
        }
      } else {
        ok = (1 == 0);
      }
    } while (!(!ok));
  }
}
```