//
// sub_E4DC8 from 0xe4dc8 to 0xe4e4c (132 bytes)
//
// 1 xrefs:
// > sub_E4C64 @ 0xe4c7c
//
// 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
//
__int64 __fastcall sub_E4DC8(__int64 *a1)
{
__int64 v1; // x20
__int64 v2; // x1
__int64 *v3; // x19
__int64 v4; // x8
_DWORD *v5; // x1
__int64 v6; // x8
v1 = *a1;
if ( *a1 )
{
v2 = *(_QWORD *)(v1 + 8);
v3 = a1;
if ( !v2
|| (sub_E4E5C(a1, v2),
a1 = (__int64 *)sub_E2D74(*(_QWORD *)(v4 + 432), v5),
*(_QWORD *)(v1 + 8) = 0,
(v1 = *v3) != 0) )
{
sub_E4E5C(a1, v2);
sub_E2D74(*(_QWORD *)(v6 + 432), (_DWORD *)v1);
*v3 = 0;
}
}
return 0;
}