{"type": "func", "start": 7899048, "end": 7899112, "name": "EditorSoundConfigInfoLayer::startSFXDownload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::startSFXDownload from 0x7887a8 to 0x7887e8 (64 bytes)\n// \n// 1 xrefs:\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889be\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:34 +0000\n// \n\nchar **__fastcall EditorSoundConfigInfoLayer::startSFXDownload(EditorSoundConfigInfoLayer *this)\n{\n  int v2; // r0\n  int v3; // r3\n  int v4; // r3\n  cocos2d::CCArray **v5; // r0\n  MusicDownloadManager *v6; // r0\n  MusicDownloadManager *v7; // r0\n\n  v2 = MusicDownloadManager::sharedState(this);\n  v3 = *(unsigned __int8 *)(v2 + 288);\n  if ( (v3 & 1) != 0 )\n    v4 = *(_DWORD *)(v2 + 292);\n  else\n    v4 = v3 >> 1;\n  if ( v4 )\n    return EditorSoundConfigInfoLayer::downloadMissingSFX(this);\n  *((_BYTE *)this + 766) = 1;\n  v5 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)v2);\n  v6 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate(\n                                 v5,\n                                 (EditorSoundConfigInfoLayer *)((char *)this + 744));\n  v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6);\n  return (char **)MusicDownloadManager::getCustomContentURL(v7);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::startSFXDownload from 0x7887a8 to 0x7887e8 (64 bytes)\n; \n; 1 xrefs:\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889be\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:34 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x7887a8\nMOV             R4, R0                                                 ; +0x2, 0x7887aa\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x4, 0x7887ac\nLDRB.W          R3, [R0,#0x120]                                        ; +0x8, 0x7887b0\nLSLS            R2, R3, #0x1F                                          ; +0xc, 0x7887b4\nITE PL                                                                 ; +0xe, 0x7887b6\nASRPL           R3, R3, #1                                             ; +0x10, 0x7887b8\nLDRMI.W         R3, [R0,#0x124]                                        ; +0x12, 0x7887ba\nCBNZ            R3, loc_7887DE                                         ; +0x16, 0x7887be\nMOVS            R3, #1                                                 ; +0x18, 0x7887c0\nSTRB.W          R3, [R4,#0x2FE]                                        ; +0x1a, 0x7887c2\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x1e, 0x7887c6\nADD.W           R1, R4, #0x2E8; MusicDownloadDelegate *                ; +0x22, 0x7887ca\nBL              _ZN20MusicDownloadManager24addMusicDownloadDelegateEP21MusicDownloadDelegate; MusicDownloadManager::addMusicDownloadDelegate(MusicDownloadDelegate *) ; +0x26, 0x7887ce\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x2a, 0x7887d2\nPOP.W           {R4,LR}                                                ; +0x2e, 0x7887d6\nB.W             _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x32, 0x7887da\nMOV             R0, R4; this                                           ; +0x36, 0x7887de\nPOP.W           {R4,LR}                                                ; +0x38, 0x7887e0\nB.W             _ZN26EditorSoundConfigInfoLayer18downloadMissingSFXEv; EditorSoundConfigInfoLayer::downloadMissingSFX(void) ; +0x3c, 0x7887e4", "xrefs": ["EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889be"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}