{"type": "func", "start": 5369245168, "end": 5369245288, "name": "AppDelegate::applicationDidEnterBackground", "pseudocode": "// \n// AppDelegate::applicationDidEnterBackground from 0x140082df0 to 0x140082e68 (120 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053c540\n// > <???> @ 0x1406c6a68\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=1\nvoid AppDelegate::applicationDidEnterBackground(AppDelegate *a1)\n{\n  AppDelegate *v2; // rcx\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  void *v7; // rax\n\n  AppDelegate::pauseSound(a1);\n  AppDelegate::pauseGame(v2);\n  v4 = cocos2d::CCDirector::sharedDirector(v3);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  cocos2d::CCDirector::pause(v6);\n  if ( a1[2].m_resourceRootPath.m_data.m_smallStorage._Elems[0] )\n  {\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n  }\n}", "assembly": "; \n; AppDelegate::applicationDidEnterBackground from 0x140082df0 to 0x140082e68 (120 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053c540\n; > <???> @ 0x1406c6a68\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    rbx                                                            ; +0x0, 0x140082df0\nsub     rsp, 20h                                                       ; +0x2, 0x140082df2\nmov     rbx, rcx                                                       ; +0x6, 0x140082df6\ncall    AppDelegate__pauseSound                                        ; +0x9, 0x140082df9\ncall    AppDelegate__pauseGame                                         ; +0xe, 0x140082dfe\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13, 0x140082e03\nmov     rdx, [rax]                                                     ; +0x19, 0x140082e09\nmov     rcx, rax                                                       ; +0x1c, 0x140082e0c\ncall    qword ptr [rdx+58h]                                            ; +0x1f, 0x140082e0f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x140082e12\nmov     rcx, rax                                                       ; +0x28, 0x140082e18\ncall    cs:?pause@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::pause(void) ; +0x2b, 0x140082e1b\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x31, 0x140082e21\njz      short loc_140082E62                                            ; +0x38, 0x140082e28\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x3a, 0x140082e2a\njnz     short loc_140082E62                                            ; +0x42, 0x140082e32\nmov     ecx, 668h; Size                                                ; +0x44, 0x140082e34\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x49, 0x140082e39\nmov     [rsp+28h+arg_0], rax                                           ; +0x4e, 0x140082e3e\nmov     rcx, rax                                                       ; +0x53, 0x140082e43\ncall    sub_14017AB00                                                  ; +0x56, 0x140082e46\nnop                                                                    ; +0x5b, 0x140082e4b\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5c, 0x140082e4c\nmov     rdx, [rax]                                                     ; +0x63, 0x140082e53\nmov     rcx, rax                                                       ; +0x66, 0x140082e56\nadd     rsp, 20h                                                       ; +0x69, 0x140082e59\npop     rbx                                                            ; +0x6d, 0x140082e5d\njmp     qword ptr [rdx+48h]                                            ; +0x6e, 0x140082e5e\nadd     rsp, 20h                                                       ; +0x72, 0x140082e62\npop     rbx                                                            ; +0x76, 0x140082e66\nretn                                                                   ; +0x77, 0x140082e67", "xrefs": ["<???> @ 0x14053c540", "<???> @ 0x1406c6a68"], "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"}