{"type": "func", "start": 4301637328, "end": 4301637449, "name": "AppDelegate::checkSound", "pseudocode": "// \n// AppDelegate::checkSound from 0x10065c6d0 to 0x10065c749 (121 bytes)\n// \n// 0 xrefs:\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::checkSound(AppDelegate *a1)\n{\n  FMODAudioEngine *v1; // rax\n  cocos2d::CCScene *m_pRunningScene; // rbx\n  GameManager *v3; // rax\n\n  if ( GameManager::sharedState()->m_loadingLevel\n    || (m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene) != nullptr\n    && (GameManager::sharedState()->m_playLayer\n     && (cocos2d::CCApplication::sharedApplication()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0]\n      || (v3 = GameManager::sharedState(), !PlayLayer::isGameplayActive(v3->m_playLayer)))\n     || m_pRunningScene->m_eObjType == LevelEditorLayerObjectType) )\n  {\n    v1 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::pauseAllMusic(v1, 1);\n  }\n}", "assembly": "; \n; AppDelegate::checkSound from 0x10065c6d0 to 0x10065c749 (121 bytes)\n; \n; 0 xrefs:\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, 0x10065c6d0\nmov     rbp, rsp                                                       ; +0x1, 0x10065c6d1\npush    rbx                                                            ; +0x4, 0x10065c6d4\npush    rax                                                            ; +0x5, 0x10065c6d5\ncall    GameManager__sharedState                                       ; +0x6, 0x10065c6d6\ncmp     byte ptr [rax+414h], 0                                         ; +0xb, 0x10065c6db\njz      short loc_10065C6FC                                            ; +0x12, 0x10065c6e2\ncall    FMODAudioEngine__sharedEngine                                  ; +0x14, 0x10065c6e4\nmov     rdi, rax                                                       ; +0x19, 0x10065c6e9\nmov     esi, 1                                                         ; +0x1c, 0x10065c6ec\nadd     rsp, 8                                                         ; +0x21, 0x10065c6f1\npop     rbx                                                            ; +0x25, 0x10065c6f5\npop     rbp                                                            ; +0x26, 0x10065c6f6\njmp     FMODAudioEngine__pauseAllMusic                                 ; +0x27, 0x10065c6f7\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2c, 0x10065c6fc\nmov     rbx, [rax+108h]                                                ; +0x31, 0x10065c701\ntest    rbx, rbx                                                       ; +0x38, 0x10065c708\njz      short loc_10065C742                                            ; +0x3b, 0x10065c70b\ncall    GameManager__sharedState                                       ; +0x3d, 0x10065c70d\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x42, 0x10065c712\njz      short loc_10065C73C                                            ; +0x4a, 0x10065c71a\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x4c, 0x10065c71c\ncmp     byte ptr [rax+41h], 0                                          ; +0x51, 0x10065c721\njnz     short loc_10065C6E4                                            ; +0x55, 0x10065c725\ncall    GameManager__sharedState                                       ; +0x57, 0x10065c727\nmov     rdi, [rax+1F8h]                                                ; +0x5c, 0x10065c72c\ncall    PlayLayer__isGameplayActive                                    ; +0x63, 0x10065c733\ntest    al, al                                                         ; +0x68, 0x10065c738\njz      short loc_10065C6E4                                            ; +0x6a, 0x10065c73a\ncmp     dword ptr [rbx+1Ch], 6                                         ; +0x6c, 0x10065c73c\njz      short loc_10065C6E4                                            ; +0x70, 0x10065c740\nadd     rsp, 8                                                         ; +0x72, 0x10065c742\npop     rbx                                                            ; +0x76, 0x10065c746\npop     rbp                                                            ; +0x77, 0x10065c747\nretn                                                                   ; +0x78, 0x10065c748", "xrefs": [], "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"}