//
// AppDelegate::applicationDidFinishLaunching from 0x10073b760 to 0x10073b8b1 (337 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b9ad80
//
// This function is hookable on this platform (idp: pc, 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 12:36:26 +0000
//
char __fastcall AppDelegate::applicationDidFinishLaunching(_BYTE *a1)
{
_BYTE *v1; // r14
__int64 v2; // r15
__int64 v3; // r15
__int64 v4; // rax
__int64 v5; // rcx
_QWORD *v6; // rax
__int64 v7; // rax
_BYTE *v8; // rax
timeval v10; // [rsp+0h] [rbp-40h] BYREF
std::string __str; // [rsp+10h] [rbp-30h] BYREF
a1[65] = 0;
gettimeofday(&v10, nullptr);
srand(LODWORD(v10.tv_sec) * v10.tv_usec);
v1 = (_BYTE *)cocos2d::CCDirector::sharedDirector();
v2 = cocos2d::CCFileUtils::sharedFileUtils();
__str.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u);
__str.__r_.__value_.__r.__words[0] = 41;
__str.__r_.__value_.__l.__size_ = 36;
strcpy(__str.__r_.__value_.__l.__data_, "/data/data/com.robtopx.geometryjump/");
std::string::operator=((std::string *)(v2 + 112), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
AppDelegate::setupGLView((__int64)a1);
cocos2d::CCDirector::setProjection((__int64)v1, 0);
CCContentManager::sharedManager((__int64)v1, 0);
v3 = ObjectDecoder::sharedDecoder();
v4 = GJObjectDecoder::sharedDecoder();
v5 = v4 + 320;
if ( !v4 )
v5 = 0;
*(_QWORD *)(v3 + 320) = v5;
GameManager::sharedState();
LocalLevelManager::sharedState();
v6 = (_QWORD *)LocalLevelManager::sharedState();
sub_1006CC260(v6);
GameManager::sharedState();
GameManager::loadVideoSettings();
v7 = GameManager::sharedState();
GameManager::startUpdate(v7, 0);
a1[84] = 0;
cocos2d::CCDirector::setDepthTest((__int64)v1, 0);
(*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)v1 + 96LL))(v1, 0.01666666753590107);
v1[217] = 1;
a1[82] = 0;
AdToolbox::setupAds();
v8 = LoadingLayer::scene(0);
cocos2d::CCDirector::runWithScene((__int64)v1, (_UNKNOWN **)v8);
return 1;
}