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

```asm
<__argz_replace>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,0x30(%rsp)
  mov    %rsi,0x38(%rsp)
  mov    %r8,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  test   %rdx,%rdx
  je     L139
  cmpb   $0x0,(%rdx)
  mov    %rdx,%r14
  jne    L99
L139:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L164
  add    $0x98,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L99:
  mov    (%rdi),%rax
  mov    %rdx,%rdi
  mov    %rcx,%rbx
  xor    %r12d,%r12d
  movq   $0x0,0x68(%rsp)
  lea    0x78(%rsp),%rbp
  mov    %rax,0x10(%rsp)
  mov    (%rsi),%rax
  movq   $0x0,0x70(%rsp)
  mov    %rax,0x20(%rsp)
  call   <strlen@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0x40(%rsp)
  call   <strlen@plt>
  movl   $0x1,0x1c(%rsp)
  mov    %eax,%r13d
  lea    0x70(%rsp),%rax
  mov    %rax,0x48(%rsp)
  lea    0x68(%rsp),%rax
  mov    %rax,0x50(%rsp)
  nopl   0x0(%rax,%rax,1)
L185:
  mov    0x20(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  mov    %r12,%rdx
  call   <argz_next@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L46
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L125
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  jne    L185
  mov    0x48(%rsp),%rsi
  mov    0x50(%rsp),%rdi
  mov    %r12,%rdx
  call   <__argz_add@plt>
  mov    %rax,%r15
L117:
  test   %r15,%r15
  je     L185
  cmpq   $0x0,0x70(%rsp)
  je     L139
  mov    0x68(%rsp),%rdi
  call   <free@plt>
  jmp    L139
  nopl   0x0(%rax,%rax,1)
L125:
  mov    0x40(%rsp),%rcx
  mov    %r12,%rdi
  add    %rax,%rcx
  sub    %r12,%rax
  mov    %rax,%rsi
  mov    %rcx,0x8(%rsp)
  mov    %rax,0x78(%rsp)
  call   <__strndup@plt>
  mov    %rax,0x80(%rsp)
  mov    %rax,%rdx
  mov    %rbx,%rax
  mov    %r12,%rbx
  mov    %rax,%r12
L63:
  cmpq   $0x0,0x8(%rsp)
  setne  %al
  test   %rdx,%rdx
  je     L201
  test   %al,%al
  je     L184
  lea    0x80(%rsp),%r15
  mov    %r12,%rdx
  mov    %r13d,%ecx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <str_append@plt>
  mov    0x80(%rsp),%rdx
  test   %rdx,%rdx
  jne    L162
L201:
  mov    %r12,%rax
  mov    %rbx,%r12
  mov    %rax,%rbx
L21:
  mov    D7(%rip),%rax
  mov    (%rax),%r15
L50:
  mov    0x28(%rsp),%rax
  test   %rax,%rax
  je     L117
  addl   $0x1,(%rax)
  jmp    L117
  nopl   0x0(%rax)
L162:
  mov    0x8(%rsp),%rdi
  mov    %r14,%rsi
  call   <strstr@plt>
  test   %rax,%rax
  je     L116
  mov    0x8(%rsp),%rdx
  mov    %eax,%ecx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  mov    %rax,0x58(%rsp)
  sub    %edx,%ecx
  call   <str_append@plt>
  mov    0x58(%rsp),%r9
  add    0x40(%rsp),%r9
  mov    %r9,0x8(%rsp)
L191:
  mov    0x80(%rsp),%rdx
  jmp    L63
  nopw   0x0(%rax,%rax,1)
L116:
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  mov    %eax,%ecx
  call   <str_append@plt>
  movq   $0x0,0x8(%rsp)
  jmp    L191
  nopw   0x0(%rax,%rax,1)
L46:
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L183
  xor    %r15d,%r15d
  jmp    L139
L183:
  mov    0x10(%rsp),%rdi
  xor    %r15d,%r15d
  call   <free@plt>
  mov    0x68(%rsp),%rax
  mov    0x30(%rsp),%rcx
  mov    %rax,(%rcx)
  mov    0x70(%rsp),%rax
  mov    0x38(%rsp),%rcx
  mov    %rax,(%rcx)
  jmp    L139
L164:
  call   <__stack_chk_fail@plt>
L184:
  xchg   %rbx,%r12
  test   %rdx,%rdx
  je     L21
  cmp    %r12,0x10(%rsp)
  jae    L31
  mov    0x1c(%rsp),%ecx
  test   %ecx,%ecx
  jne    L28
L31:
  mov    0x48(%rsp),%rsi
  mov    0x50(%rsp),%rdi
  call   <__argz_add@plt>
  mov    %rax,%r15
L156:
  mov    0x80(%rsp),%rdi
  call   <free@plt>
  movl   $0x0,0x1c(%rsp)
  jmp    L50
L28:
  mov    0x10(%rsp),%rdx
  mov    0x48(%rsp),%rsi
  mov    %r12d,%ecx
  mov    0x50(%rsp),%rdi
  sub    %edx,%ecx
  call   <__argz_append@plt>
  mov    %rax,%r15
  test   %rax,%rax
  jne    L156
  mov    0x80(%rsp),%rdx
  jmp    L31
```

assistant: ```c
error_t __argz_replace(char **argz, size_t *argz_len, const char *str, const char *with, unsigned *replace_count) {
  error_t err = 0;
  if (str && *str) {
    char *arg = 0;
    char *src = *argz;
    size_t src_len = *argz_len;
    char *dst = 0;
    size_t dst_len = 0;
    int delayed_copy = 1;
    size_t str_len = strlen(str), with_len = strlen(with);
    while (!err && (arg = argz_next(src, src_len, arg))) {
      char *match = strstr(arg, str);
      if (match) {
        char *from = match + str_len;
        size_t to_len = match - arg;
        char *to = __strndup(arg, to_len);
        while (to && from) {
          str_append(&to, &to_len, with, with_len);
          if (to) {
            match = strstr(from, str);
            if (match) {
              str_append(&to, &to_len, from, match - from);
              from = match + str_len;
            } else {
              str_append(&to, &to_len, from, strlen(from));
              from = 0;
            }
          }
        }
        if (to) {
          if (delayed_copy) {
            if (arg > src)
              err = __argz_append(&dst, &dst_len, src, (arg - src));
            delayed_copy = 0;
          }
          if (!err)
            err = __argz_add(&dst, &dst_len, to);
          free(to);
        } else
          err = ENOMEM;
        if (replace_count)
          (*replace_count)++;
      } else if (!delayed_copy)
        err = __argz_add(&dst, &dst_len, arg);
    }
    if (!err) {
      if (!delayed_copy) {
        free(src);
        *argz = dst;
        *argz_len = dst_len;
      }
    } else if (dst_len > 0)
      free(dst);
  }
  return err;
}
```