{"type": "func", "start": 3177066, "end": 3177138, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x307a6a to 0x307ab2 (72 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::applicationWillResignActive @ 0x307ab2\n// > AppDelegate::applicationDidEnterBackground @ 0x307af4\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::pauseGame(AppDelegate *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // r3\n  GameManager *v2; // r0\n\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  if ( m_pRunningScene\n    && m_pRunningScene->m_eObjType == PlayLayerObjectType\n    && GameManager::sharedState()->m_playLayer\n    && !GameManager::sharedState()->m_playLayer->m_hasCompletedLevel\n    && !BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) )\n  {\n    v2 = GameManager::sharedState();\n    PlayLayer::pauseGame(v2->m_playLayer, 1);\n  }\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x307a6a to 0x307ab2 (72 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::applicationWillResignActive @ 0x307ab2\n; > AppDelegate::applicationDidEnterBackground @ 0x307af4\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            {R3,LR}                                                ; +0x0, 0x307a6a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2, 0x307a6c\nLDR.W           R3, [R0,#0xCC]                                         ; +0x6, 0x307a70\nCBZ             R3, locret_307AB0                                      ; +0xa, 0x307a74\nLDR             R3, [R3,#0x18]                                         ; +0xc, 0x307a76\nCMP             R3, #5                                                 ; +0xe, 0x307a78\nBNE             locret_307AB0                                          ; +0x10, 0x307a7a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x307a7c\nLDR.W           R3, [R0,#0x16C]                                        ; +0x16, 0x307a80\nCBZ             R3, locret_307AB0                                      ; +0x1a, 0x307a84\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x307a86\nMOVW            R3, #0x2F11                                            ; +0x20, 0x307a8a\nLDR.W           R2, [R0,#0x16C]                                        ; +0x24, 0x307a8e\nLDRB            R3, [R2,R3]                                            ; +0x28, 0x307a92\nCBNZ            R3, locret_307AB0                                      ; +0x2a, 0x307a94\nBL              _ZN11AppDelegate3getEv; AppDelegate::get(void)         ; +0x2c, 0x307a96\nLDRB            R3, [R0,#9]                                            ; +0x30, 0x307a9a\nCBNZ            R3, locret_307AB0                                      ; +0x32, 0x307a9c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x307a9e\nMOVS            R1, #1; bool                                           ; +0x38, 0x307aa2\nPOP.W           {R3,LR}                                                ; +0x3a, 0x307aa4\nLDR.W           R0, [R0,#0x16C]; this                                  ; +0x3e, 0x307aa8\nB.W             _ZN9PlayLayer9pauseGameEb; PlayLayer::pauseGame(bool)  ; +0x42, 0x307aac\nPOP             {R3,PC}                                                ; +0x46, 0x307ab0", "xrefs": ["AppDelegate::applicationWillResignActive @ 0x307ab2", "AppDelegate::applicationDidEnterBackground @ 0x307af4"], "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"}