{"type": "func", "start": 5369245760, "end": 5369245978, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x140083040 to 0x14008311a (218 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::applicationWillResignActive @ 0x140082de0\n// > AppDelegate::applicationDidEnterBackground @ 0x140082dfe\n// > <???> @ 0x1406c6a80\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\n// Hidden C++ exception states: #wind=3\nvoid AppDelegate::pauseGame(AppDelegate *a1)\n{\n  __int64 v1; // rcx\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v1 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1) + 264);\n  if ( v1 && *(_DWORD *)(v1 + 28) == 5 )\n  {\n    v2 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v2 = qword_1406C2ED8;\n    }\n    v3 = *(_QWORD *)(v2 + 520);\n    if ( v3 && !*(_BYTE *)(v3 + 14717) && !*(_BYTE *)(cocos2d::CCApplication::sharedApplication(v1, v3) + 217) )\n    {\n      v4 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v6 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v6);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v4 = qword_1406C2ED8;\n      }\n      PlayLayer::pauseGame(*(PlayLayer **)(v4 + 520), 1);\n    }\n  }\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x140083040 to 0x14008311a (218 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::applicationWillResignActive @ 0x140082de0\n; > AppDelegate::applicationDidEnterBackground @ 0x140082dfe\n; > <???> @ 0x1406c6a80\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\nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x140083040\nsub     rsp, 28h                                                       ; +0x5, 0x140083045\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x140083049\nmov     rcx, [rax+108h]                                                ; +0xf, 0x14008304f\ntest    rcx, rcx                                                       ; +0x16, 0x140083056\njz      loc_140083115                                                  ; +0x19, 0x140083059\ncmp     dword ptr [rcx+1Ch], 5                                         ; +0x1f, 0x14008305f\njnz     loc_140083115                                                  ; +0x23, 0x140083063\nmov     rax, cs:qword_1406C2ED8                                        ; +0x29, 0x140083069\ntest    rax, rax                                                       ; +0x30, 0x140083070\njnz     short loc_1400830A4                                            ; +0x33, 0x140083073\nmov     ecx, 668h; Size                                                ; +0x35, 0x140083075\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x14008307a\nmov     [rsp+28h+arg_0], rax                                           ; +0x3f, 0x14008307f\nmov     rcx, rax                                                       ; +0x44, 0x140083084\ncall    sub_14017AB00                                                  ; +0x47, 0x140083087\nnop                                                                    ; +0x4c, 0x14008308c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4d, 0x14008308d\nmov     rdx, [rax]                                                     ; +0x54, 0x140083094\nmov     rcx, rax                                                       ; +0x57, 0x140083097\ncall    qword ptr [rdx+48h]                                            ; +0x5a, 0x14008309a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x5d, 0x14008309d\nmov     rdx, [rax+208h]                                                ; +0x64, 0x1400830a4\ntest    rdx, rdx                                                       ; +0x6b, 0x1400830ab\njz      short loc_140083115                                            ; +0x6e, 0x1400830ae\ncmp     byte ptr [rdx+397Dh], 0                                        ; +0x70, 0x1400830b0\njnz     short loc_140083115                                            ; +0x77, 0x1400830b7\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x79, 0x1400830b9\ncmp     byte ptr [rax+0D9h], 0                                         ; +0x7f, 0x1400830bf\njnz     short loc_140083115                                            ; +0x86, 0x1400830c6\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x88, 0x1400830c8\ntest    rcx, rcx                                                       ; +0x8f, 0x1400830cf\njnz     short loc_140083103                                            ; +0x92, 0x1400830d2\nmov     ecx, 668h; Size                                                ; +0x94, 0x1400830d4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x99, 0x1400830d9\nmov     [rsp+28h+arg_0], rax                                           ; +0x9e, 0x1400830de\nmov     rcx, rax                                                       ; +0xa3, 0x1400830e3\ncall    sub_14017AB00                                                  ; +0xa6, 0x1400830e6\nnop                                                                    ; +0xab, 0x1400830eb\nmov     cs:qword_1406C2ED8, rax                                        ; +0xac, 0x1400830ec\nmov     rdx, [rax]                                                     ; +0xb3, 0x1400830f3\nmov     rcx, rax                                                       ; +0xb6, 0x1400830f6\ncall    qword ptr [rdx+48h]                                            ; +0xb9, 0x1400830f9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xbc, 0x1400830fc\nmov     dl, 1                                                          ; +0xc3, 0x140083103\nmov     rcx, [rcx+208h]                                                ; +0xc5, 0x140083105\nadd     rsp, 28h                                                       ; +0xcc, 0x14008310c\njmp     PlayLayer__pauseGame                                           ; +0xd0, 0x140083110\nadd     rsp, 28h                                                       ; +0xd5, 0x140083115\nretn                                                                   ; +0xd9, 0x140083119", "xrefs": ["AppDelegate::applicationWillResignActive @ 0x140082de0", "AppDelegate::applicationDidEnterBackground @ 0x140082dfe", "<???> @ 0x1406c6a80"], "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"}