//
// sub_1005ED4C0 from 0x1005ed4c0 to 0x1005ed510 (80 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 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 11:09:46 +0000
//
__int64 __fastcall sub_1005ED4C0(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;
}