{"type": "func", "start": 4297496188, "end": 4297496304, "name": "AppDelegate::musicTest", "pseudocode": "// \n// AppDelegate::musicTest from 0x10026967c to 0x1002696f0 (116 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::resumeSound @ 0x100269638\n// > AppDelegate::checkSound @ 0x1002696f8\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 __fastcall 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 ( (cocos2d::CCApplication::sharedApplication()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] & 1) != 0 )\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 0x10026967c to 0x1002696f0 (116 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::resumeSound @ 0x100269638\n; > AppDelegate::checkSound @ 0x1002696f8\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10026967c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100269680\nADD             X29, SP, #0x10                                         ; +0x8, 0x100269684\nBL              GameManager__sharedState                               ; +0xc, 0x100269688\nLDRB            W8, [X0,#0x414]                                        ; +0x10, 0x10026968c\nTBZ             W8, #0, loc_10026969C                                  ; +0x14, 0x100269690\nMOV             W0, #1                                                 ; +0x18, 0x100269694\nB               loc_1002696E4                                          ; +0x1c, 0x100269698\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x10026969c\nLDR             X19, [X0,#0x108]                                       ; +0x24, 0x1002696a0\nCBZ             X19, loc_1002696E0                                     ; +0x28, 0x1002696a4\nBL              GameManager__sharedState                               ; +0x2c, 0x1002696a8\nLDR             X8, [X0,#0x1F8]                                        ; +0x30, 0x1002696ac\nCBZ             X8, loc_1002696D0                                      ; +0x34, 0x1002696b0\nBL              cocos2d__CCApplication__sharedApplication              ; +0x38, 0x1002696b4\nLDRB            W8, [X0,#0x11]                                         ; +0x3c, 0x1002696b8\nTBNZ            W8, #0, loc_100269694                                  ; +0x40, 0x1002696bc\nBL              GameManager__sharedState                               ; +0x44, 0x1002696c0\nLDR             X0, [X0,#0x1F8]                                        ; +0x48, 0x1002696c4\nBL              PlayLayer__isGameplayActive                            ; +0x4c, 0x1002696c8\nCBZ             W0, loc_100269694                                      ; +0x50, 0x1002696cc\nLDR             W8, [X19,#0x1C]                                        ; +0x54, 0x1002696d0\nCMP             W8, #6                                                 ; +0x58, 0x1002696d4\nCSET            W0, EQ                                                 ; +0x5c, 0x1002696d8\nB               loc_1002696E4                                          ; +0x60, 0x1002696dc\nMOV             W0, #0                                                 ; +0x64, 0x1002696e0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1002696e4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1002696e8\nRET                                                                    ; +0x70, 0x1002696ec", "xrefs": ["AppDelegate::resumeSound @ 0x100269638", "AppDelegate::checkSound @ 0x1002696f8"], "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"}