//
// sub_F415FC from 0xf415fc to 0xf41664 (104 bytes)
//
// 2 xrefs:
// > sub_F41664 @ 0xf416e0
// > sub_F41664 @ 0xf41770
//
// 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 13:13:07 +0000
//
unsigned __int8 *__fastcall sub_F415FC(unsigned __int8 *a1, unsigned __int8 *a2, unsigned int *a3)
{
unsigned __int8 *v3; // x5
unsigned int v4; // w4
unsigned int i; // w3
bool v6; // zf
unsigned __int8 *result; // x0
if ( a2 <= a1 )
return nullptr;
v3 = a1;
v4 = 0;
for ( i = *a1 - 48; i <= 9; i = *v3 - 48 )
{
++v3;
v4 = i + 10 * v4;
if ( v3 == a2 )
break;
}
v6 = v3 == a1;
result = nullptr;
if ( !v6 )
{
*a3 = v4;
return v3;
}
return result;
}