{"type": "func", "start": 4301636224, "end": 4301636323, "name": "AppDelegate::applicationWillResignActive", "pseudocode": "// \n// AppDelegate::applicationWillResignActive from 0x10065c280 to 0x10065c2e3 (99 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100986b48\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::applicationWillResignActive(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::applicationWillResignActive from 0x10065c280 to 0x10065c2e3 (99 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100986b48\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, 0x10065c280\nmov     rbp, rsp                                                       ; +0x1, 0x10065c281\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x4, 0x10065c284\nmov     rax, [rax+108h]                                                ; +0x9, 0x10065c289\ntest    rax, rax                                                       ; +0x10, 0x10065c290\njz      short loc_10065C2CA                                            ; +0x13, 0x10065c293\ncmp     dword ptr [rax+1Ch], 5                                         ; +0x15, 0x10065c295\njnz     short loc_10065C2CA                                            ; +0x19, 0x10065c299\ncall    GameManager__sharedState                                       ; +0x1b, 0x10065c29b\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x20, 0x10065c2a0\njz      short loc_10065C2CA                                            ; +0x28, 0x10065c2a8\ncall    GameManager__sharedState                                       ; +0x2a, 0x10065c2aa\nmov     rax, [rax+1F8h]                                                ; +0x2f, 0x10065c2af\ncmp     byte ptr [rax+3735h], 0                                        ; +0x36, 0x10065c2b6\njnz     short loc_10065C2CA                                            ; +0x3d, 0x10065c2bd\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x3f, 0x10065c2bf\ncmp     byte ptr [rax+41h], 0                                          ; +0x44, 0x10065c2c4\njz      short loc_10065C2CC                                            ; +0x48, 0x10065c2c8\npop     rbp                                                            ; +0x4a, 0x10065c2ca\nretn                                                                   ; +0x4b, 0x10065c2cb\ncall    GameManager__sharedState                                       ; +0x4c, 0x10065c2cc\nmov     rdi, [rax+1F8h]                                                ; +0x51, 0x10065c2d1\nmov     esi, 1                                                         ; +0x58, 0x10065c2d8\npop     rbp                                                            ; +0x5d, 0x10065c2dd\njmp     PlayLayer__pauseGame                                           ; +0x5e, 0x10065c2de", "xrefs": ["<???> @ 0x100986b48"], "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"}