//
// cocos2d::CCConfiguration::checkForGLExtension from 0x100519c80 to 0x100519cab (43 bytes)
//
// 2 xrefs:
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1005f5569
// > cocos2d::CCRenderTexture::begin @ 0x1005f5a04
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::CCConfiguration::checkForGLExtension(__int64 a1, __int64 a2)
{
char *v2; // rdi
const char *v3; // rsi
v2 = *(char **)(a1 + 80);
if ( !v2 )
return 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(const char **)(a2 + 16);
else
v3 = (const char *)(a2 + 1);
return strstr(v2, v3) != nullptr;
}