user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<PutPostString>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x448,%rsp
  mov    %rdi,-0x438(%rbp)
  mov    %rsi,-0x440(%rbp)
  mov    %rdx,-0x448(%rbp)
  mov    %ecx,-0x44c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x420(%rbp),%rdx
  mov    -0x440(%rbp),%rsi
  mov    -0x438(%rbp),%rax
  mov    $0x400,%ecx
  mov    %rax,%rdi
  call   <FindPostString@plt>
  mov    %eax,-0x42c(%rbp)
  cmpl   $0x0,-0x42c(%rbp)
  jns    L76
  mov    -0x438(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x42c(%rbp)
  mov    -0x440(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x42c(%rbp),%edx
  lea    (%rax,%rdx,1),%ebx
  mov    -0x448(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  add    $0x2,%eax
  cmp    %eax,-0x44c(%rbp)
  jg     L29
  mov    $0xffffffff,%eax
  jmp    L71
L29:
  mov    -0x438(%rbp),%rax
  lea    D5(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x440(%rbp),%rdx
  mov    -0x438(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x438(%rbp),%rax
  lea    D10(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x438(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x42c(%rbp)
  mov    -0x448(%rbp),%rdx
  mov    -0x438(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L63
L76:
  mov    -0x448(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x424(%rbp)
  lea    -0x420(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x424(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%edi
  mov    -0x44c(%rbp),%edx
  mov    -0x42c(%rbp),%esi
  mov    -0x438(%rbp),%rax
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rax,%rdi
  call   <BufferDiff@plt>
  test   %rax,%rax
  jns    L37
  mov    $0xffffffff,%eax
  jmp    L71
L37:
  movl   $0x0,-0x428(%rbp)
  jmp    L40
L60:
  mov    -0x428(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x448(%rbp),%rax
  add    %rdx,%rax
  mov    -0x42c(%rbp),%ecx
  mov    -0x428(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rcx
  mov    -0x438(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x428(%rbp)
L40:
  mov    -0x428(%rbp),%eax
  cmp    -0x424(%rbp),%eax
  jl     L60
  mov    -0x42c(%rbp),%edx
  mov    -0x424(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  movb   $0x26,(%rax)
L63:
  mov    -0x42c(%rbp),%eax
L71:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L67
  call   <__stack_chk_fail@plt>
L67:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D5
data_type: string
name: disassemble_data
arguments: tag: D10
data_type: string

tool: D5: &

tool: D10: =

assistant: ```c
int PutPostString(char *sPost, char *sArg, char *sValue, int dMaxSize) {
  int dOrigin;
  int dValue;
  int i;
  char sAccum[1024];
  dOrigin = FindPostString(sPost, sArg, sAccum, 1024);
  if (dOrigin < 0) {
    dOrigin = strlen(sPost);
    if ((dOrigin + strlen(sArg) + strlen(sValue) + 2) >= dMaxSize) {
      return -1;
    }
    strcat(sPost, "&");
    strcat(sPost, sArg);
    strcat(sPost, "=");
    dOrigin = strlen(sPost);
    strcat(sPost, sValue);
  } else {
    dValue = strlen(sValue);
    if (BufferDiff(sPost, dOrigin, dValue - strlen(sAccum), dMaxSize) < 0) {
      return -1;
    }
    for (i = 0; i < dValue; i++) {
      sPost[dOrigin + i] = sValue[i];
    }
    sPost[dOrigin + dValue] = '&';
  }
  return dOrigin;
}
```