{"type": "func", "start": 4301636336, "end": 4301636435, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x10065c2f0 to 0x10065c353 (99 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 __fastcall AppDelegate::pauseGame(AppDelegate *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // rax\n  GameManager *v2; // rax\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    && !cocos2d::CCApplication::sharedApplication()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0] )\n  {\n    v2 = GameManager::sharedState();\n    PlayLayer::pauseGame(v2->m_playLayer, 1);\n  }\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x10065c2f0 to 0x10065c353 (99 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    rbp                                                            ; +0x0, 0x10065c2f0\nmov     rbp, rsp                                                       ; +0x1, 0x10065c2f1\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x4, 0x10065c2f4\nmov     rax, [rax+108h]                                                ; +0x9, 0x10065c2f9\ntest    rax, rax                                                       ; +0x10, 0x10065c300\njz      short loc_10065C33A                                            ; +0x13, 0x10065c303\ncmp     dword ptr [rax+1Ch], 5                                         ; +0x15, 0x10065c305\njnz     short loc_10065C33A                                            ; +0x19, 0x10065c309\ncall    GameManager__sharedState                                       ; +0x1b, 0x10065c30b\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x20, 0x10065c310\njz      short loc_10065C33A                                            ; +0x28, 0x10065c318\ncall    GameManager__sharedState                                       ; +0x2a, 0x10065c31a\nmov     rax, [rax+1F8h]                                                ; +0x2f, 0x10065c31f\ncmp     byte ptr [rax+3735h], 0                                        ; +0x36, 0x10065c326\njnz     short loc_10065C33A                                            ; +0x3d, 0x10065c32d\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x3f, 0x10065c32f\ncmp     byte ptr [rax+41h], 0                                          ; +0x44, 0x10065c334\njz      short loc_10065C33C                                            ; +0x48, 0x10065c338\npop     rbp                                                            ; +0x4a, 0x10065c33a\nretn                                                                   ; +0x4b, 0x10065c33b\ncall    GameManager__sharedState                                       ; +0x4c, 0x10065c33c\nmov     rdi, [rax+1F8h]                                                ; +0x51, 0x10065c341\nmov     esi, 1                                                         ; +0x58, 0x10065c348\npop     rbp                                                            ; +0x5d, 0x10065c34d\njmp     PlayLayer__pauseGame                                           ; +0x5e, 0x10065c34e", "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"}