{"type": "func", "start": 6021904, "end": 6022016, "name": "AppDelegate::applicationDidEnterBackground", "pseudocode": "// \n// AppDelegate::applicationDidEnterBackground from 0x5be310 to 0x5be380 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x68aa8\n// > <???> @ 0x1145588\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\nvoid AppDelegate::applicationDidEnterBackground(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCDirector *v3; // x0\n  GameManager *v4; // x0\n\n  AppDelegate::pauseSound(a1);\n  AppDelegate::pauseGame(a1);\n  a1->trySaveGame(a1, 0);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v2->stopAnimation(v2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::pause(v3);\n  if ( a1->m_glViewSetup )\n  {\n    PlatformToolbox::onNativePause();\n    v4 = GameManager::sharedState();\n    GameManager::applicationDidEnterBackground(v4);\n  }\n}", "assembly": "; \n; AppDelegate::applicationDidEnterBackground from 0x5be310 to 0x5be380 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x68aa8\n; > <???> @ 0x1145588\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x5be310\nMOV             X29, SP                                                ; +0x4, 0x5be314\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x5be318\nMOV             X19, X0                                                ; +0xc, 0x5be31c\nBL              _ZN11AppDelegate10pauseSoundEv; AppDelegate::pauseSound(void) ; +0x10, 0x5be320\nMOV             X0, X19; this                                          ; +0x14, 0x5be324\nBL              _ZN11AppDelegate9pauseGameEv; AppDelegate::pauseGame(void) ; +0x18, 0x5be328\nLDR             X2, [X19]                                              ; +0x1c, 0x5be32c\nMOV             W1, #0                                                 ; +0x20, 0x5be330\nMOV             X0, X19                                                ; +0x24, 0x5be334\nLDR             X2, [X2,#0x38]                                         ; +0x28, 0x5be338\nBLR             X2                                                     ; +0x2c, 0x5be33c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x5be340\nLDR             X1, [X0]                                               ; +0x34, 0x5be344\nLDR             X1, [X1,#0x68]                                         ; +0x38, 0x5be348\nBLR             X1                                                     ; +0x3c, 0x5be34c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x40, 0x5be350\nBL              _ZN7cocos2d10CCDirector5pauseEv; cocos2d::CCDirector::pause(void) ; +0x44, 0x5be354\nLDRB            W0, [X19,#0x20]; this                                  ; +0x48, 0x5be358\nCBNZ            W0, loc_5BE36C                                         ; +0x4c, 0x5be35c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0x5be360\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0x5be364\nRET                                                                    ; +0x58, 0x5be368\nBL              _ZN15PlatformToolbox13onNativePauseEv; PlatformToolbox::onNativePause(void) ; +0x5c, 0x5be36c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x60, 0x5be370\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0x5be374\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x68, 0x5be378\nB               _ZN11GameManager29applicationDidEnterBackgroundEv; GameManager::applicationDidEnterBackground(void) ; +0x6c, 0x5be37c", "xrefs": ["<???> @ 0x68aa8", "<???> @ 0x1145588"], "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"}