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

```asm
<resolve>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x20(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jne    L56
  mov    -0x40(%rbp),%rax
  jmp    L22
L56:
  cmpl   $0x0,-0x20(%rbp)
  jne    L65
  mov    -0x38(%rbp),%rax
  jmp    L22
L65:
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x28(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x1,-0x20(%rbp)
  jle    L94
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L94
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L110
  movl   $0x2,-0x28(%rbp)
  jmp    L84
L110:
  movl   $0x1,-0x28(%rbp)
L84:
  mov    -0x20(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jne    L94
  mov    -0x24(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L118
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  jmp    L22
L118:
  mov    -0x38(%rbp),%rax
  jmp    L22
L94:
  mov    -0x24(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L137
  subl   $0x1,-0x2c(%rbp)
L137:
  mov    -0x2c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L80
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    -0x38(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x20(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x40(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rsi
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x18(%rbp),%rdx
  add    %rdx,%rcx
  mov    %eax,%edx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L103
L80:
  mov    -0x1c(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    -0x38(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  mov    -0x20(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x40(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rsi
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x1(%rdx),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rdx,%rcx
  mov    %eax,%edx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L103:
  mov    -0x18(%rbp),%rax
L22:
  leave
  ret
```

assistant: ```c
char *resolve(const char *parent, const char *child) {
  char *c;
  char *theChars;
  int parentEnd, childStart, len;
  int pn = (int)strlen(parent);
  int cn = (int)strlen(child);
  if (pn == 0)
    return (char *)child;
  if (cn == 0)
    return (char *)parent;
  c = (char *)child;
  childStart = 0;
  parentEnd = pn;
  if ((cn > 1) && (c[0] == '\\')) {
    if (c[1] == '\\') {
      childStart = 2;
    } else {
      childStart = 1;
    }
    if (cn == childStart) {
      if (parent[pn - 1] == '\\') {
        char *str = strdup(parent);
        str[pn - 1] = '\0';
        return str;
      }
      return (char *)parent;
    }
  }
  if (parent[pn - 1] == '\\')
    parentEnd--;
  len = parentEnd + cn - childStart;
  if (child[childStart] == '\\') {
    theChars = (char *)malloc(len + 1);
    memcpy(theChars, parent, parentEnd);
    memcpy(theChars + parentEnd, child + childStart, (cn - childStart));
    theChars[len] = '\0';
  } else {
    theChars = (char *)malloc(len + 2);
    memcpy(theChars, parent, parentEnd);
    theChars[parentEnd] = '\\';
    memcpy(theChars + parentEnd + 1, child + childStart, (cn - childStart));
    theChars[len + 1] = '\0';
  }
  return theChars;
}
```