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

```asm
<getRegArg>:
  endbr64
  push   %rbx
  lea    D25(%rip),%rsi
  mov    %rdi,%rbx
  call   <strcmp@plt>
  test   %rax,%rax
  je     L146
  lea    D41(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L146
  lea    D42(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L47
  lea    D50(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L47
  lea    D67(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  lea    D88(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  lea    D59(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  lea    D108(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  lea    D56(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L20
  lea    D70(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L20
  lea    D3(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L36
  lea    D82(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L36
  lea    0x1(%rbx),%rdi
  call   <atoi@plt>
  movzbl (%rbx),%ecx
  sub    $0x52,%ecx
  cmp    $0x22,%cl
  ja     L29
  mov    $0x1,%edx
  shl    %cl,%rdx
  movabs $0x100000001,%rcx
  test   %rcx,%rdx
  jne    L18
  movabs $0x400000004,%rcx
  test   %rcx,%rdx
  jne    L88
  movabs $0x200000002,%rcx
  add    $0x8,%eax
  test   %rcx,%rdx
  mov    $0xffffffff,%edx
  cmove  %edx,%eax
L18:
  pop    %rbx
  ret
  nopl   (%rax)
L146:
  mov    $0x1c,%eax
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L47:
  mov    $0x1d,%eax
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L9:
  mov    $0x1e,%eax
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L107:
  mov    $0x1f,%eax
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L20:
  mov    $0x20,%eax
  pop    %rbx
  ret
L36:
  mov    $0x21,%eax
  pop    %rbx
  ret
L88:
  add    $0x18,%eax
  pop    %rbx
  ret
L29:
  or     $0xffffffff,%eax
  pop    %rbx
  ret
```

tool_calls: name: retrieve_data
arguments: label: D25
type_infered: string
name: retrieve_data
arguments: label: D41
type_infered: string
name: retrieve_data
arguments: label: D42
type_infered: string
name: retrieve_data
arguments: label: D50
type_infered: string
name: retrieve_data
arguments: label: D67
type_infered: string
name: retrieve_data
arguments: label: D88
type_infered: string
name: retrieve_data
arguments: label: D59
type_infered: string
name: retrieve_data
arguments: label: D108
type_infered: string
name: retrieve_data
arguments: label: D56
type_infered: string
name: retrieve_data
arguments: label: D70
type_infered: string
name: retrieve_data
arguments: label: D3
type_infered: string
name: retrieve_data
arguments: label: D82
type_infered: string

tool: D25: BP

tool: D41: bp

tool: D42: SP

tool: D50: sp

tool: D67: IP

tool: D88: ip

tool: D59: PTBR

tool: D108: ptbr

tool: D56: PTLR

tool: D70: ptlr

tool: D3: EFR

tool: D82: efr

assistant: ```c
int getRegArg(char *arg) {
  int argvalue;
  if (strcmp(arg, "BP") == 0 || strcmp(arg, "bp") == 0)
    return (28);
  else if (strcmp(arg, "SP") == 0 || strcmp(arg, "sp") == 0)
    return (29);
  else if (strcmp(arg, "IP") == 0 || strcmp(arg, "ip") == 0)
    return (30);
  else if (strcmp(arg, "PTBR") == 0 || strcmp(arg, "ptbr") == 0)
    return (31);
  else if (strcmp(arg, "PTLR") == 0 || strcmp(arg, "ptlr") == 0)
    return (32);
  else if (strcmp(arg, "EFR") == 0 || strcmp(arg, "efr") == 0)
    return (33);
  else
    argvalue = atoi(arg + 1);
  switch (arg[0]) {
  case 'R':
  case 'r':
    if (argvalue >= 0 && argvalue < 8)
      ;
    return (0 + argvalue);
    break;
  case 'S':
  case 's':
    if (argvalue >= 0 && argvalue < 16)
      ;
    return (8 + argvalue);
    break;
  case 'T':
  case 't':
    if (argvalue >= 0 && argvalue < 4)
      ;
    return (24 + argvalue);
    break;
  }
  return -1;
}
```