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

```asm
<BLZ_Code>:
  endbr64
  push   %r15
  lea    0xe(%rsi),%eax
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x48,%rsp
  mov    %rdx,0x38(%rsp)
  mov    %esi,%edx
  add    $0x7,%edx
  mov    %esi,0x28(%rsp)
  cmovns %edx,%eax
  mov    %ecx,0x24(%rsp)
  sar    $0x3,%eax
  lea    0xb(%rsi,%rax,1),%edi
  mov    $0x1,%esi
  call   <Memory@plt>
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    %rax,%r15
  call   <BLZ_Invert@plt>
  movslq %ebx,%rsi
  lea    (%r14,%rsi,1),%rbx
  mov    %rsi,(%rsp)
  cmp    %rbx,%r14
  jae    L230
  mov    %esi,0x10(%rsp)
  mov    %r14,%rcx
  mov    %r15,%rax
  xor    %ebp,%ebp
  movl   $0x0,0x20(%rsp)
  mov    %r15,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L769:
  shr    %bpl
  je     L17
  mov    0x8(%rsp),%rsi
  mov    %rax,%r12
  movzbl (%rsi),%esi
  add    %esi,%esi
  mov    %sil,0x17(%rsp)
L82:
  mov    %rcx,%rax
  mov    $0x1002,%edx
  sub    %r14,%rax
  cmp    %rdx,%rax
  cmovg  %rdx,%rax
  mov    %eax,%r10d
  cmp    $0x2,%eax
  jbe    L696
  mov    $0x2,%esi
  mov    $0x3,%edx
  nopl   0x0(%rax,%rax,1)
L92:
  mov    %edx,%edi
  mov    %rcx,%r9
  xor    %eax,%eax
  sub    %rdi,%r9
  nopw   0x0(%rax,%rax,1)
L21:
  lea    (%rcx,%rax,1),%rdi
  mov    %eax,%r8d
  cmp    %rdi,%rbx
  je     L543
  cmp    %eax,%edx
  jbe    L543
  movzbl (%r9,%rax,1),%edi
  cmp    %dil,(%rcx,%rax,1)
  jne    L543
  add    $0x1,%rax
  cmp    $0x12,%rax
  jne    L21
  cmp    $0x11,%esi
  ja     L721
  mov    0x24(%rsp),%esi
  test   %esi,%esi
  jne    L15
  add    $0x12,%rcx
  mov    %edx,%r13d
  mov    $0xfffffff0,%eax
L64:
  movzbl 0x17(%rsp),%edx
  mov    0x8(%rsp),%rsi
  mov    %rcx,%r15
  sub    %r14,%r15
  or     $0x1,%edx
  mov    %dl,(%rsi)
  lea    -0x3(%r13),%edx
  shr    $0x8,%edx
  or     %edx,%eax
  mov    %al,(%r12)
  lea    -0x3(%r13),%eax
  mov    %al,0x1(%r12)
  lea    0x2(%r12),%rax
L682:
  mov    (%rsp),%rsi
  mov    %rax,%r12
  sub    0x18(%rsp),%r12
  mov    0x10(%rsp),%edi
  lea    (%r12,%rsi,1),%rdx
  mov    0x20(%rsp),%esi
  sub    %r15,%rdx
  add    %edi,%esi
  mov    %esi,%esi
  cmp    %rsi,%rdx
  jge    L560
  mov    0x28(%rsp),%esi
  mov    %r12d,0x20(%rsp)
  sub    %r15d,%esi
  mov    %esi,0x10(%rsp)
L560:
  cmp    %rbx,%rcx
  jb     L769
  mov    0x18(%rsp),%r15
  cmp    $0x1,%bpl
  je     L649
  mov    0x8(%rsp),%rax
  movzbl (%rax),%eax
  nopw   0x0(%rax,%rax,1)
L124:
  shr    %bpl
  add    %eax,%eax
  cmp    $0x1,%bpl
  jne    L124
  mov    0x8(%rsp),%rsi
  mov    %al,(%rsi)
L649:
  mov    0x28(%rsp),%r13d
  mov    %r14,%rdi
  mov    %r12d,%ebp
  mov    %r13d,%esi
  call   <BLZ_Invert@plt>
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <BLZ_Invert@plt>
  mov    0x20(%rsp),%eax
  test   %eax,%eax
  je     L284
  add    0x10(%rsp),%eax
  lea    0x4(%r13),%edx
  mov    %eax,%r8d
  lea    0x3(%rax),%eax
  and    $0xfffffffc,%eax
  add    $0x8,%eax
  cmp    %eax,%edx
  jae    L242
L284:
  mov    (%rsp),%rax
  lea    0x1(%r14),%rcx
  mov    %r15,%rdx
  sub    %rcx,%rdx
  sub    $0x1,%rax
  cmp    $0xe,%rdx
  jbe    L594
  cmp    $0x6,%rax
  jbe    L594
  cmp    $0xe,%rax
  jbe    L802
  mov    (%rsp),%rdx
  mov    %r14,%rcx
  mov    %r15,%rax
  sub    %r15,%rcx
  and    $0xfffffffffffffff0,%rdx
  add    %r15,%rdx
L336:
  movdqu (%rax,%rcx,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L336
  mov    (%rsp),%rsi
  mov    %rsi,%rcx
  and    $0xfffffffffffffff0,%rcx
  lea    (%r15,%rcx,1),%rax
  lea    (%r14,%rcx,1),%rdx
  cmp    %rcx,%rsi
  je     L459
  sub    %rcx,%rsi
  lea    -0x1(%rsi),%rdi
  cmp    $0x6,%rdi
  jbe    L971
L918:
  mov    (%r14,%rcx,1),%rdi
  mov    %rdi,(%r15,%rcx,1)
  mov    %rsi,%rcx
  and    $0xfffffffffffffff8,%rcx
  add    %rcx,%rax
  add    %rcx,%rdx
  cmp    %rcx,%rsi
  je     L50
L971:
  movzbl (%rdx),%ecx
  mov    %cl,(%rax)
  lea    0x1(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x1(%rdx),%ecx
  mov    %cl,0x1(%rax)
  lea    0x2(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x2(%rdx),%ecx
  mov    %cl,0x2(%rax)
  lea    0x3(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x3(%rdx),%ecx
  mov    %cl,0x3(%rax)
  lea    0x4(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x4(%rdx),%ecx
  mov    %cl,0x4(%rax)
  lea    0x5(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x5(%rdx),%ecx
  mov    %cl,0x5(%rax)
  lea    0x6(%rdx),%rcx
  cmp    %rcx,%rbx
  jbe    L50
  movzbl 0x6(%rdx),%edx
  mov    %dl,0x6(%rax)
L50:
  mov    (%rsp),%rax
  add    %r15,%rax
L459:
  testb  $0x3,0x28(%rsp)
  je     L836
L188:
  movb   $0x0,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdx
  sub    %r15,%rdx
  and    $0x3,%edx
  jne    L188
L836:
  movl   $0x0,(%rax)
  add    $0x4,%rax
L900:
  mov    0x38(%rsp),%rsi
  sub    %r15,%rax
  mov    %eax,(%rsi)
  add    $0x48,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L543:
  cmp    %r8d,%esi
  jae    L721
  mov    %edx,%r13d
  mov    %r8d,%esi
L721:
  add    $0x1,%edx
  cmp    %edx,%r10d
  jae    L92
  mov    0x24(%rsp),%r8d
  test   %r8d,%r8d
  je     L96
  mov    %esi,%eax
  mov    %r13d,%edx
  cmp    $0x2,%esi
  jne    L969
L312:
  mov    0x8(%rsp),%rax
  movzbl 0x17(%rsp),%esi
  lea    0x1(%rcx),%rdi
  mov    %rdi,%r15
  mov    %sil,(%rax)
  sub    %r14,%r15
L388:
  movzbl (%rcx),%eax
  mov    %rdi,%rcx
  mov    %al,(%r12)
  lea    0x1(%r12),%rax
  jmp    L682
L17:
  movb   $0x0,(%rax)
  lea    0x1(%rax),%r12
  mov    $0xffffff80,%ebp
  movb   $0x0,0x17(%rsp)
  mov    %rax,0x8(%rsp)
  jmp    L82
L96:
  mov    0x8(%rsp),%rax
  movzbl 0x17(%rsp),%edx
  lea    0x1(%rcx),%rdi
  mov    %rdi,%r15
  mov    %dl,(%rax)
  sub    %r14,%r15
  cmp    $0x2,%esi
  je     L388
  lea    -0x3(%rsi),%eax
  add    %rsi,%rcx
  shl    $0x4,%eax
  jmp    L64
L15:
  mov    $0x12,%esi
L969:
  add    %rax,%rcx
  cmp    %rbx,%rcx
  jb     L353
L167:
  lea    -0x3(%rsi),%eax
  mov    %edx,%r13d
  shl    $0x4,%eax
  jmp    L64
L353:
  mov    %rcx,%rdi
  mov    $0x1002,%r8d
  sub    %r14,%rdi
  cmp    %r8,%rdi
  cmovg  %r8,%rdi
  mov    %edi,%r13d
  cmp    $0x2,%edi
  jbe    L656
  mov    $0x2,%r15d
  mov    $0x3,%r9d
L426:
  mov    %r9d,%r8d
  mov    %rcx,%r11
  xor    %edi,%edi
  sub    %r8,%r11
  nopl   0x0(%rax,%rax,1)
L358:
  lea    (%rcx,%rdi,1),%r8
  mov    %edi,%r10d
  cmp    %r8,%rbx
  je     L865
  cmp    %edi,%r9d
  jbe    L865
  movzbl (%r11,%rdi,1),%r8d
  cmp    %r8b,(%rcx,%rdi,1)
  jne    L865
  add    $0x1,%rdi
  cmp    $0x12,%rdi
  jne    L358
  cmp    $0x11,%r15d
  jbe    L4
L805:
  add    $0x1,%r9d
  cmp    %r9d,%r13d
  jae    L426
  lea    -0x1(%rsi),%r8d
  mov    %r15d,0x2c(%rsp)
  sub    %r8,%rcx
  mov    %rcx,%r15
  mov    %rcx,%rdi
  mov    $0x1002,%ecx
  sub    %r14,%r15
  cmp    %rcx,%r15
  cmovle %r15,%rcx
  mov    %ecx,%r11d
  cmp    $0x2,%ecx
  jbe    L178
L392:
  mov    %rax,0x30(%rsp)
  mov    $0x2,%r13d
  mov    $0x3,%r9d
  mov    %r11d,%eax
L204:
  mov    %r9d,%r8d
  mov    %rdi,%r11
  xor    %ecx,%ecx
  sub    %r8,%r11
  nopl   0x0(%rax)
L546:
  lea    (%rdi,%rcx,1),%r8
  mov    %ecx,%r10d
  cmp    %r8,%rbx
  je     L745
  cmp    %ecx,%r9d
  jbe    L745
  movzbl (%r11,%rcx,1),%r8d
  cmp    %r8b,(%rdi,%rcx,1)
  jne    L745
  add    $0x1,%rcx
  cmp    $0x12,%rcx
  jne    L546
  cmp    $0x11,%r13d
  jbe    L398
L801:
  add    $0x1,%r9d
  cmp    %r9d,%eax
  jae    L204
  cmpl   $0x2,0x2c(%rsp)
  mov    0x30(%rsp),%rax
  lea    -0x1(%rdi),%rcx
  je     L668
  cmp    $0x2,%r13d
  jne    L370
L654:
  mov    0x2c(%rsp),%r8d
  add    %esi,%r8d
  cmp    %r13d,%r8d
  ja     L903
  mov    0x8(%rsp),%rax
  movzbl 0x17(%rsp),%esi
  mov    %edx,%r13d
  mov    %sil,(%rax)
  jmp    L388
  nopl   (%rax)
L865:
  cmp    %r10d,%r15d
  cmovb  %r10d,%r15d
  jmp    L805
L745:
  cmp    %r10d,%r13d
  cmovb  %r10d,%r13d
  jmp    L801
L696:
  mov    0x24(%rsp),%r9d
  test   %r9d,%r9d
  jne    L312
  mov    0x8(%rsp),%rax
  movzbl 0x17(%rsp),%esi
  lea    0x1(%rcx),%rdi
  mov    %rdi,%r15
  mov    %sil,(%rax)
  sub    %r14,%r15
  jmp    L388
L668:
  cmp    $0x2,%r13d
  jne    L505
L903:
  add    %rax,%rcx
  jmp    L167
L242:
  lea    0xb(%r8),%edi
  mov    $0x1,%esi
  mov    %r8d,(%rsp)
  call   <Memory@plt>
  mov    0x10(%rsp),%edi
  mov    (%rsp),%r8d
  mov    %rax,%r13
  test   %edi,%edi
  je     L718
  mov    0x10(%rsp),%esi
  lea    0x1(%r14),%rcx
  mov    %r13,%rdx
  sub    %rcx,%rdx
  lea    -0x1(%rsi),%eax
  cmp    $0xe,%rdx
  jbe    L77
  cmp    $0x6,%eax
  jbe    L77
  cmp    $0xe,%eax
  jbe    L536
  mov    %esi,%eax
  mov    %r14,%rcx
  mov    %r13,%rdx
  shr    $0x4,%eax
  sub    %r13,%rcx
  shl    $0x4,%rax
  add    %r13,%rax
L220:
  movdqu (%rdx,%rcx,1),%xmm1
  add    $0x10,%rdx
  movups %xmm1,-0x10(%rdx)
  cmp    %rax,%rdx
  jne    L220
  mov    0x10(%rsp),%ebx
  mov    %ebx,%eax
  mov    %rbx,%rsi
  and    $0xfffffff0,%eax
  test   $0xf,%bl
  je     L215
  sub    %eax,%esi
  lea    -0x1(%rsi),%ecx
  mov    %esi,%edx
  cmp    $0x6,%ecx
  jbe    L133
L129:
  mov    %eax,%ecx
  mov    0x10(%rsp),%ebx
  mov    (%r14,%rcx,1),%rsi
  mov    %rsi,0x0(%r13,%rcx,1)
  mov    %edx,%ecx
  and    $0xfffffff8,%ecx
  add    %ecx,%eax
  cmp    %edx,%ecx
  je     L215
L133:
  mov    %eax,%edx
  mov    0x10(%rsp),%ebx
  movzbl (%r14,%rdx,1),%ecx
  mov    %cl,0x0(%r13,%rdx,1)
  lea    0x1(%rax),%edx
  cmp    %ebx,%edx
  jae    L215
  movzbl (%r14,%rdx,1),%ecx
  mov    %cl,0x0(%r13,%rdx,1)
  lea    0x2(%rax),%edx
  cmp    %ebx,%edx
  jae    L215
  movzbl (%r14,%rdx,1),%ecx
  mov    %cl,0x0(%r13,%rdx,1)
  lea    0x3(%rax),%edx
  cmp    %ebx,%edx
  jae    L215
  movzbl (%r14,%rdx,1),%ecx
  mov    %cl,0x0(%r13,%rdx,1)
  lea    0x4(%rax),%edx
  cmp    %edx,%ebx
  jbe    L215
  movzbl (%r14,%rdx,1),%ecx
  mov    %cl,0x0(%r13,%rdx,1)
  lea    0x5(%rax),%edx
  cmp    %edx,%ebx
  jbe    L215
  movzbl (%r14,%rdx,1),%ecx
  add    $0x6,%eax
  mov    %cl,0x0(%r13,%rdx,1)
  cmp    %eax,%ebx
  jbe    L215
  movzbl (%r14,%rax,1),%edx
  mov    %dl,0x0(%r13,%rax,1)
L215:
  mov    0x20(%rsp),%eax
  sub    %eax,%r12d
  sub    %ebp,%eax
  add    0x10(%rsp),%eax
L457:
  mov    %r12d,%edx
  movzbl (%r15,%rdx,1),%ecx
  lea    (%rax,%r12,1),%edx
  add    $0x1,%r12d
  mov    %cl,0x0(%r13,%rdx,1)
  cmp    %r12d,%ebp
  jne    L457
  mov    %r15,%rdi
  mov    %r8d,(%rsp)
  call   <free@plt>
  mov    0x20(%rsp),%eax
  mov    0x28(%rsp),%esi
  mov    (%rsp),%r8d
  lea    (%rbx,%rax,1),%r14
  lea    0x0(%r13,%r14,1),%rax
  sub    %r8d,%esi
  and    $0x3,%r14d
  je     L272
  mov    $0x8,%edx
  sub    %eax,%edx
L579:
  movb   $0xff,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  lea    (%rdx,%rax,1),%ecx
  sub    %r13,%rdi
  and    $0x3,%edi
  jne    L579
  mov    %ecx,%edi
L611:
  mov    0x20(%rsp),%edx
  sub    %ecx,%esi
  add    $0x8,%rax
  mov    %r13,%r15
  mov    %esi,-0x4(%rax)
  add    %ecx,%edx
  mov    %edx,-0x8(%rax)
  mov    %dil,-0x5(%rax)
  jmp    L900
L398:
  cmpl   $0x2,0x2c(%rsp)
  mov    0x30(%rsp),%rax
  lea    -0x1(%rdi),%rcx
  mov    $0x12,%r13d
  jne    L370
L505:
  movl   $0x1,0x2c(%rsp)
L370:
  add    $0x1,%r13d
  jmp    L654
L594:
  mov    (%rsp),%rax
  mov    %r14,%rcx
  mov    %r15,%rdx
  sub    %r15,%rcx
  add    %r15,%rax
L643:
  movzbl (%rdx,%rcx,1),%esi
  add    $0x1,%rdx
  mov    %sil,-0x1(%rdx)
  cmp    %rdx,%rax
  jne    L643
  jmp    L459
L4:
  lea    -0x1(%rsi),%r8d
  movl   $0x12,0x2c(%rsp)
  sub    %r8,%rcx
  mov    %rcx,%r15
  mov    %rcx,%rdi
  mov    $0x1002,%ecx
  sub    %r14,%r15
  cmp    %rcx,%r15
  cmovle %r15,%rcx
  mov    %ecx,%r11d
  cmp    $0x2,%ecx
  ja     L392
  lea    -0x1(%rdi),%rcx
  jmp    L699
  nopw   0x0(%rax,%rax,1)
L230:
  mov    0x28(%rsp),%esi
  mov    %r14,%rdi
  call   <BLZ_Invert@plt>
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <BLZ_Invert@plt>
  mov    %r15,%rax
  jmp    L836
L802:
  mov    (%rsp),%rsi
  mov    %r15,%rax
  mov    %r14,%rdx
  xor    %ecx,%ecx
  jmp    L918
L536:
  mov    %esi,%edx
  xor    %eax,%eax
  jmp    L129
L77:
  mov    0x10(%rsp),%ebx
  mov    %r14,%rdx
  mov    %r13,%rax
  sub    %r13,%rdx
  lea    (%rbx,%r13,1),%rcx
L114:
  movzbl (%rdx,%rax,1),%esi
  add    $0x1,%rax
  mov    %sil,-0x1(%rax)
  cmp    %rax,%rcx
  jne    L114
  jmp    L215
L718:
  xor    %ebx,%ebx
  jmp    L215
L656:
  lea    -0x1(%rsi),%r8d
  movl   $0x2,0x2c(%rsp)
  sub    %r8,%rcx
  mov    %rcx,%r15
  mov    %rcx,%rdi
  mov    $0x1002,%ecx
  sub    %r14,%r15
  cmp    %rcx,%r15
  cmovle %r15,%rcx
  mov    %ecx,%r11d
  cmp    $0x2,%ecx
  ja     L392
  lea    -0x1(%rdi),%rcx
  jmp    L903
  nopw   0x0(%rax,%rax,1)
L178:
  cmpl   $0x2,0x2c(%rsp)
  lea    -0x1(%rdi),%rcx
  je     L903
L699:
  mov    $0x2,%r13d
  jmp    L654
L272:
  mov    $0x8,%edi
  mov    $0x8,%ecx
  jmp    L611
```

assistant: ```c
char *BLZ_Code(unsigned char *raw_buffer, int raw_len, int *new_len, int best) {
  unsigned char *pak_buffer, *pak, *raw, *raw_end, *flg, *tmp;
  unsigned int pak_len, inc_len, hdr_len, enc_len, len, pos, max;
  unsigned int len_best, pos_best, len_next, pos_next, len_post, pos_post;
  unsigned int pak_tmp, raw_tmp;
  unsigned char mask;
  pak_tmp = 0;
  raw_tmp = raw_len;
  pak_len = raw_len + ((raw_len + 7) / 8) + 11;
  pak_buffer = (unsigned char *)Memory(pak_len, sizeof(char));
  BLZ_Invert(raw_buffer, raw_len);
  pak = pak_buffer;
  raw = raw_buffer;
  raw_end = raw_buffer + raw_len;
  mask = 0;
  while (raw < raw_end) {
    if (!(mask >>= 1)) {
      *(flg = pak) = 0;
      pak++;
      mask = 0x80;
    }
    {
      len_best = 2;
      max = raw - raw_buffer >= 0x1002 ? 0x1002 : raw - raw_buffer;
      for (pos = 3; pos <= max; pos++) {
        for (len = 0; len < 0x12; len++) {
          if (raw + len == raw_end)
            break;
          if (len >= pos)
            break;
          if (*(raw + len) != *(raw + len - pos))
            break;
        }
        if (len > len_best) {
          pos_best = pos;
          if ((len_best = len) == 0x12)
            break;
        }
      }
    };
    if (best) {
      if (len_best > 2) {
        if (raw + len_best < raw_end) {
          raw += len_best;
          {
            len_next = 2;
            max = raw - raw_buffer >= 0x1002 ? 0x1002 : raw - raw_buffer;
            for (pos = 3; pos <= max; pos++) {
              for (len = 0; len < 0x12; len++) {
                if (raw + len == raw_end)
                  break;
                if (len >= pos)
                  break;
                if (*(raw + len) != *(raw + len - pos))
                  break;
              }
              if (len > len_next) {
                pos_next = pos;
                if ((len_next = len) == 0x12)
                  break;
              }
            }
          };
          raw -= len_best - 1;
          {
            len_post = 2;
            max = raw - raw_buffer >= 0x1002 ? 0x1002 : raw - raw_buffer;
            for (pos = 3; pos <= max; pos++) {
              for (len = 0; len < 0x12; len++) {
                if (raw + len == raw_end)
                  break;
                if (len >= pos)
                  break;
                if (*(raw + len) != *(raw + len - pos))
                  break;
              }
              if (len > len_post) {
                pos_post = pos;
                if ((len_post = len) == 0x12)
                  break;
              }
            }
          };
          raw--;
          if (len_next <= 2)
            len_next = 1;
          if (len_post <= 2)
            len_post = 1;
          if (len_best + len_next <= 1 + len_post)
            len_best = 1;
        }
      }
    }
    *flg <<= 1;
    if (len_best > 2) {
      raw += len_best;
      *flg |= 1;
      *pak = ((len_best - (2 + 1)) << 4) | ((pos_best - 3) >> 8);
      pak++;
      *pak = (pos_best - 3) & 0xFF;
      pak++;
    } else {
      *pak = *raw;
      pak++;
      raw++;
    }
    if (pak - pak_buffer + raw_len - (raw - raw_buffer) < pak_tmp + raw_tmp) {
      pak_tmp = pak - pak_buffer;
      raw_tmp = raw_len - (raw - raw_buffer);
    }
  }
  while (mask && (mask != 1)) {
    mask >>= 1;
    *flg <<= 1;
  }
  pak_len = pak - pak_buffer;
  BLZ_Invert(raw_buffer, raw_len);
  BLZ_Invert(pak_buffer, pak_len);
  if (!pak_tmp || (raw_len + 4 < ((pak_tmp + raw_tmp + 3) & -4) + 8)) {
    pak = pak_buffer;
    raw = raw_buffer;
    raw_end = raw_buffer + raw_len;
    while (raw < raw_end) {
      *pak = *raw;
      pak++;
      raw++;
    }
    while ((pak - pak_buffer) & 3) {
      *pak = 0;
      pak++;
    }
    *(unsigned int *)pak = 0;
    pak += 4;
  } else {
    tmp = (unsigned char *)Memory(raw_tmp + pak_tmp + 11, sizeof(char));
    for (len = 0; len < raw_tmp; len++)
      tmp[len] = raw_buffer[len];
    for (len = 0; len < pak_tmp; len++)
      tmp[raw_tmp + len] = pak_buffer[len + pak_len - pak_tmp];
    pak = pak_buffer;
    pak_buffer = tmp;
    free(pak);
    pak = pak_buffer + raw_tmp + pak_tmp;
    enc_len = pak_tmp;
    hdr_len = 8;
    inc_len = raw_len - pak_tmp - raw_tmp;
    while ((pak - pak_buffer) & 3) {
      *pak = 0xFF;
      pak++;
      hdr_len++;
    }
    *(unsigned int *)pak = enc_len + hdr_len;
    pak += 3;
    *pak = hdr_len;
    pak++;
    *(unsigned int *)pak = inc_len - hdr_len;
    pak += 4;
  }
  *new_len = pak - pak_buffer;
  return (pak_buffer);
}
```