//
// AppDelegate::applicationDidFinishLaunching from 0x100306f5c to 0x100307088 (300 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092b480
//
// 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 11:03:08 +0000
//
__int64 __fastcall AppDelegate::applicationDidFinishLaunching(_BYTE *a1)
{
_BYTE *v2; // x20
__int64 v3; // x21
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x0
__int64 v7; // x8
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 VideoSettings; // x0
__int64 v12; // x0
__int64 v13; // x0
__int64 v14; // x0
std::string __str; // [xsp+8h] [xbp-48h] BYREF
timeval v17; // [xsp+20h] [xbp-30h] BYREF
a1[17] = 0;
gettimeofday(&v17, nullptr);
srand(v17.tv_usec * LODWORD(v17.tv_sec));
v2 = (_BYTE *)cocos2d::CCDirector::sharedDirector();
v3 = cocos2d::CCFileUtils::sharedFileUtils();
sub_100009900(&__str, "/data/data/com.robtopx.geometryjump/");
std::string::operator=((std::string *)(v3 + 112), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
AppDelegate::setupGLView((__int64)a1);
v4 = cocos2d::CCDirector::setProjection((__int64)v2, 0);
CCContentManager::sharedManager(v4);
v5 = ObjectDecoder::sharedDecoder();
v6 = GJObjectDecoder::sharedDecoder();
v7 = v6 + 320;
if ( !v6 )
v7 = 0;
*(_QWORD *)(v5 + 320) = v7;
GameManager::sharedState(v6);
LocalLevelManager::sharedState();
v8 = LocalLevelManager::sharedState();
v9 = LocalLevelManager::tryRecoverAutoSaves(v8);
v10 = GameManager::sharedState(v9);
VideoSettings = GameManager::loadVideoSettings(v10);
v12 = GameManager::sharedState(VideoSettings);
GameManager::startUpdate(v12);
a1[36] = 0;
cocos2d::CCDirector::setDepthTest((__int64)v2, 0);
v13 = (*(__int64 (__fastcall **)(_BYTE *, double))(*(_QWORD *)v2 + 96LL))(v2, 0.0166666675);
v2[217] = 1;
a1[34] = 1;
AdToolbox::setupAds(v13);
v14 = LoadingLayer::scene(0);
cocos2d::CCDirector::runWithScene((__int64)v2, v14);
return 1;
}