//
// sub_1800B82D0 from 0x1800b82d0 to 0x1800b82fb (43 bytes)
//
// 4 xrefs:
// > sub_1800A4BC0 @ 0x1800a4e47
// > sub_1800A5A00 @ 0x1800a5b5e
// > sub_1800C36A0 @ 0x1800c38bd
// > sub_1800C43E0 @ 0x1800c458e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1800B82D0(__int64 a1, __int16 *a2)
{
__int64 v2; // rcx
int v3; // eax
int v4; // r8d
v2 = a1 - (_QWORD)a2;
do
{
v3 = *(__int16 *)((char *)a2 + v2);
v4 = *a2++;
}
while ( (_WORD)v3 && (_WORD)v3 == (_WORD)v4 );
return (unsigned int)(v3 - v4);
}