user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<convert_to_decimal>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r15
  mov    %esi,%r14d
  call   <strlen@plt>
  sub    $0x1,%eax
  js     L109
  mov    %eax,%ebp
  mov    $0x1,%ebx
  mov    $0x0,%r12d
  jmp    L16
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  lea    (%rax,%rax,4),%edx
  lea    (%rax,%rdx,2),%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  lea    (%rax,%rax,2),%eax
  shl    $0x2,%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  lea    (%rax,%rax,2),%edx
  lea    (%rax,%rdx,4),%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  imul   $0xe,%eax,%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %al,%edx
  mov    %edx,%eax
  shl    $0x4,%eax
  sub    %edx,%eax
  cltq
  add    %rax,%r12
  mov    %ebx,0xc(%rsp)
  jmp    L87
L73:
  mov    %ebx,0xc(%rsp)
  mov    $0x10,%edi
  call   <powerfunc@plt>
  movsbl %r13b,%r13d
  sub    $0x30,%r13d
  movsbl %al,%eax
  imul   %eax,%r13d
  movslq %r13d,%r13
  add    %r13,%r12
  jmp    L87
L27:
  mov    %ebx,0xc(%rsp)
  cltq
  movsbl (%r15,%rax,1),%r13d
  sub    $0x30,%r13d
  mov    %r14d,%edi
  call   <powerfunc@plt>
  movsbl %al,%eax
  imul   %r13d,%eax
  cltq
  add    %rax,%r12
L87:
  add    $0x1,%ebx
  mov    %ebp,%eax
  sub    0xc(%rsp),%eax
  js     L20
L16:
  lea    -0x1(%rbx),%esi
  cmp    $0x10,%r14d
  jne    L27
  cltq
  movzbl (%r15,%rax,1),%r13d
  lea    -0x41(%r13),%eax
  cmp    $0x5,%al
  ja     L73
  movzbl %al,%eax
  lea    D7(%rip),%rcx
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
L109:
  mov    $0x0,%r12d
L20:
  mov    %r12,%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
long int convert_to_decimal(char *array, int base) {
  long int decimal_numb = 0;
  int power = 0;
  int counter = 0;
  int length;
  length = strlen(array);
  while (length - 1 - counter >= 0) {
    if (base == 16) {
      switch (array[length - 1 - counter]) {
      case 'A': {
        decimal_numb = decimal_numb + 10 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      case 'B': {
        decimal_numb = decimal_numb + 11 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      case 'C': {
        decimal_numb = decimal_numb + 12 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      case 'D': {
        decimal_numb = decimal_numb + 13 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      case 'E': {
        decimal_numb = decimal_numb + 14 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      case 'F': {
        decimal_numb = decimal_numb + 15 * powerfunc(base, power);
        counter++;
        power++;
        break;
      }
      default: {
        decimal_numb = decimal_numb + (array[length - 1 - counter++] - '0') * powerfunc(base, power);
        power++;
      }
      }
    } else {
      decimal_numb = decimal_numb + (array[length - 1 - counter++] - '0') * powerfunc(base, power);
      power++;
    }
  }
  return decimal_numb;
}
```