//
// sub_E26B3C from 0xe26b3c to 0xe26c98 (348 bytes)
//
// 2 xrefs:
// > ??> @ 0x13fc8b8
// > ??> @ 0x13fc938
//
// 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:09:49 +0000
//
__int64 __fastcall sub_E26B3C(__int64 *a1)
{
__int64 v2; // x20
void *v3; // x0
unsigned int v4; // w1
__int64 v5; // x6
__int64 v6; // x0
__int64 v7; // x19
int v8; // w2
const char *v9; // x0
const char *v10; // x0
const char *v11; // x20
char *v12; // x0
_BYTE *v13; // x1
int v14; // w0
int v15; // t1
int v16; // t1
char *v18; // [xsp+28h] [xbp+28h] BYREF
v2 = *a1;
v3 = off_154A3E0(1u, 0x20u);
*(_QWORD *)(v2 + 536) = v3;
v4 = 27;
if ( v3 )
{
v5 = *a1 + 0x8000;
v6 = *a1;
v7 = *(_QWORD *)(*a1 + 536);
v4 = sub_E01818(v6, *(char **)(v5 + 3264), 0, &v18, nullptr, 1u);
if ( !v4 )
{
v8 = (unsigned __int8)*v18;
if ( v8 == 92 || (v9 = v18, v8 == 47) )
v9 = v18 + 1;
v10 = off_154A3D8(v9);
*(_QWORD *)(v7 + 8) = v10;
v11 = v10;
if ( v10 )
{
v12 = strchr(v10, 47);
if ( v12 || (v12 = strchr(v11, 92)) != nullptr )
{
*v12 = 0;
v13 = v12 + 1;
*(_QWORD *)(v7 + 16) = v12 + 1;
v14 = (unsigned __int8)v12[1];
if ( v14 )
{
do
{
while ( v14 != 47 )
{
v15 = (unsigned __int8)*++v13;
v14 = v15;
if ( !v15 )
goto LABEL_12;
}
*v13 = 92;
v16 = (unsigned __int8)*++v13;
v14 = v16;
}
while ( v16 );
}
LABEL_12:
off_154A3C8(v18);
return 0;
}
else
{
off_154A3C8(v18);
return 3;
}
}
else
{
off_154A3C8(v18);
return 27;
}
}
}
return v4;
}