//
// 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 (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:59 +0000
//
__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);
}