user: Translate the below assembly code into C programming language:

```asm
<oauth_serialize_url_sep>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,%ebx
  mov    %esi,%r14d
  mov    %esi,0x18(%rsp)
  mov    %rdx,%r13
  mov    %rcx,0x38(%rsp)
  mov    %r8d,%r15d
  mov    %r8d,0x10(%rsp)
  mov    %rcx,%rdi
  call   <strlen@plt>
  mov    %eax,0x30(%rsp)
  mov    $0x1,%edi
  call   <xmalloc@plt>
  mov    %rax,0x8(%rsp)
  movb   $0x0,(%rax)
  cmp    %ebx,%r14d
  jge    L141
  mov    %r15d,%eax
  sar    %eax
  and    $0x2,%eax
  mov    %eax,0x34(%rsp)
  movslq %r14d,%r15
  sub    $0x1,%ebx
  sub    %r14d,%ebx
  lea    0x1(%r15,%rbx,1),%rax
  mov    %rax,0x28(%rsp)
  movl   $0x1,0x14(%rsp)
  mov    %r13,%r14
  jmp    L208
L234:
  mov    (%r14,%r15,8),%rdi
  mov    $0x6,%edx
  lea    D71(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L249
  mov    (%r14,%r15,8),%rdi
  mov    $0x8,%edx
  lea    D97(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L195
  jmp    L249
L88:
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,0x1c(%rsp)
  mov    %r15d,0x20(%rsp)
  cmp    %r15d,0x18(%rsp)
  sete   %bpl
  test   %r15d,%r15d
  sete   %al
  and    %al,%bpl
  je     L17
  lea    D7(%rip),%rsi
  mov    (%r14),%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L220
L17:
  mov    (%r14,%r15,8),%rdi
  mov    $0x3d,%esi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L108
  movb   $0x0,(%rax)
  mov    (%r14,%r15,8),%rdi
  call   <oauth_url_escape@plt>
  mov    %rax,%rbx
  movb   $0x3d,(%r12)
  lea    0x1(%r12),%rdi
  call   <oauth_url_escape@plt>
  mov    %rax,%r12
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    0x2(%r13,%rax,1),%esi
  add    0x34(%rsp),%esi
  mov    %rbx,%rdi
  call   <xrealloc@plt>
  mov    %rax,%rbx
  lea    D0(%rip),%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  testb  $0x4,0x10(%rsp)
  jne    L68
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
L207:
  mov    %r12,%rdi
  call   <xfree@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
L188:
  mov    0x30(%rsp),%ecx
  lea    0x1(%rax,%rcx,1),%esi
  mov    0x8(%rsp),%rdi
  call   <xrealloc@plt>
  mov    %rax,0x8(%rsp)
  mov    0x20(%rsp),%edx
  cmp    %edx,0x18(%rsp)
  je     L225
  cmpl   $0x0,0x14(%rsp)
  jne    L225
  mov    0x38(%rsp),%rsi
L179:
  mov    0x8(%rsp),%r13
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  movl   $0x0,0x14(%rsp)
  test   %bpl,%bpl
  jne    L180
L282:
  mov    %rbx,%rdi
  call   <xfree@plt>
L249:
  add    $0x1,%r15
  cmp    0x28(%rsp),%r15
  je     L141
L208:
  testb  $0x1,0x10(%rsp)
  jne    L234
L195:
  testb  $0x2,0x10(%rsp)
  je     L88
  mov    (%r14,%r15,8),%rdi
  mov    $0x6,%edx
  lea    D71(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L88
  mov    (%r14,%r15,8),%rdi
  mov    $0x8,%edx
  lea    D97(%rip),%rsi
  call   <strncmp@plt>
  test   %r15d,%r15d
  je     L88
  test   %rax,%rax
  je     L88
  jmp    L249
L220:
  mov    (%r14),%rdi
  call   <xstrdup@plt>
  mov    %rax,%rbx
  mov    %r15,0x20(%rsp)
  jmp    L41
L283:
  mov    %r12,%r13
  sub    %rbx,%r13
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x3(%rax),%edi
  call   <xmalloc@plt>
  mov    %rax,%rbp
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    0x2(%rbp,%r13,1),%r15
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  movb   $0x25,0x0(%rbp,%r13,1)
  movb   $0x32,0x1(%rbp,%r13,1)
  movb   $0x30,(%r15)
  mov    %rbx,%rdi
  call   <xfree@plt>
  mov    %rbp,%rbx
L41:
  mov    $0x20,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  jne    L283
  mov    0x20(%rsp),%r15
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
  mov    0x30(%rsp),%ecx
  lea    0x1(%rcx,%rax,1),%esi
  mov    0x8(%rsp),%rdi
  call   <xrealloc@plt>
  mov    %rax,0x8(%rsp)
  cmpl   $0x0,0x18(%rsp)
  je     L82
  cmpl   $0x0,0x14(%rsp)
  jne    L82
  mov    0x38(%rsp),%rsi
  mov    0x8(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
L180:
  lea    D7(%rip),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  movl   $0x0,0x14(%rsp)
  test   %rax,%rax
  je     L282
  lea    D60(%rip),%rsi
  mov    0x8(%rsp),%rdi
  call   <strcat@plt>
  movl   $0x1,0x14(%rsp)
  jmp    L282
L108:
  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    D0(%rip),%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    0x1c(%rsp),%eax
  jmp    L188
L68:
  lea    D20(%rip),%r13
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L207
L225:
  lea    D42(%rip),%rsi
  jmp    L179
L82:
  lea    D42(%rip),%rsi
  mov    0x8(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L180
L141:
  mov    0x8(%rsp),%rax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D71
type: string
name: extract_symbolic_data
arguments: tag: D97
type: string
name: extract_symbolic_data
arguments: tag: D7
type: string
name: extract_symbolic_data
arguments: tag: D0
type: string
name: extract_symbolic_data
arguments: tag: D60
type: string
name: extract_symbolic_data
arguments: tag: D20
type: string
name: extract_symbolic_data
arguments: tag: D42
type: string

tool: D71: oauth_

tool: D97: x_oauth_

tool: D7: :/

tool: D0: =

tool: D60: ?

tool: D20: "

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 = 1;
  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;
    len += strlen(query);
    if (i == start && i == 0 && strstr(argv[i], ":/")) {
      tmp = xstrdup(argv[i]);
      while ((t1 = strchr(tmp, ' '))) {
        size_t off = t1 - tmp;
        char *t2 = (char *)xmalloc(sizeof(char) * (3 + strlen(tmp)));
        strcpy(t2, tmp);
        strcpy(t2 + off + 2, tmp + off);
        *(t2 + off) = '%';
        *(t2 + off + 1) = '2';
        *(t2 + off + 2) = '0';
        xfree(tmp);
        tmp = t2;
      }
      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, "\"");
      xfree(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;
    }
    xfree(tmp);
  }
  return (query);
}
```