{"type": "func", "start": 7884384, "end": 7884478, "name": "EditorSoundConfigInfoLayer::startDownload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::startDownload from 0x784e60 to 0x784ebe (94 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::onUpdate @ 0x784ebe\n// > EditorSoundConfigInfoLayer::onFavorite @ 0x785244\n// > EditorSoundConfigInfoLayer::init @ 0x7882ca\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:31 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::startDownload(int this)\n{\n  int v1; // r4\n  int v2; // r3\n  cocos2d::CCLayerColor *v3; // r0\n  int v4; // r3\n  GameLevelManager *refreshed; // r0\n  GameLevelManager *v6; // r0\n  GameLevelManager *v7; // r0\n\n  v1 = this;\n  if ( !*(_BYTE *)(this + 764) )\n  {\n    v2 = *(_DWORD *)(this + 748);\n    if ( v2 )\n    {\n      if ( *(int *)(v2 + 264) > 0 )\n      {\n        *(_BYTE *)(this + 764) = 1;\n        v3 = LoadingCircle::create((LoadingCircle *)this);\n        v4 = *(_DWORD *)(v1 + 460);\n        *(_DWORD *)(v1 + 760) = v3;\n        *((_DWORD *)v3 + 111) = v4;\n        LoadingCircle::show(*(cocos2d::CCNode ***)(v1 + 760));\n        refreshed = (GameLevelManager *)EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v1);\n        v6 = (GameLevelManager *)GameLevelManager::sharedState(refreshed);\n        *((_DWORD *)v6 + 219) = v1 + 712;\n        v7 = (GameLevelManager *)GameLevelManager::sharedState(v6);\n        return GameLevelManager::downloadEditorSoundConfig(v7, *(const char **)(*(_DWORD *)(v1 + 748) + 264));\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::startDownload from 0x784e60 to 0x784ebe (94 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::onUpdate @ 0x784ebe\n; > EditorSoundConfigInfoLayer::onFavorite @ 0x785244\n; > EditorSoundConfigInfoLayer::init @ 0x7882ca\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:31 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x784e60\nMOV             R4, R0                                                 ; +0x2, 0x784e62\nLDRB.W          R3, [R0,#0x2FC]                                        ; +0x4, 0x784e64\nCBNZ            R3, locret_784EBC                                      ; +0x8, 0x784e68\nLDR.W           R3, [R0,#0x2EC]                                        ; +0xa, 0x784e6a\nCBZ             R3, locret_784EBC                                      ; +0xe, 0x784e6e\nLDR.W           R3, [R3,#0x108]                                        ; +0x10, 0x784e70\nCMP             R3, #0                                                 ; +0x14, 0x784e74\nBLE             locret_784EBC                                          ; +0x16, 0x784e76\nMOVS            R3, #1                                                 ; +0x18, 0x784e78\nSTRB.W          R3, [R0,#0x2FC]                                        ; +0x1a, 0x784e7a\nBL              _ZN13LoadingCircle6createEv; LoadingCircle::create(void) ; +0x1e, 0x784e7e\nLDR.W           R3, [R4,#0x1CC]                                        ; +0x22, 0x784e82\nSTR.W           R0, [R4,#0x2F8]                                        ; +0x26, 0x784e86\nSTR.W           R3, [R0,#0x1BC]                                        ; +0x2a, 0x784e8a\nLDR.W           R0, [R4,#0x2F8]; this                                  ; +0x2e, 0x784e8e\nBL              _ZN13LoadingCircle4showEv; LoadingCircle::show(void)   ; +0x32, 0x784e92\nMOV             R0, R4; this                                           ; +0x36, 0x784e96\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0x38, 0x784e98\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x3c, 0x784e9c\nADD.W           R3, R4, #0x2C8                                         ; +0x40, 0x784ea0\nSTR.W           R3, [R0,#0x36C]                                        ; +0x44, 0x784ea4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x48, 0x784ea8\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x4c, 0x784eac\nPOP.W           {R4,LR}                                                ; +0x50, 0x784eb0\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x54, 0x784eb4\nB.W             _ZN16GameLevelManager25downloadEditorSoundConfigEi; GameLevelManager::downloadEditorSoundConfig(int) ; +0x58, 0x784eb8\nPOP             {R4,PC}                                                ; +0x5c, 0x784ebc", "xrefs": ["EditorSoundConfigInfoLayer::onUpdate @ 0x784ebe", "EditorSoundConfigInfoLayer::onFavorite @ 0x785244", "EditorSoundConfigInfoLayer::init @ 0x7882ca"], "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"}