//
// sub_E78110 from 0xe78110 to 0xe78164 (84 bytes)
//
// 1 xrefs:
// > jinit_c_prep_controller @ 0xe786d4
//
// 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:10:41 +0000
//
__int64 __fastcall sub_E78110(__int64 a1, int a2)
{
_DWORD *v3; // x19
void (__fastcall *v4)(__int64); // x2
int v5; // w0
__int64 result; // x0
v3 = *(_DWORD **)(a1 + 512);
if ( a2 )
{
v4 = **(void (__fastcall ***)(__int64))a1;
*(_DWORD *)(*(_QWORD *)a1 + 40LL) = 3;
v4(a1);
}
v5 = *(_DWORD *)(a1 + 356);
v3[24] = *(_DWORD *)(a1 + 52);
result = (unsigned int)(2 * v5);
v3[25] = 0;
v3[26] = 0;
v3[27] = result;
return result;
}