//
// sub_F96880 from 0xf96880 to 0xf96a24 (420 bytes)
//
// 3 xrefs:
// > sub_F8CDDC @ 0xf8d22c
// > sub_F8CDDC @ 0xf8d310
// > sub_F8CDDC @ 0xf8d328
//
// 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:14:35 +0000
//
unsigned __int8 *__fastcall sub_F96880(unsigned __int8 *result, unsigned __int8 *a2)
{
int v2; // w8
unsigned __int8 *v3; // x9
int v4; // w10
unsigned __int8 *v5; // x9
unsigned __int8 *v6; // x9
int v7; // t1
unsigned __int8 *v8; // x9
int v9; // w10
unsigned __int8 *v10; // x9
unsigned __int8 *v11; // x8
int v12; // w10
unsigned __int8 *v13; // x9
int v14; // w10
unsigned __int8 *v15; // x9
unsigned __int8 *v16; // x9
int v17; // t1
unsigned __int8 *v18; // x9
int v19; // t1
unsigned __int8 *v20; // x9
int v21; // t1
unsigned __int8 *v22; // x9
int v23; // t1
if ( result != a2 )
{
v2 = *result;
if ( v2 == 118 )
{
if ( result + 1 != a2 )
{
v8 = result[1] == 110 ? result + 2 : result + 1;
if ( v8 != a2 )
{
v9 = *v8;
if ( v9 == 48 )
{
v10 = v8 + 1;
LABEL_23:
if ( v10 != result + 1 && v10 != a2 && *v10 == 95 )
{
v11 = v10 + 1;
if ( v10 + 1 != a2 )
{
v12 = v10[1];
v13 = v10 + 2;
if ( v12 != 110 )
v13 = v11;
if ( v13 != a2 )
{
v14 = *v13;
if ( v14 == 48 )
{
v15 = v13 + 1;
LABEL_47:
if ( v15 != v11 && v15 != a2 )
{
v23 = *v15;
v22 = v15 + 1;
if ( v23 == 95 )
return v22;
}
}
else if ( (unsigned int)(v14 - 49) <= 8 )
{
v20 = v13 + 1;
while ( a2 != v20 )
{
v21 = *v20++;
if ( (unsigned int)(v21 - 48) >= 0xA )
{
v15 = v20 - 1;
goto LABEL_47;
}
}
}
}
}
}
}
else if ( (unsigned int)(v9 - 49) <= 8 )
{
v18 = v8 + 1;
while ( a2 != v18 )
{
v19 = *v18++;
if ( (unsigned int)(v19 - 48) >= 0xA )
{
v10 = v18 - 1;
goto LABEL_23;
}
}
}
}
}
}
else if ( v2 == 104 && result + 1 != a2 )
{
v3 = result[1] == 110 ? result + 2 : result + 1;
if ( v3 != a2 )
{
v4 = *v3;
if ( v4 == 48 )
{
v5 = v3 + 1;
LABEL_11:
if ( v5 != result + 1 && v5 != a2 )
{
v7 = *v5;
v6 = v5 + 1;
if ( v7 == 95 )
return v6;
}
}
else if ( (unsigned int)(v4 - 49) <= 8 )
{
v16 = v3 + 1;
while ( a2 != v16 )
{
v17 = *v16++;
if ( (unsigned int)(v17 - 48) >= 0xA )
{
v5 = v16 - 1;
goto LABEL_11;
}
}
}
}
}
}
return result;
}