LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_Init
void MatchFinder_Init(void *_p)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  MatchFinder_Init_HighHash(p);
  MatchFinder_Init_LowHash(p);
  MatchFinder_Init_4(p);
  // if (readData)
  MatchFinder_ReadBlock(p);

  /* if we init (cyclicBufferPos = pos), then we can use one variable
     instead of both (cyclicBufferPos) and (pos) : only before (cyclicBufferPos) wrapping */
  p->cyclicBufferPos = (p->pos - CYC_TO_POS_OFFSET); // init with relation to (pos)
  // p->cyclicBufferPos = 0; // smallest value
  // p->son[0] = p->son[1] = 0; // unused: we can init skipped record for speculated accesses.
  MatchFinder_SetLimits(p);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movl 0x6c(%rdi), %eax
leaq (%r14,%rax,4), %rdi
movl 0x38(%rbx), %eax
leaq 0x4(,%rax,4), %rdx
xorl %esi, %esi
callq 0x41c0
movl 0x6c(%rbx), %edx
testq %rdx, %rdx
je 0x37e72
shlq $0x2, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x41c0
cmpb $0x0, 0x23(%rbx)
jne 0x37e7f
movq 0x40(%rbx), %rax
movq %rax, (%rbx)
movl $0x1, %eax
movl %eax, 0x10(%rbx)
movl %eax, 0x8(%rbx)
movl $0x0, 0x74(%rbx)
movb $0x0, 0x20(%rbx)
movq %rbx, %rdi
callq 0x37960
movl 0x8(%rbx), %eax
movl %eax, 0x18(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x37eaf
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_Normalize3
Z7_NO_INLINE
void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, size_t numItems)
{
  #define LZFIND_NORM_ALIGN_BLOCK_SIZE (1 << 7)
  Z7_PRAGMA_OPT_DISABLE_LOOP_UNROLL_VECTORIZE
  for (; numItems != 0 && ((unsigned)(ptrdiff_t)items & (LZFIND_NORM_ALIGN_BLOCK_SIZE - 1)) != 0; numItems--)
  {
    SASUB_32(0)
    items++;
  }
  {
    const size_t k_Align_Mask = (LZFIND_NORM_ALIGN_BLOCK_SIZE / 4 - 1);
    CLzRef *lim = items + (numItems & ~(size_t)k_Align_Mask);
    numItems &= k_Align_Mask;
    if (items != lim)
    {
      #if defined(USE_LZFIND_SATUR_SUB_128) && !defined(FORCE_LZFIND_SATUR_SUB_128)
        if (g_LzFind_SaturSub)
          g_LzFind_SaturSub(subValue, items, lim);
        else
      #endif
          DEFAULT_SaturSub(subValue, items, lim);
    }
    items = lim;
  }
  Z7_PRAGMA_OPT_DISABLE_LOOP_UNROLL_VECTORIZE
  for (; numItems != 0; numItems--)
  {
    SASUB_32(0)
    items++;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %edi, %ebx
testq %rdx, %rdx
sete %al
testb $0x7f, %sil
sete %cl
orb %al, %cl
jne 0x37f57
leaq 0x4(%rsi), %rax
xorl %ecx, %ecx
movq %r14, %rdx
movl (%rsi), %edi
subl %ebx, %edi
cmovbl %ecx, %edi
movl %edi, (%rsi)
addq $0x4, %rsi
decq %r14
cmpq $0x1, %rdx
je 0x37f57
movl %eax, %edx
andl $0x7f, %edx
addq $0x4, %rax
testq %rdx, %rdx
jne 0x37f30
movq %r14, %rax
andq $-0x20, %rax
leaq (%rsi,%rax,4), %r15
andl $0x1f, %r14d
testq %rax, %rax
je 0x37f85
movq 0x4466e(%rip), %rax     # 0x7c5e0
movl %ebx, %edi
movq %r15, %rdx
testq %rax, %rax
je 0x37f80
callq *%rax
jmp 0x37f85
callq 0x37fa9
testq %r14, %r14
je 0x37fa3
xorl %eax, %eax
xorl %ecx, %ecx
movl (%r15,%rcx,4), %edx
subl %ebx, %edx
cmovbl %eax, %edx
movl %edx, (%r15,%rcx,4)
incq %rcx
cmpq %rcx, %r14
jne 0x37f8e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: LzFind_SaturSub_32
Z7_FASTCALL
LzFind_SaturSub_32(UInt32 subValue, CLzRef *items, const CLzRef *lim)
{
  Z7_PRAGMA_OPT_DISABLE_LOOP_UNROLL_VECTORIZE
  do
  {
    SASUB_32(0)  SASUB_32(1)  items += 2;
    SASUB_32(0)  SASUB_32(1)  items += 2;
    SASUB_32(0)  SASUB_32(1)  items += 2;
    SASUB_32(0)  SASUB_32(1)  items += 2;
  }
  while (items != lim);
}

// Assembly:
xorl %eax, %eax
movl (%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl 0x4(%rsi), %r8d
subl %edi, %r8d
cmovbl %eax, %r8d
movl %ecx, (%rsi)
movl %r8d, 0x4(%rsi)
movl 0x8(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x8(%rsi)
movl 0xc(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0xc(%rsi)
movl 0x10(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x10(%rsi)
movl 0x14(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x14(%rsi)
movl 0x18(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x18(%rsi)
movl 0x1c(%rsi), %ecx
subl %edi, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x1c(%rsi)
addq $0x20, %rsi
cmpq %rdx, %rsi
jne 0x37fab
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movl 0x14(%rdi), %r14d
cmpl $0x2, %r14d
ja 0x381e0
callq 0x383da
jmp 0x383c8
movq (%rdi), %r10
movzbl 0x2(%r10), %eax
movzbl (%r10), %ecx
shll $0x8, %ecx
orl %eax, %ecx
leaq 0x1(%r10), %rax
movq %rax, 0x30(%rsp)
movzbl 0x1(%r10), %eax
movzwl 0x78(%rdi,%rax,4), %eax
xorl %ecx, %eax
movq 0x28(%rdi), %rcx
movl (%rcx,%rax,4), %r13d
movl 0x8(%rdi), %edx
movl %edx, (%rcx,%rax,4)
movl 0x8(%rdi), %edx
movl 0x18(%rdi), %eax
movq 0x30(%rdi), %rcx
movl 0x1c(%rdi), %esi
leaq (%rcx,%rax,8), %r8
movq %rax, 0x40(%rsp)
movq %rcx, 0x20(%rsp)
leaq (%rcx,%rax,8), %rcx
addq $0x4, %rcx
xorl %eax, %eax
movl %edx, 0x1c(%rsp)
movl %esi, 0x18(%rsp)
subl %esi, %edx
cmovbl %eax, %edx
movl %edx, 0x14(%rsp)
cmpl %r13d, %edx
movq %rdi, 0x38(%rsp)
jae 0x38395
movl 0x3c(%rdi), %r12d
movl $0x2, 0x8(%rsp)
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
movq %rcx, %rdi
movl %r14d, 0x10(%rsp)
movl 0x1c(%rsp), %ecx
movl %ecx, %ebp
subl %r13d, %ebp
movq 0x40(%rsp), %rdx
movq %rdx, %rcx
subq %rbp, %rcx
cmpl %edx, %ebp
movl $0x0, %ebx
cmoval 0x18(%rsp), %ebx
addq %rcx, %rbx
movq %r10, %rdx
subq %rbp, %rdx
movl 0xc(%rsp), %ecx
cmpl %eax, %ecx
movl %eax, %r9d
cmovbl %ecx, %r9d
movq 0x20(%rsp), %rcx
leaq (%rcx,%rbx,8), %rsi
movb (%rdx,%r9), %cl
cmpb (%r10,%r9), %cl
jne 0x38351
leal 0x1(%r9), %ecx
cmpl %r14d, %ecx
je 0x38314
movq %r8, %r14
movq %rdi, %r8
movq %r15, %rdi
movl %ecx, %r15d
movb (%rdx,%r15), %r11b
cmpb (%r10,%r15), %r11b
movq %rdi, %r15
movq %r8, %rdi
movq %r14, %r8
movl 0x10(%rsp), %r14d
jne 0x38314
addl $0x2, %r9d
cmpl %r9d, %r14d
je 0x38311
movl %r9d, %ecx
movb (%rdx,%rcx), %r11b
incl %r9d
cmpb (%r10,%rcx), %r11b
je 0x382f4
decl %r9d
movl %r9d, %ecx
jmp 0x38314
movl %r14d, %ecx
cmpl %ecx, 0x8(%rsp)
jae 0x3834e
movq 0x20(%rsp), %r9
movl (%r9,%rbx,8), %r9d
movl %ecx, (%r15)
decl %ebp
movl %ebp, 0x4(%r15)
addq $0x8, %r15
cmpl %r14d, %ecx
jne 0x3834a
movl %r9d, (%r8)
movl 0x4(%rsi), %edx
movl %edx, (%rdi)
xorl %edx, %edx
movl %ecx, 0x8(%rsp)
movq %r15, 0x28(%rsp)
jmp 0x3837f
movl %ecx, 0x8(%rsp)
movl %ecx, %r9d
movl %r9d, %ecx
movb (%rdx,%rcx), %dl
cmpb (%r10,%rcx), %dl
jae 0x38369
movl %r13d, (%r8)
addq $0x4, %rsi
movq %rsi, %r8
jmp 0x38377
movl %r13d, (%rdi)
movq %rsi, %rdi
movl %r9d, 0xc(%rsp)
movl %eax, %r9d
movl (%rsi), %r13d
movb $0x1, %dl
movl %r9d, %eax
testb %dl, %dl
je 0x383a1
decl %r12d
je 0x38398
cmpl %r13d, 0x14(%rsp)
jb 0x38276
jmp 0x38398
movq %rcx, %rdi
xorl %eax, %eax
movl %eax, (%r8)
movl %eax, (%rdi)
jmp 0x383a6
movq 0x28(%rsp), %r15
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 0x383c8
callq 0x383ee
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x10(%rdi), %ecx
movl 0x58(%rdi), %eax
subl 0x8(%rdi), %ecx
cmpl %ecx, %eax
jne 0x38433
cmpb $0x0, 0x23(%rbx)
jne 0x3842b
cmpb $0x0, 0x20(%rbx)
jne 0x3842b
cmpl $0x0, 0x74(%rbx)
jne 0x3842b
movl 0x50(%rbx), %ecx
addq 0x40(%rbx), %rcx
subq (%rbx), %rcx
cmpq %rax, %rcx
ja 0x3842b
movq %rbx, %rdi
callq 0x378f0
movq %rbx, %rdi
callq 0x37960
cmpl $0x0, 0x8(%rbx)
jne 0x38487
movl 0x10(%rbx), %eax
cmpl 0x5c(%rbx), %eax
jb 0x38487
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 0x37f0f
movl 0x1c(%rbx), %edx
cmpb $0x0, 0x21(%rbx)
setne %cl
shlq %cl, %rdx
movq 0x30(%rbx), %rsi
movl %r14d, %edi
callq 0x37f0f
movl 0x18(%rbx), %eax
cmpl 0x1c(%rbx), %eax
jne 0x38496
movl $0x0, 0x18(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x37eaf
// File: /workspace/github_cpp_makefile_star2_O1/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
subq $0x18, %rsp
movq %rsi, %rbx
movl 0x14(%rdi), %eax
cmpq $0x2, %rax
ja 0x384c9
callq 0x383da
jmp 0x38603
movq (%rdi), %rdx
movzbl 0x2(%rdx), %ecx
movzbl (%rdx), %esi
shll $0x8, %esi
orl %ecx, %esi
leaq 0x1(%rdx), %rcx
movq %rcx, 0x8(%rsp)
movzbl 0x1(%rdx), %ecx
movzwl 0x78(%rdi,%rcx,4), %ecx
xorl %esi, %ecx
movq 0x28(%rdi), %rsi
movl (%rsi,%rcx,4), %ebp
movl 0x8(%rdi), %r8d
movl %r8d, (%rsi,%rcx,4)
movl 0x8(%rdi), %esi
movl 0x18(%rdi), %r8d
movq 0x30(%rdi), %rcx
movl 0x1c(%rdi), %r10d
movl 0x3c(%rdi), %r11d
movq %rcx, 0x10(%rsp)
movl %ebp, (%rcx,%r8,4)
movl $0x2, %r15d
testl %ebp, %ebp
je 0x3859a
movl %esi, %r12d
subl %ebp, %r12d
cmpl %r10d, %r12d
jae 0x385a4
movl %r12d, %r9d
movq %r8, %rcx
subq %r9, %rcx
xorl %r13d, %r13d
cmpl %r8d, %r12d
movl $0x0, %r14d
cmoval %r10d, %r14d
movq 0x10(%rsp), %rbp
leaq (,%rcx,4), %rcx
addq %rbp, %rcx
movl (%rcx,%r14,4), %ebp
movl %r15d, %ecx
movb (%rdx,%rcx), %r14b
subq %r9, %rcx
cmpb (%rdx,%rcx), %r14b
jne 0x385cc
negq %r9
addq %rdx, %r9
xorl %r13d, %r13d
movb (%rdx,%r13), %r14b
movb (%r9,%r13), %cl
cmpb %cl, %r14b
jne 0x385ac
incq %r13
cmpq %r13, %rax
jne 0x38572
movl %eax, (%rbx)
decl %r12d
movl %r12d, 0x4(%rbx)
leaq 0x8(%rbx), %r9
movq %r9, (%rsp)
jmp 0x385c2
movl $0x2, %r13d
xorl %ebp, %ebp
jmp 0x385cc
movl $0x2, %r13d
jmp 0x385cc
cmpl %r13d, %r15d
jae 0x385c2
movl %r13d, (%rbx)
decl %r12d
movl %r12d, 0x4(%rbx)
addq $0x8, %rbx
movl %r13d, %r15d
xorl %r13d, %r13d
cmpb %cl, %r14b
sete %r13b
testl %r13d, %r13d
jne 0x385dc
decl %r11d
jne 0x3851d
jmp 0x385e6
cmpl $0x2, %r13d
je 0x385e6
movq (%rsp), %rbx
incl 0x18(%rdi)
movq 0x8(%rsp), %rax
movq %rax, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x38603
callq 0x383ee
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x38631
movq %r14, %rdi
callq 0x383da
jmp 0x3869a
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), %rdx
movl (%rdx,%rax,4), %esi
movl 0x8(%r14), %r8d
movl %r8d, (%rdx,%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 0x386a6
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x3869a
movq %r14, %rdi
callq 0x383ee
decl %ebx
jne 0x3861e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x387e7
movq %r14, %rdi
callq 0x383da
decl %ebx
jmp 0x38873
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 0x3881e
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 0x38873
movq %r14, %rdi
callq 0x383ee
testl %ebx, %ebx
jne 0x387d1
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 -0xa4f(%rip), %rax      # 0x37e38
movq %rax, (%rsi)
leaq 0xa7(%rip), %rax        # 0x38938
movq %rax, 0x8(%rsi)
leaq 0xa3(%rip), %rax        # 0x3893f
movq %rax, 0x10(%rsi)
cmpb $0x0, 0x21(%rdi)
movl 0x5c(%rdi), %eax
je 0x388cc
cmpl $0x4, %eax
je 0x3890d
cmpl $0x3, %eax
je 0x388f9
cmpl $0x2, %eax
jne 0x38921
leaq 0x7ea(%rip), %rax       # 0x390a9
movq %rax, 0x18(%rsi)
leaq 0x9dc(%rip), %rax       # 0x392a6
jmp 0x38933
cmpl $0x4, %eax
ja 0x388e5
leaq 0x6b(%rip), %rax        # 0x38943
movq %rax, 0x18(%rsi)
leaq 0x301(%rip), %rax       # 0x38be4
jmp 0x38933
leaq 0x3eb(%rip), %rax       # 0x38cd7
movq %rax, 0x18(%rsi)
leaq 0x6af(%rip), %rax       # 0x38fa6
jmp 0x38933
leaq 0xa22(%rip), %rax       # 0x39322
movq %rax, 0x18(%rsi)
leaq 0xd0b(%rip), %rax       # 0x39616
jmp 0x38933
leaq 0xdab(%rip), %rax       # 0x396bf
movq %rax, 0x18(%rsi)
leaq 0x113c(%rip), %rax      # 0x39a5b
jmp 0x38933
leaq 0x11fa(%rip), %rax      # 0x39b22
movq %rax, 0x18(%rsi)
leaq 0x15cb(%rip), %rax      # 0x39efe
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x38c07
movq %r14, %rdi
callq 0x383da
decl %ebx
jmp 0x38cc6
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 0x38c3e
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 0x38cc6
movq %r14, %rdi
callq 0x383ee
testl %ebx, %ebx
jne 0x38bf1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Hc5_MatchFinder_Skip
static void Hc5_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  HC_SKIP_HEADER(5)
  
    UInt32 h2, h3;
    HASH5_CALC
    curMatch = (hash + kFix5HashSize)[hv];
    hash                  [h2] =
    (hash + kFix3HashSize)[h3] =
    // (hash + kFix4HashSize)[h4] =
    (hash + kFix5HashSize)[hv] = pos;
  
  HC_SKIP_FOOTER
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x4, 0x14(%r14)
ja 0x38fc9
movq %r14, %rdi
callq 0x383da
decl %ebx
jmp 0x39098
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), %r15d
movzbl 0x1(%rsi,%rdi), %r11d
xorl 0x78(%r14,%r15,4), %r11d
movzbl 0x2(%rsi,%rdi), %ebp
shll $0x8, %ebp
xorl %r11d, %ebp
andl $0x3ff, %r11d           # imm = 0x3FF
movzbl 0x3(%rsi,%rdi), %r15d
movl 0x78(%r14,%r15,4), %r15d
shll $0x5, %r15d
movzbl 0x4(%rsi,%rdi), %r12d
movl 0x78(%r14,%r12,4), %r12d
shll $0xa, %r12d
xorl %r15d, %r12d
xorl %ebp, %r12d
andl 0x38(%r14), %r12d
movzwl %bp, %r15d
movl 0x41000(%r9,%r12,4), %ebp
movl %r10d, 0x41000(%r9,%r12,4)
movl %r10d, 0x1000(%r9,%r15,4)
movl %r10d, (%r9,%r11,4)
movl %ebp, (%r8,%rdi,4)
incq %rdi
cmpl %edi, %ecx
jne 0x39000
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 0x39098
movq %r14, %rdi
callq 0x383ee
testl %ebx, %ebx
jne 0x38fb3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movl 0x14(%rdi), %r11d
cmpl $0x1, %r11d
ja 0x390ce
callq 0x383da
jmp 0x39294
movq (%rdi), %r9
movzwl (%r9), %eax
movq 0x28(%rdi), %rcx
movl (%rcx,%rax,4), %r12d
movl 0x8(%rdi), %edx
movl %edx, (%rcx,%rax,4)
movl 0x8(%rdi), %edx
movl 0x18(%rdi), %eax
movq 0x30(%rdi), %rcx
movl 0x1c(%rdi), %esi
leaq (%rcx,%rax,8), %r13
movq %rax, 0x30(%rsp)
movq %rcx, 0x18(%rsp)
leaq (%rcx,%rax,8), %rax
addq $0x4, %rax
xorl %ecx, %ecx
movl %edx, 0x14(%rsp)
movl %esi, 0x10(%rsp)
subl %esi, %edx
cmovbl %ecx, %edx
movl %edx, 0xc(%rsp)
cmpl %r12d, %edx
movq %rdi, 0x28(%rsp)
jae 0x39262
movl 0x3c(%rdi), %r15d
movl $0x1, (%rsp)
movl $0x0, 0x4(%rsp)
xorl %esi, %esi
movq %rax, %rdi
movl %r11d, 0x8(%rsp)
movl 0x14(%rsp), %eax
movl %eax, %ebp
subl %r12d, %ebp
movq 0x30(%rsp), %rcx
movq %rcx, %rax
subq %rbp, %rax
cmpl %ecx, %ebp
movl $0x0, %ebx
cmoval 0x10(%rsp), %ebx
addq %rax, %rbx
movq %r9, %rax
subq %rbp, %rax
movl 0x4(%rsp), %ecx
cmpl %esi, %ecx
movl %esi, %r8d
cmovbl %ecx, %r8d
movq 0x18(%rsp), %rcx
leaq (%rcx,%rbx,8), %rdx
movb (%rax,%r8), %cl
cmpb (%r9,%r8), %cl
jne 0x3921d
leal 0x1(%r8), %ecx
cmpl %r11d, %ecx
je 0x391e2
movq %r13, %r11
movq %rdi, %r13
movq %r14, %rdi
movl %ecx, %r14d
movb (%rax,%r14), %r10b
cmpb (%r9,%r14), %r10b
movq %rdi, %r14
movq %r13, %rdi
movq %r11, %r13
movl 0x8(%rsp), %r11d
jne 0x391e2
addl $0x2, %r8d
cmpl %r8d, %r11d
je 0x391df
movl %r8d, %ecx
movb (%rax,%rcx), %r10b
incl %r8d
cmpb (%r9,%rcx), %r10b
je 0x391c2
decl %r8d
movl %r8d, %ecx
jmp 0x391e2
movl %r11d, %ecx
cmpl %ecx, (%rsp)
jae 0x3921a
movq 0x18(%rsp), %r8
movl (%r8,%rbx,8), %r8d
movl %ecx, (%r14)
decl %ebp
movl %ebp, 0x4(%r14)
addq $0x8, %r14
cmpl %r11d, %ecx
jne 0x39217
movl %r8d, (%r13)
movl 0x4(%rdx), %eax
movl %eax, (%rdi)
xorl %eax, %eax
movl %ecx, (%rsp)
movq %r14, 0x20(%rsp)
jmp 0x3924c
movl %ecx, (%rsp)
movl %ecx, %r8d
movl %r8d, %ecx
movb (%rax,%rcx), %al
cmpb (%r9,%rcx), %al
jae 0x39236
movl %r12d, (%r13)
addq $0x4, %rdx
movq %rdx, %r13
jmp 0x39244
movl %r12d, (%rdi)
movq %rdx, %rdi
movl %r8d, 0x4(%rsp)
movl %esi, %r8d
movl (%rdx), %r12d
movb $0x1, %al
movl %r8d, %esi
testb %al, %al
je 0x3926f
decl %r15d
je 0x39265
cmpl %r12d, 0xc(%rsp)
jb 0x39144
jmp 0x39265
movq %rax, %rdi
xorl %eax, %eax
movl %eax, (%r13)
movl %eax, (%rdi)
jmp 0x39274
movq 0x20(%rsp), %r14
movq 0x28(%rsp), %rdi
incl 0x18(%rdi)
incq %r9
movq %r9, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x39294
callq 0x383ee
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x392c2
movq %r14, %rdi
callq 0x383da
jmp 0x39316
movq (%r14), %rcx
movzwl (%rcx), %eax
movq 0x28(%r14), %rdx
movl (%rdx,%rax,4), %esi
movl 0x8(%r14), %r8d
movl %r8d, (%rdx,%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 0x386a6
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x39316
movq %r14, %rdi
callq 0x383ee
decl %ebx
jne 0x392af
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x39632
movq %r14, %rdi
callq 0x383da
jmp 0x396af
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 0x386a6
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x396af
movq %r14, %rdi
callq 0x383ee
decl %ebx
jne 0x3961f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: Bt4_MatchFinder_Skip
static void Bt4_MatchFinder_Skip(void *_p, UInt32 num)
{
  CMatchFinder *p = (CMatchFinder *)_p;
  SKIP_HEADER(4)
  {
    UInt32 h2, h3;
    UInt32 *hash;
    HASH4_CALC
    hash = p->hash;
    curMatch = (hash + kFix4HashSize)[hv];
    hash                  [h2] =
    (hash + kFix3HashSize)[h3] =
    (hash + kFix4HashSize)[hv] = p->pos;
  }
  SKIP_FOOTER
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%r14), %edi
cmpl $0x3, %edi
ja 0x39a7a
movq %r14, %rdi
callq 0x383da
jmp 0x39b12
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
movzbl 0x3(%rcx), %esi
movl 0x78(%r14,%rsi,4), %r8d
shll $0x5, %r8d
xorl %eax, %r8d
andl 0x38(%r14), %r8d
movzwl %ax, %eax
movq 0x28(%r14), %r9
movl 0x41000(%r9,%r8,4), %esi
movl 0x8(%r14), %r10d
movl %r10d, 0x41000(%r9,%r8,4)
movl %r10d, 0x1000(%r9,%rax,4)
movl %r10d, (%r9,%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 0x386a6
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x39b12
movq %r14, %rdi
callq 0x383ee
decl %ebx
jne 0x39a64
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x39f1d
movq %r14, %rdi
callq 0x383da
jmp 0x39fc4
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 0x386a6
addq $0x10, %rsp
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x39fc4
movq %r14, %rdi
callq 0x383ee
decl %ebx
jne 0x39f07
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: LzFind_SaturSub_128
void
Z7_FASTCALL
LzFind_SaturSub_128(UInt32 subValue, CLzRef *items, const CLzRef *lim)
{
  const LzFind_v128 sub2 =
    #ifdef MY_CPU_ARM_OR_ARM64
      vdupq_n_u32(subValue);
    #else
      _mm_set_epi32((Int32)subValue, (Int32)subValue, (Int32)subValue, (Int32)subValue);
    #endif
  Z7_PRAGMA_OPT_DISABLE_LOOP_UNROLL_VECTORIZE
  do
  {
    SASUB_128(0)  SASUB_128(1)  items += 2 * 4;
    SASUB_128(0)  SASUB_128(1)  items += 2 * 4;
  }
  while (items != lim);
}

// Assembly:
movd %edi, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa (%rsi), %xmm1
pmaxud %xmm0, %xmm1
psubd %xmm0, %xmm1
movdqa %xmm1, (%rsi)
movdqa 0x10(%rsi), %xmm1
pmaxud %xmm0, %xmm1
psubd %xmm0, %xmm1
movdqa %xmm1, 0x10(%rsi)
movdqa 0x20(%rsi), %xmm1
pmaxud %xmm0, %xmm1
psubd %xmm0, %xmm1
movdqa %xmm1, 0x20(%rsi)
movdqa 0x30(%rsi), %xmm1
pmaxud %xmm0, %xmm1
psubd %xmm0, %xmm1
movdqa %xmm1, 0x30(%rsi)
addq $0x40, %rsi
cmpq %rdx, %rsi
jne 0x3a00d
retq
// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: LzFind_SaturSub_256
void
Z7_FASTCALL
LzFind_SaturSub_256(UInt32 subValue, CLzRef *items, const CLzRef *lim)
{
  const __m256i sub2 = _mm256_set_epi32(
      (Int32)subValue, (Int32)subValue, (Int32)subValue, (Int32)subValue,
      (Int32)subValue, (Int32)subValue, (Int32)subValue, (Int32)subValue);
  Z7_PRAGMA_OPT_DISABLE_LOOP_UNROLL_VECTORIZE
  do
  {
    SASUB_256(0)  SASUB_256(1)  items += 2 * 8;
    SASUB_256(0)  SASUB_256(1)  items += 2 * 8;
  }
  while (items != lim);
}

// Assembly:
vmovd %edi, %xmm0
vpbroadcastd %xmm0, %ymm0
vpmaxud (%rsi), %ymm0, %ymm1
vpsubd %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, (%rsi)
vpmaxud 0x20(%rsi), %ymm0, %ymm1
vpsubd %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x20(%rsi)
vpmaxud 0x40(%rsi), %ymm0, %ymm1
vpsubd %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x40(%rsi)
vpmaxud 0x60(%rsi), %ymm0, %ymm1
vpsubd %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x60(%rsi)
subq $-0x80, %rsi
cmpq %rdx, %rsi
jne 0x3a06a
vzeroupper
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a186
leaq 0x8(%rbx), %r14
movq %rbx, %rdi
callq 0x3a64a
movl $0x1, 0x30(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x3dbe9
movq %r14, %rdi
callq 0x3db3d
cmpl $0x0, 0x28(%rbx)
je 0x3a19f
leaq 0x1d8(%rbx), %rdi
callq 0x3de8e
movl $0x0, 0x28(%rbx)
xorl %ebp, %ebp
movl %ebp, 0x2c(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x3dcb9
leaq 0xa0(%rbx), %rdi
callq 0x3dcb9
leaq 0x108(%rbx), %rdi
callq 0x3de31
leaq 0x170(%rbx), %rdi
callq 0x3de31
movl %ebp, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a2a6
movq %r9, %r14
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r13d
cmpq $0x0, 0x2d0(%rbx)
jne 0x3a244
movq %rdi, (%rsp)
movl $0x500000, %esi         # imm = 0x500000
movq %r14, %rdi
callq *(%r14)
movq %rax, 0x2d0(%rbx)
testq %rax, %rax
je 0x3a2a1
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 0x37a86
testl %eax, %eax
je 0x3a2a1
leaq 0x318(%rbx), %rdi
leaq 0xff(%rip), %rsi        # 0x3a376
movq %rbx, %rdx
callq 0x3a2b5
testl %eax, %eax
jne 0x3a2a6
leaq 0x50(%rbx), %rdi
leaq 0x330(%rip), %rsi       # 0x3a5be
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a2b5
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_O1/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
movq %rdi, %r14
xorl %ebx, %ebx
cmpl $0x0, 0x20(%rdi)
movl $0x0, %ebp
jne 0x3a351
movq %rdx, %r15
movq %rsi, %r12
leaq 0x1d8(%r14), %rdi
callq 0x3de68
movl %eax, %ebp
testl %eax, %eax
jne 0x3a351
movq $0x1, 0x28(%r14)
leaq 0x38(%r14), %rdi
callq 0x3dbe3
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x3a351
leaq 0xa0(%r14), %rdi
callq 0x3dbe3
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x3a351
movl $0x1, %eax
movl %eax, 0x24(%r14)
movl %eax, 0x30(%r14)
movq 0x18(%r14), %rcx
leaq 0x8(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
testq %rcx, %rcx
je 0x3a33b
callq 0x3da8e
jmp 0x3a340
callq 0x3da87
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x3a351
movl $0x1, 0x20(%r14)
xorl %ebp, %ebp
testl %ebp, %ebp
je 0x3a36b
movq %r14, %rdi
callq 0x3a155
movzwl %bp, %ebx
orl $0x88000000, %ebx       # imm = 0x88000000
testl %ebp, %ebp
cmovlel %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a649
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x0, 0x2c(%rdi)
jne 0x3a642
movl %esi, %ebx
leaq 0x108(%r14), %rdi
movl %esi, %edx
callq 0x3dd57
movl %eax, %ecx
testl %eax, %eax
jne 0x3a635
addq $0x170, %r14            # imm = 0x170
movq %r14, %rdi
xorl %esi, %esi
movl %ebx, %edx
callq 0x3dd57
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_O1/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        # 0x3a7a4
movq %rax, (%rsi)
leaq 0x199(%rip), %rax       # 0x3a84e
movq %rax, 0x8(%rsi)
leaq 0x1a0(%rip), %rax       # 0x3a860
movq %rax, 0x10(%rsi)
leaq 0x199(%rip), %rax       # 0x3a864
movq %rax, 0x18(%rsi)
movq 0x520(%rdi), %rax
movl 0x5c(%rax), %ecx
cmpl $0x4, %ecx
je 0x3a74a
cmpl $0x3, %ecx
je 0x3a719
cmpl $0x2, %ecx
jne 0x3a770
leaq 0x1f0(%rip), %rax       # 0x3a8e3
movq %rax, 0x518(%rdi)
movq $0x0, 0x40(%rdi)
leaq 0x206(%rip), %rax       # 0x3a90f
movq %rax, 0x20(%rsi)
leaq 0x23f(%rip), %rax       # 0x3a953
movq %rax, 0x18(%rsi)
retq
cmpb $0x0, 0x22(%rax)
leaq 0x2a5(%rip), %rax       # 0x3a9c9
leaq 0x264(%rip), %rcx       # 0x3a98f
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x2d2(%rip), %rax       # 0x3aa0f
movq %rax, 0x40(%rdi)
leaq 0x31b(%rip), %rax       # 0x3aa63
jmp 0x3a79f
cmpb $0x0, 0x22(%rax)
leaq 0x3ea(%rip), %rax       # 0x3ab3f
leaq 0x379(%rip), %rcx       # 0x3aad5
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x45d(%rip), %rax       # 0x3abcb
jmp 0x3a794
cmpb $0x0, 0x22(%rax)
leaq 0x619(%rip), %rax       # 0x3ad94
leaq 0x584(%rip), %rcx       # 0x3ad06
cmoveq %rax, %rcx
movq %rcx, 0x518(%rdi)
leaq 0x6aa(%rip), %rax       # 0x3ae3e
movq %rax, 0x40(%rdi)
leaq 0x4dd(%rip), %rax       # 0x3ac7c
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a8bb
movl 0x20(%rbx), %esi
subl 0x8(%r14), %esi
addq $0x4, %r14
movq %rbx, %rdi
movq %rax, %rdx
callq *0x40(%rbx)
xorl %ecx, %ecx
movq (%r14,%rcx,4), %rdx
movq %rdx, (%rax)
addq $0x8, %rax
addq $0x2, %rcx
cmpl %ecx, %r15d
jne 0x3a8a5
jmp 0x3a8d7
cmpl $0x3, %ecx
jb 0x3a8d7
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_O1/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: MixMatches2
static UInt32 * MixMatches2(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *d)
{
  UInt32 h2, c2;
  UInt32 *hash = p->hash;
  const Byte *cur = p->pointerToCurPos;
  const UInt32 m = p->lzPos;
  MT_HASH2_CALC
      
  c2 = hash[h2];
  hash[h2] = m;

  if (c2 >= matchMinPos)
  {
    CHECK_FAILURE_LZ(c2, m)
    if (cur[(ptrdiff_t)c2 - (ptrdiff_t)m] == cur[0])
    {
      *d++ = 2;
      *d++ = m - c2 - 1;
    }
  }
  
  return d;
}

// Assembly:
movq %rdx, %rax
movq 0x28(%rdi), %r8
movq (%rdi), %rdx
movl 0x20(%rdi), %ecx
movq 0x38(%rdi), %rdi
movzbl (%rdx), %r9d
movzbl 0x1(%rdx), %r10d
movl $0x3ff, %r11d           # imm = 0x3FF
andl (%rdi,%r9,4), %r11d
xorl %r10d, %r11d
movl (%r8,%r11,4), %edi
movl %ecx, (%r8,%r11,4)
cmpl %esi, %edi
jb 0x3aa62
movq %rdi, %rsi
subq %rcx, %rsi
movb (%rdx,%rsi), %sil
cmpb (%rdx), %sil
jne 0x3aa62
movl $0x2, (%rax)
notl %edi
addl %ecx, %edi
movl %edi, 0x4(%rax)
addq $0x8, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x3ff, %ebp            # imm = 0x3FF
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jne 0x3aa83
movq %r14, %rdi
callq 0x3b357
movl 0x24(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x24(%r14)
cmpl $0x2, %eax
jb 0x3aab3
movq (%r14), %rax
movq 0x28(%r14), %rcx
movq 0x38(%r14), %rdx
movzbl (%rax), %esi
movzbl 0x1(%rax), %eax
movl (%rdx,%rsi,4), %edx
andl %ebp, %edx
xorl %eax, %edx
movl 0x20(%r14), %eax
movl %eax, (%rcx,%rdx,4)
incl 0x20(%r14)
incq (%r14)
movq 0x10(%r14), %rax
movl (%rax), %ecx
leaq (%rax,%rcx,4), %rax
addq $0x4, %rax
movq %rax, 0x10(%r14)
decl %ebx
jne 0x3aa71
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3ac4c
movq %r9, %rax
subq %rcx, %rax
movb (%r8,%rax), %r10b
cmpb (%r8), %r10b
jne 0x3ac4c
notl %r9d
addl %ecx, %r9d
movl %r9d, 0x4(%rdx)
movb 0x2(%r8,%rax), %r9b
leaq 0x8(%rdx), %rax
cmpb 0x2(%r8), %r9b
jne 0x3ac74
movl $0x3, (%rdx)
retq
movq %rdx, %rax
cmpl %esi, %edi
jb 0x3ac73
movq %rdi, %rdx
subq %rcx, %rdx
movb (%r8,%rdx), %dl
cmpb (%r8), %dl
jne 0x3ac73
movl $0x3, (%rax)
notl %edi
addl %ecx, %edi
movl %edi, 0x4(%rax)
addq $0x8, %rax
retq
movl $0x2, (%rdx)
jmp 0x3ac4f
// File: /workspace/github_cpp_makefile_star2_O1/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(%r14), %rax
cmpq 0x18(%r14), %rax
jne 0x3ac97
movq %r14, %rdi
callq 0x3b357
movl 0x24(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x24(%r14)
cmpl $0x3, %eax
jb 0x3ace1
movq (%r14), %rax
movq 0x28(%r14), %rcx
movq 0x38(%r14), %rdx
movzbl (%rax), %esi
movzbl 0x1(%rax), %edi
xorl (%rdx,%rsi,4), %edi
movzwl %di, %edx
movl %edi, %esi
andl $0x3ff, %esi            # imm = 0x3FF
movzbl 0x2(%rax), %eax
movl 0x20(%r14), %edi
movl %edi, (%rcx,%rsi,4)
shll $0x2, %edx
shll $0xa, %eax
xorl %edx, %eax
movl %edi, 0x1000(%rcx,%rax)
incl 0x20(%r14)
incq (%r14)
movq 0x10(%r14), %rax
movl (%rax), %ecx
leaq (%rax,%rcx,4), %rax
addq $0x4, %rax
movq %rax, 0x10(%r14)
decl %ebx
jne 0x3ac85
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3b300
movl $0x1, (%rbx)
movl $0x0, 0x24(%rbx)
movq $0x0, 0x30(%rbx)
leaq 0xa0(%rbx), %rdi
callq 0x3dc2c
leaq 0x38(%rbx), %rdi
callq 0x3dbe9
xorl %r14d, %r14d
jmp 0x3b32d
leaq 0x1d8(%rbx), %rdi
callq 0x3de84
movl $0x0, 0x2c(%rbx)
movl (%rbx), %r14d
leal 0x1(%r14), %eax
movl %eax, (%rbx)
leaq 0x108(%rbx), %rdi
movl $0x1, %esi
callq 0x3dd7c
leaq 0x170(%rbx), %rdi
callq 0x3dde1
leaq 0x1d8(%rbx), %rdi
callq 0x3de7a
movl $0x1, 0x2c(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq