{"type": "func", "start": 4301637216, "end": 4301637322, "name": "AppDelegate::musicTest", "pseudocode": "// \n// AppDelegate::musicTest from 0x10065c660 to 0x10065c6ca (106 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\nbool __fastcall AppDelegate::musicTest(AppDelegate *a1)\n{\n  bool v1; // bl\n  cocos2d::CCScene *m_pRunningScene; // r14\n  GameManager *v3; // rax\n\n  v1 = 1;\n  if ( !GameManager::sharedState()->m_loadingLevel )\n  {\n    m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n    if ( m_pRunningScene )\n    {\n      if ( !GameManager::sharedState()->m_playLayer )\n        return m_pRunningScene->m_eObjType == LevelEditorLayerObjectType;\n      if ( !cocos2d::CCApplication::sharedApplication()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0] )\n      {\n        v3 = GameManager::sharedState();\n        if ( PlayLayer::isGameplayActive(v3->m_playLayer) )\n          return m_pRunningScene->m_eObjType == LevelEditorLayerObjectType;\n      }\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return v1;\n}", "assembly": "; \n; AppDelegate::musicTest from 0x10065c660 to 0x10065c6ca (106 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, 0x10065c660\nmov     rbp, rsp                                                       ; +0x1, 0x10065c661\npush    r14                                                            ; +0x4, 0x10065c664\npush    rbx                                                            ; +0x6, 0x10065c666\ncall    GameManager__sharedState                                       ; +0x7, 0x10065c667\nmov     bl, 1                                                          ; +0xc, 0x10065c66c\ncmp     byte ptr [rax+414h], 0                                         ; +0xe, 0x10065c66e\njnz     short loc_10065C6C3                                            ; +0x15, 0x10065c675\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x17, 0x10065c677\nmov     r14, [rax+108h]                                                ; +0x1c, 0x10065c67c\ntest    r14, r14                                                       ; +0x23, 0x10065c683\njz      short loc_10065C6C1                                            ; +0x26, 0x10065c686\ncall    GameManager__sharedState                                       ; +0x28, 0x10065c688\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x2d, 0x10065c68d\njz      short loc_10065C6B7                                            ; +0x35, 0x10065c695\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x37, 0x10065c697\ncmp     byte ptr [rax+41h], 0                                          ; +0x3c, 0x10065c69c\njnz     short loc_10065C6C3                                            ; +0x40, 0x10065c6a0\ncall    GameManager__sharedState                                       ; +0x42, 0x10065c6a2\nmov     rdi, [rax+1F8h]                                                ; +0x47, 0x10065c6a7\ncall    PlayLayer__isGameplayActive                                    ; +0x4e, 0x10065c6ae\ntest    al, al                                                         ; +0x53, 0x10065c6b3\njz      short loc_10065C6C3                                            ; +0x55, 0x10065c6b5\ncmp     dword ptr [r14+1Ch], 6                                         ; +0x57, 0x10065c6b7\nsetz    bl                                                             ; +0x5c, 0x10065c6bc\njmp     short loc_10065C6C3                                            ; +0x5f, 0x10065c6bf\nxor     ebx, ebx                                                       ; +0x61, 0x10065c6c1\nmov     eax, ebx                                                       ; +0x63, 0x10065c6c3\npop     rbx                                                            ; +0x65, 0x10065c6c5\npop     r14                                                            ; +0x66, 0x10065c6c6\npop     rbp                                                            ; +0x68, 0x10065c6c8\nretn                                                                   ; +0x69, 0x10065c6c9", "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"}