//
// sub_FFD08 from 0xffd08 to 0xffd54 (76 bytes)
//
// 2 xrefs:
// > sub_FFBFC @ 0xffc78
// > sub_FFBFC @ 0xffcb0
//
// 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
//
unsigned __int8 *__fastcall sub_FFD08(__int64 a1, unsigned __int64 a2, unsigned int *a3)
{
__int64 v3; // x10
unsigned int v4; // w9
unsigned __int8 *v5; // x8
unsigned int v6; // w12
v3 = 0;
v4 = 0;
while ( 1 )
{
v5 = (unsigned __int8 *)(a1 + v3);
if ( a1 + v3 >= a2 )
break;
v6 = *v5 - 48;
if ( v6 > 9 )
break;
v4 = v6 + 10 * v4;
++v3;
}
if ( !v3 )
return nullptr;
*a3 = v4;
return v5;
}