{"type": "func", "start": 13448504, "end": 13448600, "name": "EditorSoundConfigInfoLayer::startSFXDownload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::startSFXDownload from 0xcd3538 to 0xcd3598 (96 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd3aa8\n// > <???> @ 0x65ae8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:28 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::startSFXDownload(EditorSoundConfigInfoLayer *this)\n{\n  __int64 v2; // x2\n  __int64 v3; // x1\n  cocos2d::CCArray **v5; // x0\n  MusicDownloadDelegate *v6; // x0\n  MusicDownloadManager *v7; // x0\n\n  v2 = MusicDownloadManager::sharedState(this) + 368;\n  v3 = *(_BYTE *)v2 >> 1;\n  if ( (*(_BYTE *)v2 & 1) != 0 )\n    v3 = *(_QWORD *)(v2 + 8);\n  if ( v3 )\n    return EditorSoundConfigInfoLayer::downloadMissingSFX(this);\n  *((_BYTE *)this + 1122) = (unsigned __int8)&dword_0 + 1;\n  v5 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)((char *)&dword_0 + 1));\n  v6 = MusicDownloadManager::addMusicDownloadDelegate(v5, (EditorSoundConfigInfoLayer *)((char *)this + 1080));\n  v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6);\n  return MusicDownloadManager::getCustomContentURL(v7);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::startSFXDownload from 0xcd3538 to 0xcd3598 (96 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd3aa8\n; > <???> @ 0x65ae8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:28 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xcd3538\nMOV             X29, SP                                                ; +0x4, 0xcd353c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xcd3540\nMOV             X19, X0                                                ; +0xc, 0xcd3544\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x10, 0xcd3548\nADD             X2, X0, #0x170                                         ; +0x14, 0xcd354c\nLDRB            W0, [X0,#0x170]                                        ; +0x18, 0xcd3550\nUBFX            X1, X0, #1, #7                                         ; +0x1c, 0xcd3554\nTBZ             W0, #0, loc_CD3560                                     ; +0x20, 0xcd3558\nLDR             X1, [X2,#8]                                            ; +0x24, 0xcd355c\nCBZ             X1, loc_CD3574                                         ; +0x28, 0xcd3560\nMOV             X0, X19; this                                          ; +0x2c, 0xcd3564\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x30, 0xcd3568\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x34, 0xcd356c\nB               _ZN26EditorSoundConfigInfoLayer18downloadMissingSFXEv; EditorSoundConfigInfoLayer::downloadMissingSFX(void) ; +0x38, 0xcd3570\nMOV             W0, #(dword_0+1); this                                 ; +0x3c, 0xcd3574\nSTRB            W0, [X19,#0x462]                                       ; +0x40, 0xcd3578\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x44, 0xcd357c\nADD             X1, X19, #0x438; MusicDownloadDelegate *               ; +0x48, 0xcd3580\nBL              _ZN20MusicDownloadManager24addMusicDownloadDelegateEP21MusicDownloadDelegate; MusicDownloadManager::addMusicDownloadDelegate(MusicDownloadDelegate *) ; +0x4c, 0xcd3584\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x50, 0xcd3588\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0xcd358c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0xcd3590\nB               _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x5c, 0xcd3594", "xrefs": ["EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd3aa8", "<???> @ 0x65ae8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}