//
// sub_CCB43C from 0xccb43c to 0xccb4a4 (104 bytes)
//
// 2 xrefs:
// > sub_CCB4A4 @ 0xccb520
// > sub_CCB4A4 @ 0xccb5b0
//
// 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_CCB43C(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;
}