//
// AppDelegate::applicationDidFinishLaunching from 0x1002692a0 to 0x1002693c4 (292 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d2750
//
// 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 AppDelegate::applicationDidFinishLaunching(AppDelegate *a1)
{
cocos2d::CCDirector *v2; // x20
cocos2d::CCFileUtils *v3; // x21
ObjectDecoder *v4; // x21
GJObjectDecoder *v5; // x0
ObjectDecoderDelegate *v6; // x8
GameManager *v7; // x0
GameManager *v8; // x0
cocos2d::CCScene *v9; // x0
std::string __str; // [xsp+8h] [xbp-48h] BYREF
timeval v12; // [xsp+20h] [xbp-30h] BYREF
a1->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] = 0;
gettimeofday(&v12, nullptr);
srand(v12.tv_usec * LODWORD(v12.tv_sec));
v2 = cocos2d::CCDirector::sharedDirector();
v3 = cocos2d::CCFileUtils::sharedFileUtils();
sub_100009900(&__str, "/data/data/com.robtopx.geometryjump/");
std::string::operator=((std::string *)&v3[14], &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
AppDelegate::setupGLView(a1);
cocos2d::CCDirector::setProjection(v2, kCCDirectorProjection2D);
CCContentManager::sharedManager();
v4 = ObjectDecoder::sharedDecoder();
v5 = GJObjectDecoder::sharedDecoder();
v6 = &v5->ObjectDecoderDelegate;
if ( !v5 )
v6 = nullptr;
v4->m_delegate = v6;
GameManager::sharedState();
LocalLevelManager::sharedState();
v7 = GameManager::sharedState();
GameManager::loadVideoSettings(v7);
v8 = GameManager::sharedState();
GameManager::startUpdate(v8);
a1->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[3] = 0;
cocos2d::CCDirector::setDepthTest(v2, 0);
((void (__fastcall *)(cocos2d::CCDirector *, double))v2->setAnimationInterval)(v2, 0.0166666675);
v2->m_bDisplayStats = 1;
a1->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[1] = 1;
AdToolbox::setupAds();
v9 = LoadingLayer::scene(0);
cocos2d::CCDirector::runWithScene(v2, v9);
return 1;
}