user: 请从给定的汇编指令推导出C源代码:

```asm
<get_case_conflict_localfilename>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,%r15
  mov    %rdx,(%rsp)
  mov    %ecx,0xc(%rsp)
  call   <opendir@plt>
  mov    %rax,%rbp
  lea    D19(%rip),%r12
  lea    D30(%rip),%r14
  test   %rax,%rax
  je     L68
L9:
  mov    %rbp,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L78
  mov    %r12,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  mov    %r14,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  mov    %r15,%rdi
  call   <strlwr@plt>
  mov    %rax,%r13
  mov    (%rbx),%rdi
  call   <strlwr@plt>
  mov    %rax,%rdi
  mov    %r13,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L9
  mov    %r15,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  mov    (%rsp),%rdi
  call   <strlen@plt>
  mov    %rax,%r13
  mov    (%rbx),%rax
  mov    %rax,0x10(%rsp)
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    0x2(%r13,%rax,1),%rdi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    (%rsp),%rdi
  call   <strlen@plt>
  mov    %rax,0x18(%rsp)
  mov    0x10(%rsp),%rdi
  call   <strlen@plt>
  mov    0x18(%rsp),%rcx
  lea    0x2(%rcx,%rax,1),%rdx
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    (%rbx),%rcx
  mov    (%rsp),%rdx
  lea    D3(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    0xc(%rsp),%edx
  mov    %r13,%rsi
  mov    (%rsp),%rdi
  call   <is_server_exist@plt>
  mov    %eax,0x10(%rsp)
  mov    %r13,%rdi
  call   <free@plt>
  cmpl   $0x0,0x10(%rsp)
  je     L9
  mov    (%rbx),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  lea    0x13(%rax),%rdi
  call   <malloc@plt>
  mov    %rax,%r12
  mov    %r13,%rdi
  call   <strlen@plt>
  lea    0x13(%rax),%rdx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  lea    D5(%rip),%rcx
  mov    (%rbx),%rdx
  lea    D7(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rbx
L78:
  mov    %rbp,%rdi
  call   <closedir@plt>
L32:
  mov    %rbx,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L68:
  mov    %rax,%rbx
  jmp    L32
```

tool_calls: name: disassemble_data
arguments: data_tag: D19
type_guessed: string
name: disassemble_data
arguments: data_tag: D30
type_guessed: string
name: disassemble_data
arguments: data_tag: D3
type_guessed: string
name: disassemble_data
arguments: data_tag: D5
type_guessed: string
name: disassemble_data
arguments: data_tag: D7
type_guessed: string

tool: D19: .

tool: D30: ..

tool: D3: %s/%s

tool: D5: (big-low-conflict)

tool: D7: %s

assistant: ```c
char *get_case_conflict_localfilename(char *localfolder, char *filename, char *serfolder, int index) {
  DIR *pDir;
  struct dirent *ent = NULL;
  pDir = opendir(localfolder);
  char *suffix = "(big-low-conflict)";
  int exist = 0;
  if (NULL == pDir) {
    return NULL;
  }
  char *tmp_name = NULL;
  while (NULL != (ent = readdir(pDir))) {
    if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, ".."))
      continue;
    if (!strcmp(strlwr(ent->d_name), strlwr(filename)) && strcmp(ent->d_name, filename)) {
      char *serfullname = malloc(strlen(serfolder) + strlen(ent->d_name) + 1 + 1);
      memset(serfullname, 0, strlen(serfolder) + strlen(ent->d_name) + 1 + 1);
      sprintf(serfullname, "%s/%s", serfolder, ent->d_name);
      exist = is_server_exist(serfolder, serfullname, index);
      free(serfullname);
      serfullname = NULL;
      ;
      if (exist) {
        tmp_name = malloc(strlen(ent->d_name) + strlen(suffix) + 1);
        memset(tmp_name, 0, strlen(ent->d_name) + strlen(suffix) + 1);
        sprintf(tmp_name, "%s", ent->d_name, suffix);
        break;
      }
    }
  }
  closedir(pDir);
  return tmp_name;
}
```