user: 请从给定的汇编指令推导出C源代码:

```asm
<NumberIO_StrToOctInt>:
  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
L146:
  cmp    %rdx,%rsp
  je     L82
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L146
L82:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L53
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L53:
  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    L1
L78:
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L27
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L22
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x37,%al
  jle    L33
L22:
  addl   $0x1,-0x34(%rbp)
  jmp    L1
L33:
  movl   $0x0,-0x30(%rbp)
  jmp    L1
L27:
  movl   $0x0,-0x30(%rbp)
L1:
  cmpl   $0x0,-0x30(%rbp)
  jne    L78
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L158
  movl   $0x1,-0x30(%rbp)
L131:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x3,%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    L0
  addl   $0x1,-0x34(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L137
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x37,%al
  jle    L120
L137:
  movl   $0x0,-0x30(%rbp)
  jmp    L120
L0:
  movl   $0x0,-0x30(%rbp)
L120:
  cmpl   $0x0,-0x30(%rbp)
  jne    L131
L158:
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L163
  call   <__stack_chk_fail@plt>
L163:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void NumberIO_StrToOctInt(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] > '7')) {
        i += 1;
      } else {
        ok = (1 == 0);
      }
    } else {
      ok = (1 == 0);
    }
  }
  (*x) = 0;
  if (i < higha) {
    ok = (1 == 1);
    do {
      (*x) = (8 * (*x)) + ((int)(((unsigned int)(a[i])) - ((unsigned int)('0'))));
      if (i < higha) {
        i += 1;
        if ((a[i] < '0') || (a[i] > '7')) {
          ok = (1 == 0);
        }
      } else {
        ok = (1 == 0);
      }
    } while (!(!ok));
  }
}
```