//
// sub_1004C7358 from 0x1004c7358 to 0x1004c73a8 (80 bytes)
//
// 0 xrefs:
//
// 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_1004C7358(unsigned __int64 a1)
{
char *v1; // x9
int v2; // w8
__int64 v4; // x8
int v5; // w10
int v6; // t1
if ( !a1 )
return 0;
v1 = (char *)(a1 - 2);
do
{
v2 = (unsigned __int8)v1[2];
++v1;
}
while ( v2 );
if ( (unsigned __int64)v1 < a1 )
return 0;
LODWORD(v4) = 0;
v5 = 1;
do
{
v6 = *v1--;
v4 = (unsigned int)(v4 + (v6 - 48) * v5);
v5 *= 10;
}
while ( (unsigned __int64)v1 >= a1 );
return v4;
}