{"type": "func", "start": 4296876552, "end": 4296876688, "name": "AudioAssetsBrowser::trySetupAudioBrowser", "pseudocode": "// \n// AudioAssetsBrowser::trySetupAudioBrowser from 0x1001d2208 to 0x1001d2290 (136 bytes)\n// \n// 2 xrefs:\n// > AudioAssetsBrowser::musicActionFinished @ 0x1001d2290\n// > sub_1001D2294 @ 0x1001d2298\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 AudioAssetsBrowser::trySetupAudioBrowser(AudioAssetsBrowser *a1)\n{\n  cocos2d::CCDictionary *m_sfxObjects; // x21\n  MusicDownloadManager *v3; // x0\n  std::size_t size; // x20\n  MusicDownloadManager *v5; // x0\n  MusicDownloadManager *v6; // x0\n\n  m_sfxObjects = MusicDownloadManager::sharedState()->m_sfxObjects;\n  v3 = MusicDownloadManager::sharedState();\n  size = (unsigned __int8)v3->m_customContentURL.m_data.m_short.shortStorage.__elems_[22];\n  if ( m_sfxObjects )\n  {\n    if ( (size & 0x80) != 0 )\n    {\n      if ( v3->m_customContentURL.m_data.m_long.size )\n        goto LABEL_4;\n    }\n    else if ( v3->m_customContentURL.m_data.m_short.shortStorage.__elems_[22] )\n    {\nLABEL_4:\n      AudioAssetsBrowser::setupList(a1);\n      return;\n    }\n    v6 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::getCustomContentURL(v6);\n    goto LABEL_4;\n  }\n  if ( (size & 0x80) != 0 )\n    size = v3->m_customContentURL.m_data.m_long.size;\n  v5 = MusicDownloadManager::sharedState();\n  if ( size )\n    MusicDownloadManager::downloadSFXLibrary(v5);\n  else\n    MusicDownloadManager::getCustomContentURL(v5);\n}", "assembly": "; \n; AudioAssetsBrowser::trySetupAudioBrowser from 0x1001d2208 to 0x1001d2290 (136 bytes)\n; \n; 2 xrefs:\n; > AudioAssetsBrowser::musicActionFinished @ 0x1001d2290\n; > sub_1001D2294 @ 0x1001d2298\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001d2208\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001d220c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001d2210\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001d2214\nMOV             X19, X0                                                ; +0x10, 0x1001d2218\nBL              MusicDownloadManager__sharedState                      ; +0x14, 0x1001d221c\nLDR             X21, [X0,#0x188]                                       ; +0x18, 0x1001d2220\nBL              MusicDownloadManager__sharedState                      ; +0x1c, 0x1001d2224\nLDRB            W20, [X0,#0x187]                                       ; +0x20, 0x1001d2228\nCBZ             X21, loc_1001D224C                                     ; +0x24, 0x1001d222c\nTBNZ            W20, #7, loc_1001D226C                                 ; +0x28, 0x1001d2230\nCBZ             X20, loc_1001D2274                                     ; +0x2c, 0x1001d2234\nMOV             X0, X19                                                ; +0x30, 0x1001d2238\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x34, 0x1001d223c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x38, 0x1001d2240\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x3c, 0x1001d2244\nB               AudioAssetsBrowser__setupList                          ; +0x40, 0x1001d2248\nTBZ             W20, #7, loc_1001D2254                                 ; +0x44, 0x1001d224c\nLDR             X20, [X0,#0x178]                                       ; +0x48, 0x1001d2250\nBL              MusicDownloadManager__sharedState                      ; +0x4c, 0x1001d2254\nCBZ             X20, loc_1001D2280                                     ; +0x50, 0x1001d2258\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1001d225c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1001d2260\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1001d2264\nB               MusicDownloadManager__downloadSFXLibrary               ; +0x60, 0x1001d2268\nLDR             X20, [X0,#0x178]                                       ; +0x64, 0x1001d226c\nCBNZ            X20, loc_1001D2238                                     ; +0x68, 0x1001d2270\nBL              MusicDownloadManager__sharedState                      ; +0x6c, 0x1001d2274\nBL              MusicDownloadManager__getCustomContentURL              ; +0x70, 0x1001d2278\nB               loc_1001D2238                                          ; +0x74, 0x1001d227c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x1001d2280\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x1001d2284\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x80, 0x1001d2288\nB               MusicDownloadManager__getCustomContentURL              ; +0x84, 0x1001d228c", "xrefs": ["AudioAssetsBrowser::musicActionFinished @ 0x1001d2290", "sub_1001D2294 @ 0x1001d2298"], "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"}