//
// sub_100649310 from 0x100649310 to 0x100649350 (64 bytes)
//
// 1 xrefs:
// > ??> @ 0x100985ee8
//
// 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_100649310(__int64 a1, char a2)
{
__int64 result; // rax
__int64 v3; // rdx
for ( result = a1 + 1; ; ++result )
{
v3 = *(unsigned __int8 *)(result - 1);
if ( (a7_0[v3] & 2) == 0 )
continue;
if ( (_BYTE)v3 == a2 )
break;
if ( !(_BYTE)v3 )
return 0;
}
*(_BYTE *)(result - 1) = 0;
return result;
}