//
// sub_C21A0 from 0xc21a0 to 0xc2226 (134 bytes)
//
// 1 xrefs:
// > sub_C2248 @ 0xc2256
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:49 +0000
//
int __fastcall sub_C21A0(int a1)
{
int result; // r0
void **v2; // r4
if ( *(_DWORD *)(a1 + 816) )
return 0;
v2 = (void **)(a1 + 816);
if ( sub_C0678("libOpenSLES.so", (_DWORD *)(a1 + 816)) )
return 51;
result = sub_C069C(*v2, "slCreateEngine", &so_slCreateEngine);
if ( !result )
{
result = sub_C069C(*v2, "SL_IID_ENGINE", &so_SL_IID_ENGINE);
if ( !result )
{
result = sub_C069C(*v2, "SL_IID_ANDROIDSIMPLEBUFFERQUEUE", &so_SL_IID_ANDROIDSIMPLEBUFFERQUEUE);
if ( !result )
{
result = sub_C069C(*v2, "SL_IID_ANDROIDCONFIGURATION", &so_SL_IID_ANDROIDCONFIGURATION);
if ( !result )
{
result = sub_C069C(*v2, "SL_IID_PLAY", &so_SL_IID_PLAY);
if ( !result )
return sub_C069C(*v2, "SL_IID_RECORD", &so_SL_IID_RECORD);
}
}
}
}
return result;
}