{"type": "func", "start": 13431672, "end": 13432096, "name": "EditorSoundConfigInfoLayer::downloadEditorSoundFinished", "pseudocode": "// \n// EditorSoundConfigInfoLayer::downloadEditorSoundFinished from 0xccf378 to 0xccf520 (424 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf524\n// > <???> @ 0xc0778\n// > <???> @ 0x14fee58\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:26 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFinished(\n        EditorSoundConfigInfoLayer *this,\n        GJEditorSoundConfig *a2)\n{\n  GJEditorSoundConfig *v4; // x0\n  cocos2d::CCNode **v6; // x1\n  __int64 v7; // x0\n  EditorSFXManager *v8; // x0\n  EditorSFXManager *v9; // x0\n  GJEditorSoundConfig *FavoriteConfig; // x0\n  cocos2d::CCNode **v11; // x0\n  __int64 v12; // x0\n  __int64 v13[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v14; // [xsp+40h] [xbp+40h]\n\n  if ( a2 )\n  {\n    v4 = *((GJEditorSoundConfig **)this + 136);\n    if ( !v4 || *((_DWORD *)a2 + 79) == *((_DWORD *)v4 + 79) )\n    {\n      v6 = *((cocos2d::CCNode ***)this + 139);\n      *((_BYTE *)this + 1120) = 0;\n      if ( v6 )\n      {\n        LoadingCircle::fadeAndRemove(v6);\n        *((_QWORD *)this + 139) = 0;\n        v4 = *((GJEditorSoundConfig **)this + 136);\n      }\n      if ( v4 )\n      {\n        GJEditorSoundConfig::copyServerFields(v4, a2);\n        v7 = *((_QWORD *)this + 136);\n        if ( *(_BYTE *)(v7 + 324) )\n          *(_DWORD *)(v7 + 332) = *(_DWORD *)(v7 + 328);\n        v8 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v7);\n        if ( v8 )\n        {\n          v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n          FavoriteConfig = (GJEditorSoundConfig *)EditorSFXManager::getFavoriteConfig(\n                                                    v9,\n                                                    *(_DWORD *)(*((_QWORD *)this + 136) + 316LL));\n          if ( FavoriteConfig )\n          {\n            if ( FavoriteConfig != *((GJEditorSoundConfig **)this + 136) )\n              GJEditorSoundConfig::copyServerFields(FavoriteConfig, a2);\n          }\n        }\n      }\n      EditorSoundConfigInfoLayer::refreshActionButtons(this);\n      EditorSoundConfigInfoLayer::buildSummary(this);\n      if ( *((_BYTE *)this + 1121) )\n      {\n        *((_BYTE *)this + 1121) = 0;\n        EditorSoundConfigInfoLayer::onFavorite(this, nullptr);\n      }\n    }\n  }\n  else\n  {\n    v11 = *((cocos2d::CCNode ***)this + 139);\n    *((_BYTE *)this + 1120) = 0;\n    if ( v11 )\n    {\n      LoadingCircle::fadeAndRemove(v11);\n      *((_QWORD *)this + 139) = 0;\n    }\n    v13[0] = 0;\n    v13[1] = 0;\n    v14 = nullptr;\n    std::string::__init(v13, \"Download failed.\", 0x10u);\n    v12 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Error\", (char *)v13, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12);\n    if ( (v13[0] & 1) != 0 )\n      operator delete(v14);\n    EditorSoundConfigInfoLayer::refreshActionButtons(this);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::downloadEditorSoundFinished from 0xccf378 to 0xccf520 (424 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf524\n; > <???> @ 0xc0778\n; > <???> @ 0x14fee58\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:26 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xccf378\nMOV             X29, SP                                                ; +0x4, 0xccf37c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xccf380\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xccf384\nMOV             X19, X0                                                ; +0x10, 0xccf388\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0xccf38c\nMOV             X21, X1                                                ; +0x18, 0xccf390\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xccf394\nLDR             X0, [X0]                                               ; +0x20, 0xccf398\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x24, 0xccf39c\nCBZ             X1, loc_CCF47C                                         ; +0x28, 0xccf3a0\nLDR             X0, [X19,#0x440]                                       ; +0x2c, 0xccf3a4\nCBZ             X0, loc_CCF3E0                                         ; +0x30, 0xccf3a8\nLDR             W2, [X1,#0x13C]                                        ; +0x34, 0xccf3ac\nLDR             W1, [X0,#0x13C]                                        ; +0x38, 0xccf3b0\nCMP             W2, W1                                                 ; +0x3c, 0xccf3b4\nB.EQ            loc_CCF3E0                                             ; +0x40, 0xccf3b8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x44, 0xccf3bc\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x48, 0xccf3c0\nLDR             X0, [X20]                                              ; +0x4c, 0xccf3c4\nCMP             X1, X0                                                 ; +0x50, 0xccf3c8\nB.NE            loc_CCF500                                             ; +0x54, 0xccf3cc\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x58, 0xccf3d0\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x5c, 0xccf3d4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x60, 0xccf3d8\nRET                                                                    ; +0x64, 0xccf3dc\nLDR             X1, [X19,#0x458]                                       ; +0x68, 0xccf3e0\nSTRB            WZR, [X19,#0x460]                                      ; +0x6c, 0xccf3e4\nCBZ             X1, loc_CCF3FC                                         ; +0x70, 0xccf3e8\nMOV             X0, X1; this                                           ; +0x74, 0xccf3ec\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x78, 0xccf3f0\nSTR             XZR, [X19,#0x458]                                      ; +0x7c, 0xccf3f4\nLDR             X0, [X19,#0x440]; this                                 ; +0x80, 0xccf3f8\nCBZ             X0, loc_CCF444                                         ; +0x84, 0xccf3fc\nMOV             X1, X21; GJEditorSoundConfig *                         ; +0x88, 0xccf400\nBL              _ZN19GJEditorSoundConfig16copyServerFieldsEPS_; GJEditorSoundConfig::copyServerFields(GJEditorSoundConfig*) ; +0x8c, 0xccf404\nLDR             X0, [X19,#0x440]; this                                 ; +0x90, 0xccf408\nLDRB            W1, [X0,#0x144]                                        ; +0x94, 0xccf40c\nCBNZ            W1, loc_CCF470                                         ; +0x98, 0xccf410\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x9c, 0xccf414\nCBZ             X0, loc_CCF444                                         ; +0xa0, 0xccf418\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0xa4, 0xccf41c\nLDR             X1, [X19,#0x440]                                       ; +0xa8, 0xccf420\nLDR             W1, [X1,#0x13C]; int                                   ; +0xac, 0xccf424\nBL              _ZN16EditorSFXManager17getFavoriteConfigEi; EditorSFXManager::getFavoriteConfig(int) ; +0xb0, 0xccf428\nCBZ             X0, loc_CCF444                                         ; +0xb4, 0xccf42c\nLDR             X2, [X19,#0x440]                                       ; +0xb8, 0xccf430\nCMP             X0, X2                                                 ; +0xbc, 0xccf434\nB.EQ            loc_CCF444                                             ; +0xc0, 0xccf438\nMOV             X1, X21; GJEditorSoundConfig *                         ; +0xc4, 0xccf43c\nBL              _ZN19GJEditorSoundConfig16copyServerFieldsEPS_; GJEditorSoundConfig::copyServerFields(GJEditorSoundConfig*) ; +0xc8, 0xccf440\nMOV             X0, X19; this                                          ; +0xcc, 0xccf444\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0xd0, 0xccf448\nMOV             X0, X19; this                                          ; +0xd4, 0xccf44c\nBL              _ZN26EditorSoundConfigInfoLayer12buildSummaryEv; EditorSoundConfigInfoLayer::buildSummary(void) ; +0xd8, 0xccf450\nLDRB            W0, [X19,#0x461]                                       ; +0xdc, 0xccf454\nCBZ             W0, loc_CCF3BC                                         ; +0xe0, 0xccf458\nSTRB            WZR, [X19,#0x461]                                      ; +0xe4, 0xccf45c\nMOV             X0, X19; this                                          ; +0xe8, 0xccf460\nMOV             X1, #0; cocos2d::CCObject *                            ; +0xec, 0xccf464\nBL              _ZN26EditorSoundConfigInfoLayer10onFavoriteEPN7cocos2d8CCObjectE; EditorSoundConfigInfoLayer::onFavorite(cocos2d::CCObject *) ; +0xf0, 0xccf468\nB               loc_CCF3BC                                             ; +0xf4, 0xccf46c\nLDR             W1, [X0,#0x148]                                        ; +0xf8, 0xccf470\nSTR             W1, [X0,#0x14C]                                        ; +0xfc, 0xccf474\nB               loc_CCF414                                             ; +0x100, 0xccf478\nLDR             X0, [X19,#0x458]; this                                 ; +0x104, 0xccf47c\nSTRB            WZR, [X19,#0x460]                                      ; +0x108, 0xccf480\nCBZ             X0, loc_CCF490                                         ; +0x10c, 0xccf484\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x110, 0xccf488\nSTR             XZR, [X19,#0x458]                                      ; +0x114, 0xccf48c\nADD             X21, X29, #0x50+var_20                                 ; +0x118, 0xccf490\nADRP            X1, #aDownloadFailed_3@PAGE; \"Download failed.\"        ; +0x11c, 0xccf494\nMOV             X0, X21                                                ; +0x120, 0xccf498\nADD             X1, X1, #aDownloadFailed_3@PAGEOFF; \"Download failed.\" ; +0x124, 0xccf49c\nMOV             X2, #0x10                                              ; +0x128, 0xccf4a0\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x12c, 0xccf4a4\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x130, 0xccf4a8\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x134, 0xccf4ac\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x138, 0xccf4b0\nADRP            X1, #(aInternalServer+0x10)@PAGE; \"Error\"              ; +0x13c, 0xccf4b4\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0x140, 0xccf4b8\nMOV             X0, #0                                                 ; +0x144, 0xccf4bc\nADD             X1, X1, #(aInternalServer+0x10)@PAGEOFF; \"Error\"       ; +0x148, 0xccf4c0\nMOV             X2, X21                                                ; +0x14c, 0xccf4c4\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0x150, 0xccf4c8\nMOV             X4, #0                                                 ; +0x154, 0xccf4cc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x158, 0xccf4d0\nLDR             X1, [X0]                                               ; +0x15c, 0xccf4d4\nLDR             X1, [X1,#0x520]                                        ; +0x160, 0xccf4d8\nBLR             X1                                                     ; +0x164, 0xccf4dc\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x168, 0xccf4e0\nTBNZ            W0, #0, loc_CCF4F4                                     ; +0x16c, 0xccf4e4\nMOV             X0, X19; this                                          ; +0x170, 0xccf4e8\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0x174, 0xccf4ec\nB               loc_CCF3BC                                             ; +0x178, 0xccf4f0\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x17c, 0xccf4f4\nBL              _ZdlPv; operator delete(void *)                        ; +0x180, 0xccf4f8\nB               loc_CCF4E8                                             ; +0x184, 0xccf4fc\nBL              .__stack_chk_fail                                      ; +0x188, 0xccf500\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x18c, 0xccf504\nMOV             X19, X0                                                ; +0x190, 0xccf508\nTBZ             W1, #0, loc_CCF518                                     ; +0x194, 0xccf50c\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x198, 0xccf510\nBL              _ZdlPv; operator delete(void *)                        ; +0x19c, 0xccf514\nMOV             X0, X19                                                ; +0x1a0, 0xccf518\nBL              _Unwind_Resume                                         ; +0x1a4, 0xccf51c", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf524", "<???> @ 0xc0778", "<???> @ 0x14fee58"], "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"}