//
// sub_FFD08 from 0xffd08 to 0xffd54 (76 bytes)
//
// 2 xrefs:
// > sub_FFBFC @ 0xffc78
// > sub_FFBFC @ 0xffcb0
//
// 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 12:15:11 +0000
//
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;
}