//
// sub_E1D4E8 from 0xe1d4e8 to 0xe1d594 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x13fc4c0
// > ??> @ 0x13fc570
//
// 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:45 +0000
//
__int64 __fastcall sub_E1D4E8(__int64 a1, char a2)
{
__int64 v3; // x19
__int64 v4; // x0
v3 = a1 + 1560;
if ( !a2 )
{
v4 = *(_QWORD *)(a1 + 1648);
if ( v4 )
{
if ( *(_BYTE *)(v4 + 967) && !(unsigned int)sub_E20668(v3, "%s", "QUIT") )
{
*(_DWORD *)(v3 + 112) = 10;
while ( !(unsigned int)sub_E202AC(v3, 1) && *(_DWORD *)(v3 + 112) )
;
}
}
}
sub_E20C80(v3);
sub_E248A0(a1, *(unsigned int *)(v3 + 156));
off_154A3C8(*(void **)(v3 + 176));
*(_QWORD *)(v3 + 176) = 0;
return 0;
}