user: 下面的汇编指令对应的C源代码是什么:

```asm
<uncompress_location_positions>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x28,%rsp
  mov    (%rdi),%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rcx,0x10(%rsp)
  test   %sil,%sil
  js     L25
  movzbl %sil,%r15d
  shl    $0x8,%r15d
  or     $0x1,%r15d
  mov    %r15d,(%rbx)
L51:
  mov    %rcx,0x0(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L166
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L25:
  mov    %esi,%eax
  mov    %edx,%r12d
  and    $0x60,%eax
  je     L184
  cmp    $0x20,%al
  je     L212
  cmp    $0x40,%al
  je     L209
  lea    0x1(%rcx),%rax
  movl   $0x60,0x8(%rsp)
  mov    %rax,0x10(%rsp)
  movzbl (%rcx),%eax
  mov    %eax,0xc(%rsp)
  jmp    L121
  nopl   0x0(%rax)
L184:
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
L121:
  lea    0x10(%rsp),%r14
  mov    %r14,%rdi
  call   <uncompress2@plt>
  and    $0x10,%r15d
  mov    %eax,(%rbx)
  jne    L99
  cmp    $0x1,%r12d
  jle    L30
  lea    -0x2(%r12),%eax
  lea    0x4(%rbx),%r13
  lea    0x8(%rbx,%rax,4),%r15
  nopl   0x0(%rax)
L255:
  mov    %r14,%rdi
  add    $0x4,%r13
  call   <uncompress2@plt>
  mov    %eax,-0x4(%r13)
  cmp    %r15,%r13
  jne    L255
  mov    0x10(%rsp),%rcx
L97:
  mov    (%rbx),%edx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L98:
  add    (%rbx,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L98
L139:
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  je     L224
  test   %r12d,%r12d
  mov    $0x1,%edi
  cmovg  %r12d,%edi
  cmp    $0x3,%r12d
  jle    L106
  mov    %edi,%edx
  movd   0xc(%rsp),%xmm2
  mov    %rbx,%rax
  shr    $0x2,%edx
  sub    $0x1,%edx
  pshufd $0x0,%xmm2,%xmm1
  shl    $0x4,%rdx
  lea    0x10(%rbx,%rdx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L92:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  pslld  $0x8,%xmm0
  por    %xmm1,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L92
  mov    %edi,%edx
  and    $0xfffffffc,%edx
  and    $0x3,%edi
  je     L51
L228:
  movslq %edx,%rdi
  mov    0xc(%rsp),%esi
  shl    $0x2,%rdi
  lea    (%rbx,%rdi,1),%r8
  mov    (%r8),%eax
  shl    $0x8,%eax
  or     %esi,%eax
  mov    %eax,(%r8)
  lea    0x1(%rdx),%eax
  cmp    %eax,%r12d
  jle    L51
  lea    0x4(%rbx,%rdi,1),%r8
  add    $0x2,%edx
  mov    (%r8),%eax
  shl    $0x8,%eax
  or     %esi,%eax
  mov    %eax,(%r8)
  cmp    %edx,%r12d
  jle    L51
  lea    0x8(%rbx,%rdi,1),%rdx
  mov    (%rdx),%eax
  shl    $0x8,%eax
  or     %esi,%eax
  mov    %eax,(%rdx)
  jmp    L51
  nopl   (%rax)
L99:
  mov    0x10(%rsp),%rcx
  cmp    $0x1,%r12d
  jle    L227
  lea    -0x1(%r12),%edi
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L288:
  mov    %eax,%edx
  sar    %edx
  movslq %edx,%rdx
  movzbl (%rcx,%rdx,1),%edx
  test   $0x1,%al
  je     L205
  and    $0xf,%edx
  mov    %edx,0x4(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdi
  jne    L288
L47:
  mov    %r12d,%eax
  sar    %eax
  cltq
  add    %rax,%rcx
  mov    %rcx,0x10(%rsp)
  jmp    L97
  nopl   0x0(%rax,%rax,1)
L209:
  movl   $0x9,0xc(%rsp)
  movl   $0x60,0x8(%rsp)
  jmp    L121
  nopl   (%rax)
L212:
  movl   $0x1,0xc(%rsp)
  movl   $0x60,0x8(%rsp)
  jmp    L121
  nopl   (%rax)
L205:
  shr    $0x4,%dl
  movzbl %dl,%edx
  mov    %edx,0x4(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdi
  jne    L288
  jmp    L47
  nopl   (%rax)
L224:
  lea    0x1(%rcx),%rdi
  xor    %edx,%edx
  cs nopw 0x0(%rax,%rax,1)
L242:
  mov    (%rbx,%rdx,4),%eax
  mov    %rdi,0x10(%rsp)
  add    $0x1,%rdi
  movzbl -0x2(%rdi),%r8d
  shl    $0x8,%eax
  or     %r8d,%eax
  mov    %eax,(%rbx,%rdx,4)
  add    $0x1,%rdx
  cmp    %edx,%r12d
  jg     L242
  lea    -0x1(%r12),%eax
  mov    $0x1,%edx
  add    $0x1,%rax
  test   %r12d,%r12d
  cmovle %rdx,%rax
  add    %rax,%rcx
  jmp    L51
L30:
  mov    0x10(%rsp),%rcx
L227:
  test   %r12d,%r12d
  jle    L51
  jmp    L139
  nopl   0x0(%rax,%rax,1)
L106:
  xor    %edx,%edx
  jmp    L228
L166:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void uncompress_location_positions(unsigned char **buf, unsigned char flag, int frequency, unsigned int *posdata) {
  int i, j, tmp;
  unsigned char *p = *buf;
  int common_structure = 0;
  int structure = 0;
  if (!(flag & 0x80)) {
    structure = (1 << 0);
    posdata[0] = ((unsigned int)((unsigned int)((int)(flag)) << (unsigned int)8 | (unsigned int)(structure)));
  } else {
    if ((tmp = (flag & 0x60))) {
      common_structure = 0x60;
      switch (tmp) {
      case 0x20:
        structure = (1 << 0);
        break;
      case 0x40:
        structure = (1 << 0) | (1 << 3);
        break;
      default:
        structure = (int)((unsigned char)*p++);
        break;
      }
    }
    posdata[0] = (unsigned int)uncompress2(&p);
    if (flag & 0x10) {
      for (i = 1, j = 0; i < frequency; i++, j++) {
        if (j % 2)
          posdata[i] = (unsigned int)((unsigned int)p[j / 2] & (unsigned int)0x0F);
        else
          posdata[i] = (unsigned int)((unsigned int)p[j / 2] >> (unsigned int)4);
      }
      p += ((j + 1) / 2);
    } else {
      for (i = 1; i < frequency; i++) {
        tmp = uncompress2(&p);
        posdata[i] = (unsigned int)tmp;
      }
    }
    for (i = 1; i < frequency; i++)
      posdata[i] += posdata[i - 1];
    for (i = 0; i < frequency; i++) {
      if (!common_structure)
        structure = (int)((unsigned char)*p++);
      posdata[i] = ((unsigned int)((unsigned int)(posdata[i]) << (unsigned int)8 | (unsigned int)(structure)));
    }
  }
  *buf = p;
}
```