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

```asm
<tparam1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8,-0x78(%rbp)
  mov    %r9,%rbx
  mov    -0x58(%rbp),%r14
  mov    -0x60(%rbp),%r13
  movl   $0x0,-0x4c(%rbp)
  mov    %rbx,-0x38(%rbp)
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
L350:
  lea    0x5(%r13),%rax
  cmp    %rax,-0x40(%rbp)
  ja     L212
  cmpl   $0x0,-0x4c(%rbp)
  jne    L155
  mov    -0x64(%rbp),%eax
  add    $0x28,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <xmalloc@plt>
  cltq
  mov    %rax,%r12
  addq   $0x28,-0x40(%rbp)
  mov    %r13,%rax
  sub    -0x60(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  mov    %rax,%rsi
  mov    %r12,%rdi
  call   <memmove@plt>
  jmp    L89
L155:
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  shll   -0x4c(%rbp)
  mov    -0x4c(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <xrealloc@plt>
  cltq
  mov    %rax,%r12
L89:
  mov    %r12,%rax
  sub    -0x60(%rbp),%rax
  add    %rax,%r13
  mov    %r12,%rax
  sub    -0x60(%rbp),%rax
  add    %rax,-0x40(%rbp)
  mov    %r12,-0x60(%rbp)
L212:
  mov    %r14,%rax
  lea    0x1(%rax),%r14
  movzbl (%rax),%eax
  movsbl %al,%r15d
  test   %r15d,%r15d
  je     L135
  cmp    $0x25,%r15d
  jne    L193
  mov    %r14,%rax
  lea    0x1(%rax),%r14
  movzbl (%rax),%eax
  movsbl %al,%r15d
  mov    (%rbx),%r12d
  lea    -0x25(%r15),%eax
  cmp    $0x4d,%eax
  ja     L350
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D5(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D5(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  cmp    $0x9,%r12d
  jle    L57
  cmp    $0x63,%r12d
  jle    L20
  cmp    $0x3e7,%r12d
  jle    L86
  movslq %r12d,%rax
  imul   $0x10624dd3,%rax,%rax
  shr    $0x20,%rax
  sar    $0x6,%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x30(%rax),%edx
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  movslq %r12d,%rax
  imul   $0x10624dd3,%rax,%rax
  shr    $0x20,%rax
  sar    $0x6,%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  imul   $0x3e8,%eax,%edx
  mov    %r12d,%eax
  sub    %edx,%eax
  mov    %eax,%r12d
L86:
  movslq %r12d,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x30(%rax),%edx
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  jmp    L119
L20:
  nop
L119:
  movslq %r12d,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  imul   $0x64,%eax,%edx
  mov    %r12d,%eax
  sub    %edx,%eax
  mov    %eax,%r12d
  movslq %r12d,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x30(%rax),%edx
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  jmp    L406
L57:
  nop
L406:
  movslq %r12d,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %r12d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %r12d,%edx
  sub    %eax,%edx
  mov    %edx,%eax
  lea    0x30(%rax),%edx
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  add    $0x4,%rbx
  jmp    L158
  cmp    $0x5f,%r12d
  jle    L111
  movslq %r12d,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  sar    $0x4,%eax
  mov    %r12d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  movslq %r12d,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  sar    $0x4,%eax
  mov    %r12d,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x5,%eax
  mov    %r12d,%edx
  sub    %eax,%edx
  mov    %edx,%r12d
L111:
  mov    %r14,%rax
  lea    0x1(%rax),%r14
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,%r12d
  cmpq   $0x0,-0x78(%rbp)
  je     L249
  jmp    L419
L12:
  add    $0x1,%r12d
  cmp    -0x38(%rbp),%rbx
  jne    L305
  addl   $0x1,-0x44(%rbp)
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  neg    %rax
  add    %rax,-0x40(%rbp)
  jmp    L419
L305:
  addl   $0x1,-0x48(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  neg    %rax
  add    %rax,-0x40(%rbp)
L419:
  test   %r12d,%r12d
  je     L12
  cmp    $0xa,%r12d
  je     L12
  cmp    $0x9,%r12d
  je     L12
L249:
  test   %r12d,%r12d
  je     L13
  mov    %r12d,%edx
  jmp    L241
L13:
  mov    $0xffffff80,%edx
L241:
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %dl,(%rax)
  add    $0x4,%rbx
  jmp    L158
  sub    $0x4,%rbx
  jmp    L158
  mov    0x4(%rbx),%eax
  mov    %eax,(%rbx)
  lea    0x4(%rbx),%rax
  mov    %r12d,(%rax)
  addq   $0x4,-0x38(%rbp)
  jmp    L158
  mov    (%rbx),%edx
  mov    %r14,%rax
  lea    0x1(%rax),%r14
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    %eax,%edx
  jle    L134
  mov    (%rbx),%edx
  movzbl (%r14),%eax
  movsbl %al,%eax
  add    %edx,%eax
  mov    %eax,(%rbx)
L134:
  add    $0x1,%r14
  jmp    L158
  lea    0x2(%r14),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%r12d
  lea    0x1(%r14),%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  jne    L301
  movslq %r12d,%rax
  shl    $0x2,%rax
  sub    $0x100,%rax
  add    %rbx,%rax
  mov    (%rax),%r12d
L301:
  movzbl (%r14),%eax
  cmp    $0x2d,%al
  jne    L306
  mov    (%rbx),%eax
  sub    %r12d,%eax
  mov    %eax,(%rbx)
  jmp    L394
L306:
  movzbl (%r14),%eax
  cmp    $0x2b,%al
  jne    L478
  mov    (%rbx),%eax
  add    %r12d,%eax
  mov    %eax,(%rbx)
  jmp    L394
L478:
  movzbl (%r14),%eax
  cmp    $0x2a,%al
  jne    L16
  mov    (%rbx),%eax
  imul   %r12d,%eax
  mov    %eax,(%rbx)
  jmp    L394
L16:
  movzbl (%r14),%eax
  cmp    $0x2f,%al
  jne    L9
  mov    (%rbx),%eax
  cltd
  idiv   %r12d
  mov    %eax,(%rbx)
  jmp    L394
L9:
  mov    %r12d,(%rbx)
L394:
  add    $0x3,%r14
  jmp    L158
  mov    (%rbx),%eax
  add    $0x1,%eax
  mov    %eax,(%rbx)
  lea    0x4(%rbx),%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L158
  mov    (%rbx),%eax
  xor    $0x60,%eax
  mov    %eax,(%rbx)
  lea    0x4(%rbx),%rax
  mov    (%rax),%edx
  lea    0x4(%rbx),%rax
  xor    $0x60,%edx
  mov    %edx,(%rax)
  jmp    L158
  mov    (%rbx),%eax
  xor    $0x7f,%eax
  mov    %eax,(%rbx)
  lea    0x4(%rbx),%rax
  mov    (%rax),%edx
  lea    0x4(%rbx),%rax
  xor    $0x7f,%edx
  mov    %edx,(%rax)
  jmp    L158
  mov    (%rbx),%ecx
  movslq %r12d,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %r12d,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  mov    %eax,(%rbx)
  jmp    L158
  mov    (%rbx),%eax
  mov    %r12d,%edx
  sar    $0x1f,%edx
  mov    %edx,%ecx
  shr    $0x1c,%ecx
  lea    (%r12,%rcx,1),%edx
  and    $0xf,%edx
  sub    %ecx,%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  jmp    L158
L193:
  nop
  jmp    L29
  nop
L29:
  mov    %r13,%rax
  lea    0x1(%rax),%r13
  mov    %r15d,%edx
  mov    %dl,(%rax)
L158:
  jmp    L350
L135:
  nop
  movb   $0x0,0x0(%r13)
  jmp    L170
L162:
  mov    -0x70(%rbp),%rax
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
L170:
  mov    -0x44(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  test   %eax,%eax
  jg     L162
  jmp    L58
L372:
  mov    -0x78(%rbp),%rax
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
L58:
  mov    -0x48(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  test   %eax,%eax
  jg     L372
  mov    -0x60(%rbp),%rax
  add    $0x58,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
char *tparam1(string, outstring, len, up, left, argp)
char *string;
char *outstring;
int len;
char *up, *left;
register int *argp;
{
  register int c;
  register char *p = string;
  register char *op = outstring;
  char *outend;
  int outlen = 0;
  register int tem;
  int *old_argp = argp;
  int doleft = 0;
  int doup = 0;
  outend = outstring + len;
  while (1) {
    if (op + 5 >= outend) {
      register char *new;
      if (outlen == 0) {
        outlen = len + 40;
        new = (char *)xmalloc(outlen);
        outend += 40;
        bcopy(outstring, new, op - outstring);
      } else {
        outend += outlen;
        outlen *= 2;
        new = (char *)xrealloc(outstring, outlen);
      }
      op += new - outstring;
      outend += new - outstring;
      outstring = new;
    }
    c = *p++;
    if (!c)
      break;
    if (c == '%') {
      c = *p++;
      tem = *argp;
      switch (c) {
      case 'd':
        if (tem < 10)
          goto onedigit;
        if (tem < 100)
          goto twodigit;
      case '3':
        if (tem > 999) {
          *op++ = tem / 1000 + '0';
          tem %= 1000;
        }
        *op++ = tem / 100 + '0';
      case '2':
      twodigit:
        tem %= 100;
        *op++ = tem / 10 + '0';
      onedigit:
        *op++ = tem % 10 + '0';
        argp++;
        break;
      case 'C':
        if (tem >= 96) {
          *op++ = tem / 96;
          tem %= 96;
        }
      case '+':
        tem += *p++;
      case '.':
        if (left) {
          while (tem == 0 || tem == '\n' || tem == '\t') {
            tem++;
            if (argp == old_argp)
              doup++, outend -= strlen(up);
            else
              doleft++, outend -= strlen(left);
          }
        }
        *op++ = tem ? tem : 0200;
      case 'f':
        argp++;
        break;
      case 'b':
        argp--;
        break;
      case 'r':
        argp[0] = argp[1];
        argp[1] = tem;
        old_argp++;
        break;
      case '>':
        if (argp[0] > *p++)
          argp[0] += *p;
        p++;
        break;
      case 'a':
        tem = p[2] & 0177;
        if (p[1] == 'p')
          tem = argp[tem - 0100];
        if (p[0] == '-')
          argp[0] -= tem;
        else if (p[0] == '+')
          argp[0] += tem;
        else if (p[0] == '*')
          argp[0] *= tem;
        else if (p[0] == '/')
          argp[0] /= tem;
        else
          argp[0] = tem;
        p += 3;
        break;
      case 'i':
        argp[0]++;
        argp[1]++;
        break;
      case '%':
        goto ordinary;
      case 'n':
        argp[0] ^= 0140;
        argp[1] ^= 0140;
        break;
      case 'm':
        argp[0] ^= 0177;
        argp[1] ^= 0177;
        break;
      case 'B':
        argp[0] += 6 * (tem / 10);
        break;
      case 'D':
        argp[0] -= 2 * (tem % 16);
        break;
      }
    } else
    ordinary:
      *op++ = c;
  }
  *op = 0;
  while (doup-- > 0)
    strcat(op, up);
  while (doleft-- > 0)
    strcat(op, left);
  return outstring;
}
```