//
// sub_B7D868 from 0xb7d868 to 0xb7d8f0 (136 bytes)
//
// 2 xrefs:
// > sub_B7C838 @ 0xb7c880
// > sub_B7C838 @ 0xb7c888
//
// 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_B7D868(int a1, char *a2, unsigned __int64 a3, _DWORD *a4)
{
unsigned int v4; // w4
__int64 v7; // x0
v4 = 0;
if ( a3 > 3
&& (unsigned int)(unsigned __int8)*a2 - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[1] - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[2] - 48 <= 9
&& a2[3] == 32 )
{
v7 = strtol(a2, nullptr, 10);
*a4 = sub_BABA98(v7);
return 1;
}
return v4;
}