{"type": "func", "start": 4302551872, "end": 4302552094, "name": "AppDelegate::applicationWillEnterForeground", "pseudocode": "// \n// AppDelegate::applicationWillEnterForeground from 0x10073bb40 to 0x10073bc1e (222 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b9ad90\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:36:27 +0000\n// \n\n__int64 AppDelegate::applicationWillEnterForeground()\n{\n  __int64 v0; // rax\n  __int64 v1; // rax\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  _OWORD *v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  __int64 v11; // r14\n  __int64 v12; // rax\n\n  v0 = cocos2d::CCDirector::sharedDirector();\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 104LL))(v0);\n  v1 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::resume(v1);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 112LL))(v2);\n  FMODAudioEngine::sharedEngine();\n  sub_1003CADF0();\n  PlatformToolbox::onNativeResume();\n  PlatformToolbox::onToggleKeyboard();\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  v5 = GameManager::sharedState();\n  cocos2d::CCActionManager::removeActionByTag(v4, 1, v5);\n  v6 = cocos2d::CCDelayTime::create((__m128)0LL);\n  v7 = GameManager::sharedState();\n  v8 = cocos2d::CCCallFunc::create(v7, GameManager::applicationWillEnterForeground, 0);\n  v9 = sub_10039EB60((__int64)v6, v8, 0);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 1);\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);\n  v12 = GameManager::sharedState();\n  return cocos2d::CCActionManager::addAction(v11, v9, v12, 0);\n}", "assembly": "; \n; AppDelegate::applicationWillEnterForeground from 0x10073bb40 to 0x10073bc1e (222 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b9ad90\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:36:27 +0000\n; \npush    rbp                                                            ; +0x0, 0x10073bb40\nmov     rbp, rsp                                                       ; +0x1, 0x10073bb41\npush    r14                                                            ; +0x4, 0x10073bb44\npush    rbx                                                            ; +0x6, 0x10073bb46\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7, 0x10073bb47\nmov     rcx, [rax]                                                     ; +0xc, 0x10073bb4c\nmov     rdi, rax                                                       ; +0xf, 0x10073bb4f\ncall    qword ptr [rcx+68h]                                            ; +0x12, 0x10073bb52\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x15, 0x10073bb55\nmov     rdi, rax                                                       ; +0x1a, 0x10073bb5a\ncall    cocos2d__CCDirector__resume                                    ; +0x1d, 0x10073bb5d\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x22, 0x10073bb62\nmov     rcx, [rax]                                                     ; +0x27, 0x10073bb67\nmov     rdi, rax                                                       ; +0x2a, 0x10073bb6a\ncall    qword ptr [rcx+70h]                                            ; +0x2d, 0x10073bb6d\ncall    FMODAudioEngine__sharedEngine                                  ; +0x30, 0x10073bb70\nmov     rdi, rax                                                       ; +0x35, 0x10073bb75\ncall    sub_1003CADF0                                                  ; +0x38, 0x10073bb78\ncall    PlatformToolbox__onNativeResume                                ; +0x3d, 0x10073bb7d\ncall    PlatformToolbox__onToggleKeyboard                              ; +0x42, 0x10073bb82\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x47, 0x10073bb87\nmov     rcx, [rax]                                                     ; +0x4c, 0x10073bb8c\nmov     rdi, rax                                                       ; +0x4f, 0x10073bb8f\ncall    qword ptr [rcx+90h]                                            ; +0x52, 0x10073bb92\nmov     rbx, rax                                                       ; +0x58, 0x10073bb98\ncall    GameManager__sharedState                                       ; +0x5b, 0x10073bb9b\nmov     rdi, rbx                                                       ; +0x60, 0x10073bba0\nmov     esi, 1                                                         ; +0x63, 0x10073bba3\nmov     rdx, rax                                                       ; +0x68, 0x10073bba8\ncall    cocos2d__CCActionManager__removeActionByTag                    ; +0x6b, 0x10073bbab\nxorps   xmm0, xmm0                                                     ; +0x70, 0x10073bbb0\ncall    cocos2d__CCDelayTime__create                                   ; +0x73, 0x10073bbb3\nmov     rbx, rax                                                       ; +0x78, 0x10073bbb8\ncall    GameManager__sharedState                                       ; +0x7b, 0x10073bbbb\nlea     rsi, GameManager__applicationWillEnterForeground               ; +0x80, 0x10073bbc0\nmov     rdi, rax                                                       ; +0x87, 0x10073bbc7\nxor     edx, edx                                                       ; +0x8a, 0x10073bbca\ncall    cocos2d__CCCallFunc__create                                    ; +0x8c, 0x10073bbcc\nmov     rdi, rbx                                                       ; +0x91, 0x10073bbd1\nmov     rsi, rax                                                       ; +0x94, 0x10073bbd4\nxor     edx, edx                                                       ; +0x97, 0x10073bbd7\nxor     eax, eax                                                       ; +0x99, 0x10073bbd9\ncall    sub_10039EB60                                                  ; +0x9b, 0x10073bbdb\nmov     rbx, rax                                                       ; +0xa0, 0x10073bbe0\nmov     rax, [rax]                                                     ; +0xa3, 0x10073bbe3\nmov     rdi, rbx                                                       ; +0xa6, 0x10073bbe6\nmov     esi, 1                                                         ; +0xa9, 0x10073bbe9\ncall    qword ptr [rax+48h]                                            ; +0xae, 0x10073bbee\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xb1, 0x10073bbf1\nmov     rcx, [rax]                                                     ; +0xb6, 0x10073bbf6\nmov     rdi, rax                                                       ; +0xb9, 0x10073bbf9\ncall    qword ptr [rcx+90h]                                            ; +0xbc, 0x10073bbfc\nmov     r14, rax                                                       ; +0xc2, 0x10073bc02\ncall    GameManager__sharedState                                       ; +0xc5, 0x10073bc05\nmov     rdi, r14                                                       ; +0xca, 0x10073bc0a\nmov     rsi, rbx                                                       ; +0xcd, 0x10073bc0d\nmov     rdx, rax                                                       ; +0xd0, 0x10073bc10\nxor     ecx, ecx                                                       ; +0xd3, 0x10073bc13\npop     rbx                                                            ; +0xd5, 0x10073bc15\npop     r14                                                            ; +0xd6, 0x10073bc16\npop     rbp                                                            ; +0xd8, 0x10073bc18\njmp     cocos2d__CCActionManager__addAction                            ; +0xd9, 0x10073bc19", "xrefs": ["<???> @ 0x100b9ad90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}