//
// sub_E7484 from 0xe7484 to 0xe75a4 (288 bytes)
//
// 2 xrefs:
// > sub_6B77C @ 0x6b7a8
// > sub_7676C @ 0x768b0
//
// 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 12:14:59 +0000
//
__int64 __fastcall sub_E7484(int *a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x2
__int64 v11; // x0
int v12; // w8
__int64 v13; // x0
__int64 v14; // x1
__int64 v15; // x0
__int64 v16; // x0
__int64 v17; // x1
if ( !a1 )
return 31;
result = sub_E667C();
if ( !(_DWORD)result )
{
v3 = MEMORY[0x10102464C4907](0, gFMODClass, "checkInit", "()Z");
if ( v3
&& (v4 = v3, ((void (*)(void))sub_E75B8)(), (v5 = sub_E75C4()) != 0)
&& (v6 = v5, ((void (*)(void))sub_E75B8)(), (v7 = sub_E75C4()) != 0) )
{
v8 = sub_E75B8(v7);
v11 = sub_E5B94(v8, v9, v10);
if ( (_BYTE)v11 )
{
result = 0;
v12 = 18;
}
else
{
v13 = sub_E75B8(v11);
v15 = sub_E5B94(v13, v14, v4);
if ( (_BYTE)v15 && (v16 = sub_E75B8(v15), (unsigned __int8)sub_E5B94(v16, v17, v6)) )
{
result = 0;
v12 = 12;
}
else
{
result = 0;
v12 = 11;
}
}
*a1 = v12;
}
else
{
return 28;
}
}
return result;
}