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

```asm
<oauth_serialize_url_sep>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edi,%ebx
  mov    %rcx,%rdi
  sub    $0x48,%rsp
  mov    %esi,0x10(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r8d,0x20(%rsp)
  call   <strlen@plt>
  mov    $0x1,%edi
  mov    %eax,0x30(%rsp)
  call   <xmalloc@plt>
  movb   $0x0,(%rax)
  mov    %rax,%r15
  cmp    %ebx,%ebp
  jge    L30
  mov    %r14d,%eax
  mov    %ebp,%ecx
  and    $0x1,%r14d
  movslq %ebp,%rbp
  sar    %eax
  sub    $0x1,%ebx
  mov    %r14d,0x24(%rsp)
  lea    0x1(%rbp),%r14
  and    $0x2,%eax
  sub    %ecx,%ebx
  movl   $0x0,0x8(%rsp)
  mov    %eax,0x34(%rsp)
  lea    (%rbx,%r14,1),%rax
  mov    %rax,0x18(%rsp)
  jmp    L189
  nopw   0x0(%rax,%rax,1)
L86:
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
L91:
  cmp    %ebp,0x10(%rsp)
  mov    0x30(%rsp),%ecx
  mov    %ebp,0x14(%rsp)
  sete   %dl
  test   %ebp,%ebp
  sete   %al
  lea    0x1(%rcx),%ebx
  and    %al,%dl
  mov    %dl,0x2b(%rsp)
  je     L142
  lea    D26(%rip),%r12
  mov    0x0(%r13),%rdi
  mov    %r12,%rsi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L36
L142:
  mov    0x0(%r13,%rbp,8),%rdi
  mov    $0x3d,%esi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L12
  movb   $0x0,(%rax)
  mov    0x0(%r13,%rbp,8),%rdi
  call   <oauth_url_escape@plt>
  movb   $0x3d,(%r12)
  lea    0x1(%r12),%rdi
  mov    %rax,%rbp
  call   <oauth_url_escape@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,0x2c(%rsp)
  call   <strlen@plt>
  mov    0x2c(%rsp),%edx
  mov    %rbp,%rdi
  lea    0x2(%rdx,%rax,1),%esi
  add    0x34(%rsp),%esi
  call   <xrealloc@plt>
  lea    D125(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strcat@plt>
  testb  $0x4,0x20(%rsp)
  jne    L184
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
L175:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0xc(%rsp),%esi
  add    %eax,%esi
L170:
  mov    %r15,%rdi
  add    %ebx,%esi
  call   <xrealloc@plt>
  mov    0x14(%rsp),%ecx
  mov    %rax,%r15
  cmp    %ecx,0x10(%rsp)
  je     L66
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jne    L66
  mov    0x38(%rsp),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  movl   $0x0,0x8(%rsp)
L233:
  mov    %rbp,%rdi
  call   <free@plt>
L6:
  mov    %r14,%rbp
  cmp    0x18(%rsp),%r14
  je     L30
L110:
  add    $0x1,%r14
L189:
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jne    L72
  testb  $0x2,0x20(%rsp)
  jne    L253
L68:
  test   %r15,%r15
  jne    L86
  movl   $0x0,0xc(%rsp)
  jmp    L91
L72:
  mov    0x0(%r13,%rbp,8),%rdi
  mov    $0x6,%edx
  lea    D69(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L6
  mov    0x0(%r13,%rbp,8),%rdi
  mov    $0x8,%edx
  lea    D12(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L6
  testb  $0x2,0x20(%rsp)
  je     L68
  nopl   (%rax)
L253:
  mov    0x0(%r13,%rbp,8),%rdi
  mov    $0x6,%edx
  lea    D69(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L68
  mov    0x0(%r13,%rbp,8),%rdi
  mov    $0x8,%edx
  lea    D12(%rip),%rsi
  call   <strncmp@plt>
  test   %ebp,%ebp
  je     L68
  test   %rax,%rax
  je     L68
  mov    %r14,%rbp
  cmp    0x18(%rsp),%r14
  jne    L110
L30:
  add    $0x48,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L66:
  lea    D82(%rip),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  cmpb   $0x0,0x2b(%rsp)
  movl   $0x0,0x8(%rsp)
  je     L233
  lea    D26(%rip),%r12
L181:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  movl   $0x0,0x8(%rsp)
  test   %rax,%rax
  je     L233
  lea    D120(%rip),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  movl   $0x1,0x8(%rsp)
  jmp    L233
  nopl   0x0(%rax)
L12:
  mov    0x0(%r13,%rbp,8),%rdi
  call   <xstrdup@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %rbp,%rdi
  lea    0x2(%rax),%esi
  call   <xrealloc@plt>
  lea    D125(%rip),%rsi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0xc(%rsp),%esi
  add    %eax,%esi
  jmp    L170
  nopl   (%rax)
L184:
  lea    D40(%rip),%r8
  mov    %rbp,%rdi
  mov    %r8,%rsi
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D40(%rip),%r8
  mov    %rbp,%rdi
  mov    %r8,%rsi
  call   <strcat@plt>
  jmp    L175
  nopl   0x0(%rax)
L36:
  mov    0x0(%r13),%rdi
  call   <xstrdup@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    0xc(%rsp),%esi
  mov    %r15,%rdi
  add    %eax,%esi
  add    %ebx,%esi
  call   <xrealloc@plt>
  lea    D82(%rip),%rsi
  mov    %rax,%r15
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  jmp    L181
```

tool_calls: name: unpack_data
arguments: tag: D26
datatype: string
name: unpack_data
arguments: tag: D125
datatype: string
name: unpack_data
arguments: tag: D69
datatype: string
name: unpack_data
arguments: tag: D12
datatype: string
name: unpack_data
arguments: tag: D82
datatype: string
name: unpack_data
arguments: tag: D120
datatype: string
name: unpack_data
arguments: tag: D40
datatype: string

tool: D26: :/

tool: D125: =

tool: D69: oauth_

tool: D12: x_oauth_

tool: 

tool: D120: ?

tool: D40: "

assistant: ```c
char *oauth_serialize_url_sep(int argc, int start, char **argv, char *sep, int mod) {
  char *tmp, *t1;
  int i;
  int first = 0;
  int seplen = strlen(sep);
  char *query = (char *)xmalloc(sizeof(char));
  *query = '\0';
  for (i = start; i < argc; i++) {
    int len = 0;
    if ((mod & 1) == 1 && (strncmp(argv[i], "oauth_", 6) == 0 || strncmp(argv[i], "x_oauth_", 8) == 0))
      continue;
    if ((mod & 2) == 2 && (strncmp(argv[i], "oauth_", 6) != 0 && strncmp(argv[i], "x_oauth_", 8) != 0) && i != 0)
      continue;
    if (query)
      len += strlen(query);
    if (i == start && i == 0 && strstr(argv[i], ":/")) {
      tmp = xstrdup(argv[i]);
      len += strlen(tmp);
    } else if (!(t1 = strchr(argv[i], '='))) {
      tmp = xstrdup(argv[i]);
      tmp = (char *)xrealloc(tmp, (strlen(tmp) + 2) * sizeof(char));
      strcat(tmp, "=");
      len += strlen(tmp);
    } else {
      *t1 = 0;
      tmp = oauth_url_escape(argv[i]);
      *t1 = '=';
      t1 = oauth_url_escape((t1 + 1));
      tmp = (char *)xrealloc(tmp, (strlen(tmp) + strlen(t1) + 2 + (mod & 4 ? 2 : 0)) * sizeof(char));
      strcat(tmp, "=");
      if (mod & 4)
        strcat(tmp, "\"");
      strcat(tmp, t1);
      if (mod & 4)
        strcat(tmp, "\"");
      free(t1);
      len += strlen(tmp);
    }
    len += seplen + 1;
    query = (char *)xrealloc(query, len * sizeof(char));
    strcat(query, ((i == start || first) ? "" : sep));
    first = 0;
    strcat(query, tmp);
    if (i == start && i == 0 && strstr(tmp, ":/")) {
      strcat(query, "?");
      first = 1;
    }
    free(tmp);
  }
  return (query);
}
```