{"type": "func", "start": 4301637040, "end": 4301637208, "name": "AppDelegate::resumeSound", "pseudocode": "// \n// AppDelegate::resumeSound from 0x10065c5b0 to 0x10065c658 (168 bytes)\n// \n// 3 xrefs:\n// > GameManager::resumeAudio @ 0x1003802e6\n// > FMODAudioEngine::resumeAudio @ 0x1003dde21\n// > FMODAudioEngine::start @ 0x1003dde9b\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\nvoid __fastcall AppDelegate::resumeSound(AppDelegate *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // rbx\n  GameManager *v2; // rax\n  GameManager *v3; // rax\n  FMODAudioEngine *v4; // rax\n  FMODAudioEngine *v5; // rax\n\n  if ( !GameManager::sharedState()->m_loadingLevel )\n  {\n    m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n    if ( !m_pRunningScene\n      || (!GameManager::sharedState()->m_playLayer\n       || !cocos2d::CCApplication::sharedApplication()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0]\n       && (v2 = GameManager::sharedState(), PlayLayer::isGameplayActive(v2->m_playLayer)))\n      && m_pRunningScene->m_eObjType != LevelEditorLayerObjectType )\n    {\n      if ( GameManager::sharedState()->m_playLayer\n        || (v3 = GameManager::sharedState(), !GameManager::getGameVariable(v3, \"0122\")) )\n      {\n        v4 = FMODAudioEngine::sharedEngine();\n        FMODAudioEngine::resumeAllMusic(v4);\n      }\n      v5 = FMODAudioEngine::sharedEngine();\n      FMODAudioEngine::resumeAllEffects(v5);\n    }\n  }\n}", "assembly": "; \n; AppDelegate::resumeSound from 0x10065c5b0 to 0x10065c658 (168 bytes)\n; \n; 3 xrefs:\n; > GameManager::resumeAudio @ 0x1003802e6\n; > FMODAudioEngine::resumeAudio @ 0x1003dde21\n; > FMODAudioEngine::start @ 0x1003dde9b\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    rbp                                                            ; +0x0, 0x10065c5b0\nmov     rbp, rsp                                                       ; +0x1, 0x10065c5b1\npush    rbx                                                            ; +0x4, 0x10065c5b4\npush    rax                                                            ; +0x5, 0x10065c5b5\ncall    GameManager__sharedState                                       ; +0x6, 0x10065c5b6\ncmp     byte ptr [rax+414h], 0                                         ; +0xb, 0x10065c5bb\njz      short loc_10065C5CB                                            ; +0x12, 0x10065c5c2\nadd     rsp, 8                                                         ; +0x14, 0x10065c5c4\npop     rbx                                                            ; +0x18, 0x10065c5c8\npop     rbp                                                            ; +0x19, 0x10065c5c9\nretn                                                                   ; +0x1a, 0x10065c5ca\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1b, 0x10065c5cb\nmov     rbx, [rax+108h]                                                ; +0x20, 0x10065c5d0\ntest    rbx, rbx                                                       ; +0x27, 0x10065c5d7\njz      short loc_10065C611                                            ; +0x2a, 0x10065c5da\ncall    GameManager__sharedState                                       ; +0x2c, 0x10065c5dc\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x31, 0x10065c5e1\njz      short loc_10065C60B                                            ; +0x39, 0x10065c5e9\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x3b, 0x10065c5eb\ncmp     byte ptr [rax+41h], 0                                          ; +0x40, 0x10065c5f0\njnz     short loc_10065C5C4                                            ; +0x44, 0x10065c5f4\ncall    GameManager__sharedState                                       ; +0x46, 0x10065c5f6\nmov     rdi, [rax+1F8h]                                                ; +0x4b, 0x10065c5fb\ncall    PlayLayer__isGameplayActive                                    ; +0x52, 0x10065c602\ntest    al, al                                                         ; +0x57, 0x10065c607\njz      short loc_10065C5C4                                            ; +0x59, 0x10065c609\ncmp     dword ptr [rbx+1Ch], 6                                         ; +0x5b, 0x10065c60b\njz      short loc_10065C5C4                                            ; +0x5f, 0x10065c60f\ncall    GameManager__sharedState                                       ; +0x61, 0x10065c611\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x66, 0x10065c616\njnz     short loc_10065C638                                            ; +0x6e, 0x10065c61e\ncall    GameManager__sharedState                                       ; +0x70, 0x10065c620\nlea     rsi, a0122; \"0122\"                                             ; +0x75, 0x10065c625\nmov     rdi, rax                                                       ; +0x7c, 0x10065c62c\ncall    GameManager__getGameVariable                                   ; +0x7f, 0x10065c62f\ntest    al, al                                                         ; +0x84, 0x10065c634\njnz     short loc_10065C645                                            ; +0x86, 0x10065c636\ncall    FMODAudioEngine__sharedEngine                                  ; +0x88, 0x10065c638\nmov     rdi, rax                                                       ; +0x8d, 0x10065c63d\ncall    FMODAudioEngine__resumeAllMusic                                ; +0x90, 0x10065c640\ncall    FMODAudioEngine__sharedEngine                                  ; +0x95, 0x10065c645\nmov     rdi, rax                                                       ; +0x9a, 0x10065c64a\nadd     rsp, 8                                                         ; +0x9d, 0x10065c64d\npop     rbx                                                            ; +0xa1, 0x10065c651\npop     rbp                                                            ; +0xa2, 0x10065c652\njmp     FMODAudioEngine__resumeAllEffects                              ; +0xa3, 0x10065c653", "xrefs": ["GameManager::resumeAudio @ 0x1003802e6", "FMODAudioEngine::resumeAudio @ 0x1003dde21", "FMODAudioEngine::start @ 0x1003dde9b"], "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"}