{"type": "func", "start": 4301636800, "end": 4301637022, "name": "AppDelegate::applicationWillEnterForeground", "pseudocode": "// \n// AppDelegate::applicationWillEnterForeground from 0x10065c4c0 to 0x10065c59e (222 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100986b38\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::applicationWillEnterForeground(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v1; // rax\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCDirector *v3; // rax\n  FMODAudioEngine *v4; // rax\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCActionManager *v6; // rbx\n  GameManager *v7; // rax\n  cocos2d::CCDelayTime *v8; // rbx\n  GameManager *v9; // rax\n  cocos2d::CCCallFunc *v10; // rax\n  cocos2d::CCSequence *v11; // rbx\n  cocos2d::CCDirector *v12; // rax\n  cocos2d::CCActionManager *v13; // r14\n  GameManager *v14; // rax\n\n  v1 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCDirector *))v1->stopAnimation)(v1);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::resume(v2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCDirector *))v3->startAnimation)(v3);\n  v4 = FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::resumeAudio(v4);\n  PlatformToolbox::onNativeResume();\n  PlatformToolbox::onToggleKeyboard();\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getActionManager)(v5);\n  v7 = GameManager::sharedState();\n  cocos2d::CCActionManager::removeActionByTag(v6, 1u, v7);\n  v8 = cocos2d::CCDelayTime::create(0.0);\n  v9 = GameManager::sharedState();\n  v10 = cocos2d::CCCallFunc::create(\n          v9,\n          (cocos2d::SEL_CallFunc)(unsigned __int64)GameManager::applicationWillEnterForeground);\n  v11 = sub_1003B5760(v8, v10, 0);\n  ((void (__fastcall *)(cocos2d::CCSequence *, __int64))v11->setTag)(v11, 1);\n  v12 = cocos2d::CCDirector::sharedDirector();\n  v13 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v12->getActionManager)(v12);\n  v14 = GameManager::sharedState();\n  cocos2d::CCActionManager::addAction(v13, v11, v14, 0);\n}", "assembly": "; \n; AppDelegate::applicationWillEnterForeground from 0x10065c4c0 to 0x10065c59e (222 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100986b38\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, 0x10065c4c0\nmov     rbp, rsp                                                       ; +0x1, 0x10065c4c1\npush    r14                                                            ; +0x4, 0x10065c4c4\npush    rbx                                                            ; +0x6, 0x10065c4c6\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7, 0x10065c4c7\nmov     rcx, [rax]                                                     ; +0xc, 0x10065c4cc\nmov     rdi, rax                                                       ; +0xf, 0x10065c4cf\ncall    qword ptr [rcx+68h]                                            ; +0x12, 0x10065c4d2\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x15, 0x10065c4d5\nmov     rdi, rax                                                       ; +0x1a, 0x10065c4da\ncall    cocos2d__CCDirector__resume                                    ; +0x1d, 0x10065c4dd\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x22, 0x10065c4e2\nmov     rcx, [rax]                                                     ; +0x27, 0x10065c4e7\nmov     rdi, rax                                                       ; +0x2a, 0x10065c4ea\ncall    qword ptr [rcx+70h]                                            ; +0x2d, 0x10065c4ed\ncall    FMODAudioEngine__sharedEngine                                  ; +0x30, 0x10065c4f0\nmov     rdi, rax                                                       ; +0x35, 0x10065c4f5\ncall    FMODAudioEngine__resumeAudio                                   ; +0x38, 0x10065c4f8\ncall    PlatformToolbox__onNativeResume                                ; +0x3d, 0x10065c4fd\ncall    PlatformToolbox__onToggleKeyboard                              ; +0x42, 0x10065c502\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x47, 0x10065c507\nmov     rcx, [rax]                                                     ; +0x4c, 0x10065c50c\nmov     rdi, rax                                                       ; +0x4f, 0x10065c50f\ncall    qword ptr [rcx+90h]                                            ; +0x52, 0x10065c512\nmov     rbx, rax                                                       ; +0x58, 0x10065c518\ncall    GameManager__sharedState                                       ; +0x5b, 0x10065c51b\nmov     rdi, rbx                                                       ; +0x60, 0x10065c520\nmov     esi, 1                                                         ; +0x63, 0x10065c523\nmov     rdx, rax                                                       ; +0x68, 0x10065c528\ncall    cocos2d__CCActionManager__removeActionByTag                    ; +0x6b, 0x10065c52b\nxorps   xmm0, xmm0                                                     ; +0x70, 0x10065c530\ncall    cocos2d__CCDelayTime__create                                   ; +0x73, 0x10065c533\nmov     rbx, rax                                                       ; +0x78, 0x10065c538\ncall    GameManager__sharedState                                       ; +0x7b, 0x10065c53b\nlea     rsi, GameManager__applicationWillEnterForeground               ; +0x80, 0x10065c540\nmov     rdi, rax                                                       ; +0x87, 0x10065c547\nxor     edx, edx                                                       ; +0x8a, 0x10065c54a\ncall    cocos2d__CCCallFunc__create                                    ; +0x8c, 0x10065c54c\nmov     rdi, rbx                                                       ; +0x91, 0x10065c551\nmov     rsi, rax                                                       ; +0x94, 0x10065c554\nxor     edx, edx                                                       ; +0x97, 0x10065c557\nxor     eax, eax                                                       ; +0x99, 0x10065c559\ncall    sub_1003B5760                                                  ; +0x9b, 0x10065c55b\nmov     rbx, rax                                                       ; +0xa0, 0x10065c560\nmov     rax, [rax]                                                     ; +0xa3, 0x10065c563\nmov     rdi, rbx                                                       ; +0xa6, 0x10065c566\nmov     esi, 1                                                         ; +0xa9, 0x10065c569\ncall    qword ptr [rax+48h]                                            ; +0xae, 0x10065c56e\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xb1, 0x10065c571\nmov     rcx, [rax]                                                     ; +0xb6, 0x10065c576\nmov     rdi, rax                                                       ; +0xb9, 0x10065c579\ncall    qword ptr [rcx+90h]                                            ; +0xbc, 0x10065c57c\nmov     r14, rax                                                       ; +0xc2, 0x10065c582\ncall    GameManager__sharedState                                       ; +0xc5, 0x10065c585\nmov     rdi, r14                                                       ; +0xca, 0x10065c58a\nmov     rsi, rbx                                                       ; +0xcd, 0x10065c58d\nmov     rdx, rax                                                       ; +0xd0, 0x10065c590\nxor     ecx, ecx                                                       ; +0xd3, 0x10065c593\npop     rbx                                                            ; +0xd5, 0x10065c595\npop     r14                                                            ; +0xd6, 0x10065c596\npop     rbp                                                            ; +0xd8, 0x10065c598\njmp     cocos2d__CCActionManager__addAction                            ; +0xd9, 0x10065c599", "xrefs": ["<???> @ 0x100986b38"], "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"}