//
// Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit from 0x2bdadc to 0x2bdb84 (168 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(int a1, int a2, int a3, int a4)
{
cocos2d::CCEGLView *v6; // r0
int v7; // r4
cocos2d::CCApplication *v8; // r0
cocos2d::CCShaderCache *v9; // r0
cocos2d::CCNotificationCenter *v10; // r0
cocos2d::CCDirector *v11; // r0
if ( cocos2d::CCDirector::sharedDirector()->m_pobOpenGLView )
{
cocos2d::ccGLInvalidateStateCache();
v9 = cocos2d::CCShaderCache::sharedShaderCache();
cocos2d::CCShaderCache::reloadDefaultShaders(v9);
cocos2d::ccDrawInit();
cocos2d::CCTextureCache::reloadAllTextures();
v10 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::postNotification(v10, "event_come_to_foreground", nullptr);
v11 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setGLDefaultValues(v11);
}
else
{
v6 = cocos2d::CCEGLView::sharedOpenGLView();
v6->setFrameSize(v6, (float)a3, (float)a4);
v7 = operator new(0x1Cu);
cocos2d::CCApplication::CCApplication((cocos2d::CCApplication *)v7);
*(_DWORD *)v7 = &off_A43C30;
*(_DWORD *)(v7 + 4) = &off_A43C70;
*(_BYTE *)(v7 + 8) = 0;
*(_BYTE *)(v7 + 9) = 0;
*(_DWORD *)(v7 + 12) = 0;
*(_BYTE *)(v7 + 16) = 0;
*(_BYTE *)(v7 + 17) = 0;
*(_BYTE *)(v7 + 18) = 0;
*(_BYTE *)(v7 + 19) = 0;
*(_BYTE *)(v7 + 20) = 0;
*(_BYTE *)(v7 + 21) = 0;
*(_DWORD *)(v7 + 24) = 0;
v8 = cocos2d::CCApplication::sharedApplication();
cocos2d::CCApplication::run(v8);
}
}