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

```asm
<QMChange>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %r8d,-0x60(%rbp)
  mov    $0x0,%eax
  call   <initialise_client@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x38(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x30(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jne    L188
  mov    $0x0,%eax
  call   <NullString@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  jmp    L11
L188:
  cmpl   $0x0,-0x34(%rbp)
  je     L132
  cmpl   $0x0,-0x5c(%rbp)
  jg     L133
  movl   $0xffffffff,-0x5c(%rbp)
L133:
  cmpl   $0x0,-0x60(%rbp)
  jg     L37
  movl   $0x1,-0x60(%rbp)
L37:
  movl   $0x0,-0x3c(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L102
L186:
  mov    -0x34(%rbp),%ecx
  mov    -0x40(%rbp),%edx
  mov    -0x50(%rbp),%rsi
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L34
  subl   $0x1,-0x60(%rbp)
  cmpl   $0x0,-0x60(%rbp)
  jg     L137
  cmpl   $0x0,-0x60(%rbp)
  jne    L41
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x28(%rbp)
L41:
  addl   $0x1,-0x3c(%rbp)
  subl   $0x1,-0x5c(%rbp)
  cmpl   $0x0,-0x5c(%rbp)
  je     L16
L137:
  mov    -0x40(%rbp),%edx
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
L102:
  cmpl   $0x0,-0x40(%rbp)
  jg     L186
  jmp    L59
L34:
  nop
  jmp    L59
L16:
  nop
L59:
  cmpl   $0x0,-0x3c(%rbp)
  je     L12
  mov    -0x30(%rbp),%eax
  sub    -0x34(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
L54:
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  je     L88
  mov    -0x2c(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x2c(%rbp),%eax
  cltq
  add    %rax,-0x10(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  add    %rax,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    %eax,-0x40(%rbp)
L88:
  cmpl   $0x0,-0x30(%rbp)
  je     L4
  mov    -0x30(%rbp),%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x30(%rbp),%eax
  cltq
  add    %rax,-0x10(%rbp)
L4:
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,-0x20(%rbp)
  mov    -0x34(%rbp),%eax
  sub    %eax,-0x40(%rbp)
  mov    -0x34(%rbp),%ecx
  mov    -0x40(%rbp),%edx
  mov    -0x50(%rbp),%rsi
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x18(%rbp)
  subl   $0x1,-0x3c(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jne    L54
  cmpl   $0x0,-0x40(%rbp)
  je     L74
  mov    -0x40(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
L74:
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  jmp    L11
L132:
  nop
  jmp    L140
L12:
  nop
L140:
  mov    -0x38(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x8(%rbp),%rax
L11:
  leave
  ret
```

assistant: ```c
char *QMChange(char *src, char *old, char *new, int occurrences, int start) {
  int src_len;
  int old_len;
  int new_len;
  int32_t bytes;
  char *start_pos;
  char *new_str;
  int32_t changes;
  char *pos;
  char *p;
  char *q;
  int32_t n;
  initialise_client();
  src_len = strlen(src);
  old_len = strlen(old);
  new_len = strlen(new);
  if (src_len == 0) {
    new_str = NullString();
    return new_str;
  }
  if (old_len == 0)
    goto return_unchanged;
  if (occurrences < 1)
    occurrences = -1;
  if (start < 1)
    start = 1;
  changes = 0;
  bytes = src_len;
  pos = src;
  while (bytes > 0) {
    p = memstr(pos, old, bytes, old_len);
    if (p == NULL)
      break;
    if (--start <= 0) {
      if (start == 0)
        start_pos = p;
      changes++;
      if (--occurrences == 0)
        break;
    }
    bytes -= (p - pos) + old_len;
    pos = p + old_len;
  }
  if (changes == 0)
    goto return_unchanged;
  new_str = (char *)malloc(src_len + changes * (new_len - old_len) + 1);
  q = new_str;
  pos = src;
  bytes = src_len;
  p = start_pos;
  do {
    n = p - pos;
    if (n) {
      memcpy(q, pos, n);
      q += n;
      pos += n;
      bytes -= n;
    }
    if (new_len) {
      memcpy(q, new, new_len);
      q += new_len;
    }
    pos += old_len;
    bytes -= old_len;
    p = memstr(pos, old, bytes, old_len);
  } while (--changes);
  if (bytes)
    memcpy(q, pos, bytes);
  q[bytes] = '\0';
  return new_str;
return_unchanged:
  new_str = (char *)malloc(src_len + 1);
  strcpy(new_str, src);
  return new_str;
}
```