{"type": "func", "start": 4157004, "end": 4157076, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x3f6e4c to 0x3f6e94 (72 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::applicationWillResignActive @ 0x3f6e94\n// > AppDelegate::applicationDidEnterBackground @ 0x3f6eac\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:17 +0000\n// \n\nint __fastcall AppDelegate::pauseGame(AppDelegate *this)\n{\n  int result; // r0\n  int v2; // r3\n  int v3; // r0\n\n  result = cocos2d::CCDirector::sharedDirector(this);\n  v2 = *(_DWORD *)(result + 220);\n  if ( v2 )\n  {\n    if ( *(_DWORD *)(v2 + 24) == 5 )\n    {\n      result = GameManager::sharedState((GameManager *)result);\n      if ( *(_DWORD *)(result + 404) )\n      {\n        result = GameManager::sharedState((GameManager *)result);\n        if ( !*(_BYTE *)(*(_DWORD *)(result + 404) + 12097) )\n        {\n          result = AppDelegate::get((AppDelegate *)result);\n          if ( !*(_BYTE *)(result + 9) )\n          {\n            v3 = GameManager::sharedState((GameManager *)result);\n            return PlayLayer::pauseGame(*(PlayLayer **)(v3 + 404), 1);\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x3f6e4c to 0x3f6e94 (72 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::applicationWillResignActive @ 0x3f6e94\n; > AppDelegate::applicationDidEnterBackground @ 0x3f6eac\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:17 +0000\n; \nPUSH            {R3,LR}                                                ; +0x0, 0x3f6e4c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2, 0x3f6e4e\nLDR.W           R3, [R0,#0xDC]                                         ; +0x6, 0x3f6e52\nCBZ             R3, locret_3F6E92                                      ; +0xa, 0x3f6e56\nLDR             R3, [R3,#0x18]                                         ; +0xc, 0x3f6e58\nCMP             R3, #5                                                 ; +0xe, 0x3f6e5a\nBNE             locret_3F6E92                                          ; +0x10, 0x3f6e5c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x3f6e5e\nLDR.W           R3, [R0,#0x194]                                        ; +0x16, 0x3f6e62\nCBZ             R3, locret_3F6E92                                      ; +0x1a, 0x3f6e66\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x3f6e68\nMOVW            R3, #0x2F41                                            ; +0x20, 0x3f6e6c\nLDR.W           R2, [R0,#0x194]                                        ; +0x24, 0x3f6e70\nLDRB            R3, [R2,R3]                                            ; +0x28, 0x3f6e74\nCBNZ            R3, locret_3F6E92                                      ; +0x2a, 0x3f6e76\nBL              _ZN11AppDelegate3getEv; AppDelegate::get(void)         ; +0x2c, 0x3f6e78\nLDRB            R3, [R0,#9]                                            ; +0x30, 0x3f6e7c\nCBNZ            R3, locret_3F6E92                                      ; +0x32, 0x3f6e7e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x3f6e80\nMOVS            R1, #1; bool                                           ; +0x38, 0x3f6e84\nPOP.W           {R3,LR}                                                ; +0x3a, 0x3f6e86\nLDR.W           R0, [R0,#0x194]; this                                  ; +0x3e, 0x3f6e8a\nB.W             _ZN9PlayLayer9pauseGameEb; PlayLayer::pauseGame(bool)  ; +0x42, 0x3f6e8e\nPOP             {R3,PC}                                                ; +0x46, 0x3f6e92", "xrefs": ["AppDelegate::applicationWillResignActive @ 0x3f6e94", "AppDelegate::applicationDidEnterBackground @ 0x3f6eac"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}