{"type": "func", "start": 7901748, "end": 7902040, "name": "EditorSoundConfigUploadPopup::uploadEditorSoundFinished", "pseudocode": "// \n// EditorSoundConfigUploadPopup::uploadEditorSoundFinished from 0x789234 to 0x789358 (292 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x789370\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:35 +0000\n// \n\nint __fastcall EditorSoundConfigUploadPopup::uploadEditorSoundFinished(\n        EditorSoundConfigUploadPopup *this,\n        const char *a2,\n        int a3)\n{\n  cocos2d::CCNode **v5; // r0\n  int v6; // r3\n  cocos2d::CCArray **v7; // r0\n  const char *v8; // r1\n  cocos2d::CCString *v9; // r0\n  char *CString; // r0\n  EditorSoundConfigInfoLayer *v11; // r7\n  const char *v12; // r8\n  size_t v13; // r0\n  int *v14; // r0\n  char v16[4]; // [sp+Ch] [bp-1Ch] BYREF\n  int v17; // [sp+10h] [bp-18h]\n  const char *v18; // [sp+14h] [bp-14h]\n  int v19[3]; // [sp+18h] [bp-10h] BYREF\n\n  *((_BYTE *)this + 732) = 0;\n  v5 = *((cocos2d::CCNode ***)this + 179);\n  if ( v5 )\n    v5 = (cocos2d::CCNode **)LoadingCircle::fadeAndRemove(v5, (int)a2, a3);\n  v6 = *((_DWORD *)this + 184);\n  *((_DWORD *)this + 179) = 0;\n  if ( *(int *)(v6 + 268) > 0 )\n  {\n    v7 = (cocos2d::CCArray **)EditorSFXManager::sharedState((EditorSFXManager *)v5);\n    EditorSFXManager::attachUploadedSoundID(v7, *(_DWORD *)(*((_DWORD *)this + 184) + 268), (int)a2);\n    if ( !*((_DWORD *)this + 192) )\n      *(_DWORD *)(*((_DWORD *)this + 184) + 308) = *((_DWORD *)this + 190);\n  }\n  v8 = *((const char **)this + 192);\n  *(_DWORD *)v16 = 0;\n  v17 = 0;\n  v18 = nullptr;\n  if ( (int)v8 <= 0 || a2 == v8 )\n    v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Sound pack uploaded.\\nPack ID: <cy>%i</c>\",\n                                a2);\n  else\n    v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Sound pack #%i was not found on the server.\\n\"\n                                                     \"Uploaded as a new pack: <cy>%i</c>\",\n                                v8,\n                                a2);\n  CString = (char *)cocos2d::CCString::getCString(v9);\n  std::string::assign((int *)v16, CString);\n  v11 = *((EditorSoundConfigInfoLayer **)this + 193);\n  (*(void (__fastcall **)(EditorSoundConfigUploadPopup *, _DWORD))(*(_DWORD *)this + 684))(this, 0);\n  if ( v11 )\n    EditorSoundConfigInfoLayer::reloadWindow(v11);\n  if ( (v16[0] & 1) != 0 )\n    v12 = v18;\n  else\n    v12 = &v16[1];\n  memset(v19, 0, sizeof(v19));\n  v13 = strlen(v12);\n  std::string::__init(v19, v12, v13);\n  v14 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Upload Complete\", (int)v19, (ButtonSprite *)\"OK\", nullptr);\n  (*(void (__fastcall **)(int *))(*v14 + 656))(v14);\n  std::string::~string((int)v19);\n  return std::string::~string((int)v16);\n}", "assembly": "; \n; EditorSoundConfigUploadPopup::uploadEditorSoundFinished from 0x789234 to 0x789358 (292 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x789370\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:35 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x789234\nSUB             SP, SP, #0x28                                          ; +0x4, 0x789238\nLDR             R5, =(__stack_chk_guard_ptr - 0x789244)                ; +0x6, 0x78923a\nMOV             R4, R0                                                 ; +0x8, 0x78923c\nMOV             R7, R1                                                 ; +0xa, 0x78923e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x789240\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x789242\nLDR             R3, [R5]                                               ; +0x10, 0x789244\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x12, 0x789246\nMOVS            R3, #0                                                 ; +0x14, 0x789248\nSTRB.W          R3, [R0,#0x2DC]                                        ; +0x16, 0x78924a\nMOV             R6, R3                                                 ; +0x1a, 0x78924e\nLDR.W           R0, [R0,#0x2CC]; this                                  ; +0x1c, 0x789250\nCBZ             R0, loc_78925A                                         ; +0x20, 0x789254\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x22, 0x789256\nLDR.W           R3, [R4,#0x2E0]                                        ; +0x26, 0x78925a\nSTR.W           R6, [R4,#0x2CC]                                        ; +0x2a, 0x78925e\nLDR.W           R3, [R3,#0x10C]                                        ; +0x2e, 0x789262\nCMP             R3, #0                                                 ; +0x32, 0x789266\nBLE             loc_78928E                                             ; +0x34, 0x789268\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x36, 0x78926a\nLDR.W           R3, [R4,#0x2E0]                                        ; +0x3a, 0x78926e\nMOV             R2, R7; int                                            ; +0x3e, 0x789272\nLDR.W           R1, [R3,#0x10C]; int                                   ; +0x40, 0x789274\nBL              _ZN16EditorSFXManager21attachUploadedSoundIDEii; EditorSFXManager::attachUploadedSoundID(int,int) ; +0x44, 0x789278\nLDR.W           R3, [R4,#0x300]                                        ; +0x48, 0x78927c\nCBNZ            R3, loc_78928E                                         ; +0x4c, 0x789280\nLDR.W           R3, [R4,#0x2E0]                                        ; +0x4e, 0x789282\nLDR.W           R2, [R4,#0x2F8]                                        ; +0x52, 0x789286\nSTR.W           R2, [R3,#0x134]                                        ; +0x56, 0x78928a\nLDR.W           R1, [R4,#0x300]; char *                                ; +0x5a, 0x78928e\nMOVS            R3, #0                                                 ; +0x5e, 0x789292\nADD             R6, SP, #0x28+var_1C                                   ; +0x60, 0x789294\nSTR             R3, [SP,#0x28+var_1C]                                  ; +0x62, 0x789296\nCMP             R1, R3                                                 ; +0x64, 0x789298\nSTR             R3, [SP,#0x28+var_18]                                  ; +0x66, 0x78929a\nSTR             R3, [SP,#0x28+var_14]                                  ; +0x68, 0x78929c\nBLE             loc_7892CC                                             ; +0x6a, 0x78929e\nCMP             R7, R1                                                 ; +0x6c, 0x7892a0\nBEQ             loc_7892CC                                             ; +0x6e, 0x7892a2\nLDR             R0, =(aSoundPackIWasN - 0x7892AC); \"Sound pack #%i was not found on the ser\"... ; +0x70, 0x7892a4\nMOV             R2, R7                                                 ; +0x72, 0x7892a6\nADD             R0, PC; \"Sound pack #%i was not found on the ser\"...   ; +0x74, 0x7892a8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x76, 0x7892aa\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x7a, 0x7892ae\nMOV             R1, R0; char *                                         ; +0x7e, 0x7892b2\nMOV             R0, R6; int                                            ; +0x80, 0x7892b4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x82, 0x7892b6\nLDR             R3, [R4]                                               ; +0x86, 0x7892ba\nMOV             R0, R4                                                 ; +0x88, 0x7892bc\nMOVS            R1, #0                                                 ; +0x8a, 0x7892be\nLDR.W           R7, [R4,#0x304]                                        ; +0x8c, 0x7892c0\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x90, 0x7892c4\nBLX             R3                                                     ; +0x94, 0x7892c8\nB               loc_7892D8                                             ; +0x96, 0x7892ca\nLDR             R0, =(aSoundPackUploa - 0x7892D4); \"Sound pack uploaded.\\nPack ID: <cy>%i</\"... ; +0x98, 0x7892cc\nMOV             R1, R7; char *                                         ; +0x9a, 0x7892ce\nADD             R0, PC; \"Sound pack uploaded.\\nPack ID: <cy>%i</\"...   ; +0x9c, 0x7892d0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x9e, 0x7892d2\nB               loc_7892AE                                             ; +0xa2, 0x7892d6\nCBNZ            R7, loc_7892E8                                         ; +0xa4, 0x7892d8\nLDRB.W          R3, [SP,#0x28+var_1C]                                  ; +0xa6, 0x7892da\nLSLS            R3, R3, #0x1F                                          ; +0xaa, 0x7892de\nBMI             loc_7892F0                                             ; +0xac, 0x7892e0\nADD.W           R8, SP, #0x28+var_1C+1                                 ; +0xae, 0x7892e2\nB               loc_7892F4                                             ; +0xb2, 0x7892e6\nMOV             R0, R7; this                                           ; +0xb4, 0x7892e8\nBL              _ZN26EditorSoundConfigInfoLayer12reloadWindowEv; EditorSoundConfigInfoLayer::reloadWindow(void) ; +0xb6, 0x7892ea\nB               loc_7892DA                                             ; +0xba, 0x7892ee\nLDR.W           R8, [SP,#0x28+var_14]                                  ; +0xbc, 0x7892f0\nMOV             R0, R8; char *                                         ; +0xc0, 0x7892f4\nMOVS            R4, #0                                                 ; +0xc2, 0x7892f6\nSTR             R4, [SP,#0x28+var_10]                                  ; +0xc4, 0x7892f8\nADD             R7, SP, #0x28+var_10                                   ; +0xc6, 0x7892fa\nSTR             R4, [SP,#0x28+var_C]                                   ; +0xc8, 0x7892fc\nSTR             R4, [SP,#0x28+var_8]                                   ; +0xca, 0x7892fe\nBLX             strlen                                                 ; +0xcc, 0x789300\nMOV             R1, R8                                                 ; +0xd0, 0x789304\nMOV             R2, R0                                                 ; +0xd2, 0x789306\nMOV             R0, R7                                                 ; +0xd4, 0x789308\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xd6, 0x78930a\nLDR             R1, =(aUploadComplete - 0x78931C); \"Upload Complete\"   ; +0xda, 0x78930e\nMOV             R0, R4                                                 ; +0xdc, 0x789310\nLDR             R3, =(aOk - 0x78931E); \"OK\"                            ; +0xde, 0x789312\nMOV             R2, R7                                                 ; +0xe0, 0x789314\nSTR             R4, [SP,#0x28+var_28]                                  ; +0xe2, 0x789316\nADD             R1, PC; \"Upload Complete\"                              ; +0xe4, 0x789318\nADD             R3, PC; \"OK\"                                           ; +0xe6, 0x78931a\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0xe8, 0x78931c\nLDR             R3, [R0]                                               ; +0xec, 0x789320\nLDR.W           R3, [R3,#0x290]                                        ; +0xee, 0x789322\nBLX             R3                                                     ; +0xf2, 0x789326\nMOV             R0, R7                                                 ; +0xf4, 0x789328\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf6, 0x78932a\nMOV             R0, R6                                                 ; +0xfa, 0x78932e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfc, 0x789330\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x100, 0x789334\nLDR             R3, [R5]                                               ; +0x102, 0x789336\nCMP             R2, R3                                                 ; +0x104, 0x789338\nBEQ             loc_789352                                             ; +0x106, 0x78933a\nBLX             __stack_chk_fail                                       ; +0x108, 0x78933c\nMOV             R0, R7                                                 ; +0x10c, 0x789340\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x10e, 0x789342\nB               loc_789348                                             ; +0x112, 0x789346\nMOV             R0, R6                                                 ; +0x114, 0x789348\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x116, 0x78934a\nBL              __cxa_end_cleanup                                      ; +0x11a, 0x78934e\nADD             SP, SP, #0x28 ; '('                                    ; +0x11e, 0x789352\nPOP.W           {R4-R8,PC}                                             ; +0x120, 0x789354", "xrefs": ["`non-virtual thunk to'EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x789370"], "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"}