{"type": "func", "start": 4302551648, "end": 4302551837, "name": "AppDelegate::applicationDidEnterBackground", "pseudocode": "// \n// AppDelegate::applicationDidEnterBackground from 0x10073ba60 to 0x10073bb1d (189 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b9ad88\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\nvoid __fastcall AppDelegate::applicationDidEnterBackground(_BYTE *a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n\n  v1 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n  if ( v1\n    && *(_DWORD *)(v1 + 28) == 5\n    && *(_QWORD *)(GameManager::sharedState() + 544)\n    && !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 14637LL)\n    && !*(_BYTE *)(cocos2d::CCApplication::sharedApplication() + 65) )\n  {\n    v2 = GameManager::sharedState();\n    PlayLayer::pauseGame(*(_BYTE **)(v2 + 544), 1);\n  }\n  v3 = FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::stop(v3);\n  (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 64LL))(a1, 0);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::pause(v5);\n  if ( a1[80] == 1 )\n  {\n    PlatformToolbox::onNativePause();\n    GameManager::sharedState();\n    GameManager::applicationDidEnterBackground();\n  }\n}", "assembly": "; \n; AppDelegate::applicationDidEnterBackground from 0x10073ba60 to 0x10073bb1d (189 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b9ad88\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, 0x10073ba60\nmov     rbp, rsp                                                       ; +0x1, 0x10073ba61\npush    rbx                                                            ; +0x4, 0x10073ba64\npush    rax                                                            ; +0x5, 0x10073ba65\nmov     rbx, rdi                                                       ; +0x6, 0x10073ba66\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x9, 0x10073ba69\nmov     rax, [rax+110h]                                                ; +0xe, 0x10073ba6e\ntest    rax, rax                                                       ; +0x15, 0x10073ba75\njz      short loc_10073BAC5                                            ; +0x18, 0x10073ba78\ncmp     dword ptr [rax+1Ch], 5                                         ; +0x1a, 0x10073ba7a\njnz     short loc_10073BAC5                                            ; +0x1e, 0x10073ba7e\ncall    GameManager__sharedState                                       ; +0x20, 0x10073ba80\ncmp     qword ptr [rax+220h], 0                                        ; +0x25, 0x10073ba85\njz      short loc_10073BAC5                                            ; +0x2d, 0x10073ba8d\ncall    GameManager__sharedState                                       ; +0x2f, 0x10073ba8f\nmov     rax, [rax+220h]                                                ; +0x34, 0x10073ba94\ncmp     byte ptr [rax+392Dh], 0                                        ; +0x3b, 0x10073ba9b\njnz     short loc_10073BAC5                                            ; +0x42, 0x10073baa2\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x44, 0x10073baa4\ncmp     byte ptr [rax+41h], 0                                          ; +0x49, 0x10073baa9\njnz     short loc_10073BAC5                                            ; +0x4d, 0x10073baad\ncall    GameManager__sharedState                                       ; +0x4f, 0x10073baaf\nmov     rdi, [rax+220h]                                                ; +0x54, 0x10073bab4\nmov     esi, 1                                                         ; +0x5b, 0x10073babb\ncall    PlayLayer__pauseGame                                           ; +0x60, 0x10073bac0\ncall    FMODAudioEngine__sharedEngine                                  ; +0x65, 0x10073bac5\nmov     rdi, rax                                                       ; +0x6a, 0x10073baca\ncall    FMODAudioEngine__stop                                          ; +0x6d, 0x10073bacd\nmov     rax, [rbx]                                                     ; +0x72, 0x10073bad2\nmov     rdi, rbx                                                       ; +0x75, 0x10073bad5\nxor     esi, esi                                                       ; +0x78, 0x10073bad8\ncall    qword ptr [rax+40h]                                            ; +0x7a, 0x10073bada\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7d, 0x10073badd\nmov     rcx, [rax]                                                     ; +0x82, 0x10073bae2\nmov     rdi, rax                                                       ; +0x85, 0x10073bae5\ncall    qword ptr [rcx+68h]                                            ; +0x88, 0x10073bae8\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8b, 0x10073baeb\nmov     rdi, rax                                                       ; +0x90, 0x10073baf0\ncall    cocos2d__CCDirector__pause                                     ; +0x93, 0x10073baf3\ncmp     byte ptr [rbx+50h], 1                                          ; +0x98, 0x10073baf8\njnz     short loc_10073BB16                                            ; +0x9c, 0x10073bafc\ncall    PlatformToolbox__onNativePause                                 ; +0x9e, 0x10073bafe\ncall    GameManager__sharedState                                       ; +0xa3, 0x10073bb03\nmov     rdi, rax                                                       ; +0xa8, 0x10073bb08\nadd     rsp, 8                                                         ; +0xab, 0x10073bb0b\npop     rbx                                                            ; +0xaf, 0x10073bb0f\npop     rbp                                                            ; +0xb0, 0x10073bb10\njmp     GameManager__applicationDidEnterBackground                     ; +0xb1, 0x10073bb11\nadd     rsp, 8                                                         ; +0xb6, 0x10073bb16\npop     rbx                                                            ; +0xba, 0x10073bb1a\npop     rbp                                                            ; +0xbb, 0x10073bb1b\nretn                                                                   ; +0xbc, 0x10073bb1c", "xrefs": ["<???> @ 0x100b9ad88"], "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"}