//
// sub_E21E48 from 0xe21e48 to 0xe21ed4 (140 bytes)
//
// 5 xrefs:
// > sub_E2423C @ 0xe24294
// > sub_E242B0 @ 0xe245dc
// > sub_E2463C @ 0xe24778
// > sub_E247E4 @ 0xe24858
// > sub_E285F4 @ 0xe2867c
//
// 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:47 +0000
//
__int64 __fastcall sub_E21E48(__int64 *a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x21
v3 = a2;
v4 = *a1;
if ( !a2 )
v3 = a1[2] + *(unsigned int *)(v4 + 24);
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v3, a1[1]);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(v4 + 8))(a1[2], v3, *(unsigned int *)(v4 + 32));
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v3, a1[2]);
off_154A3C8(a1);
return 0;
}