{"type": "func", "start": 13425572, "end": 13425704, "name": "EditorSoundConfigInfoLayer::startDownload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::startDownload from 0xccdba4 to 0xccdc28 (132 bytes)\n// \n// 4 xrefs:\n// > EditorSoundConfigInfoLayer::onUpdate @ 0xccdc28\n// > EditorSoundConfigInfoLayer::onFavorite @ 0xccdfe4\n// > EditorSoundConfigInfoLayer::init @ 0xcd216c\n// > <???> @ 0x6aa80\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:25 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::startDownload(__int64 this)\n{\n  __int64 v1; // x1\n  __int64 v2; // x19\n  __int64 v3; // x0\n  GameLevelManager *refreshed; // x0\n  GameLevelManager *v5; // x0\n  GameLevelManager *v6; // x0\n\n  if ( !*(_BYTE *)(this + 1120) )\n  {\n    v1 = *(_QWORD *)(this + 1088);\n    if ( v1 )\n    {\n      if ( *(int *)(v1 + 316) > 0 )\n      {\n        v2 = this;\n        *(_BYTE *)(this + 1120) = (unsigned __int8)&dword_0 + 1;\n        v3 = LoadingCircle::create((LoadingCircle *)((char *)&dword_0 + 1));\n        *(_QWORD *)(v2 + 1112) = v3;\n        *(_QWORD *)(v3 + 552) = *(_QWORD *)(v2 + 584);\n        LoadingCircle::show(*(cocos2d::CCNode ***)(v2 + 1112));\n        refreshed = (GameLevelManager *)EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v2);\n        v5 = (GameLevelManager *)GameLevelManager::sharedState(refreshed);\n        *((_QWORD *)v5 + 167) = v2 + 1016;\n        v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n        return GameLevelManager::downloadEditorSoundConfig(\n                 v6,\n                 (const char *)*(unsigned int *)(*(_QWORD *)(v2 + 1088) + 316LL));\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::startDownload from 0xccdba4 to 0xccdc28 (132 bytes)\n; \n; 4 xrefs:\n; > EditorSoundConfigInfoLayer::onUpdate @ 0xccdc28\n; > EditorSoundConfigInfoLayer::onFavorite @ 0xccdfe4\n; > EditorSoundConfigInfoLayer::init @ 0xcd216c\n; > <???> @ 0x6aa80\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:25 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xccdba4\nMOV             X29, SP                                                ; +0x4, 0xccdba8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xccdbac\nLDRB            W1, [X0,#0x460]                                        ; +0xc, 0xccdbb0\nCBNZ            W1, loc_CCDC1C                                         ; +0x10, 0xccdbb4\nLDR             X1, [X0,#0x440]                                        ; +0x14, 0xccdbb8\nCBZ             X1, loc_CCDC1C                                         ; +0x18, 0xccdbbc\nLDR             W1, [X1,#0x13C]                                        ; +0x1c, 0xccdbc0\nCMP             W1, WZR                                                ; +0x20, 0xccdbc4\nB.LE            loc_CCDC1C                                             ; +0x24, 0xccdbc8\nMOV             X19, X0                                                ; +0x28, 0xccdbcc\nMOV             W0, #(dword_0+1); this                                 ; +0x2c, 0xccdbd0\nSTRB            W0, [X19,#0x460]                                       ; +0x30, 0xccdbd4\nBL              _ZN13LoadingCircle6createEv; LoadingCircle::create(void) ; +0x34, 0xccdbd8\nSTR             X0, [X19,#0x458]                                       ; +0x38, 0xccdbdc\nLDR             X1, [X19,#0x248]                                       ; +0x3c, 0xccdbe0\nSTR             X1, [X0,#0x228]                                        ; +0x40, 0xccdbe4\nLDR             X0, [X19,#0x458]; this                                 ; +0x44, 0xccdbe8\nBL              _ZN13LoadingCircle4showEv; LoadingCircle::show(void)   ; +0x48, 0xccdbec\nMOV             X0, X19; this                                          ; +0x4c, 0xccdbf0\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0x50, 0xccdbf4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x54, 0xccdbf8\nADD             X1, X19, #0x3F8                                        ; +0x58, 0xccdbfc\nSTR             X1, [X0,#0x538]                                        ; +0x5c, 0xccdc00\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x60, 0xccdc04\nLDR             X1, [X19,#0x440]                                       ; +0x64, 0xccdc08\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x68, 0xccdc0c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x6c, 0xccdc10\nLDR             W1, [X1,#0x13C]; int                                   ; +0x70, 0xccdc14\nB               _ZN16GameLevelManager25downloadEditorSoundConfigEi; GameLevelManager::downloadEditorSoundConfig(int) ; +0x74, 0xccdc18\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x78, 0xccdc1c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x7c, 0xccdc20\nRET                                                                    ; +0x80, 0xccdc24", "xrefs": ["EditorSoundConfigInfoLayer::onUpdate @ 0xccdc28", "EditorSoundConfigInfoLayer::onFavorite @ 0xccdfe4", "EditorSoundConfigInfoLayer::init @ 0xcd216c", "<???> @ 0x6aa80"], "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"}