LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt3Zip_MatchFinder_GetMatches
UInt32* Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances)
{
  GET_MATCHES_HEADER(3)
  HASH_ZIP_CALC
  curMatch = p->hash[hv];
  p->hash[hv] = p->pos;
  GET_MATCHES_FOOTER_BT(2)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movl 0x14(%rdi), %r11d
cmpl $0x2, %r11d
ja 0x37e73
callq 0x38071
jmp 0x38052
movq (%rdi), %r8
movzbl 0x2(%r8), %eax
movzbl (%r8), %ecx
shll $0x8, %ecx
orl %eax, %ecx
leaq 0x1(%r8), %rax
movq %rax, 0x30(%rsp)
movzbl 0x1(%r8), %eax
movzwl 0x78(%rdi,%rax,4), %eax
xorl %ecx, %eax
movq 0x28(%rdi), %rcx
movl (%rcx,%rax,4), %r13d
movl 0x8(%rdi), %ebx
movl %ebx, (%rcx,%rax,4)
movq 0x30(%rdi), %r15
movl 0x18(%rdi), %eax
movl 0x1c(%rdi), %esi
leaq (%r15,%rax,8), %rdx
movq %rax, 0x40(%rsp)
leaq (%r15,%rax,8), %rax
addq $0x4, %rax
xorl %ecx, %ecx
movl %ebx, %r9d
movl %esi, 0x20(%rsp)
subl %esi, %r9d
cmovbl %ecx, %r9d
movl %r9d, 0x1c(%rsp)
cmpl %r13d, %r9d
movq %rdi, 0x38(%rsp)
jae 0x38027
movl 0x3c(%rdi), %r12d
movl $0x2, 0x10(%rsp)
movl $0x0, 0x14(%rsp)
xorl %r9d, %r9d
movq %rdx, %rdi
movl %r11d, 0x18(%rsp)
movl %ebx, 0xc(%rsp)
movq %r15, 0x28(%rsp)
movl %ebx, %ebp
subl %r13d, %ebp
movq 0x40(%rsp), %rdx
movq %rdx, %rcx
subq %rbp, %rcx
cmpl %edx, %ebp
movl $0x0, %r10d
cmoval 0x20(%rsp), %r10d
addq %rcx, %r10
movq %r8, %rdx
subq %rbp, %rdx
movl 0x14(%rsp), %ecx
cmpl %r9d, %ecx
movl %r9d, 0x24(%rsp)
cmovbl %ecx, %r9d
leaq (%r15,%r10,8), %rsi
movb (%rdx,%r9), %cl
cmpb (%r8,%r9), %cl
jne 0x37fea
leal 0x1(%r9), %r15d
movl %r11d, %ecx
cmpl %r11d, %r15d
je 0x37fac
movl %r15d, %ebx
movq %rdi, %r11
movq %rax, %rdi
movq %r14, %rax
movb (%rdx,%rbx), %r14b
movl %r15d, %ecx
cmpb (%r8,%rbx), %r14b
movq %rax, %r14
movq %rdi, %rax
movq %r11, %rdi
movl 0x18(%rsp), %r11d
jne 0x37fac
addl $0x2, %r9d
cmpl %r9d, %r11d
je 0x37fa9
movl %r9d, %ecx
movb (%rdx,%rcx), %bl
incl %r9d
cmpb (%r8,%rcx), %bl
je 0x37f8d
decl %r9d
movl %r9d, %ecx
jmp 0x37fac
movl %r11d, %ecx
cmpl %ecx, 0x10(%rsp)
jae 0x37fde
movq 0x28(%rsp), %r15
movl (%r15,%r10,8), %r9d
movl %ecx, (%r14)
decl %ebp
movl %ebp, 0x4(%r14)
addq $0x8, %r14
cmpl %r11d, %ecx
movl 0xc(%rsp), %ebx
je 0x38064
movl %ecx, 0x10(%rsp)
movl %ecx, %r9d
jmp 0x37fea
movl %ecx, %r9d
movl 0xc(%rsp), %ebx
movq 0x28(%rsp), %r15
movl %r9d, %ecx
movb (%rdx,%rcx), %dl
cmpb (%r8,%rcx), %dl
jae 0x38002
movl %r13d, (%rdi)
addq $0x4, %rsi
movq %rsi, %rdi
jmp 0x38012
movl %r13d, (%rax)
movq %rsi, %rax
movl %r9d, 0x14(%rsp)
movl 0x24(%rsp), %r9d
decl %r12d
je 0x3802a
movl (%rsi), %r13d
cmpl %r13d, 0x1c(%rsp)
jb 0x37f0d
jmp 0x3802a
movq %rdx, %rdi
xorl %ecx, %ecx
movl %ecx, (%rdi)
movl %ecx, (%rax)
movq 0x38(%rsp), %rdi
incl 0x18(%rdi)
movq 0x30(%rsp), %rax
movq %rax, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x38052
callq 0x38085
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, (%rdi)
movq %rax, %rcx
movl 0x4(%rsi), %eax
movl %eax, (%rcx)
jmp 0x38030
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_CheckLimits
Z7_NO_INLINE
static void MatchFinder_CheckLimits(CMatchFinder *p)
{
  if (// !p->streamEndWasReached && p->result == SZ_OK &&
      p->keepSizeAfter == GET_AVAIL_BYTES(p))
  {
    // we try to read only in exact state (p->keepSizeAfter == GET_AVAIL_BYTES(p))
    if (MatchFinder_NeedMove(p))
      MatchFinder_MoveBlock(p);
    MatchFinder_ReadBlock(p);
  }

  if (p->pos == kMaxValForNormalize)
  if (GET_AVAIL_BYTES(p) >= p->numHashBytes) // optional optimization for last bytes of data.
    /*
       if we disable normalization for last bytes of data, and
       if (data_size == 4 GiB), we don't call wastfull normalization,
       but (pos) will be wrapped over Zero (0) in that case.
       And we cannot resume later to normal operation
    */
  {
    // MatchFinder_Normalize(p);
    /* after normalization we need (p->pos >= p->historySize + 1); */
    /* we can reduce subValue to aligned value, if want to keep alignment
       of (p->pos) and (p->buffer) for speculated accesses. */
    const UInt32 subValue = (p->pos - p->historySize - 1) /* & ~(UInt32)(kNormalizeAlign - 1) */;
    // const UInt32 subValue = (1 << 15); // for debug
    // printf("\nMatchFinder_Normalize() subValue == 0x%x\n", subValue);
    MatchFinder_REDUCE_OFFSETS(p, subValue)
    MatchFinder_Normalize3(subValue, p->hash, (size_t)p->hashMask + 1 + p->fixedHashSize);
    {
      size_t numSonRefs = p->cyclicBufferSize;
      if (p->btMode)
        numSonRefs <<= 1;
      MatchFinder_Normalize3(subValue, p->son, numSonRefs);
    }
  }

  if (p->cyclicBufferPos == p->cyclicBufferSize)
    p->cyclicBufferPos = 0;
  
  MatchFinder_SetLimits(p);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x58(%rdi), %eax
movl 0x8(%rdi), %ecx
movl 0x10(%rdi), %edx
subl %ecx, %edx
cmpl %edx, %eax
jne 0x380cf
cmpb $0x0, 0x23(%rbx)
jne 0x380c4
cmpb $0x0, 0x20(%rbx)
jne 0x380c4
cmpl $0x0, 0x74(%rbx)
jne 0x380c4
movl 0x50(%rbx), %ecx
addq 0x40(%rbx), %rcx
subq (%rbx), %rcx
cmpq %rax, %rcx
ja 0x380c4
movq %rbx, %rdi
callq 0x3758c
movq %rbx, %rdi
callq 0x375fc
movl 0x8(%rbx), %ecx
testl %ecx, %ecx
jne 0x38121
movl 0x10(%rbx), %eax
cmpl 0x5c(%rbx), %eax
jb 0x38121
movl 0x68(%rbx), %r14d
leal 0x1(%r14), %ecx
notl %r14d
movl %ecx, 0x8(%rbx)
subl %r14d, %eax
movl %eax, 0x10(%rbx)
movq 0x28(%rbx), %rsi
movl 0x38(%rbx), %eax
movl 0x6c(%rbx), %ecx
leaq (%rax,%rcx), %rdx
incq %rdx
movl %r14d, %edi
callq 0x37bc5
movl 0x1c(%rbx), %edx
cmpb $0x0, 0x21(%rbx)
setne %cl
shlq %cl, %rdx
movq 0x30(%rbx), %rsi
movl %r14d, %edi
callq 0x37bc5
movl 0x18(%rbx), %eax
cmpl 0x1c(%rbx), %eax
jne 0x38130
movl $0x0, 0x18(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x37b65
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Hc3Zip_MatchFinder_GetMatches
UInt32* Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances)
{
  GET_MATCHES_HEADER(3)
  HASH_ZIP_CALC
  curMatch = p->hash[hv];
  p->hash[hv] = p->pos;
  GET_MATCHES_FOOTER_HC(2)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl 0x14(%rdi), %ecx
cmpq $0x2, %rcx
ja 0x38160
callq 0x38071
jmp 0x38252
movq (%rdi), %rdx
movzbl 0x2(%rdx), %eax
movzbl (%rdx), %esi
shll $0x8, %esi
orl %eax, %esi
leaq 0x1(%rdx), %rax
movq %rax, (%rsp)
movzbl 0x1(%rdx), %r8d
movzwl 0x78(%rdi,%r8,4), %r8d
xorl %esi, %r8d
movq 0x28(%rdi), %r9
movl (%r9,%r8,4), %ebp
movl 0x8(%rdi), %esi
movl %esi, (%r9,%r8,4)
movq 0x30(%rdi), %r8
movl 0x18(%rdi), %r9d
movl 0x1c(%rdi), %r10d
movl 0x3c(%rdi), %r11d
movl %ebp, (%r8,%r9,4)
movl $0x2, %r14d
testl %ebp, %ebp
je 0x38236
movl %esi, %r15d
subl %ebp, %r15d
cmpl %r10d, %r15d
jae 0x38236
movl %r15d, %r12d
movq %r9, %r13
subq %r12, %r13
cmpl %r9d, %r15d
movl $0x0, %ebp
cmoval %r10d, %ebp
leaq (%r8,%r13,4), %r13
movl (%r13,%rbp,4), %ebp
movl %r14d, %r13d
movb (%rdx,%r13), %al
subq %r12, %r13
cmpb (%rdx,%r13), %al
jne 0x38222
negq %r12
addq %rdx, %r12
xorl %r13d, %r13d
movb (%rdx,%r13), %al
cmpb (%r12,%r13), %al
jne 0x3820c
incq %r13
cmpq %r13, %rcx
jne 0x381f8
jmp 0x38229
cmpl %r13d, %r14d
jae 0x38222
movl %r13d, (%rbx)
decl %r15d
movl %r15d, 0x4(%rbx)
addq $0x8, %rbx
movl %r13d, %r14d
decl %r11d
jne 0x381ae
jmp 0x38236
movl %ecx, (%rbx)
decl %r15d
movl %r15d, 0x4(%rbx)
addq $0x8, %rbx
incl 0x18(%rdi)
movq (%rsp), %rax
movq %rax, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x38252
callq 0x38085
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt3Zip_MatchFinder_Skip
void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num)
{
  SKIP_HEADER(3)
  {
    HASH_ZIP_CALC
    curMatch = p->hash[hv];
    p->hash[hv] = p->pos;
  }
  SKIP_FOOTER
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%r14), %edi
cmpl $0x2, %edi
ja 0x38280
movq %r14, %rdi
callq 0x38071
jmp 0x382e6
movq (%r14), %rcx
movzbl 0x2(%rcx), %eax
movzbl (%rcx), %edx
shll $0x8, %edx
orl %eax, %edx
movzbl 0x1(%rcx), %eax
movzwl 0x78(%r14,%rax,4), %eax
xorl %edx, %eax
movq 0x28(%r14), %r8
movl (%r8,%rax,4), %esi
movl 0x8(%r14), %edx
movl %edx, (%r8,%rax,4)
movq 0x30(%r14), %r8
movl 0x18(%r14), %r9d
movl 0x1c(%r14), %eax
movl 0x3c(%r14), %r10d
pushq %r10
pushq %rax
callq 0x382f2
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x382e6
movq %r14, %rdi
callq 0x38085
decl %ebx
jne 0x3826d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: SkipMatchesSpec
static void SkipMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son,
    size_t _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue)
{
  CLzRef *ptr0 = son + ((size_t)_cyclicBufferPos << 1) + 1;
  CLzRef *ptr1 = son + ((size_t)_cyclicBufferPos << 1);
  unsigned len0 = 0, len1 = 0;

  UInt32 cmCheck;

  cmCheck = (UInt32)(pos - _cyclicBufferSize);
  if ((UInt32)pos <= _cyclicBufferSize)
    cmCheck = 0;

  if (// curMatch >= pos ||  // failure
      cmCheck < curMatch)
  do
  {
    const UInt32 delta = pos - curMatch;
    {
      CLzRef *pair = son + ((size_t)(_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize : 0)) << 1);
      const Byte *pb = cur - delta;
      unsigned len = (len0 < len1 ? len0 : len1);
      if (pb[len] == cur[len])
      {
        while (++len != lenLimit)
          if (pb[len] != cur[len])
            break;
        {
          if (len == lenLimit)
          {
            *ptr1 = pair[0];
            *ptr0 = pair[1];
            return;
          }
        }
      }
      if (pb[len] < cur[len])
      {
        *ptr1 = curMatch;
        curMatch = pair[1];
        ptr1 = pair + 1;
        len1 = len;
      }
      else
      {
        *ptr0 = curMatch;
        curMatch = pair[0];
        ptr0 = pair;
        len0 = len;
      }
    }
  }
  while(--cutValue && cmCheck < curMatch);
  
  *ptr0 = *ptr1 = kEmptyHashValue;
  return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movl 0x38(%rsp), %eax
leaq (%r8,%r9,8), %rcx
movq %rcx, -0x18(%rsp)
leaq (%r8,%r9,8), %rcx
addq $0x4, %rcx
movq %rcx, -0x10(%rsp)
xorl %ecx, %ecx
movl %edx, %ebx
subl %eax, %ebx
cmovbl %ecx, %ebx
cmpl %esi, %ebx
jae 0x383c5
movl 0x40(%rsp), %ebp
movl %eax, %eax
movq %rax, -0x8(%rsp)
decl %edi
xorl %r15d, %r15d
xorl %r12d, %r12d
movl %edx, %eax
subl %esi, %eax
movq %r9, %rcx
subq %rax, %rcx
movl $0x0, %r10d
cmovbq -0x8(%rsp), %r10
addq %rcx, %r10
movq %r14, %rcx
subq %rax, %rcx
cmpl %r12d, %r15d
movl %r12d, %r11d
cmovbl %r15d, %r11d
leaq (%r8,%r10,8), %r13
movb (%rcx,%r11), %al
movb (%r14,%r11), %r10b
cmpb %r10b, %al
jne 0x3838c
cmpl %r11d, %edi
je 0x383d7
incl %r11d
movl %r11d, %r10d
movb (%rcx,%r10), %al
movb (%r14,%r10), %r10b
jmp 0x38372
cmpb %r10b, %al
jae 0x383a6
movq -0x18(%rsp), %rax
movl %esi, (%rax)
addq $0x4, %r13
movq %r13, -0x18(%rsp)
movl %r11d, %r12d
jmp 0x383b5
movq -0x10(%rsp), %rax
movl %esi, (%rax)
movl %r11d, %r15d
movq %r13, -0x10(%rsp)
decl %ebp
je 0x383c5
movl (%r13), %esi
cmpl %esi, %ebx
jb 0x3833d
movq -0x18(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq -0x10(%rsp), %rax
movl %ecx, (%rax)
jmp 0x383ed
movl (%r13), %eax
movq -0x18(%rsp), %rcx
movl %eax, (%rcx)
movl 0x4(%r13), %eax
movq -0x10(%rsp), %rcx
movl %eax, (%rcx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Hc3Zip_MatchFinder_Skip
void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num)
{
  HC_SKIP_HEADER(3)

    HASH_ZIP_CALC
    curMatch = hash[hv];
    hash[hv] = pos;

  HC_SKIP_FOOTER
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x2, 0x14(%r14)
ja 0x38417
movq %r14, %rdi
callq 0x38071
decl %ebx
jmp 0x384a3
movl 0x8(%r14), %eax
movl 0xc(%r14), %ecx
subl %eax, %ecx
cmpl %ecx, %ebx
movl %ecx, %edx
cmovbl %ebx, %edx
movl 0x18(%r14), %r8d
leal (%r8,%rdx), %esi
shlq $0x2, %r8
addq 0x30(%r14), %r8
movl %esi, 0x18(%r14)
movq (%r14), %rsi
movq 0x28(%r14), %r9
movl %ebx, %edi
cmpq %rcx, %rdi
cmovbq %rdi, %rcx
xorl %edi, %edi
leal (%rax,%rdi), %r10d
movzbl 0x2(%rsi,%rdi), %r11d
movzbl (%rsi,%rdi), %ebp
shll $0x8, %ebp
orl %r11d, %ebp
movzbl 0x1(%rsi,%rdi), %r11d
movzwl 0x78(%r14,%r11,4), %r11d
xorl %ebp, %r11d
movl (%r9,%r11,4), %ebp
movl %r10d, (%r9,%r11,4)
movl %ebp, (%r8,%rdi,4)
incq %rdi
cmpl %edi, %ecx
jne 0x3844e
subl %edx, %ebx
addq %rdi, %rsi
movq %rsi, (%r14)
leal (%rax,%rdi), %ecx
movl %ecx, 0x8(%r14)
subl 0xc(%r14), %eax
addl %edi, %eax
jne 0x384a3
movq %r14, %rdi
callq 0x38085
testl %ebx, %ebx
jne 0x38401
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_CreateVTable
void MatchFinder_CreateVTable(CMatchFinder *p, IMatchFinder2 *vTable)
{
  vTable->Init = MatchFinder_Init;
  vTable->GetNumAvailableBytes = MatchFinder_GetNumAvailableBytes;
  vTable->GetPointerToCurrentPos = MatchFinder_GetPointerToCurrentPos;
  if (!p->btMode)
  {
    if (p->numHashBytes <= 4)
    {
      vTable->GetMatches = Hc4_MatchFinder_GetMatches;
      vTable->Skip = Hc4_MatchFinder_Skip;
    }
    else
    {
      vTable->GetMatches = Hc5_MatchFinder_GetMatches;
      vTable->Skip = Hc5_MatchFinder_Skip;
    }
  }
  else if (p->numHashBytes == 2)
  {
    vTable->GetMatches = Bt2_MatchFinder_GetMatches;
    vTable->Skip = Bt2_MatchFinder_Skip;
  }
  else if (p->numHashBytes == 3)
  {
    vTable->GetMatches = Bt3_MatchFinder_GetMatches;
    vTable->Skip = Bt3_MatchFinder_Skip;
  }
  else if (p->numHashBytes == 4)
  {
    vTable->GetMatches = Bt4_MatchFinder_GetMatches;
    vTable->Skip = Bt4_MatchFinder_Skip;
  }
  else
  {
    vTable->GetMatches = Bt5_MatchFinder_GetMatches;
    vTable->Skip = Bt5_MatchFinder_Skip;
  }
}

// Assembly:
leaq -0x9c9(%rip), %rax      # 0x37aee
movq %rax, (%rsi)
leaq 0xa7(%rip), %rax        # 0x38568
movq %rax, 0x8(%rsi)
leaq 0xa3(%rip), %rax        # 0x3856f
movq %rax, 0x10(%rsi)
cmpb $0x0, 0x21(%rdi)
movl 0x5c(%rdi), %eax
je 0x384fc
cmpl $0x4, %eax
je 0x3853d
cmpl $0x3, %eax
je 0x38529
cmpl $0x2, %eax
jne 0x38551
leaq 0x75b(%rip), %rax       # 0x38c4a
movq %rax, 0x18(%rsi)
leaq 0x946(%rip), %rax       # 0x38e40
jmp 0x38563
cmpl $0x4, %eax
ja 0x38515
leaq 0x6b(%rip), %rax        # 0x38573
movq %rax, 0x18(%rsi)
leaq 0x2bc(%rip), %rax       # 0x387cf
jmp 0x38563
leaq 0x3a6(%rip), %rax       # 0x388c2
movq %rax, 0x18(%rsi)
leaq 0x620(%rip), %rax       # 0x38b47
jmp 0x38563
leaq 0x989(%rip), %rax       # 0x38eb9
movq %rax, 0x18(%rsi)
leaq 0xc7a(%rip), %rax       # 0x391b5
jmp 0x38563
leaq 0xd1a(%rip), %rax       # 0x3925e
movq %rax, 0x18(%rsi)
leaq 0x10bb(%rip), %rax      # 0x3960a
jmp 0x38563
leaq 0x1179(%rip), %rax      # 0x396d1
movq %rax, 0x18(%rsi)
leaq 0x153a(%rip), %rax      # 0x39a9d
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Hc4_MatchFinder_Skip
static void Hc4_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  HC_SKIP_HEADER(4)

    UInt32 h2, h3;
    HASH4_CALC
    curMatch = (hash + kFix4HashSize)[hv];
    hash                  [h2] =
    (hash + kFix3HashSize)[h3] =
    (hash + kFix4HashSize)[hv] = pos;
  
  HC_SKIP_FOOTER
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x3, 0x14(%r14)
ja 0x387f2
movq %r14, %rdi
callq 0x38071
decl %ebx
jmp 0x388b1
movl 0x8(%r14), %eax
movl 0xc(%r14), %ecx
subl %eax, %ecx
cmpl %ecx, %ebx
movl %ecx, %edx
cmovbl %ebx, %edx
movl 0x18(%r14), %r8d
leal (%r8,%rdx), %esi
shlq $0x2, %r8
addq 0x30(%r14), %r8
movl %esi, 0x18(%r14)
movq (%r14), %rsi
movq 0x28(%r14), %r9
movl %ebx, %edi
cmpq %rcx, %rdi
cmovbq %rdi, %rcx
xorl %edi, %edi
leal (%rax,%rdi), %r10d
movzbl (%rsi,%rdi), %r11d
movzbl 0x1(%rsi,%rdi), %r15d
xorl 0x78(%r14,%r11,4), %r15d
movzbl 0x2(%rsi,%rdi), %r11d
shll $0x8, %r11d
xorl %r15d, %r11d
andl $0x3ff, %r15d           # imm = 0x3FF
movzbl 0x3(%rsi,%rdi), %r12d
movl 0x78(%r14,%r12,4), %r12d
shll $0x5, %r12d
xorl %r11d, %r12d
andl 0x38(%r14), %r12d
movzwl %r11w, %r11d
movl 0x41000(%r9,%r12,4), %ebp
movl %r10d, 0x41000(%r9,%r12,4)
movl %r10d, 0x1000(%r9,%r11,4)
movl %r10d, (%r9,%r15,4)
movl %ebp, (%r8,%rdi,4)
incq %rdi
cmpl %edi, %ecx
jne 0x38829
subl %edx, %ebx
addq %rdi, %rsi
movq %rsi, (%r14)
leal (%rax,%rdi), %ecx
movl %ecx, 0x8(%r14)
subl 0xc(%r14), %eax
addl %edi, %eax
jne 0x388b1
movq %r14, %rdi
callq 0x38085
testl %ebx, %ebx
jne 0x387dc
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt2_MatchFinder_GetMatches
static UInt32* Bt2_MatchFinder_GetMatches(void *_p, UInt32 *distances)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  GET_MATCHES_HEADER(2)
  HASH2_CALC
  curMatch = p->hash[hv];
  p->hash[hv] = p->pos;
  GET_MATCHES_FOOTER_BT(1)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movl 0x14(%rdi), %r10d
cmpl $0x1, %r10d
ja 0x38c6f
callq 0x38071
jmp 0x38e26
movq (%rdi), %rsi
movzwl (%rsi), %eax
movq 0x28(%rdi), %rcx
movl (%rcx,%rax,4), %r12d
movl 0x8(%rdi), %r11d
movl %r11d, (%rcx,%rax,4)
movq 0x30(%rdi), %r14
movl 0x18(%rdi), %eax
movl 0x1c(%rdi), %edx
leaq (%r14,%rax,8), %rcx
movq %rax, 0x30(%rsp)
leaq (%r14,%rax,8), %r13
addq $0x4, %r13
xorl %eax, %eax
movl %r11d, %r8d
movl %edx, 0xc(%rsp)
subl %edx, %r8d
cmovbl %eax, %r8d
movl %r8d, 0x8(%rsp)
cmpl %r12d, %r8d
movq %rdi, 0x20(%rsp)
jae 0x38dfb
movl 0x3c(%rdi), %r15d
movl $0x1, 0x4(%rsp)
xorl %edx, %edx
xorl %r8d, %r8d
movq %rcx, %rdi
movl %r11d, (%rsp)
movq %r14, 0x18(%rsp)
movl %r11d, %ebp
subl %r12d, %ebp
movq 0x30(%rsp), %rcx
movq %rcx, %rax
subq %rbp, %rax
cmpl %ecx, %ebp
movl $0x0, %r9d
cmoval 0xc(%rsp), %r9d
addq %rax, %r9
movq %rsi, %rax
subq %rbp, %rax
cmpl %r8d, %edx
movl %r8d, 0x10(%rsp)
movl %edx, 0x14(%rsp)
cmovbl %edx, %r8d
leaq (%r14,%r9,8), %rcx
movb (%rax,%r8), %dl
cmpb (%rsi,%r8), %dl
jne 0x38dbc
leal 0x1(%r8), %r14d
movl %r10d, %edx
cmpl %r10d, %r14d
je 0x38d80
movq %rdi, 0x28(%rsp)
movq %r13, %rdi
movq %rbx, %r13
movl %r14d, %ebx
movb (%rax,%rbx), %r11b
movl %r14d, %edx
cmpb (%rsi,%rbx), %r11b
movq %r13, %rbx
movq %rdi, %r13
movq 0x28(%rsp), %rdi
jne 0x38d80
addl $0x2, %r8d
cmpl %r8d, %r10d
je 0x38d7d
movl %r8d, %edx
movb (%rax,%rdx), %r11b
incl %r8d
cmpb (%rsi,%rdx), %r11b
je 0x38d60
decl %r8d
movl %r8d, %edx
jmp 0x38d80
movl %r10d, %edx
cmpl %edx, 0x4(%rsp)
jae 0x38db0
movq 0x18(%rsp), %r14
movl (%r14,%r9,8), %r8d
movl %edx, (%rbx)
decl %ebp
movl %ebp, 0x4(%rbx)
addq $0x8, %rbx
cmpl %r10d, %edx
movl (%rsp), %r11d
je 0x38e38
movl %edx, 0x4(%rsp)
movl %edx, %r8d
jmp 0x38dbc
movl %edx, %r8d
movl (%rsp), %r11d
movq 0x18(%rsp), %r14
movl %r8d, %edx
movb (%rax,%rdx), %al
cmpb (%rsi,%rdx), %al
jae 0x38dd7
movl %r12d, (%rdi)
addq $0x4, %rcx
movq %rcx, %rdi
movl 0x14(%rsp), %edx
jmp 0x38de6
movl %r12d, (%r13)
movq %rcx, %r13
movl %r8d, %edx
movl 0x10(%rsp), %r8d
decl %r15d
je 0x38dfe
movl (%rcx), %r12d
cmpl %r12d, 0x8(%rsp)
jb 0x38ce0
jmp 0x38dfe
movq %rcx, %rdi
xorl %eax, %eax
movl %eax, (%rdi)
movl %eax, (%r13)
movq 0x20(%rsp), %rdi
incl 0x18(%rdi)
incq %rsi
movq %rsi, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x38e26
callq 0x38085
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r8d, (%rdi)
movl 0x4(%rcx), %eax
jmp 0x38e02
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt2_MatchFinder_Skip
static void Bt2_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  SKIP_HEADER(2)
  {
    HASH2_CALC
    curMatch = p->hash[hv];
    p->hash[hv] = p->pos;
  }
  SKIP_FOOTER
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%r14), %edi
cmpl $0x1, %edi
ja 0x38e5c
movq %r14, %rdi
callq 0x38071
jmp 0x38ead
movq (%r14), %rcx
movzwl (%rcx), %eax
movq 0x28(%r14), %r8
movl (%r8,%rax,4), %esi
movl 0x8(%r14), %edx
movl %edx, (%r8,%rax,4)
movq 0x30(%r14), %r8
movl 0x18(%r14), %r9d
movl 0x1c(%r14), %eax
movl 0x3c(%r14), %r10d
pushq %r10
pushq %rax
callq 0x382f2
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x38ead
movq %r14, %rdi
callq 0x38085
decl %ebx
jne 0x38e49
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt3_MatchFinder_Skip
static void Bt3_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  SKIP_HEADER(3)
  {
    UInt32 h2;
    UInt32 *hash;
    HASH3_CALC
    hash = p->hash;
    curMatch = (hash + kFix3HashSize)[hv];
    hash[h2] =
    (hash + kFix3HashSize)[hv] = p->pos;
  }
  SKIP_FOOTER
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%r14), %edi
cmpl $0x2, %edi
ja 0x391d1
movq %r14, %rdi
callq 0x38071
jmp 0x3924e
movq (%r14), %rcx
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
xorl 0x78(%r14,%rax,4), %edx
movzbl 0x2(%rcx), %eax
shll $0x8, %eax
xorl %edx, %eax
andl $0x3ff, %edx            # imm = 0x3FF
andl 0x38(%r14), %eax
movq 0x28(%r14), %r8
movl 0x1000(%r8,%rax,4), %esi
movl 0x8(%r14), %r9d
movl %r9d, 0x1000(%r8,%rax,4)
movl %r9d, (%r8,%rdx,4)
movq 0x30(%r14), %r8
movl 0x8(%r14), %edx
movl 0x18(%r14), %r9d
movl 0x1c(%r14), %eax
movl 0x3c(%r14), %r10d
pushq %r10
pushq %rax
callq 0x382f2
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x3924e
movq %r14, %rdi
callq 0x38085
decl %ebx
jne 0x391be
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt5_MatchFinder_Skip
static void Bt5_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  SKIP_HEADER(5)
  {
    UInt32 h2, h3;
    UInt32 *hash;
    HASH5_CALC
    hash = p->hash;
    curMatch = (hash + kFix5HashSize)[hv];
    hash                  [h2] =
    (hash + kFix3HashSize)[h3] =
    // (hash + kFix4HashSize)[h4] =
    (hash + kFix5HashSize)[hv] = p->pos;
  }
  SKIP_FOOTER
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%r14), %edi
cmpl $0x4, %edi
ja 0x39abc
movq %r14, %rdi
callq 0x38071
jmp 0x39b63
movq (%r14), %rcx
movzbl (%rcx), %edx
movzbl 0x1(%rcx), %eax
xorl 0x78(%r14,%rdx,4), %eax
movzbl 0x2(%rcx), %edx
shll $0x8, %edx
xorl %eax, %edx
andl $0x3ff, %eax            # imm = 0x3FF
movzbl 0x3(%rcx), %esi
movl 0x78(%r14,%rsi,4), %esi
shll $0x5, %esi
movzbl 0x4(%rcx), %r8d
movl 0x78(%r14,%r8,4), %r8d
shll $0xa, %r8d
xorl %esi, %r8d
xorl %edx, %r8d
andl 0x38(%r14), %r8d
movzwl %dx, %edx
movq 0x28(%r14), %r9
movl 0x41000(%r9,%r8,4), %esi
movl 0x8(%r14), %r10d
movl %r10d, 0x41000(%r9,%r8,4)
movl %r10d, 0x1000(%r9,%rdx,4)
movl %r10d, (%r9,%rax,4)
movq 0x30(%r14), %r8
movl 0x8(%r14), %edx
movl 0x18(%r14), %r9d
movl 0x1c(%r14), %eax
movl 0x3c(%r14), %r10d
pushq %r10
pushq %rax
callq 0x382f2
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x39b63
movq %r14, %rdi
callq 0x38085
decl %ebx
jne 0x39aa6
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MtSync_Destruct
Z7_NO_INLINE
static void MtSync_Destruct(CMtSync *p)
{
    PRF(printf("\nMtSync_Destruct %p\n", p));
  
  if (Thread_WasCreated(&p->thread))
  {
    /* we want thread to be in Stopped state before sending EXIT command.
       note: stop(btSync) will stop (htSync) also */
    MtSync_StopWriting(p);
    /* thread in Stopped state here : (p->needStart == true) */
    p->exit = True;
    // if (p->needStart)  // it's (true)
    Event_Set(&p->canStart);  // we send EXIT command to thread
    Thread_Wait_Close(&p->thread);  // we wait thread finishing
  }

  if (p->csWasInitialized)
  {
    CriticalSection_Delete(&p->cs);
    p->csWasInitialized = False;
  }
  p->csWasEntered = False;

  Event_Close(&p->canStart);
  Event_Close(&p->wasStopped);
  Semaphore_Close(&p->freeSemaphore);
  Semaphore_Close(&p->filledSemaphore);

  p->wasCreated = False;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
je 0x39d22
leaq 0x8(%rbx), %r14
movq %rbx, %rdi
callq 0x3a18a
movl $0x1, 0x30(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x3d7a5
movq %r14, %rdi
callq 0x3d6fb
cmpl $0x0, 0x28(%rbx)
je 0x39d3b
leaq 0x1d8(%rbx), %rdi
callq 0x3da48
movl $0x0, 0x28(%rbx)
xorl %ebp, %ebp
movl %ebp, 0x2c(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x3d875
leaq 0xa0(%rbx), %rdi
callq 0x3d875
leaq 0x108(%rbx), %rdi
callq 0x3d9eb
leaq 0x170(%rbx), %rdi
callq 0x3d9eb
movl %ebp, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt_Create
SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize, UInt32 keepAddBufferBefore,
    UInt32 matchMaxLen, UInt32 keepAddBufferAfter, ISzAllocPtr alloc)
{
  CMatchFinder *mf = MF(p);
  p->historySize = historySize;
  if (kMtBtBlockSize <= matchMaxLen * 4)
    return SZ_ERROR_PARAM;
  if (!p->hashBuf)
  {
    p->hashBuf = (UInt32 *)ISzAlloc_Alloc(alloc, ((size_t)kHashBufferSize + (size_t)kBtBufferSize) * sizeof(UInt32));
    if (!p->hashBuf)
      return SZ_ERROR_MEM;
    p->btBuf = p->hashBuf + kHashBufferSize;
  }
  keepAddBufferBefore += (kHashBufferSize + kBtBufferSize);
  keepAddBufferAfter += kMtHashBlockSize;
  if (!MatchFinder_Create(mf, historySize, keepAddBufferBefore, matchMaxLen, keepAddBufferAfter, alloc))
    return SZ_ERROR_MEM;

  RINOK(MtSync_Create(&p->hashSync, HashThreadFunc2, p))
  RINOK(MtSync_Create(&p->btSync, BtThreadFunc2, p))
  return SZ_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x520(%rdi), %rdi
movl %esi, 0x34(%rbx)
movl $0x5, %eax
testl $0x3fffc000, %ecx       # imm = 0x3FFFC000
jne 0x39e42
movq %r9, %r14
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r13d
cmpq $0x0, 0x2d0(%rbx)
jne 0x39de0
movq %rdi, (%rsp)
movl $0x500000, %esi         # imm = 0x500000
movq %r14, %rdi
callq *(%r14)
movq %rax, 0x2d0(%rbx)
testq %rax, %rax
je 0x39e3d
addq $0x100000, %rax         # imm = 0x100000
movq %rax, 0x8(%rbx)
movq (%rsp), %rdi
addl $0x140000, %r12d        # imm = 0x140000
addl $0x20000, %ebp          # imm = 0x20000
movl %r13d, %esi
movl %r12d, %edx
movl %r15d, %ecx
movl %ebp, %r8d
movq %r14, %r9
callq 0x3772b
testl %eax, %eax
je 0x39e3d
leaq 0x318(%rbx), %rdi
leaq 0xed(%rip), %rsi        # 0x39f00
movq %rbx, %rdx
callq 0x39e51
testl %eax, %eax
jne 0x39e42
leaq 0x50(%rbx), %rdi
leaq 0x2d4(%rip), %rsi       # 0x3a0fe
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x39e51
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MtSync_Create
Z7_NO_INLINE
static SRes MtSync_Create(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj)
{
  const WRes wres = MtSync_Create_WRes(p, startAddress, obj);
  if (wres == 0)
    return 0;
  MtSync_Destruct(p);
  return MY_SRes_HRESULT_FROM_WRes(wres);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebp, %ebp
cmpl $0x0, 0x20(%rdi)
jne 0x39ebb
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
addq $0x1d8, %rdi            # imm = 0x1D8
callq 0x3da22
testl %eax, %eax
jne 0x39e9f
movq $0x1, 0x28(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x3d79f
testl %eax, %eax
jne 0x39e9f
leaq 0xa0(%rbx), %rdi
callq 0x3d79f
testl %eax, %eax
je 0x39ec6
movl %eax, %r12d
movq %rbx, %rdi
callq 0x39cf1
movzwl %r12w, %ebp
orl $0x88000000, %ebp       # imm = 0x88000000
testl %r12d, %r12d
cmovlel %r12d, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
movl %eax, 0x24(%rbx)
movl %eax, 0x30(%rbx)
movq 0x18(%rbx), %rcx
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
testq %rcx, %rcx
je 0x39eeb
callq 0x3d642
jmp 0x39ef0
callq 0x3d63b
movl %eax, %r12d
testl %eax, %eax
jne 0x39ea2
movl $0x1, 0x20(%rbx)
jmp 0x39ebb
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MtSync_Init
Z7_NO_INLINE
static SRes MtSync_Init(CMtSync *p, UInt32 numBlocks)
{
  WRes wres;
  // BUFFER_MUST_BE_UNLOCKED(p)
  if (!p->needStart || p->csWasEntered)
    return SZ_ERROR_FAIL;
  wres = Semaphore_OptCreateInit(&p->freeSemaphore, numBlocks, numBlocks);
  if (wres == 0)
    wres = Semaphore_OptCreateInit(&p->filledSemaphore, 0, numBlocks);
  return MY_SRes_HRESULT_FROM_WRes(wres);
}

// Assembly:
movl $0xb, %eax
cmpl $0x0, 0x24(%rdi)
je 0x3a189
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x0, 0x2c(%rdi)
jne 0x3a182
movl %esi, %ebx
leaq 0x108(%r14), %rdi
movl %esi, %edx
callq 0x3d911
movl %eax, %ecx
testl %eax, %eax
jne 0x3a175
addq $0x170, %r14            # imm = 0x170
movq %r14, %rdi
xorl %esi, %esi
movl %ebx, %edx
callq 0x3d911
movl %eax, %ecx
movzwl %cx, %eax
orl $0x88000000, %eax       # imm = 0x88000000
testl %ecx, %ecx
cmovlel %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt_CreateVTable
void MatchFinderMt_CreateVTable(CMatchFinderMt *p, IMatchFinder2 *vTable)
{
  vTable->Init = MatchFinderMt_Init;
  vTable->GetNumAvailableBytes = MatchFinderMt_GetNumAvailableBytes;
  vTable->GetPointerToCurrentPos = MatchFinderMt_GetPointerToCurrentPos;
  vTable->GetMatches = MatchFinderMt_GetMatches;
  
  switch (MF(p)->numHashBytes)
  {
    case 2:
      p->GetHeadsFunc = GetHeads2;
      p->MixMatchesFunc = NULL;
      vTable->Skip = MatchFinderMt0_Skip;
      vTable->GetMatches = MatchFinderMt2_GetMatches;
      break;
    case 3:
      p->GetHeadsFunc = MF(p)->bigHash ? GetHeads3b : GetHeads3;
      p->MixMatchesFunc = MixMatches2;
      vTable->Skip = MatchFinderMt2_Skip;
      break;
    case 4:
      p->GetHeadsFunc = MF(p)->bigHash ? GetHeads4b : GetHeads4;

      // it's fast inline version of GetMatches()
      // vTable->GetMatches = MatchFinderMt_GetMatches_Bt4;

      p->MixMatchesFunc = MixMatches3;
      vTable->Skip = MatchFinderMt3_Skip;
      break;
    default:
      p->GetHeadsFunc = MF(p)->bigHash ? GetHeads5b : GetHeads5;
      p->MixMatchesFunc = MixMatches4;
      vTable->Skip =
          MatchFinderMt3_Skip;
          // MatchFinderMt4_Skip;
      break;
  }
}

// Assembly:
leaq 0xf9(%rip), %rax        # 0x3a2e4
movq %rax, (%rsi)
leaq 0x199(%rip), %rax       # 0x3a38e
movq %rax, 0x8(%rsi)
leaq 0x1a0(%rip), %rax       # 0x3a3a0
movq %rax, 0x10(%rsi)
leaq 0x199(%rip), %rax       # 0x3a3a4
movq %rax, 0x18(%rsi)
movq 0x520(%rdi), %rax
movl 0x5c(%rax), %ecx
cmpl $0x4, %ecx
je 0x3a28a
cmpl $0x3, %ecx
je 0x3a259
cmpl $0x2, %ecx
jne 0x3a2b0
leaq 0x1f6(%rip), %rax       # 0x3a429
movq %rax, 0x518(%rdi)
movq $0x0, 0x40(%rdi)
leaq 0x20c(%rip), %rax       # 0x3a455
movq %rax, 0x20(%rsi)
leaq 0x25d(%rip), %rax       # 0x3a4b1
movq %rax, 0x18(%rsi)
retq
cmpb $0x0, 0x22(%rax)
leaq 0x2d2(%rip), %rax       # 0x3a536
leaq 0x291(%rip), %rcx       # 0x3a4fc
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x2ff(%rip), %rax       # 0x3a57c
movq %rax, 0x40(%rdi)
leaq 0x348(%rip), %rax       # 0x3a5d0
jmp 0x3a2df
cmpb $0x0, 0x22(%rax)
leaq 0x42a(%rip), %rax       # 0x3a6bf
leaq 0x3ad(%rip), %rcx       # 0x3a649
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x4ac(%rip), %rax       # 0x3a75a
jmp 0x3a2d4
cmpb $0x0, 0x22(%rax)
leaq 0x68c(%rip), %rax       # 0x3a947
leaq 0x5e8(%rip), %rcx       # 0x3a8aa
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x732(%rip), %rax       # 0x3aa06
movq %rax, 0x40(%rdi)
leaq 0x52c(%rip), %rax       # 0x3a80b
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt_GetMatches
static UInt32 * MatchFinderMt_GetMatches(void *_p, UInt32 *d)
{
  CMatchFinderMt *p = (CMatchFinderMt *)_p;
  const UInt32 *bt = p->btBufPos;
  UInt32 len = *bt++;
  const UInt32 avail = p->btNumAvailBytes - 1;
  p->btNumAvailBytes = avail;
  p->btBufPos = bt + len;
  if (len == 0)
  {
    #define BT_HASH_BYTES_MAX 5
    if (avail >= (BT_HASH_BYTES_MAX - 1) - 1)
    {
      UInt32 m = p->lzPos;
      if (m > p->historySize)
        m -= p->historySize;
      else
        m = 1;
      d = p->MixMatchesFunc(p, m, d);
    }
  }
  else
  {
    /*
      first match pair from BinTree: (match_len, match_dist),
      (match_len >= numHashBytes).
      MixMatchesFunc() inserts only hash matches that are nearer than (match_dist)
    */
    d = p->MixMatchesFunc(p, p->lzPos - bt[1], d);
    // if (d) // check for failure
    do
    {
      const UInt32 v0 = bt[0];
      const UInt32 v1 = bt[1];
      bt += 2;
      d[0] = v0;
      d[1] = v1;
      d += 2;
    }
    while (len -= 2);
  }
  INCREASE_LZ_POS
  return d;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movl (%r14), %r15d
movl 0x24(%rdi), %ecx
decl %ecx
movl %ecx, 0x24(%rdi)
leaq (%r14,%r15,4), %rdx
addq $0x4, %rdx
movq %rdx, 0x10(%rdi)
testq %r15, %r15
je 0x3a401
movl 0x20(%rbx), %esi
subl 0x8(%r14), %esi
addq $0x4, %r14
movq %rbx, %rdi
movq %rax, %rdx
callq *0x40(%rbx)
xorl %ecx, %ecx
xorl %edx, %edx
movq (%r14,%rdx,4), %rsi
movq %rsi, (%rax,%rdx,4)
addq $0x2, %rdx
addq $-0x8, %rcx
cmpl %edx, %r15d
jne 0x3a3e7
subq %rcx, %rax
jmp 0x3a41d
cmpl $0x3, %ecx
jb 0x3a41d
movl 0x20(%rbx), %ecx
subl 0x34(%rbx), %ecx
movl $0x1, %esi
cmoval %ecx, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq *0x40(%rbx)
incl 0x20(%rbx)
incq (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt2_GetMatches
static UInt32 * MatchFinderMt2_GetMatches(void *_p, UInt32 *d)
{
  CMatchFinderMt *p = (CMatchFinderMt *)_p;
  const UInt32 *bt = p->btBufPos;
  const UInt32 len = *bt++;
  const UInt32 *btLim = bt + len;
  p->btBufPos = btLim;
  p->btNumAvailBytes--;
  INCREASE_LZ_POS
  {
    while (bt != btLim)
    {
      const UInt32 v0 = bt[0];
      const UInt32 v1 = bt[1];
      bt += 2;
      d[0] = v0;
      d[1] = v1;
      d += 2;
    }
  }
  return d;
}

// Assembly:
movq 0x10(%rdi), %rcx
movl (%rcx), %edx
incq (%rdi)
movq %rsi, %rax
leaq (%rcx,%rdx,4), %rsi
addq $0x4, %rsi
movq %rsi, 0x10(%rdi)
movq 0x20(%rdi), %xmm0
paddd 0x2553a(%rip), %xmm0    # 0x5fa10
movq %xmm0, 0x20(%rdi)
testq %rdx, %rdx
je 0x3a4fb
shlq $0x2, %rdx
xorl %esi, %esi
movq 0x4(%rcx,%rsi), %rdi
movq %rdi, (%rax,%rsi)
addq $0x8, %rsi
cmpq %rsi, %rdx
jne 0x3a4e6
addq %rsi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt2_Skip
static void MatchFinderMt2_Skip(void *_p, UInt32 num)
{
  CMatchFinderMt *p = (CMatchFinderMt *)_p;
  SKIP_HEADER_MT(2)
      UInt32 h2;
      MT_HASH2_CALC
      hash[h2] = p->lzPos;
  SKIP_FOOTER_MT
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movq 0x10(%rdi), %rax
movl $0x3ff, %ebp            # imm = 0x3FF
cmpq 0x18(%r14), %rax
jne 0x3a5f0
movq %r14, %rdi
callq 0x3af0b
movl 0x24(%r14), %edx
leal -0x1(%rdx), %eax
movl %eax, 0x24(%r14)
movl 0x20(%r14), %ecx
movq (%r14), %rax
cmpl $0x2, %edx
jb 0x3a622
movq 0x28(%r14), %rdx
movq 0x38(%r14), %rsi
movzbl (%rax), %edi
movzbl 0x1(%rax), %r8d
movl (%rsi,%rdi,4), %esi
andl %ebp, %esi
xorl %r8d, %esi
movl %ecx, (%rdx,%rsi,4)
incl %ecx
movl %ecx, 0x20(%r14)
incq %rax
movq %rax, (%r14)
movq 0x10(%r14), %rax
movl (%rax), %ecx
leaq (%rax,%rcx,4), %rax
addq $0x4, %rax
movq %rax, 0x10(%r14)
decl %ebx
jne 0x3a5e2
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MixMatches3
static UInt32 * MixMatches3(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *d)
{
  UInt32 h2, h3, c2, c3;
  UInt32 *hash = p->hash;
  const Byte *cur = p->pointerToCurPos;
  const UInt32 m = p->lzPos;
  MT_HASH3_CALC

  c2 = hash[h2];
  c3 = (hash + kFix3HashSize)[h3];
  
  hash[h2] = m;
  (hash + kFix3HashSize)[h3] = m;

  if (c2 >= matchMinPos)
  {
    CHECK_FAILURE_LZ(c2, m)
    if (cur[(ptrdiff_t)c2 - (ptrdiff_t)m] == cur[0])
    {
      d[1] = m - c2 - 1;
      if (cur[(ptrdiff_t)c2 - (ptrdiff_t)m + 2] == cur[2])
      {
        d[0] = 3;
        return d + 2;
      }
      d[0] = 2;
      d += 2;
    }
  }
  
  if (c3 >= matchMinPos)
  {
    CHECK_FAILURE_LZ(c3, m)
    if (cur[(ptrdiff_t)c3 - (ptrdiff_t)m] == cur[0])
    {
      *d++ = 3;
      *d++ = m - c3 - 1;
    }
  }
  
  return d;
}

// Assembly:
movq 0x28(%rdi), %rax
movq (%rdi), %r8
movl 0x20(%rdi), %ecx
movq 0x38(%rdi), %rdi
movzbl (%r8), %r9d
movzbl 0x1(%r8), %r10d
xorl (%rdi,%r9,4), %r10d
movzwl %r10w, %edi
andl $0x3ff, %r10d           # imm = 0x3FF
movzbl 0x2(%r8), %r11d
movl (%rax,%r10,4), %r9d
shll $0x2, %edi
shll $0xa, %r11d
xorl %edi, %r11d
movl 0x1000(%rax,%r11), %edi
movl %ecx, (%rax,%r10,4)
movl %ecx, 0x1000(%rax,%r11)
cmpl %esi, %r9d
jb 0x3a7db
movq %r9, %rax
subq %rcx, %rax
movb (%r8,%rax), %r10b
cmpb (%r8), %r10b
jne 0x3a7db
notl %r9d
addl %ecx, %r9d
movl %r9d, 0x4(%rdx)
movb 0x2(%r8,%rax), %r9b
leaq 0x8(%rdx), %rax
cmpb 0x2(%r8), %r9b
jne 0x3a803
movl $0x3, (%rdx)
retq
movq %rdx, %rax
cmpl %esi, %edi
jb 0x3a802
movq %rdi, %rdx
subq %rcx, %rdx
movb (%r8,%rdx), %dl
cmpb (%r8), %dl
jne 0x3a802
movl $0x3, (%rax)
notl %edi
addl %ecx, %edi
movl %edi, 0x4(%rax)
addq $0x8, %rax
retq
movl $0x2, (%rdx)
jmp 0x3a7de
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt3_Skip
static void MatchFinderMt3_Skip(void *_p, UInt32 num)
{
  CMatchFinderMt *p = (CMatchFinderMt *)_p;
  SKIP_HEADER_MT(3)
      UInt32 h2, h3;
      MT_HASH3_CALC
      (hash + kFix3HashSize)[h3] =
      hash[                h2] =
        p->lzPos;
  SKIP_FOOTER_MT
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0x10(%rdi), %rax
cmpq 0x18(%r14), %rax
jne 0x3a826
movq %r14, %rdi
callq 0x3af0b
movl 0x24(%r14), %edx
leal -0x1(%rdx), %eax
movl %eax, 0x24(%r14)
movl 0x20(%r14), %ecx
movq (%r14), %rax
cmpl $0x3, %edx
jb 0x3a87c
movq 0x28(%r14), %rdx
movq 0x38(%r14), %rsi
movzbl (%rax), %edi
movzbl 0x1(%rax), %r8d
xorl (%rsi,%rdi,4), %r8d
movzwl %r8w, %esi
movl %r8d, %edi
andl $0x3ff, %edi            # imm = 0x3FF
movzbl 0x2(%rax), %r8d
movl %ecx, (%rdx,%rdi,4)
shll $0x2, %esi
shll $0xa, %r8d
xorl %esi, %r8d
movl %ecx, 0x1000(%rdx,%r8)
movl 0x20(%r14), %ecx
incl %ecx
movl %ecx, 0x20(%r14)
incq %rax
movq %rax, (%r14)
movq 0x10(%r14), %rax
movl (%rax), %ecx
leaq (%rax,%rcx,4), %rax
addq $0x4, %rax
movq %rax, 0x10(%r14)
decl %ebx
jne 0x3a818
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MtSync_GetNextBlock
Z7_NO_INLINE
static UInt32 MtSync_GetNextBlock(CMtSync *p)
{
  UInt32 numBlocks = 0;
  if (p->needStart)
  {
    BUFFER_MUST_BE_UNLOCKED(p)
    p->numProcessedBlocks = 1;
    p->needStart = False;
    p->stopWriting = False;
    p->exit = False;
    Event_Reset(&p->wasStopped);
    Event_Set(&p->canStart);
  }
  else
  {
    UNLOCK_BUFFER(p)
    // we free current block
    numBlocks = p->numProcessedBlocks++;
    Semaphore_Release1(&p->freeSemaphore);
  }

  // buffer is UNLOCKED here
  Semaphore_Wait(&p->filledSemaphore);
  LOCK_BUFFER(p)
  return numBlocks;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x24(%rdi)
je 0x3aeb4
movl $0x1, (%rbx)
movl $0x0, 0x24(%rbx)
movq $0x0, 0x30(%rbx)
leaq 0xa0(%rbx), %rdi
callq 0x3d7e8
leaq 0x38(%rbx), %rdi
callq 0x3d7a5
xorl %r14d, %r14d
jmp 0x3aee1
leaq 0x1d8(%rbx), %rdi
callq 0x3da3e
movl $0x0, 0x2c(%rbx)
movl (%rbx), %r14d
leal 0x1(%r14), %eax
movl %eax, (%rbx)
leaq 0x108(%rbx), %rdi
movl $0x1, %esi
callq 0x3d936
leaq 0x170(%rbx), %rdi
callq 0x3d99b
leaq 0x1d8(%rbx), %rdi
callq 0x3da34
movl $0x1, 0x2c(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MatchFinderMt_GetNextBlock_Bt
Z7_NO_INLINE
static UInt32 MatchFinderMt_GetNextBlock_Bt(CMatchFinderMt *p)
{
  if (p->failure_LZ_BT)
    p->btBufPos = p->failureBuf;
  else
  {
    const UInt32 bi = MtSync_GetNextBlock(&p->btSync);
    const UInt32 *bt = p->btBuf + GET_BT_BLOCK_OFFSET(bi);
    {
      const UInt32 numItems = bt[0];
      p->btBufPosLimit = bt + numItems;
      p->btNumAvailBytes = bt[1];
      p->btBufPos = bt + 2;
      if (numItems < 2 || numItems > kMtBtBlockSize)
      {
        p->failureBuf[0] = 0;
        p->btBufPos = p->failureBuf;
        p->btBufPosLimit = p->failureBuf + 1;
        p->failure_LZ_BT = True;
        // p->btNumAvailBytes = 0;
        /* we don't want to decrease AvailBytes, that was load before.
            that can be unxepected for the code that have loaded anopther value before */
      }
    }
  
    if (p->lzPos >= (UInt32)kMtMaxValForNormalize - (UInt32)kMtBtBlockSize)
    {
      /* we don't check (lzPos) over exact avail bytes in (btBuf).
         (fixedHashSize) is small, so normalization is fast */
      const UInt32 subValue = (p->lzPos - p->historySize - 1); // & ~(UInt32)(kNormalizeAlign - 1);
      p->lzPos -= subValue;
      MatchFinder_Normalize3(subValue, p->hash, p->fixedHashSize);
    }
  }
  return p->btNumAvailBytes;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x48(%rdi)
je 0x3af22
leaq 0x4c(%rbx), %rax
movq %rax, 0x10(%rbx)
jmp 0x3af9d
leaq 0x50(%rbx), %r14
movq %r14, %rdi
callq 0x3ae78
movq 0x8(%rbx), %rcx
andl $0xf, %eax
shll $0x12, %eax
leaq (%rcx,%rax), %rdx
addq %rcx, %rax
addq $0x8, %rax
movl -0x8(%rax), %ecx
leaq (%rdx,%rcx,4), %rdx
movq %rdx, 0x18(%rbx)
movl -0x4(%rax), %edx
movl %edx, 0x24(%rbx)
movq %rax, 0x10(%rbx)
leal -0x10001(%rcx), %eax
cmpl $0xffff0000, %eax       # imm = 0xFFFF0000
ja 0x3af79
leaq 0x4c(%rbx), %rax
movq %rax, 0x10(%rbx)
movq %r14, 0x18(%rbx)
movq $0x1, 0x48(%rbx)
movl 0x20(%rbx), %edi
cmpl $0xfffeffff, %edi       # imm = 0xFFFEFFFF
jb 0x3af9d
movl 0x34(%rbx), %eax
leal 0x1(%rax), %ecx
notl %eax
addl %eax, %edi
movl %ecx, 0x20(%rbx)
movq 0x28(%rbx), %rsi
movl 0x30(%rbx), %edx
callq 0x37bc5
movl 0x24(%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/CpuArch.c
// Function: CPU_IsSupported_SHA
BoolInt CPU_IsSupported_SHA(void)
{
  CHECK_SYS_SSE_SUPPORT

  if (z7_x86_cpuid_GetMaxFunc() < 7)
    return False;
  {
    UInt32 d[4];
    z7_x86_cpuid(d, 7);
    return (BoolInt)(d[1] >> 29) & 1;
  }
}

// Assembly:
pushq %rax
callq 0x3b400
xorl %esi, %esi
cmpl $0x7, %eax
jb 0x3b477
movl $0x7, %eax
xorl %ecx, %ecx
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
shrl $0x1d, %esi
andl $0x1, %esi
movl %esi, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/CpuArch.c
// Function: CPU_IsSupported_SHA512
BoolInt CPU_IsSupported_SHA512(void)
{
  if (!CPU_IsSupported_AVX2()) return False; // maybe CPU_IsSupported_AVX() is enough here

  if (z7_x86_cpuid_GetMaxFunc() < 7)
    return False;
  {
    UInt32 d[4];
    z7_x86_cpuid_subFunc(d, 7, 0);
    if (d[0] < 1) // d[0] - is max supported subleaf value
      return False;
    z7_x86_cpuid_subFunc(d, 7, 1);
    return (BoolInt)(d[0]) & 1;
  }
}

// Assembly:
pushq %rbx
callq 0x3b4c1
xorl %ebx, %ebx
testl %eax, %eax
je 0x3b4bd
callq 0x3b400
cmpl $0x7, %eax
jb 0x3b4bd
xorl %ebx, %ebx
movl $0x7, %eax
xorl %ecx, %ecx
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
testl %eax, %eax
je 0x3b4bd
movl $0x7, %eax
movl $0x1, %ecx
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
movl %eax, %ebx
andl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/CpuArch.c
// Function: CPU_IsSupported_AVX2
BoolInt CPU_IsSupported_AVX2(void)
{
  if (!CPU_IsSupported_AVX())
    return False;
  if (z7_x86_cpuid_GetMaxFunc() < 7)
    return False;
  {
    UInt32 d[4];
    z7_x86_cpuid(d, 7);
    // printf("\ncpuid(7): ebx=%8x ecx=%8x\n", d[1], d[2]);
    return 1
      & (BoolInt)(d[1] >> 5); // avx2
  }
}

// Assembly:
pushq %rbx
xorl %ebx, %ebx
xorl %ecx, %ecx
movl $0x1, %eax
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
notl %ecx
testl $0x18000000, %ecx       # imm = 0x18000000
jne 0x3b509
xorl %ebx, %ebx
xorl %ecx, %ecx
xgetbv
notl %eax
testb $0x6, %al
jne 0x3b509
callq 0x3b400
cmpl $0x7, %eax
jb 0x3b509
movl $0x7, %eax
xorl %ecx, %ecx
movq %rbx, %rbx
cpuid
xchgq %rbx, %rbx
shrl $0x5, %ebx
andl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/CpuArch.c
// Function: CPU_IsSupported_VAES_AVX2
BoolInt CPU_IsSupported_VAES_AVX2(void)
{
  if (!CPU_IsSupported_AVX())
    return False;
  if (z7_x86_cpuid_GetMaxFunc() < 7)
    return False;
  {
    UInt32 d[4];
    z7_x86_cpuid(d, 7);
    // printf("\ncpuid(7): ebx=%8x ecx=%8x\n", d[1], d[2]);
    return 1
      & (BoolInt)(d[1] >> 5) // avx2
      // & (d[1] >> 31) // avx512vl
      & (BoolInt)(d[2] >> 9); // vaes // VEX-256/EVEX
  }
}

// Assembly:
pushq %rbx
xorl %ebx, %ebx
xorl %ecx, %ecx
movl $0x1, %eax
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
notl %ecx
testl $0x18000000, %ecx       # imm = 0x18000000
jne 0x3b589
xorl %ebx, %ebx
xorl %ecx, %ecx
xgetbv
notl %eax
testb $0x6, %al
jne 0x3b589
callq 0x3b400
cmpl $0x7, %eax
jb 0x3b589
movl $0x7, %eax
xorl %ecx, %ecx
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
movl %ecx, %ebx
shrl $0x5, %esi
shrl $0x9, %ebx
andl %esi, %ebx
andl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/CpuArch.c
// Function: CPU_IsSupported_PageGB
BoolInt CPU_IsSupported_PageGB(void)
{
  CHECK_CPUID_IS_SUPPORTED
  {
    UInt32 d[4];
    z7_x86_cpuid(d, 0x80000000);
    if (d[0] < 0x80000001)
      return False;
    z7_x86_cpuid(d, 0x80000001);
    return (BoolInt)(d[3] >> 26) & 1;
  }
}

// Assembly:
xorl %esi, %esi
xorl %ecx, %ecx
movl $0x80000000, %eax       # imm = 0x80000000
movq %rbx, %rdi
cpuid
xchgq %rbx, %rdi
cmpl $0x80000001, %eax       # imm = 0x80000001
jb 0x3b5bc
xorl %ecx, %ecx
movl $0x80000001, %eax       # imm = 0x80000001
movq %rbx, %rsi
cpuid
xchgq %rbx, %rsi
movl %edx, %esi
shrl $0x1a, %esi
andl $0x1, %esi
movl %esi, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/MtCoder.c
// Function: MtProgressThunk_Progress
static SRes MtProgressThunk_Progress(ICompressProgressPtr pp, UInt64 inSize, UInt64 outSize)
{
  Z7_CONTAINER_FROM_VTBL_TO_DECL_VAR_pp_vt_p(CMtProgressThunk)
  UInt64 inSize2 = 0;
  UInt64 outSize2 = 0;
  if (inSize != (UInt64)(Int64)-1)
  {
    inSize2 = inSize - p->inSize;
    p->inSize = inSize;
  }
  if (outSize != (UInt64)(Int64)-1)
  {
    outSize2 = outSize - p->outSize;
    p->outSize = outSize;
  }
  return MtProgress_ProgressAdd(p->mtProgress, inSize2, outSize2);
}

// Assembly:
cmpq $-0x1, %rsi
je 0x3b5de
movq %rsi, %rax
subq 0x10(%rdi), %rsi
movq %rax, 0x10(%rdi)
jmp 0x3b5e0
xorl %esi, %esi
cmpq $-0x1, %rdx
je 0x3b5f3
movq %rdx, %rax
subq 0x18(%rdi), %rax
movq %rdx, 0x18(%rdi)
jmp 0x3b5f5
xorl %eax, %eax
movq 0x8(%rdi), %rdi
movq %rax, %rdx
jmp 0x3c013