{"type": "func", "start": 5369334256, "end": 5369334480, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x1400989f0 to 0x140098ad0 (224 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::applicationWillResignActive @ 0x1400985b0\n// > AppDelegate::applicationDidEnterBackground @ 0x140098643\n// > <???> @ 0x140912d58\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 11:26:03 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall AppDelegate::pauseGame(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // rcx\n  __int64 v3; // rdx\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  result = cocos2d::CCDirector::sharedDirector(a1);\n  v2 = *(_QWORD *)(result + 272);\n  if ( v2 && *(_DWORD *)(v2 + 28) == 5 )\n  {\n    result = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v6 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      result = qword_14090BFD0;\n    }\n    v3 = *(_QWORD *)(result + 560);\n    if ( v3 )\n    {\n      if ( !*(_BYTE *)(v3 + 15317) )\n      {\n        result = cocos2d::CCApplication::sharedApplication();\n        if ( !*(_BYTE *)(result + 225) )\n        {\n          v5 = qword_14090BFD0;\n          if ( !qword_14090BFD0 )\n          {\n            v7 = operator new(0x6E8u);\n            qword_14090BFD0 = GameManager::GameManager(v7);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n            v5 = qword_14090BFD0;\n          }\n          LOBYTE(v4) = 1;\n          return PlayLayer::pauseGame(*(_QWORD *)(v5 + 560), v4);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x1400989f0 to 0x140098ad0 (224 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::applicationWillResignActive @ 0x1400985b0\n; > AppDelegate::applicationDidEnterBackground @ 0x140098643\n; > <???> @ 0x140912d58\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 11:26:03 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x1400989f0\nsub     rsp, 28h                                                       ; +0x5, 0x1400989f5\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x1400989f9\nmov     rcx, [rax+110h]                                                ; +0xf, 0x1400989ff\ntest    rcx, rcx                                                       ; +0x16, 0x140098a06\njz      loc_140098ACB                                                  ; +0x19, 0x140098a09\ncmp     dword ptr [rcx+1Ch], 5                                         ; +0x1f, 0x140098a0f\njnz     loc_140098ACB                                                  ; +0x23, 0x140098a13\nmov     rax, cs:qword_14090BFD0                                        ; +0x29, 0x140098a19\ntest    rax, rax                                                       ; +0x30, 0x140098a20\njnz     short loc_140098A57                                            ; +0x33, 0x140098a23\nmov     ecx, 6E8h; Size                                                ; +0x35, 0x140098a25\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x140098a2a\nmov     [rsp+28h+arg_0], rax                                           ; +0x3f, 0x140098a2f\nmov     rcx, rax                                                       ; +0x44, 0x140098a34\ncall    GameManager__GameManager                                       ; +0x47, 0x140098a37\nnop                                                                    ; +0x4c, 0x140098a3c\nmov     cs:qword_14090BFD0, rax                                        ; +0x4d, 0x140098a3d\nmov     rcx, [rax]                                                     ; +0x54, 0x140098a44\nmov     rdx, [rcx+48h]                                                 ; +0x57, 0x140098a47\nmov     rcx, rax                                                       ; +0x5b, 0x140098a4b\ncall    rdx                                                            ; +0x5e, 0x140098a4e\nmov     rax, cs:qword_14090BFD0                                        ; +0x60, 0x140098a50\nmov     rdx, [rax+230h]                                                ; +0x67, 0x140098a57\ntest    rdx, rdx                                                       ; +0x6e, 0x140098a5e\njz      short loc_140098ACB                                            ; +0x71, 0x140098a61\ncmp     byte ptr [rdx+3BD5h], 0                                        ; +0x73, 0x140098a63\njnz     short loc_140098ACB                                            ; +0x7a, 0x140098a6a\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x7c, 0x140098a6c\ncmp     byte ptr [rax+0E1h], 0                                         ; +0x82, 0x140098a72\njnz     short loc_140098ACB                                            ; +0x89, 0x140098a79\nmov     rcx, cs:qword_14090BFD0                                        ; +0x8b, 0x140098a7b\ntest    rcx, rcx                                                       ; +0x92, 0x140098a82\njnz     short loc_140098AB9                                            ; +0x95, 0x140098a85\nmov     ecx, 6E8h; Size                                                ; +0x97, 0x140098a87\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9c, 0x140098a8c\nmov     [rsp+28h+arg_0], rax                                           ; +0xa1, 0x140098a91\nmov     rcx, rax                                                       ; +0xa6, 0x140098a96\ncall    GameManager__GameManager                                       ; +0xa9, 0x140098a99\nnop                                                                    ; +0xae, 0x140098a9e\nmov     cs:qword_14090BFD0, rax                                        ; +0xaf, 0x140098a9f\nmov     rcx, [rax]                                                     ; +0xb6, 0x140098aa6\nmov     rdx, [rcx+48h]                                                 ; +0xb9, 0x140098aa9\nmov     rcx, rax                                                       ; +0xbd, 0x140098aad\ncall    rdx                                                            ; +0xc0, 0x140098ab0\nmov     rcx, cs:qword_14090BFD0                                        ; +0xc2, 0x140098ab2\nmov     dl, 1                                                          ; +0xc9, 0x140098ab9\nmov     rcx, [rcx+230h]                                                ; +0xcb, 0x140098abb\nadd     rsp, 28h                                                       ; +0xd2, 0x140098ac2\njmp     PlayLayer__pauseGame                                           ; +0xd6, 0x140098ac6\nadd     rsp, 28h                                                       ; +0xdb, 0x140098acb\nretn                                                                   ; +0xdf, 0x140098acf", "xrefs": ["AppDelegate::applicationWillResignActive @ 0x1400985b0", "AppDelegate::applicationDidEnterBackground @ 0x140098643", "<???> @ 0x140912d58"], "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"}