//
// sub_E9A7C from 0xe9a7c to 0xe9b6c (240 bytes)
//
// 1 xrefs:
// > sub_E98EC @ 0xe9ba4
//
// 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:15:00 +0000
//
__int64 __fastcall sub_E9A7C(__int64 a1)
{
__int64 result; // x0
void **v2; // x19
if ( *(_QWORD *)(a1 + 1048) )
return 0;
v2 = (void **)(a1 + 1048);
if ( (unsigned int)sub_E71D8("libOpenSLES.so", (_QWORD *)(a1 + 1048)) )
return 51;
result = sub_E721C(*v2, "slCreateEngine", &so_slCreateEngine);
if ( !(_DWORD)result )
{
result = sub_E721C(*v2, "SL_IID_ENGINE", &so_SL_IID_ENGINE);
if ( !(_DWORD)result )
{
result = sub_E721C(*v2, "SL_IID_ANDROIDSIMPLEBUFFERQUEUE", &so_SL_IID_ANDROIDSIMPLEBUFFERQUEUE);
if ( !(_DWORD)result )
{
result = sub_E721C(*v2, "SL_IID_ANDROIDCONFIGURATION", &so_SL_IID_ANDROIDCONFIGURATION);
if ( !(_DWORD)result )
{
result = sub_E721C(*v2, "SL_IID_PLAY", &so_SL_IID_PLAY);
if ( !(_DWORD)result )
return sub_E721C(*v2, "SL_IID_RECORD", &so_SL_IID_RECORD);
}
}
}
}
return result;
}