user: 下面的汇编指令对应的C源代码是什么：

```asm
<listIndex>:
  endbr64
  push   %rbp
  movslq %edx,%r8
  mov    %rsp,%rbp
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %edx,-0x5c(%rbp)
  mov    %rsi,-0x68(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(,%r8,8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L211
L56:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L56
L211:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L102
L159:
  lea    0xf(%r8),%rax
  mov    %rsp,%rsi
  mov    %rsp,%r14
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L89
L182:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L182
L89:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L262
L33:
  mov    %r15,%rdi
  mov    %r8,-0x50(%rbp)
  mov    %rsp,%rbx
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rax,%r12
  mov    %rdx,%rdi
  mov    %rdx,-0x48(%rbp)
  call   <malloc@plt>
  mov    -0x48(%rbp),%rdx
  mov    %r15,%rsi
  mov    %rax,%rdi
  mov    %rax,%r13
  call   <memcpy@plt>
  mov    -0x50(%rbp),%r8
  xor    %eax,%eax
  jmp    L228
  nopw   0x0(%rax,%rax,1)
L258:
  movzbl 0x0(%r13,%rax,1),%edx
  lea    -0x41(%rdx),%esi
  cmp    $0x19,%sil
  ja     L107
  add    $0x20,%edx
  mov    %dl,0x0(%r13,%rax,1)
L107:
  add    $0x1,%rax
L228:
  cmp    %rax,%r12
  ja     L258
  mov    -0x5c(%rbp),%ecx
  test   %ecx,%ecx
  jle    L191
  xor    %r12d,%r12d
  xchg   %ax,%ax
L37:
  mov    -0x68(%rbp),%rax
  mov    %r8,-0x58(%rbp)
  mov    (%rax,%r12,8),%rsi
  mov    %rsi,%rdi
  mov    %rsi,-0x50(%rbp)
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rax,%r15
  mov    %rdx,%rdi
  mov    %rdx,-0x48(%rbp)
  call   <malloc@plt>
  mov    -0x48(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    %rax,(%r14,%r12,8)
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x58(%rbp),%r8
  mov    %rax,%rdi
  xor    %eax,%eax
  jmp    L190
  nopw   0x0(%rax,%rax,1)
L269:
  movzbl (%rdi,%rax,1),%edx
  lea    -0x41(%rdx),%esi
  cmp    $0x19,%sil
  ja     L167
  add    $0x20,%edx
  mov    %dl,(%rdi,%rax,1)
L167:
  add    $0x1,%rax
L190:
  cmp    %rax,%r15
  ja     L269
  mov    %r8,-0x48(%rbp)
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %rax,%r15
  call   <strlen@plt>
  mov    -0x48(%rbp),%r8
  cmp    %rax,%r15
  setae  (%rbx,%r12,1)
  add    $0x1,%r12
  cmp    %r8,%r12
  jne    L37
L191:
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L143:
  mov    %r13,%rdi
  mov    %r8,-0x48(%rbp)
  call   <strlen@plt>
  cmp    %r12,%rax
  jbe    L48
  mov    -0x5c(%rbp),%edx
  xor    %eax,%eax
  mov    -0x48(%rbp),%r8
  test   %edx,%edx
  jle    L242
  xchg   %ax,%ax
L38:
  cmpb   $0x0,(%rbx,%rax,1)
  je     L45
  mov    (%r14,%rax,8),%rdx
  movzbl (%rdx,%r12,1),%ecx
  cmp    %cl,0x0(%r13,%r12,1)
  je     L45
  movb   $0x0,(%rbx,%rax,1)
L45:
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L38
L242:
  add    $0x1,%r12
  jmp    L143
L102:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L159
  nopl   0x0(%rax)
L48:
  mov    -0x5c(%rbp),%eax
  test   %eax,%eax
  jle    L69
  mov    %eax,%edx
  mov    $0xffffffff,%r12d
  xor    %eax,%eax
  nopl   0x0(%rax)
L251:
  cmpb   $0x0,(%rbx,%rax,1)
  je     L3
  cmp    $0xffffffff,%r12d
  jne    L99
  mov    %eax,%r12d
L3:
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L251
L104:
  mov    %r14,%rbx
  lea    (%r14,%rdx,8),%r14
  nop
L135:
  mov    (%rbx),%rdi
  add    $0x8,%rbx
  call   <free@plt>
  cmp    %rbx,%r14
  jne    L135
L281:
  mov    %r13,%rdi
  call   <free@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L169
  lea    -0x28(%rbp),%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L99:
  mov    $0xffffffff,%r12d
  jmp    L104
L69:
  mov    $0xffffffff,%r12d
  jmp    L281
L262:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L33
L169:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int listIndex(char *input, const char *list[], int count) {
  char *lowerInput;
  char *lowerList[count];
  _Bool isSelectable[count];
  int candidate = -1;
  lowerInput = malloc(strlen(input) + 1);
  strcpy(lowerInput, input);
  for (int i = 0; i < strlen(input); i++) {
    if (lowerInput[i] >= 'A' && lowerInput[i] <= 'Z') {
      lowerInput[i] -= 'A' - 'a';
    }
  }
  for (int i = 0; i < count; i++) {
    lowerList[i] = malloc(strlen(list[i]) + 1);
    strcpy(lowerList[i], list[i]);
    for (int j = 0; j < strlen(list[i]); j++) {
      if (lowerList[i][j] >= 'A' && lowerList[i][j] <= 'Z') {
        lowerList[i][j] -= 'A' - 'a';
      }
    }
    if (strlen(lowerList[i]) >= strlen(lowerInput)) {
      isSelectable[i] = 1;
    } else {
      isSelectable[i] = 0;
    }
  }
  for (int i = 0; i < strlen(lowerInput); i++) {
    for (int j = 0; j < count; j++) {
      if (!isSelectable[j]) {
        continue;
      }
      if (lowerInput[i] != lowerList[j][i]) {
        isSelectable[j] = 0;
      }
    }
  }
  for (int i = 0; i < count; i++) {
    if (isSelectable[i]) {
      if (candidate != -1) {
        candidate = -1;
        break;
      }
      candidate = i;
    }
  }
  for (int i = 0; i < count; i++) {
    free(lowerList[i]);
  }
  free(lowerInput);
  return candidate;
}
```