{"type": "func", "start": 3176760, "end": 3177028, "name": "AppDelegate::applicationDidFinishLaunching", "pseudocode": "// \n// AppDelegate::applicationDidFinishLaunching from 0x307938 to 0x307a44 (268 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool AppDelegate::applicationDidFinishLaunching(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v2; // r4\n  cocos2d::CCFileUtils *v3; // r8\n  ObjectDecoder *v4; // r6\n  GJObjectDecoder *v5; // r0\n  GameManager *v6; // r0\n  GameManager *v7; // r0\n  float DeviceRefreshRate; // r0\n  cocos2d::CCScene *v9; // r0\n  _BYTE v11[4]; // [sp+8h] [bp-10h] BYREF\n  struct timeval tv; // [sp+Ch] [bp-Ch] BYREF\n\n  BYTE1(a1->m_startupScriptFilename.m_data.m_data) = 0;\n  gettimeofday(&tv, nullptr);\n  srand(tv.tv_sec * tv.tv_usec);\n  *(_QWORD *)&dword_AC59D0 = tv.tv_sec * tv.tv_usec;\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = cocos2d::CCFileUtils::sharedFileUtils();\n  sub_776584((int)v11, \"/data/data/com.robtopx.geometryjump/\");\n  sub_775D40(&v3[15], v11);\n  sub_774008(v11);\n  AppDelegate::setupGLView(a1);\n  cocos2d::CCDirector::setProjection(v2, kCCDirectorProjection2D);\n  CCContentManager::sharedManager();\n  v4 = ObjectDecoder::sharedDecoder();\n  v5 = GJObjectDecoder::sharedDecoder();\n  if ( v5 )\n    v5 = (GJObjectDecoder *)((char *)v5 + 264);\n  v4->m_delegate = (ObjectDecoderDelegate *)v5;\n  GameManager::sharedState();\n  LocalLevelManager::sharedState();\n  v6 = GameManager::sharedState();\n  GameManager::loadVideoSettings(v6);\n  v7 = GameManager::sharedState();\n  GameManager::startUpdate(v7);\n  cocos2d::CCDirector::getContentScaleFactor(v2);\n  LOBYTE(a1->m_runningScene) = 0;\n  cocos2d::CCDirector::setDepthTest(v2, 0);\n  DeviceRefreshRate = PlatformToolbox::getDeviceRefreshRate();\n  ((void (__fastcall *)(cocos2d::CCDirector *, void (__fastcall *)(cocos2d::CCDirector *__hidden, double), _DWORD, _DWORD))v2->setAnimationInterval)(\n    v2,\n    v2->setAnimationInterval,\n    COERCE_UNSIGNED_INT64((float)(1.0 / DeviceRefreshRate)),\n    HIDWORD(COERCE_UNSIGNED_INT64((float)(1.0 / DeviceRefreshRate))));\n  v2->m_bDisplayStats = 1;\n  *(&a1->m_gamePaused + 1) = 0;\n  AdToolbox::setupAds();\n  v9 = LoadingLayer::scene(0);\n  cocos2d::CCDirector::runWithScene(v2, v9);\n  return 1;\n}", "assembly": "; \n; AppDelegate::applicationDidFinishLaunching from 0x307938 to 0x307a44 (268 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x307938\nSUB             SP, SP, #0x18                                          ; +0x4, 0x30793c\nLDR             R7, =(__stack_chk_guard_ptr - 0x30794A)                ; +0x6, 0x30793e\nMOVS            R1, #0; tz                                             ; +0x8, 0x307940\nMOV             R5, R0                                                 ; +0xa, 0x307942\nSTRB            R1, [R0,#9]                                            ; +0xc, 0x307944\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x307946\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x307948\nADD             R0, SP, #0x18+tv; tv                                   ; +0x12, 0x30794a\nADD             R6, SP, #0x18+var_10                                   ; +0x14, 0x30794c\nLDR             R3, [R7]                                               ; +0x16, 0x30794e\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x18, 0x307950\nBLX             gettimeofday                                           ; +0x1a, 0x307952\nLDR             R3, [SP,#0x18+tv.tv_usec]                              ; +0x1e, 0x307956\nLDR             R0, [SP,#0x18+tv]                                      ; +0x20, 0x307958\nMULS            R0, R3; unsigned int                                   ; +0x22, 0x30795a\nBLX             srand                                                  ; +0x24, 0x30795c\nLDR             R2, [SP,#0x18+tv.tv_usec]                              ; +0x28, 0x307960\nLDR             R3, [SP,#0x18+tv]                                      ; +0x2a, 0x307962\nLDR             R1, =(dword_AC59D0 - 0x30796C)                         ; +0x2c, 0x307964\nMULS            R3, R2                                                 ; +0x2e, 0x307966\nADD             R1, PC; dword_AC59D0                                   ; +0x30, 0x307968\nMOV             R2, R3                                                 ; +0x32, 0x30796a\nASRS            R3, R3, #0x1F                                          ; +0x34, 0x30796c\nSTRD.W          R2, R3, [R1]                                           ; +0x36, 0x30796e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3a, 0x307972\nMOV             R4, R0                                                 ; +0x3e, 0x307976\nBL              _ZN7cocos2d11CCFileUtils15sharedFileUtilsEv; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x40, 0x307978\nLDR             R1, =(aDataDataComRob - 0x307984); \"/data/data/com.robtopx.geometryjump/\" ; +0x44, 0x30797c\nADD             R2, SP, #0x18+var_14                                   ; +0x46, 0x30797e\nADD             R1, PC; \"/data/data/com.robtopx.geometryjump/\"         ; +0x48, 0x307980\nMOV             R8, R0                                                 ; +0x4a, 0x307982\nMOV             R0, R6; int                                            ; +0x4c, 0x307984\nBL              sub_776584                                             ; +0x4e, 0x307986\nADD.W           R0, R8, #0x3C ; '<'                                    ; +0x52, 0x30798a\nMOV             R1, R6                                                 ; +0x56, 0x30798e\nBL              sub_775D40                                             ; +0x58, 0x307990\nMOV             R0, R6                                                 ; +0x5c, 0x307994\nBL              sub_774008                                             ; +0x5e, 0x307996\nMOV             R0, R5; this                                           ; +0x62, 0x30799a\nBL              _ZN11AppDelegate11setupGLViewEv; AppDelegate::setupGLView(void) ; +0x64, 0x30799c\nMOVS            R1, #0                                                 ; +0x68, 0x3079a0\nMOV             R0, R4                                                 ; +0x6a, 0x3079a2\nBL              _ZN7cocos2d10CCDirector13setProjectionENS_20ccDirectorProjectionE; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x6c, 0x3079a4\nBL              _ZN16CCContentManager13sharedManagerEv; CCContentManager::sharedManager(void) ; +0x70, 0x3079a8\nBL              _ZN13ObjectDecoder13sharedDecoderEv; ObjectDecoder::sharedDecoder(void) ; +0x74, 0x3079ac\nMOV             R6, R0                                                 ; +0x78, 0x3079b0\nBL              _ZN15GJObjectDecoder13sharedDecoderEv; GJObjectDecoder::sharedDecoder(void) ; +0x7a, 0x3079b2\nCBZ             R0, loc_3079BC                                         ; +0x7e, 0x3079b6\nADD.W           R0, R0, #0x108; this                                   ; +0x80, 0x3079b8\nSTR.W           R0, [R6,#0x108]                                        ; +0x84, 0x3079bc\nMOVS            R6, #0                                                 ; +0x88, 0x3079c0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8a, 0x3079c2\nMOV.W           R8, #1                                                 ; +0x8e, 0x3079c6\nBL              _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0x92, 0x3079ca\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x96, 0x3079ce\nBL              _ZN11GameManager17loadVideoSettingsEv; GameManager::loadVideoSettings(void) ; +0x9a, 0x3079d2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x9e, 0x3079d6\nBL              _ZN11GameManager11startUpdateEv; GameManager::startUpdate(void) ; +0xa2, 0x3079da\nMOV             R0, R4; this                                           ; +0xa6, 0x3079de\nBL              _ZN7cocos2d10CCDirector21getContentScaleFactorEv; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xa8, 0x3079e0\nMOV             R1, R6; bool                                           ; +0xac, 0x3079e4\nMOV             R0, R4; this                                           ; +0xae, 0x3079e6\nSTRB            R6, [R5,#0x14]                                         ; +0xb0, 0x3079e8\nBL              _ZN7cocos2d10CCDirector12setDepthTestEb; cocos2d::CCDirector::setDepthTest(bool) ; +0xb2, 0x3079ea\nBL              _ZN15PlatformToolbox20getDeviceRefreshRateEv; PlatformToolbox::getDeviceRefreshRate(void) ; +0xb6, 0x3079ee\nVMOV.F32        S15, #1.0                                              ; +0xba, 0x3079f2\nLDR             R3, [R4]                                               ; +0xbe, 0x3079f6\nLDR             R1, [R3,#0x30]                                         ; +0xc0, 0x3079f8\nVMOV            S14, R0                                                ; +0xc2, 0x3079fa\nMOV             R0, R4                                                 ; +0xc6, 0x3079fe\nVDIV.F32        S15, S15, S14                                          ; +0xc8, 0x307a00\nVCVT.F64.F32    D7, S15                                                ; +0xcc, 0x307a04\nVMOV            R2, R3, D7                                             ; +0xd0, 0x307a08\nBLX             R1                                                     ; +0xd4, 0x307a0c\nSTRB.W          R8, [R4,#0xA1]                                         ; +0xd6, 0x307a0e\nSTRB            R6, [R5,#0x12]                                         ; +0xda, 0x307a12\nBL              _ZN9AdToolbox8setupAdsEv; AdToolbox::setupAds(void)    ; +0xdc, 0x307a14\nMOV             R0, R6; this                                           ; +0xe0, 0x307a18\nBL              _ZN12LoadingLayer5sceneEb; LoadingLayer::scene(bool)   ; +0xe2, 0x307a1a\nMOV             R1, R0; cocos2d::CCScene *                             ; +0xe6, 0x307a1e\nMOV             R0, R4; this                                           ; +0xe8, 0x307a20\nBL              _ZN7cocos2d10CCDirector12runWithSceneEPNS_7CCSceneE; cocos2d::CCDirector::runWithScene(cocos2d::CCScene *) ; +0xea, 0x307a22\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xee, 0x307a26\nLDR             R3, [R7]                                               ; +0xf0, 0x307a28\nMOV             R0, R8                                                 ; +0xf2, 0x307a2a\nCMP             R2, R3                                                 ; +0xf4, 0x307a2c\nBEQ             loc_307A3E                                             ; +0xf6, 0x307a2e\nBLX             __stack_chk_fail                                       ; +0xf8, 0x307a30\nMOV             R0, R6                                                 ; +0xfc, 0x307a34\nBL              sub_774008                                             ; +0xfe, 0x307a36\nBL              __cxa_end_cleanup                                      ; +0x102, 0x307a3a\nADD             SP, SP, #0x18                                          ; +0x106, 0x307a3e\nPOP.W           {R4-R8,PC}                                             ; +0x108, 0x307a40", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}