user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<oauth_serialize_url_sep>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%ebx
  mov    %esi,%r15d
  mov    %esi,0x8(%rsp)
  mov    %rdx,%r14
  mov    %rcx,0x28(%rsp)
  mov    %r8d,%r13d
  mov    %rcx,%rdi
  call   <strlen@plt>
  mov    %eax,0x20(%rsp)
  mov    $0x1,%edi
  call   <xmalloc@plt>
  mov    %rax,%r12
  movb   $0x0,(%rax)
  cmp    %ebx,%r15d
  jge    L239
  mov    %r13d,%eax
  sar    %eax
  and    $0x2,%eax
  mov    %eax,0x24(%rsp)
  mov    %r15d,%eax
  movslq %r15d,%r15
  sub    $0x1,%ebx
  sub    %eax,%ebx
  lea    0x1(%r15,%rbx,1),%rax
  mov    %rax,0x10(%rsp)
  movl   $0x0,0x4(%rsp)
  jmp    L66
L78:
  mov    (%r14,%r15,8),%rdi
  mov    $0x6,%edx
  lea    D48(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L153
  mov    (%r14,%r15,8),%rdi
  mov    $0x8,%edx
  lea    D20(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L182
  jmp    L153
L15:
  mov    (%r14,%r15,8),%rdi
  mov    $0x6,%edx
  lea    D48(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L104
  mov    (%r14,%r15,8),%rdi
  mov    $0x8,%edx
  lea    D20(%rip),%rsi
  call   <strncmp@plt>
  test   %r15d,%r15d
  je     L104
  test   %rax,%rax
  je     L104
  jmp    L153
L268:
  mov    (%r14,%r15,8),%rdi
  mov    $0x3d,%esi
  call   <strchr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L79
  movb   $0x0,(%rax)
  mov    (%r14,%r15,8),%rdi
  call   <oauth_url_escape@plt>
  mov    %rax,%rbx
  movb   $0x3d,0x0(%rbp)
  lea    0x1(%rbp),%rdi
  call   <oauth_url_escape@plt>
  mov    %rax,%rbp
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,0x1c(%rsp)
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0x1c(%rsp),%ecx
  lea    0x2(%rcx,%rax,1),%esi
  add    0x24(%rsp),%esi
  mov    %rbx,%rdi
  call   <xrealloc@plt>
  mov    %rax,%rbx
  lea    D110(%rip),%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  test   $0x4,%r13b
  jne    L264
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
L126:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    (%rsp),%eax
L261:
  mov    0x20(%rsp),%ecx
  lea    0x1(%rax,%rcx,1),%esi
  mov    %r12,%rdi
  call   <xrealloc@plt>
  mov    %rax,%r12
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x8(%rsp)
  je     L187
  cmpl   $0x0,0x4(%rsp)
  jne    L187
  mov    0x28(%rsp),%rsi
L169:
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  movl   $0x0,0x4(%rsp)
  cmpb   $0x0,0xf(%rsp)
  jne    L258
L85:
  mov    %rbx,%rdi
  call   <free@plt>
L153:
  add    $0x1,%r15
  cmp    0x10(%rsp),%r15
  je     L239
L66:
  test   $0x1,%r13b
  jne    L78
L182:
  test   $0x2,%r13b
  jne    L15
L104:
  movl   $0x0,(%rsp)
  test   %r12,%r12
  je     L277
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,(%rsp)
L277:
  mov    %r15d,0x18(%rsp)
  cmp    %r15d,0x8(%rsp)
  sete   %dl
  test   %r15d,%r15d
  sete   %al
  and    %al,%dl
  mov    %dl,0xf(%rsp)
  je     L268
  lea    D114(%rip),%rsi
  mov    (%r14),%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L268
  mov    (%r14),%rdi
  call   <xstrdup@plt>
  mov    %rax,%rbx
  mov    %rax,%rdi
  call   <strlen@plt>
  add    (%rsp),%eax
  mov    0x20(%rsp),%ecx
  lea    0x1(%rcx,%rax,1),%esi
  mov    %r12,%rdi
  call   <xrealloc@plt>
  mov    %rax,%r12
  cmpl   $0x0,0x8(%rsp)
  je     L217
  cmpl   $0x0,0x4(%rsp)
  jne    L217
  mov    0x28(%rsp),%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L258:
  lea    D114(%rip),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  movl   $0x0,0x4(%rsp)
  test   %rax,%rax
  je     L85
  lea    D77(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  movl   $0x1,0x4(%rsp)
  jmp    L85
L79:
  mov    (%r14,%r15,8),%rdi
  call   <xstrdup@plt>
  mov    %rax,%rbx
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    0x2(%rax),%esi
  mov    %rbx,%rdi
  call   <xrealloc@plt>
  mov    %rax,%rbx
  lea    D110(%rip),%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    (%rsp),%eax
  jmp    L261
L264:
  lea    D71(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D71(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L126
L187:
  lea    D3(%rip),%rsi
  jmp    L169
L217:
  lea    D3(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L258
L239:
  mov    %r12,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D48
type_infered: string
name: unpack_data
arguments: label: D20
type_infered: string
name: unpack_data
arguments: label: D110
type_infered: string
name: unpack_data
arguments: label: D114
type_infered: string
name: unpack_data
arguments: label: D77
type_infered: string
name: unpack_data
arguments: label: D71
type_infered: string
name: unpack_data
arguments: label: D3
type_infered: string

tool: D48: oauth_

tool: D20: x_oauth_

tool: D110: =

tool: D114: :/

tool: D77: ?

tool: D71: "

tool: 

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);
}
```