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

```asm
<pkg_crypt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L9
  mov    %rsi,%r13
  mov    %edx,%r15d
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L135:
  mov    D3(%rip),%rax
  mov    $0x10,%r14d
  mov    %rsp,%rsi
  mov    %rsp,%rbx
  cmp    %r14d,%r15d
  movslq (%rax),%rax
  cmovle %r15d,%r14d
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L121
L140:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L140
L121:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L48
  orq    $0x0,-0x8(%rsp,%rdx,1)
L48:
  lea    0x3(%rsp),%r9
  mov    -0x48(%rbp),%rdi
  mov    $0x40,%esi
  mov    %r9,%r10
  and    $0xfffffffffffffffc,%r9
  shr    $0x2,%r10
  mov    %r9,%rdx
  mov    %r9,-0x58(%rbp)
  mov    %r10,-0x50(%rbp)
  call   <SHA1@plt>
  lea    -0x1(%r14),%eax
  mov    -0x58(%rbp),%r9
  cmp    $0x2,%eax
  jbe    L120
  mov    -0x50(%rbp),%r10
  movslq %r12d,%rax
  mov    %r14d,%edx
  lea    0x0(%r13,%rax,4),%rax
  shr    $0x2,%edx
  movdqu 0x0(,%r10,4),%xmm0
  movdqu (%rax),%xmm2
  pxor   %xmm2,%xmm0
  movups %xmm0,(%rax)
  cmp    $0x1,%edx
  je     L18
  movdqu 0x10(,%r10,4),%xmm3
  movdqu 0x10(%rax),%xmm0
  pxor   %xmm3,%xmm0
  movups %xmm0,0x10(%rax)
  cmp    $0x2,%edx
  je     L18
  movdqu 0x20(,%r10,4),%xmm0
  movdqu 0x20(%rax),%xmm4
  pxor   %xmm4,%xmm0
  movups %xmm0,0x20(%rax)
  cmp    $0x4,%edx
  jne    L18
  movdqu 0x30(,%r10,4),%xmm0
  movdqu 0x30(%rax),%xmm5
  pxor   %xmm5,%xmm0
  movups %xmm0,0x30(%rax)
  nopl   0x0(%rax)
L47:
  mov    -0x48(%rbp),%rdi
  sub    %r14d,%r15d
  add    %r14d,%r12d
  call   <manipulate@plt>
  mov    %rbx,%rsp
  test   %r15d,%r15d
  jg     L135
L9:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L18:
  mov    %r14d,%esi
  and    $0xfffffffc,%esi
  mov    %esi,%edx
  lea    (%r12,%rsi,1),%eax
  cmp    %esi,%r14d
  je     L47
L62:
  mov    %r14d,%edi
  sub    %esi,%edi
  cmp    $0x1,%edi
  je     L88
  movslq %r12d,%r10
  movq   (%r9,%rsi,4),%xmm0
  add    %rsi,%r10
  mov    %edi,%esi
  lea    0x0(%r13,%r10,4),%r10
  and    $0xfffffffe,%esi
  movq   (%r10),%xmm1
  add    %esi,%edx
  add    %esi,%eax
  pxor   %xmm1,%xmm0
  movq   %xmm0,(%r10)
  cmp    %esi,%edi
  je     L47
L88:
  cltq
  movslq %edx,%rdx
  mov    (%r9,%rdx,4),%edx
  xor    %edx,0x0(%r13,%rax,4)
  jmp    L47
L120:
  mov    %r12d,%eax
  xor    %esi,%esi
  xor    %edx,%edx
  jmp    L62
L49:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void pkg_crypt(uint8_t largekey[0x40], uint8_t *input, int length) {
  int i, offset = 0;
  while (length > 0) {
    int bytes_to_dump = length;
    if (bytes_to_dump > 0x10)
      bytes_to_dump = 0x10;
    uint8_t outHash[SHA_DIGEST_LENGTH];
    SHA1(largekey, 0x40, outHash);
    for (i = 0; i < bytes_to_dump; i++) {
      input[offset] = outHash[i] ^ input[offset];
      offset++;
    }
    manipulate(largekey);
    length -= bytes_to_dump;
  }
}
```