{"type": "func", "start": 6022016, "end": 6022152, "name": "AppDelegate::musicTest", "pseudocode": "// \n// AppDelegate::musicTest from 0x5be380 to 0x5be408 (136 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::resumeSound @ 0x5be410\n// > AppDelegate::checkSound @ 0x5be468\n// > <???> @ 0x7ae08\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\nbool AppDelegate::musicTest(AppDelegate *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // x19\n  GameManager *v3; // x0\n\n  if ( GameManager::sharedState()->m_loadingLevel )\n    return 1;\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  if ( !m_pRunningScene )\n    return 0;\n  if ( GameManager::sharedState()->m_playLayer )\n  {\n    if ( BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) )\n      return 1;\n    v3 = GameManager::sharedState();\n    if ( !PlayLayer::isGameplayActive(v3->m_playLayer) )\n      return 1;\n  }\n  return m_pRunningScene->m_eObjType == LevelEditorLayerObjectType;\n}", "assembly": "; \n; AppDelegate::musicTest from 0x5be380 to 0x5be408 (136 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::resumeSound @ 0x5be410\n; > AppDelegate::checkSound @ 0x5be468\n; > <???> @ 0x7ae08\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x5be380\nMOV             X29, SP                                                ; +0x4, 0x5be384\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x5be388\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc, 0x5be38c\nLDRB            W0, [X0,#0x3D4]; this                                  ; +0x10, 0x5be390\nCBZ             W0, loc_5BE3A8                                         ; +0x14, 0x5be394\nMOV             W0, #1                                                 ; +0x18, 0x5be398\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x1c, 0x5be39c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x20, 0x5be3a0\nRET                                                                    ; +0x24, 0x5be3a4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x5be3a8\nLDR             X19, [X0,#0x108]                                       ; +0x2c, 0x5be3ac\nCBZ             X19, loc_5BE3F8                                        ; +0x30, 0x5be3b0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x5be3b4\nLDR             X0, [X0,#0x1D8]; this                                  ; +0x38, 0x5be3b8\nCBZ             X0, loc_5BE3E0                                         ; +0x3c, 0x5be3bc\nBL              _ZN11AppDelegate3getEv; AppDelegate::get(void)         ; +0x40, 0x5be3c0\nLDRB            W0, [X0,#0x11]; this                                   ; +0x44, 0x5be3c4\nCBNZ            W0, loc_5BE398                                         ; +0x48, 0x5be3c8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0x5be3cc\nLDR             X0, [X0,#0x1D8]; this                                  ; +0x50, 0x5be3d0\nBL              _ZN9PlayLayer16isGameplayActiveEv; PlayLayer::isGameplayActive(void) ; +0x54, 0x5be3d4\nUXTB            W0, W0                                                 ; +0x58, 0x5be3d8\nCBZ             W0, loc_5BE398                                         ; +0x5c, 0x5be3dc\nLDR             W0, [X19,#0x1C]                                        ; +0x60, 0x5be3e0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0x5be3e4\nCMP             W0, #6                                                 ; +0x68, 0x5be3e8\nCSET            W0, EQ                                                 ; +0x6c, 0x5be3ec\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0x5be3f0\nRET                                                                    ; +0x74, 0x5be3f4\nMOV             W0, #0                                                 ; +0x78, 0x5be3f8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x5be3fc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x5be400\nRET                                                                    ; +0x84, 0x5be404", "xrefs": ["AppDelegate::resumeSound @ 0x5be410", "AppDelegate::checkSound @ 0x5be468", "<???> @ 0x7ae08"], "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"}