//
// sub_E1004C from 0xe1004c to 0xe1009c (80 bytes)
//
// 7 xrefs:
// > sub_E1251C @ 0xe12c68
// > sub_E1251C @ 0xe13658
// > sub_E1251C @ 0xe13698
// > sub_E1251C @ 0xe136c8
// > sub_E1251C @ 0xe1373c
// > sub_E1251C @ 0xe13770
// > sub_E1251C @ 0xe137d4
//
// 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:38 +0000
//
__int64 __fastcall sub_E1004C(__int64 result, int a2)
{
__int64 (*v2)(void); // x1
if ( *(_DWORD *)(result + 24) != a2 )
{
*(_DWORD *)(result + 24) = a2;
if ( a2 == 17 )
--*(_DWORD *)(*(_QWORD *)(result + 96) + 28LL);
v2 = (__int64 (*)(void))qword_15328A0[a2];
if ( v2 )
return v2();
}
return result;
}