user: What is the c source code of the assembly code below?

```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    L128
L78:
  movl   $0xffffffff,0x8(%rsp)
  mov    $0x1,%ebx
  mov    $0xffffffff,%r15d
  lea    D25(%rip),%r14
  jmp    L74
  nopw   0x0(%rax,%rax,1)
L29:
  lea    0x8(%r13,%rbp,1),%rbp
  add    $0x1,%ebx
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x24,%eax
  jg     L17
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x1,%eax
  jg     L75
L17:
  xor    %eax,%eax
  call   <baseNotSupported@plt>
L63:
  add    $0x1,%ebx
  cmp    $0x3,%ebx
  jg     L21
L74:
  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     L29
  mov    (%r12),%rdi
  lea    D37(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L159
  lea    0x8(%r13,%rbp,1),%rbp
  add    $0x1,%ebx
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x24,%eax
  jg     L17
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  cmp    $0x1,%eax
  jle    L17
  mov    0x0(%rbp),%rdi
  add    $0x1,%ebx
  call   <atoi@plt>
  mov    %eax,0x8(%rsp)
  cmp    $0x3,%ebx
  jle    L74
  xchg   %ax,%ax
L21:
  mov    0x8(%rsp),%edx
  mov    %r15d,%esi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  cmp    %ebx,%eax
  jle    L40
  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)
L84:
  mov    0x0(%rbp),%rdi
  mov    0x8(%rsp),%edx
  mov    %r15d,%esi
  add    $0x8,%rbp
  call   <convertBase@plt>
  cmp    %rbp,%rbx
  jne    L84
L40:
  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)
L159:
  mov    (%r12),%rdi
  lea    D35(%rip),%rsi
  call   <strcmp@plt>
  mov    (%rsp),%rdi
  test   %rax,%rax
  je     L96
  call   <invalidArgument@plt>
  jmp    L63
  nopl   0x0(%rax,%rax,1)
L75:
  mov    0x0(%rbp),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  jmp    L63
  nopl   0x0(%rax)
L128:
  mov    %rdx,%rdi
  call   <noArgument@plt>
  jmp    L78
  nopl   (%rax)
L96:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <showUsage@plt>
```

tool_calls: name: disassemble_data
arguments: label: D25
type: string
name: disassemble_data
arguments: label: D37
type: string
name: disassemble_data
arguments: label: D10
type: string
name: disassemble_data
arguments: label: D35
type: string

tool: D25: -i

tool: D37: -o

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

tool: D35: -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);
  }
}
```