user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<ibase>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,0xc(%rsp)
  mov    %rdx,(%rsp)
  cmp    $0x5,%edi
  jle    L71
L128:
  movl   $0xffffffff,0x8(%rsp)
  mov    $0x1,%ebx
  mov    $0xffffffff,%r15d
  lea    D31(%rip),%r14
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L124:
  lea    0x8(%r13,%rbp,1),%rbp
  add    $0x1,%ebx
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x24,%eax
  jg     L46
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x1,%eax
  jg     L82
L46:
  xor    %eax,%eax
  call   <baseNotSupported@plt>
L79:
  add    $0x1,%ebx
  cmp    $0x3,%ebx
  jg     L95
L39:
  movslq %ebx,%rbp
  mov    %r14,%rsi
  shl    $0x3,%rbp
  lea    0x0(%r13,%rbp,1),%r12
  mov    (%r12),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L124
  mov    (%r12),%rdi
  lea    D8(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L7
  lea    0x8(%r13,%rbp,1),%rbp
  add    $0x1,%ebx
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x24,%eax
  jg     L46
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x1,%eax
  jle    L46
  mov    0x0(%rbp),%rdi
  add    $0x1,%ebx
  call   <atoi@plt>
  mov    %eax,0x8(%rsp)
  cmp    $0x3,%ebx
  jle    L39
  xchg   %ax,%ax
L95:
  mov    0x8(%rsp),%edx
  mov    %r15d,%esi
  lea    D33(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  cmp    %ebx,%eax
  jle    L20
  sub    $0x1,%eax
  movslq %ebx,%rdx
  sub    %ebx,%eax
  lea    0x0(%r13,%rdx,8),%rbp
  add    %rdx,%rax
  lea    0x8(%r13,%rax,8),%rbx
  nopw   0x0(%rax,%rax,1)
L6:
  mov    0x0(%rbp),%rdi
  mov    0x8(%rsp),%edx
  mov    %r15d,%esi
  add    $0x8,%rbp
  call   <convertBase@plt>
  cmp    %rbp,%rbx
  jne    L6
L20:
  add    $0x18,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10d0 <putchar@plt>
  nopl   0x0(%rax)
L7:
  mov    (%r12),%rdi
  lea    D0(%rip),%rsi
  call   <strcmp@plt>
  mov    (%rsp),%rdi
  test   %rax,%rax
  je     L109
  call   <invalidArgument@plt>
  jmp    L79
  nopl   0x0(%rax,%rax,1)
L82:
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  jmp    L79
  nopl   0x0(%rax)
L71:
  mov    %rdx,%rdi
  call   <noArgument@plt>
  jmp    L128
  nopl   (%rax)
L109:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <showUsage@plt>
```

tool_calls: name: parse_data
arguments: tag: D31
type_infered: string
name: parse_data
arguments: tag: D8
type_infered: string
name: parse_data
arguments: tag: D33
type_infered: string
name: parse_data
arguments: tag: D0
type_infered: string

tool: D31: -i

tool: D8: -o

tool: D33: Base %d to %d, output: 

tool: D0: -h

assistant: ```c
void ibase(int argc, char **argv, char *applet) {
  int in_base = -1, out_base = -1;
  bool pr_help = false;
  int arg = 0;
  if (argc < 6) {
    noArgument(applet);
  }
  for (arg = 1; arg < 4; arg++) {
    if (strcmp(argv[arg], "-i") == 0) {
      arg++;
      if (atoi(argv[arg]) <= 36 && atoi(argv[arg]) > 1) {
        in_base = atoi(argv[arg]);
      } else {
        baseNotSupported();
      }
    } else if (strcmp(argv[arg], "-o") == 0) {
      arg++;
      if (atoi(argv[arg]) <= 36 && atoi(argv[arg]) > 1) {
        out_base = atoi(argv[arg]);
      } else {
        baseNotSupported();
      }
    } else if (strcmp(argv[arg], "-h") == 0) {
      showUsage(applet);
      return;
    } else {
      invalidArgument(applet);
    }
  }
  if (!pr_help) {
    printf("Base %d to %d, output:\x20", in_base, out_base);
    for (; arg < argc; arg++) {
      convertBase(argv[arg], in_base, out_base);
    }
    printf("\n");
  } else {
    showUsage(applet);
  }
}
```