LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/LzmaEnc.c
// Function: LitEnc_GetPrice
static UInt32 LitEnc_GetPrice(const CLzmaProb *probs, UInt32 sym, const CProbPrice *ProbPrices)
{
  UInt32 price = 0;
  sym |= 0x100;
  do
  {
    unsigned bit = sym & 1;
    sym >>= 1;
    price += GET_PRICEa(probs[sym], bit);
  }
  while (sym >= 2);
  return price;
}

// Assembly:
orl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %esi, %ecx
movl %esi, %r8d
andl $0x1, %r8d
negl %r8d
shrl %ecx
movl %esi, %r9d
andl $-0x2, %r9d
movzwl (%rdi,%r9), %r9d
andl $0x7f0, %r8d            # imm = 0x7F0
xorl %r9d, %r8d
shrl $0x4, %r8d
addl (%rdx,%r8,4), %eax
cmpl $0x3, %esi
movl %ecx, %esi
ja 0x2efe4
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: SeqInStream_ReadMax
SRes SeqInStream_ReadMax(ISeqInStreamPtr stream, void *buf, size_t *processedSize)
{
  size_t size = *processedSize;
  *processedSize = 0;
  while (size != 0)
  {
    size_t cur = size;
    const SRes res = ISeqInStream_Read(stream, buf, &cur);
    *processedSize += cur;
    buf = (void *)((Byte *)buf + cur);
    size -= cur;
    if (res != SZ_OK)
      return res;
    if (cur == 0)
      return SZ_OK;
  }
  return SZ_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq (%rdx), %r13
andq $0x0, (%rdx)
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
testq %r13, %r13
je 0x2f06d
movq %r13, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rsp, %rdx
callq *(%r15)
movq (%rsp), %rcx
addq %rcx, (%rbx)
testq %rcx, %rcx
cmovel %r12d, %ebp
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x2f06f
addq %rcx, %r14
subq %rcx, %r13
testq %rcx, %rcx
jne 0x2f036
jmp 0x2f06f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookInStream_LookRead
SRes LookInStream_LookRead(ILookInStreamPtr stream, void *buf, size_t *size)
{
  const void *lookBuf;
  if (*size == 0)
    return SZ_OK;
  RINOK(ILookInStream_Look(stream, &lookBuf, size))
  memcpy(buf, lookBuf, *size);
  return ILookInStream_Skip(stream, *size);
}

// Assembly:
cmpq $0x0, (%rdx)
je 0x2f104
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
callq *(%rdi)
testl %eax, %eax
jne 0x2f0fa
movq 0x8(%rsp), %rsi
movq (%r14), %rdx
movq %r15, %rdi
callq 0x42c0
movq (%r14), %rsi
movq %rbx, %rdi
callq *0x8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookInStream_Read2
SRes LookInStream_Read2(ILookInStreamPtr stream, void *buf, size_t size, SRes errorType)
{
  while (size != 0)
  {
    size_t processed = size;
    RINOK(ILookInStream_Read(stream, buf, &processed))
    if (processed == 0)
      return errorType;
    buf = (void *)((Byte *)buf + processed);
    size -= processed;
  }
  return SZ_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8(%rsp), %r13
testq %r14, %r14
je 0x2f152
movq %r14, 0x8(%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq *0x10(%r12)
testl %eax, %eax
jne 0x2f156
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x2f158
addq %rax, %r15
subq %rax, %r14
jmp 0x2f124
xorl %ebx, %ebx
jmp 0x2f158
movl %eax, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookToRead2_CreateVTable
void LookToRead2_CreateVTable(CLookToRead2 *p, int lookahead)
{
  p->vt.Look = lookahead ?
      LookToRead2_Look_Lookahead :
      LookToRead2_Look_Exact;
  p->vt.Skip = LookToRead2_Skip;
  p->vt.Read = LookToRead2_Read;
  p->vt.Seek = LookToRead2_Seek;
}

// Assembly:
testl %esi, %esi
leaq 0xa5(%rip), %rax        # 0x2f21e
leaq 0x29(%rip), %rcx        # 0x2f1a9
cmoveq %rax, %rcx
movq %rcx, (%rdi)
leaq 0xfb(%rip), %rax        # 0x2f289
movq %rax, 0x8(%rdi)
leaq 0xf7(%rip), %rax        # 0x2f290
movq %rax, 0x10(%rdi)
leaq 0x140(%rip), %rax       # 0x2f2e4
movq %rax, 0x18(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookToRead2_Look_Lookahead
static SRes LookToRead2_Look_Lookahead(ILookInStreamPtr pp, const void **buf, size_t *size)
{
  SRes res = SZ_OK;
  GET_LookToRead2
  size_t size2 = p->size - p->pos;
  if (size2 == 0 && *size != 0)
  {
    p->pos = 0;
    p->size = 0;
    size2 = p->bufSize;
    res = ISeekInStream_Read(p->realStream, p->buf, &size2);
    p->size = size2;
  }
  if (*size > size2)
    *size = size2;
  *buf = p->buf + p->pos;
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rcx
xorl %eax, %eax
movq (%rdx), %rdx
subq 0x28(%rdi), %rcx
jne 0x2f1fb
testq %rdx, %rdx
je 0x2f205
leaq 0x28(%r14), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x40(%r14), %rax
movq %rsp, %r12
movq %rax, (%r12)
movq 0x20(%r14), %rdi
movq 0x38(%r14), %rsi
movq %r12, %rdx
callq *(%rdi)
movq (%r12), %rcx
movq %rcx, 0x30(%r14)
movq (%r15), %rdx
cmpq %rcx, %rdx
jbe 0x2f207
movq %rcx, (%r15)
jmp 0x2f207
xorl %eax, %eax
movq 0x38(%r14), %rcx
addq 0x28(%r14), %rcx
movq %rcx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookToRead2_Look_Exact
static SRes LookToRead2_Look_Exact(ILookInStreamPtr pp, const void **buf, size_t *size)
{
  SRes res = SZ_OK;
  GET_LookToRead2
  size_t size2 = p->size - p->pos;
  if (size2 == 0 && *size != 0)
  {
    p->pos = 0;
    p->size = 0;
    if (*size > p->bufSize)
      *size = p->bufSize;
    res = ISeekInStream_Read(p->realStream, p->buf, size);
    size2 = p->size = *size;
  }
  if (*size > size2)
    *size = size2;
  *buf = p->buf + p->pos;
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rcx
movq (%rdx), %rdx
subq 0x28(%rdi), %rcx
jne 0x2f26a
testq %rdx, %rdx
je 0x2f276
leaq 0x28(%r14), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x40(%r14), %rax
cmpq %rax, (%r15)
jbe 0x2f254
movq %rax, (%r15)
movq 0x20(%r14), %rdi
movq 0x38(%r14), %rsi
movq %r15, %rdx
callq *(%rdi)
movq (%r15), %rcx
movq %rcx, 0x30(%r14)
jmp 0x2f278
xorl %eax, %eax
cmpq %rcx, %rdx
jbe 0x2f278
movq %rcx, (%r15)
jmp 0x2f278
xorl %eax, %eax
movq 0x38(%r14), %rcx
addq 0x28(%r14), %rcx
movq %rcx, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/7zStream.c
// Function: LookToRead2_Read
static SRes LookToRead2_Read(ILookInStreamPtr pp, void *buf, size_t *size)
{
  GET_LookToRead2
  size_t rem = p->size - p->pos;
  if (rem == 0)
    return ISeekInStream_Read(p->realStream, buf, size);
  if (rem > *size)
    rem = *size;
  memcpy(buf, p->buf + p->pos, rem);
  p->pos += rem;
  *size = rem;
  return SZ_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rax
movq 0x30(%rdi), %rcx
subq %rax, %rcx
jne 0x2f2b9
movq 0x20(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq (%rbx), %r15
cmpq %r15, %rcx
cmovbq %rcx, %r15
addq 0x38(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x42c0
addq %r15, 0x28(%r14)
movq %r15, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_Construct
void MatchFinder_Construct(CMatchFinder *p)
{
  unsigned i;
  p->buffer = NULL;
  p->bufBase = NULL;
  p->directInput = 0;
  p->stream = NULL;
  p->hash = NULL;
  p->expectedDataSize = (UInt64)(Int64)-1;
  MatchFinder_SetDefaultSettings(p);

  for (i = 0; i < 256; i++)
  {
    UInt32 r = (UInt32)i;
    unsigned j;
    for (j = 0; j < 8; j++)
      r = (r >> 1) ^ (kCrcPoly & ((UInt32)0 - (r & 1)));
    p->crc[i] = r;
  }
}

// Assembly:
andq $0x0, (%rdi)
movb $0x0, 0x23(%rdi)
andq $0x0, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
orq $-0x1, 0x480(%rdi)
movl $0x20, 0x3c(%rdi)
movw $0x1, 0x21(%rdi)
movl $0x4, 0x5c(%rdi)
movw $0x2, 0x70(%rdi)
xorl %eax, %eax
pushq $0x8
popq %rcx
cmpq $0x100, %rax            # imm = 0x100
je 0x2f495
movl %ecx, %esi
movl %eax, %edx
subl $0x1, %esi
jb 0x2f48c
movl %edx, %r8d
shrl %r8d
andl $0x1, %edx
negl %edx
andl $0xedb88320, %edx       # imm = 0xEDB88320
xorl %r8d, %edx
jmp 0x2f471
movl %edx, 0x78(%rdi,%rax,4)
incq %rax
jmp 0x2f465
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_Init_LowHash
void MatchFinder_Init_LowHash(CMatchFinder *p)
{
  size_t i;
  CLzRef *items = p->hash;
  const size_t numItems = p->fixedHashSize;
  for (i = 0; i < numItems; i++)
    items[i] = kEmptyHashValue;
}

// Assembly:
movq 0x28(%rdi), %rax
movl 0x6c(%rdi), %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2f81a
andl $0x0, (%rax,%rdx,4)
incq %rdx
jmp 0x2f80c
retq
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/LzFind.c
// Function: MatchFinder_Init_HighHash
void MatchFinder_Init_HighHash(CMatchFinder *p)
{
  size_t i;
  CLzRef *items = p->hash + p->fixedHashSize;
  const size_t numItems = (size_t)p->hashMask + 1;
  for (i = 0; i < numItems; i++)
    items[i] = kEmptyHashValue;
}

// Assembly:
movl 0x38(%rdi), %eax
movl 0x6c(%rdi), %ecx
shlq $0x2, %rcx
addq 0x28(%rdi), %rcx
incq %rax
xorl %edx, %edx
cmpq %rdx, %rax
je 0x2f83c
andl $0x0, (%rcx,%rdx,4)
incq %rdx
jmp 0x2f82e
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, %rax
movl %edi, %ebx
xorl %ecx, %ecx
addq $-0x1, %rdx
jae 0x2f91b
movl %eax, %edi
andl $0x7f, %edi
je 0x2f91b
movl (%rsi), %edi
subl %ebx, %edi
cmovbl %ecx, %edi
movl %edi, (%rsi)
addq $0x4, %rsi
addq $0x4, %rax
movq %rdx, %r14
jmp 0x2f8f8
movq %r14, %rax
andq $-0x20, %rax
leaq (%rsi,%rax,4), %r15
je 0x2f942
movq 0x45cc1(%rip), %rax     # 0x755f0
movl %ebx, %edi
movq %r15, %rdx
testq %rax, %rax
je 0x2f93d
callq *%rax
jmp 0x2f942
callq 0x2f96a
movzbl %r14b, %eax
andl $0x1f, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x2f964
movl (%r15,%rdx,4), %esi
subl %ebx, %esi
cmovbl %ecx, %esi
movl %esi, (%r15,%rdx,4)
incq %rdx
jmp 0x2f94d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
movd %edi, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa 0x25145(%rip), %xmm1    # 0x54ac0
movdqa %xmm0, %xmm2
pxor %xmm1, %xmm2
movdqu (%rsi), %xmm3
movdqu 0x10(%rsi), %xmm4
movdqa %xmm3, %xmm5
pxor %xmm1, %xmm5
pcmpgtd %xmm2, %xmm5
psubd %xmm0, %xmm3
pand %xmm5, %xmm3
movdqu %xmm3, (%rsi)
movdqa %xmm4, %xmm3
pxor %xmm1, %xmm3
pcmpgtd %xmm2, %xmm3
psubd %xmm0, %xmm4
pand %xmm3, %xmm4
movdqu %xmm4, 0x10(%rsi)
addq $0x20, %rsi
cmpq %rdx, %rsi
jne 0x2f983
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movl 0x14(%rdi), %eax
cmpl $0x2, %eax
ja 0x2fb8a
callq 0x2fd7d
jmp 0x2fd60
movl %eax, %edx
movq (%rdi), %r10
movzbl 0x2(%r10), %eax
movzbl (%r10), %ecx
shll $0x8, %ecx
orl %eax, %ecx
leaq 0x1(%r10), %rax
movq %rax, 0x28(%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), %r11d
movl %r11d, (%rcx,%rax,4)
movq 0x30(%rdi), %r14
movl 0x18(%rdi), %ecx
movl 0x1c(%rdi), %esi
leaq (%r14,%rcx,8), %rax
movq %rcx, 0x40(%rsp)
leaq (%r14,%rcx,8), %r15
addq $0x4, %r15
xorl %r8d, %r8d
movl %r11d, %ecx
movl %esi, 0x18(%rsp)
subl %esi, %ecx
movl $0x0, 0x10(%rsp)
cmovbl %r8d, %ecx
movl %ecx, 0x14(%rsp)
cmpl %r13d, %ecx
movq %rdi, 0x30(%rsp)
jae 0x2fd37
movl 0x3c(%rdi), %r12d
pushq $0x2
popq %rcx
movl %ecx, 0xc(%rsp)
xorl %r8d, %r8d
movl %edx, %edi
movl %r11d, 0x8(%rsp)
movq %r14, 0x20(%rsp)
movl %r11d, %ebp
subl %r13d, %ebp
movq 0x40(%rsp), %rdx
movq %rdx, %rcx
subq %rbp, %rcx
cmpl %edx, %ebp
movl $0x0, %r9d
cmoval 0x18(%rsp), %r9d
addq %rcx, %r9
movq %r10, %rdx
subq %rbp, %rdx
movl 0x10(%rsp), %ecx
cmpl %r8d, %ecx
movl %r8d, 0x1c(%rsp)
cmovbl %ecx, %r8d
leaq (%r14,%r9,8), %rsi
movb (%rdx,%r8), %cl
cmpb (%r10,%r8), %cl
jne 0x2fcfc
leal 0x1(%r8), %r14d
movl %edi, %ecx
cmpl %edi, %r14d
je 0x2fcbf
movq %rax, 0x38(%rsp)
movq %r15, %rax
movq %rbx, %r15
movl %r14d, %ebx
movb (%rdx,%rbx), %r11b
movl %r14d, %ecx
cmpb (%r10,%rbx), %r11b
movq %r15, %rbx
movq %rax, %r15
movq 0x38(%rsp), %rax
jne 0x2fcbf
addl $0x2, %r8d
cmpl %r8d, %edi
je 0x2fcbd
movl %r8d, %ecx
movb (%rdx,%rcx), %r11b
incl %r8d
cmpb (%r10,%rcx), %r11b
je 0x2fca0
decl %r8d
movl %r8d, %ecx
jmp 0x2fcbf
movl %edi, %ecx
cmpl %ecx, 0xc(%rsp)
jae 0x2fcef
movq 0x20(%rsp), %r14
movl (%r14,%r9,8), %r8d
movl %ecx, (%rbx)
decl %ebp
movl %ebp, 0x4(%rbx)
addq $0x8, %rbx
cmpl %edi, %ecx
movl 0x8(%rsp), %r11d
je 0x2fd72
movl %ecx, 0xc(%rsp)
movl %ecx, %r8d
jmp 0x2fcfc
movl %ecx, %r8d
movl 0x8(%rsp), %r11d
movq 0x20(%rsp), %r14
movl %r8d, %ecx
movb (%rdx,%rcx), %dl
cmpb (%r10,%rcx), %dl
jae 0x2fd14
movl %r13d, (%rax)
addq $0x4, %rsi
movq %rsi, %rax
jmp 0x2fd24
movl %r13d, (%r15)
movq %rsi, %r15
movl %r8d, 0x10(%rsp)
movl 0x1c(%rsp), %r8d
decl %r12d
je 0x2fd37
movl (%rsi), %r13d
cmpl %r13d, 0x14(%rsp)
jb 0x2fc21
andl $0x0, (%rax)
andl $0x0, (%r15)
movq 0x30(%rsp), %rdi
incl 0x18(%rdi)
movq 0x28(%rsp), %rax
movq %rax, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x2fd60
callq 0x2fd91
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r8d, (%rax)
movl 0x4(%rsi), %eax
movl %eax, (%r15)
jmp 0x2fd3e
// File: /workspace/github_cpp_makefile_star2_O2/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 0x8(%rdi), %eax
movl 0x10(%rdi), %ecx
subl %eax, %ecx
cmpl %ecx, 0x58(%rdi)
jne 0x2fdc4
movq %rbx, %rdi
callq 0x2f359
testl %eax, %eax
je 0x2fdb9
movq %rbx, %rdi
callq 0x2f320
movq %rbx, %rdi
callq 0x2f390
movl 0x8(%rbx), %eax
testl %eax, %eax
jne 0x2fe16
movl 0x10(%rbx), %eax
cmpl 0x5c(%rbx), %eax
jb 0x2fe16
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 0x2f8e9
movl 0x1c(%rbx), %edx
cmpb $0x0, 0x21(%rbx)
setne %cl
shlq %cl, %rdx
movq 0x30(%rbx), %rsi
movl %r14d, %edi
callq 0x2f8e9
movl 0x18(%rbx), %eax
cmpl 0x1c(%rbx), %eax
jne 0x2fe22
andl $0x0, 0x18(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f889
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2fe52
callq 0x2fd7d
jmp 0x2ff42
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)
pushq $0x2
popq %r14
testl %ebp, %ebp
je 0x2ff26
movl %esi, %r15d
subl %ebp, %r15d
cmpl %r10d, %r15d
jae 0x2ff26
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 0x2ff12
negq %r12
addq %rdx, %r12
xorl %r13d, %r13d
movb (%rdx,%r13), %al
cmpb (%r12,%r13), %al
jne 0x2fefc
incq %r13
cmpq %r13, %rcx
jne 0x2fee8
jmp 0x2ff19
cmpl %r13d, %r14d
jae 0x2ff12
movl %r13d, (%rbx)
decl %r15d
movl %r15d, 0x4(%rbx)
addq $0x8, %rbx
movl %r13d, %r14d
decl %r11d
jne 0x2fe9e
jmp 0x2ff26
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 0x2ff42
callq 0x2fd91
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_O2/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 0x2ff70
movq %r14, %rdi
callq 0x2fd7d
jmp 0x2ffd4
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 0x2ffe0
popq %rax
popq %rcx
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x2ffd4
movq %r14, %rdi
callq 0x2fd91
decl %ebx
jne 0x2ff5d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %ebx, %ebx
movl %edx, %r11d
subl %eax, %r11d
cmovbl %ebx, %r11d
cmpl %esi, %r11d
jae 0x300b5
movl 0x40(%rsp), %ebp
movl %eax, %eax
movq %rax, -0x8(%rsp)
decl %edi
xorl %r15d, %r15d
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 %r15d, %ebx
movl %r15d, %r13d
cmovbl %ebx, %r13d
leaq (%r8,%r10,8), %r12
movb (%rcx,%r13), %al
movb (%r14,%r13), %r10b
cmpb %r10b, %al
jne 0x3007b
cmpl %r13d, %edi
je 0x300c7
incl %r13d
movl %r13d, %r10d
movb (%rcx,%r10), %al
movb (%r14,%r10), %r10b
jmp 0x30061
cmpb %r10b, %al
jae 0x30095
movq -0x18(%rsp), %rax
movl %esi, (%rax)
addq $0x4, %r12
movq %r12, -0x18(%rsp)
movl %r13d, %r15d
jmp 0x300a4
movq -0x10(%rsp), %rax
movl %esi, (%rax)
movl %r13d, %ebx
movq %r12, -0x10(%rsp)
decl %ebp
je 0x300b5
movl (%r12), %esi
cmpl %esi, %r11d
jb 0x3002c
movq -0x18(%rsp), %rax
andl $0x0, (%rax)
movq -0x10(%rsp), %rax
andl $0x0, (%rax)
jmp 0x300de
movl (%r12), %eax
movq -0x18(%rsp), %rcx
movl %eax, (%rcx)
movl 0x4(%r12), %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_O2/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 0x30108
movq %r14, %rdi
callq 0x2fd7d
decl %ebx
jmp 0x30194
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 0x3013f
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 0x30194
movq %r14, %rdi
callq 0x2fd91
testl %ebx, %ebx
jne 0x300f2
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 -0x94c(%rip), %rax      # 0x2f85c
movq %rax, (%rsi)
leaq 0xa7(%rip), %rax        # 0x30259
movq %rax, 0x8(%rsi)
leaq 0xa3(%rip), %rax        # 0x30260
movq %rax, 0x10(%rsi)
cmpb $0x0, 0x21(%rdi)
movl 0x5c(%rdi), %eax
je 0x301ed
cmpl $0x4, %eax
je 0x3022e
cmpl $0x3, %eax
je 0x3021a
cmpl $0x2, %eax
jne 0x30242
leaq 0x737(%rip), %rax       # 0x30917
movq %rax, 0x18(%rsi)
leaq 0x930(%rip), %rax       # 0x30b1b
jmp 0x30254
cmpl $0x4, %eax
ja 0x30206
leaq 0x6b(%rip), %rax        # 0x30264
movq %rax, 0x18(%rsi)
leaq 0x2b3(%rip), %rax       # 0x304b7
jmp 0x30254
leaq 0x39d(%rip), %rax       # 0x305aa
movq %rax, 0x18(%rsi)
leaq 0x5fc(%rip), %rax       # 0x30814
jmp 0x30254
leaq 0x971(%rip), %rax       # 0x30b92
movq %rax, 0x18(%rsi)
leaq 0xc62(%rip), %rax       # 0x30e8e
jmp 0x30254
leaq 0xd00(%rip), %rax       # 0x30f35
movq %rax, 0x18(%rsi)
leaq 0x1098(%rip), %rax      # 0x312d8
jmp 0x30254
leaq 0x1154(%rip), %rax      # 0x3139d
movq %rax, 0x18(%rsi)
leaq 0x14f4(%rip), %rax      # 0x31748
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x304da
movq %r14, %rdi
callq 0x2fd7d
decl %ebx
jmp 0x30599
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 0x30511
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 0x30599
movq %r14, %rdi
callq 0x2fd91
testl %ebx, %ebx
jne 0x304c4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x30837
movq %r14, %rdi
callq 0x2fd7d
decl %ebx
jmp 0x30906
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 0x3086e
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 0x30906
movq %r14, %rdi
callq 0x2fd91
testl %ebx, %ebx
jne 0x30821
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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), %r9d
cmpl $0x1, %r9d
ja 0x3093c
callq 0x2fd7d
jmp 0x30aff
movq (%rdi), %r13
movzwl (%r13), %eax
movq 0x28(%rdi), %rcx
movl (%rcx,%rax,4), %r12d
movl 0x8(%rdi), %r10d
movl %r10d, (%rcx,%rax,4)
movq 0x30(%rdi), %rbp
movl 0x18(%rdi), %ecx
movl 0x1c(%rdi), %edx
leaq (,%rcx,8), %rax
addq %rbp, %rax
movq %rcx, 0x30(%rsp)
leaq 0x4(,%rcx,8), %r14
addq %rbp, %r14
xorl %esi, %esi
movl %r10d, %ecx
movl %edx, 0x10(%rsp)
subl %edx, %ecx
movl $0x0, 0x8(%rsp)
cmovbl %esi, %ecx
movl %ecx, 0xc(%rsp)
cmpl %r12d, %ecx
movq %rdi, 0x20(%rsp)
jae 0x30ad5
movl 0x3c(%rdi), %r15d
pushq $0x1
popq %rcx
movl %ecx, 0x4(%rsp)
xorl %edx, %edx
movq %rax, %rdi
movl %r10d, (%rsp)
movq %rbp, 0x18(%rsp)
movl %r10d, %r11d
subl %r12d, %r11d
movq 0x30(%rsp), %rcx
movq %rcx, %rax
subq %r11, %rax
cmpl %ecx, %r11d
movl $0x0, %r8d
cmoval 0x10(%rsp), %r8d
addq %rax, %r8
movq %r13, %rax
subq %r11, %rax
movl 0x8(%rsp), %ecx
cmpl %edx, %ecx
movl %edx, 0x14(%rsp)
movl %edx, %esi
cmovbl %ecx, %esi
leaq (,%r8,8), %rcx
addq %rbp, %rcx
movb (%rax,%rsi), %dl
cmpb (%r13,%rsi), %dl
jne 0x30a98
leal 0x1(%rsi), %ebp
movl %r9d, %edx
cmpl %r9d, %ebp
je 0x30a5b
movq %rdi, 0x28(%rsp)
movq %r14, %rdi
movq %rbx, %r14
movl %ebp, %ebx
movb (%rax,%rbx), %r10b
movl %ebp, %edx
cmpb (%r13,%rbx), %r10b
movq %r14, %rbx
movq %rdi, %r14
movq 0x28(%rsp), %rdi
jne 0x30a5b
addl $0x2, %esi
cmpl %esi, %r9d
je 0x30a58
movl %esi, %edx
movb (%rax,%rdx), %r10b
incl %esi
cmpb (%r13,%rdx), %r10b
je 0x30a3e
decl %esi
movl %esi, %edx
jmp 0x30a5b
movl %r9d, %edx
cmpl %edx, 0x4(%rsp)
jae 0x30a8d
movq 0x18(%rsp), %rbp
movl (%rbp,%r8,8), %esi
movl %edx, (%rbx)
decl %r11d
movl %r11d, 0x4(%rbx)
addq $0x8, %rbx
cmpl %r9d, %edx
movl (%rsp), %r10d
je 0x30b11
movl %edx, 0x4(%rsp)
movl %edx, %esi
jmp 0x30a98
movl %edx, %esi
movl (%rsp), %r10d
movq 0x18(%rsp), %rbp
movl %esi, %edx
movb (%rax,%rdx), %al
cmpb (%r13,%rdx), %al
jae 0x30ab2
movl %r12d, (%rdi)
addq $0x4, %rcx
movq %rcx, %rdi
movl %esi, %edx
jmp 0x30ac0
movl %r12d, (%r14)
movq %rcx, %r14
movl %esi, 0x8(%rsp)
movl 0x14(%rsp), %edx
decl %r15d
je 0x30ad8
movl (%rcx), %r12d
cmpl %r12d, 0xc(%rsp)
jb 0x309ba
jmp 0x30ad8
movq %rax, %rdi
andl $0x0, (%rdi)
andl $0x0, (%r14)
movq 0x20(%rsp), %rdi
incl 0x18(%rdi)
incq %r13
movq %r13, (%rdi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rdi)
cmpl 0xc(%rdi), %eax
jne 0x30aff
callq 0x2fd91
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %esi, (%rdi)
movl 0x4(%rcx), %eax
movl %eax, (%r14)
jmp 0x30adf
// File: /workspace/github_cpp_makefile_star2_O2/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 0x30b37
movq %r14, %rdi
callq 0x2fd7d
jmp 0x30b86
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 0x2ffe0
popq %rax
popq %rcx
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x30b86
movq %r14, %rdi
callq 0x2fd91
decl %ebx
jne 0x30b24
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x30eaa
movq %r14, %rdi
callq 0x2fd7d
jmp 0x30f25
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 0x2ffe0
popq %rax
popq %rcx
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x30f25
movq %r14, %rdi
callq 0x2fd91
decl %ebx
jne 0x30e97
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x312f7
movq %r14, %rdi
callq 0x2fd7d
jmp 0x3138d
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 0x2ffe0
popq %rax
popq %rcx
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x3138d
movq %r14, %rdi
callq 0x2fd91
decl %ebx
jne 0x312e1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x31767
movq %r14, %rdi
callq 0x2fd7d
jmp 0x3180c
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 0x2ffe0
popq %rax
popq %rcx
incl 0x18(%r14)
incq (%r14)
movl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
cmpl 0xc(%r14), %eax
jne 0x3180c
movq %r14, %rdi
callq 0x2fd91
decl %ebx
jne 0x31751
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x318b2
vzeroupper
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
je 0x319cf
leaq 0x8(%rbx), %r14
movq %rbx, %rdi
callq 0x31e50
movl $0x1, 0x30(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x34f8b
movq %r14, %rdi
callq 0x34eec
cmpl $0x0, 0x28(%rbx)
je 0x319e5
leaq 0x1d8(%rbx), %rdi
callq 0x35212
andl $0x0, 0x28(%rbx)
andl $0x0, 0x2c(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x35050
leaq 0xa0(%rbx), %rdi
callq 0x35050
leaq 0x108(%rbx), %rdi
callq 0x351ba
leaq 0x170(%rbx), %rdi
callq 0x351ba
andl $0x0, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x520(%rdi), %rdi
movl %esi, 0x34(%rbx)
testl $0x3fffc000, %ecx       # imm = 0x3FFFC000
je 0x31a59
pushq $0x5
popq %rbp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r8d, %r15d
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %r14d
cmpq $0x0, 0x2d0(%rbx)
pushq $0x2
popq %rbp
jne 0x31aa7
movq %rdi, 0x8(%rsp)
movl $0x500000, %esi         # imm = 0x500000
movq %r9, %rdi
movq %r9, 0x10(%rsp)
callq *(%r9)
movq %rax, 0x2d0(%rbx)
testq %rax, %rax
je 0x31a48
addq $0x100000, %rax         # imm = 0x100000
movq %rax, 0x8(%rbx)
movq 0x10(%rsp), %r9
movq 0x8(%rsp), %rdi
addl $0x140000, %r13d        # imm = 0x140000
addl $0x20000, %r15d         # imm = 0x20000
movl %r14d, %esi
movl %r13d, %edx
movl %r12d, %ecx
movl %r15d, %r8d
callq 0x2f4c6
testl %eax, %eax
je 0x31a48
leaq 0x318(%rbx), %rdi
leaq 0xdd(%rip), %rsi        # 0x31bb9
movq %rbx, %rdx
callq 0x31b0c
movl %eax, %ebp
testl %eax, %eax
jne 0x31a48
leaq 0x50(%rbx), %rdi
leaq 0x2ae(%rip), %rsi       # 0x31da7
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31b0c
// File: /workspace/github_cpp_makefile_star2_O2/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 0x31b76
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
addq $0x1d8, %rdi            # imm = 0x1D8
callq 0x351ee
testl %eax, %eax
jne 0x31b5a
movq $0x1, 0x28(%rbx)
leaq 0x38(%rbx), %rdi
callq 0x34f84
testl %eax, %eax
jne 0x31b5a
leaq 0xa0(%rbx), %rdi
callq 0x34f84
testl %eax, %eax
je 0x31b81
movl %eax, %r12d
movq %rbx, %rdi
callq 0x3199e
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
pushq $0x1
popq %rax
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 0x31ba4
callq 0x34e53
jmp 0x31ba9
callq 0x34e4c
movl %eax, %r12d
testl %eax, %eax
jne 0x31b5d
movl $0x1, 0x20(%rbx)
jmp 0x31b76
// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/lzma/C/LzFindMt.c
// Function: BtThreadFunc2
static THREAD_FUNC_DECL BtThreadFunc2(void *p)
{
  Byte allocaDummy[0x180];
  unsigned i = 0;
  for (i = 0; i < 16; i++)
    allocaDummy[i] = (Byte)0;
  if (allocaDummy[0] == 0)
    BtThreadFunc((CMatchFinderMt *)p);
  return 0;
}

// Assembly:
subq $0x188, %rsp            # imm = 0x188
xorl %eax, %eax
cmpq $0x10, %rax
je 0x31dbf
movb $0x0, (%rsp,%rax)
incq %rax
jmp 0x31db0
cmpb $0x0, (%rsp)
jne 0x31dca
callq 0x32738
xorl %eax, %eax
addq $0x188, %rsp            # imm = 0x188
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq $0xb
popq %rax
cmpl $0x0, 0x24(%rdi)
je 0x31e4f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x0, 0x2c(%rdi)
jne 0x31e48
movl %esi, %ebx
leaq 0x108(%r14), %rdi
movl %esi, %edx
callq 0x350e9
movl %eax, %ecx
testl %eax, %eax
jne 0x31e3b
addq $0x170, %r14            # imm = 0x170
movq %r14, %rdi
xorl %esi, %esi
movl %ebx, %edx
callq 0x350e9
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