//
// sub_E1AC54 from 0xe1ac54 to 0xe1acf8 (164 bytes)
//
// 4 xrefs:
// > sub_DF9B64 @ 0xdfaf70
// > sub_E05F04 @ 0xe0608c
// > sub_E05F04 @ 0xe061a0
// > sub_E2F0F4 @ 0xe2f138
//
// 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:43 +0000
//
char *__fastcall sub_E1AC54(__int64 a1, char *a2)
{
char *result; // x0
char *v4; // x21
__int64 i; // x2
result = off_154A3D8(a2);
v4 = result;
if ( result )
{
result = (char *)off_154A3C0(0x10u);
if ( result )
{
*((_QWORD *)result + 1) = 0;
*(_QWORD *)result = v4;
if ( a1 )
{
for ( i = a1; *(_QWORD *)(i + 8); i = *(_QWORD *)(i + 8) )
;
*(_QWORD *)(i + 8) = result;
return (char *)a1;
}
}
else
{
off_154A3C8(v4);
return nullptr;
}
}
return result;
}