{"type": "func", "start": 7890108, "end": 7890314, "name": "EditorSoundConfigInfoLayer::uploadActionFinished", "pseudocode": "// \n// EditorSoundConfigInfoLayer::uploadActionFinished from 0x7864bc to 0x78658a (206 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::uploadActionFinished @ 0x786598\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:32 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::uploadActionFinished(EditorSoundConfigInfoLayer *this, int a2, int a3)\n{\n  int result; // r0\n  int v5; // r3\n  int v6; // r4\n  cocos2d::CCArray **v7; // r0\n  int v8; // r5\n  int v9; // r1\n  int v10; // r5\n  int v11; // r2\n  int v12; // r3\n  int v13[3]; // [sp+0h] [bp-14h] BYREF\n\n  result = _stack_chk_guard;\n  if ( a3 == 73 )\n  {\n    v5 = *((_DWORD *)this + 187);\n    if ( v5 )\n    {\n      v6 = *(_DWORD *)(v5 + 264);\n      if ( v6 == a2 )\n      {\n        v7 = (cocos2d::CCArray **)EditorSFXManager::sharedState(_stack_chk_guard);\n        result = EditorSFXManager::getMyConfigForSoundID(v7, v6);\n        v8 = result;\n        if ( result )\n        {\n          v9 = *((_DWORD *)this + 187);\n          if ( result != v9 )\n          {\n            std::string::basic_string(v13, v9 + 336);\n            std::string::operator=((unsigned __int8 *)(v8 + 336), (unsigned __int8 *)v13);\n            std::string::~string((int)v13);\n            std::string::basic_string(v13, *((_DWORD *)this + 187) + 348);\n            std::string::operator=((unsigned __int8 *)(v8 + 348), (unsigned __int8 *)v13);\n            result = std::string::~string((int)v13);\n          }\n        }\n        v10 = *((_DWORD *)this + 201);\n        if ( v10 )\n        {\n          memset(v13, 0, sizeof(v13));\n          std::string::__init(v13, \"Description updated!\", 0x14u);\n          UploadActionPopup::showSuccessMessage(v10, (const char *)v13, v11, v12);\n          result = std::string::~string((int)v13);\n          *(_DWORD *)(*((_DWORD *)this + 201) + 520) = 0;\n          *((_DWORD *)this + 201) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::uploadActionFinished from 0x7864bc to 0x78658a (206 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::uploadActionFinished @ 0x786598\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:32 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7864C6)                ; +0x0, 0x7864bc\nCMP             R2, #0x49 ; 'I'                                        ; +0x2, 0x7864be\nPUSH            {R4-R7,LR}                                             ; +0x4, 0x7864c0\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x7864c2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x7864c4\nMOV             R7, R0                                                 ; +0xa, 0x7864c6\nSUB             SP, SP, #0x14                                          ; +0xc, 0x7864c8\nLDR             R0, [R3]; this                                         ; +0xe, 0x7864ca\nMOV             R6, R3                                                 ; +0x10, 0x7864cc\nSTR             R0, [SP,#0x14+var_8]                                   ; +0x12, 0x7864ce\nBNE             loc_78657A                                             ; +0x14, 0x7864d0\nLDR.W           R3, [R7,#0x2EC]                                        ; +0x16, 0x7864d2\nCMP             R3, #0                                                 ; +0x1a, 0x7864d6\nBEQ             loc_78657A                                             ; +0x1c, 0x7864d8\nLDR.W           R4, [R3,#0x108]                                        ; +0x1e, 0x7864da\nCMP             R4, R1                                                 ; +0x22, 0x7864de\nBNE             loc_78657A                                             ; +0x24, 0x7864e0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x26, 0x7864e2\nMOV             R1, R4; int                                            ; +0x2a, 0x7864e6\nBL              _ZN16EditorSFXManager21getMyConfigForSoundIDEi; EditorSFXManager::getMyConfigForSoundID(int) ; +0x2c, 0x7864e8\nMOV             R5, R0                                                 ; +0x30, 0x7864ec\nCBZ             R0, loc_786532                                         ; +0x32, 0x7864ee\nLDR.W           R1, [R7,#0x2EC]                                        ; +0x34, 0x7864f0\nCMP             R5, R1                                                 ; +0x38, 0x7864f4\nBEQ             loc_786532                                             ; +0x3a, 0x7864f6\nADD.W           R1, R1, #0x150                                         ; +0x3c, 0x7864f8\nMOV             R0, SP                                                 ; +0x40, 0x7864fc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x42, 0x7864fe\nADD.W           R0, R5, #0x150                                         ; +0x46, 0x786502\nMOV             R1, SP                                                 ; +0x4a, 0x786506\nMOV             R4, SP                                                 ; +0x4c, 0x786508\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x4e, 0x78650a\nMOV             R0, SP                                                 ; +0x52, 0x78650e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x786510\nLDR.W           R1, [R7,#0x2EC]                                        ; +0x58, 0x786514\nMOV             R0, SP                                                 ; +0x5c, 0x786518\nADD.W           R1, R1, #0x15C                                         ; +0x5e, 0x78651a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x62, 0x78651e\nADD.W           R0, R5, #0x15C                                         ; +0x66, 0x786522\nMOV             R1, SP                                                 ; +0x6a, 0x786526\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x6c, 0x786528\nMOV             R0, SP                                                 ; +0x70, 0x78652c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x72, 0x78652e\nLDR.W           R5, [R7,#0x324]                                        ; +0x76, 0x786532\nCBZ             R5, loc_78657A                                         ; +0x7a, 0x786536\nLDR             R1, =(aDescriptionUpd - 0x786544); \"Description updated!\" ; +0x7c, 0x786538\nMOV             R0, SP                                                 ; +0x7e, 0x78653a\nMOVS            R2, #0x14                                              ; +0x80, 0x78653c\nMOVS            R3, #0                                                 ; +0x82, 0x78653e\nADD             R1, PC; \"Description updated!\"                         ; +0x84, 0x786540\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x86, 0x786542\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x88, 0x786544\nMOV             R4, SP                                                 ; +0x8a, 0x786546\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x8c, 0x786548\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x8e, 0x78654a\nMOV             R0, R5                                                 ; +0x92, 0x78654e\nMOV             R1, SP                                                 ; +0x94, 0x786550\nBL              _ZN17UploadActionPopup18showSuccessMessageENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; UploadActionPopup::showSuccessMessage(std::string) ; +0x96, 0x786552\nMOV             R0, SP                                                 ; +0x9a, 0x786556\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9c, 0x786558\nLDR.W           R2, [R7,#0x324]                                        ; +0xa0, 0x78655c\nMOVS            R3, #0                                                 ; +0xa4, 0x786560\nSTR.W           R3, [R2,#0x208]                                        ; +0xa6, 0x786562\nSTR.W           R3, [R7,#0x324]                                        ; +0xaa, 0x786566\nB               loc_78657A                                             ; +0xae, 0x78656a\nB               loc_78656E                                             ; +0xb0, 0x78656c\nMOV             R0, R4                                                 ; +0xb2, 0x78656e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb4, 0x786570\nBL              __cxa_end_cleanup                                      ; +0xb8, 0x786574\nB               loc_78656E                                             ; +0xbc, 0x786578\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xbe, 0x78657a\nLDR             R3, [R6]                                               ; +0xc0, 0x78657c\nCMP             R2, R3                                                 ; +0xc2, 0x78657e\nBEQ             loc_786586                                             ; +0xc4, 0x786580\nBLX             __stack_chk_fail                                       ; +0xc6, 0x786582\nADD             SP, SP, #0x14                                          ; +0xca, 0x786586\nPOP             {R4-R7,PC}                                             ; +0xcc, 0x786588", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::uploadActionFinished @ 0x786598"], "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"}