//
// sub_E76084 from 0xe76084 to 0xe76130 (172 bytes)
//
// 2 xrefs:
// > jinit_c_master_control @ 0xe76b58
// > jinit_c_master_control @ 0xe76b60
//
// 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:40 +0000
//
__int64 __fastcall sub_E76084(__int64 a1)
{
_DWORD *v1; // x19
int v3; // w0
__int64 result; // x0
int v5; // w0
v1 = *(_DWORD **)(a1 + 496);
(*(void (**)(void))(*(_QWORD *)(a1 + 560) + 16LL))();
v3 = v1[8];
if ( v3 == 1 )
{
v1[8] = 2;
result = (unsigned int)(v1[9] + 1);
v1[9] = result;
}
else
{
if ( v3 )
{
if ( v3 == 2 )
{
if ( *(_DWORD *)(a1 + 296) )
v1[8] = 1;
++v1[11];
}
}
else
{
v5 = *(_DWORD *)(a1 + 296);
v1[8] = 2;
if ( !v5 )
++v1[11];
}
result = (unsigned int)(v1[9] + 1);
v1[9] = result;
}
return result;
}