{"type": "func", "start": 3177194, "end": 3177258, "name": "AppDelegate::applicationDidEnterBackground", "pseudocode": "// \n// AppDelegate::applicationDidEnterBackground from 0x307aea to 0x307b2a (64 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\nvoid AppDelegate::applicationDidEnterBackground(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v2; // r0\n  cocos2d::CCDirector *v3; // r0\n  GameManager *v4; // r0\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 0x307aea to 0x307b2a (64 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            {R4,LR}                                                ; +0x0, 0x307aea\nMOV             R4, R0                                                 ; +0x2, 0x307aec\nBL              _ZN11AppDelegate10pauseSoundEv; AppDelegate::pauseSound(void) ; +0x4, 0x307aee\nMOV             R0, R4; this                                           ; +0x8, 0x307af2\nBL              _ZN11AppDelegate9pauseGameEv; AppDelegate::pauseGame(void) ; +0xa, 0x307af4\nLDR             R3, [R4]                                               ; +0xe, 0x307af8\nMOVS            R1, #0                                                 ; +0x10, 0x307afa\nMOV             R0, R4                                                 ; +0x12, 0x307afc\nLDR             R3, [R3,#0x1C]                                         ; +0x14, 0x307afe\nBLX             R3                                                     ; +0x16, 0x307b00\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x307b02\nLDR             R3, [R0]                                               ; +0x1c, 0x307b06\nLDR             R3, [R3,#0x34]                                         ; +0x1e, 0x307b08\nBLX             R3                                                     ; +0x20, 0x307b0a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x307b0c\nBL              _ZN7cocos2d10CCDirector5pauseEv; cocos2d::CCDirector::pause(void) ; +0x26, 0x307b10\nLDRB            R3, [R4,#0x10]                                         ; +0x2a, 0x307b14\nCBZ             R3, locret_307B28                                      ; +0x2c, 0x307b16\nBL              _ZN15PlatformToolbox13onNativePauseEv; PlatformToolbox::onNativePause(void) ; +0x2e, 0x307b18\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x32, 0x307b1c\nPOP.W           {R4,LR}                                                ; +0x36, 0x307b20\nB.W             _ZN11GameManager29applicationDidEnterBackgroundEv; GameManager::applicationDidEnterBackground(void) ; +0x3a, 0x307b24\nPOP             {R4,PC}                                                ; +0x3e, 0x307b28", "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"}