{"type": "func", "start": 7861996, "end": 7862244, "name": "EditorSFXManager::overwriteMyConfigFromLive", "pseudocode": "// \n// EditorSFXManager::overwriteMyConfigFromLive from 0x77f6ec to 0x77f7e4 (248 bytes)\n// \n// 1 xrefs:\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788868\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:27 +0000\n// \n\nint __fastcall EditorSFXManager::overwriteMyConfigFromLive(int a1, int a2, int *a3)\n{\n  int MyConfig; // r6\n  int v6; // r5\n  int v7; // r3\n  _DWORD *v8; // r5\n  int v9; // r4\n  int v10; // r9\n  cocos2d::CCArray **v11; // r10\n  int v12; // r3\n  _BYTE v14[4]; // [sp+4h] [bp-1Ch] BYREF\n  int v15; // [sp+8h] [bp-18h]\n  int v16[3]; // [sp+10h] [bp-10h] BYREF\n\n  MyConfig = EditorSFXManager::getMyConfig((cocos2d::CCArray **)a1, a2);\n  if ( MyConfig )\n  {\n    EditorSFXManager::serializeCompressed((EditorSFXManager *)v14, a1);\n    if ( (v14[0] & 1) != 0 )\n      v7 = v15;\n    else\n      v7 = (int)v14[0] >> 1;\n    if ( v7 )\n    {\n      v8 = *(_DWORD **)(a1 + 8);\n      v9 = 0;\n      v10 = 0;\n      while ( v8 )\n      {\n        v11 = (cocos2d::CCArray **)v8[3];\n        if ( v11 && *v11 && cocos2d::CCArray::count(*v11) )\n        {\n          ++v10;\n          v9 += cocos2d::CCArray::count(*v11);\n        }\n        v8 = (_DWORD *)*v8;\n      }\n      std::string::basic_string(v16, (int)v14);\n      std::string::operator=((unsigned __int8 *)(MyConfig + 372), (unsigned __int8 *)v16);\n      v6 = 1;\n      std::string::~string((int)v16);\n      v12 = *(_DWORD *)(MyConfig + 276);\n      *(_BYTE *)(MyConfig + 384) = 1;\n      *(_DWORD *)(MyConfig + 304) = v9;\n      *(_DWORD *)(MyConfig + 300) = v10;\n      *(_DWORD *)(MyConfig + 276) = v12 + 1;\n      *(_DWORD *)(MyConfig + 316) = time(nullptr);\n    }\n    else\n    {\n      if ( a3 )\n        std::string::assign(a3, \"No active sound actions to save.\");\n      v6 = 0;\n    }\n    std::string::~string((int)v14);\n  }\n  else\n  {\n    v6 = 0;\n    if ( a3 )\n      std::string::assign(a3, \"List not found.\");\n  }\n  return v6;\n}", "assembly": "; \n; EditorSFXManager::overwriteMyConfigFromLive from 0x77f6ec to 0x77f7e4 (248 bytes)\n; \n; 1 xrefs:\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788868\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:27 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x77f6ec\nSUB             SP, SP, #0x20                                          ; +0x4, 0x77f6f0\nLDR             R7, =(__stack_chk_guard_ptr - 0x77F6FC)                ; +0x6, 0x77f6f2\nMOV             R5, R0                                                 ; +0x8, 0x77f6f4\nMOV             R4, R2                                                 ; +0xa, 0x77f6f6\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x77f6f8\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x77f6fa\nLDR             R3, [R7]                                               ; +0x10, 0x77f6fc\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x12, 0x77f6fe\nBL              _ZN16EditorSFXManager11getMyConfigEi; EditorSFXManager::getMyConfig(int) ; +0x14, 0x77f700\nMOV             R6, R0                                                 ; +0x18, 0x77f704\nCBNZ            R0, loc_77F71A                                         ; +0x1a, 0x77f706\nCMP             R4, #0                                                 ; +0x1c, 0x77f708\nBEQ             loc_77F7AC                                             ; +0x1e, 0x77f70a\nLDR             R1, =(aListNotFound_0 - 0x77F716); \"List not found.\"   ; +0x20, 0x77f70c\nMOV             R0, R4; int                                            ; +0x22, 0x77f70e\nMOV             R5, R6                                                 ; +0x24, 0x77f710\nADD             R1, PC; \"List not found.\"                              ; +0x26, 0x77f712\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x28, 0x77f714\nB               loc_77F7AE                                             ; +0x2c, 0x77f718\nADD.W           R8, SP, #0x20+var_1C                                   ; +0x2e, 0x77f71a\nMOV             R1, R5                                                 ; +0x32, 0x77f71e\nMOV             R0, R8; this                                           ; +0x34, 0x77f720\nBL              _ZN16EditorSFXManager19serializeCompressedEv; EditorSFXManager::serializeCompressed(void) ; +0x36, 0x77f722\nLDRB.W          R3, [SP,#0x20+var_1C]                                  ; +0x3a, 0x77f726\nLSLS            R2, R3, #0x1F                                          ; +0x3e, 0x77f72a\nITE PL                                                                 ; +0x40, 0x77f72c\nASRPL           R3, R3, #1                                             ; +0x42, 0x77f72e\nLDRMI           R3, [SP,#0x20+var_18]                                  ; +0x44, 0x77f730\nCBNZ            R3, loc_77F746                                         ; +0x46, 0x77f732\nCBNZ            R4, loc_77F73A                                         ; +0x48, 0x77f734\nMOVS            R5, #0                                                 ; +0x4a, 0x77f736\nB               loc_77F7A4                                             ; +0x4c, 0x77f738\nLDR             R1, =(aNoActiveSoundA - 0x77F742); \"No active sound actions to save.\" ; +0x4e, 0x77f73a\nMOV             R0, R4; int                                            ; +0x50, 0x77f73c\nADD             R1, PC; \"No active sound actions to save.\"             ; +0x52, 0x77f73e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x54, 0x77f740\nB               loc_77F736                                             ; +0x58, 0x77f744\nLDR             R5, [R5,#8]                                            ; +0x5a, 0x77f746\nMOVS            R4, #0                                                 ; +0x5c, 0x77f748\nMOV             R9, R4                                                 ; +0x5e, 0x77f74a\nCBZ             R5, loc_77F768                                         ; +0x60, 0x77f74c\nLDR.W           R10, [R5,#0xC]                                         ; +0x62, 0x77f74e\nCMP.W           R10, #0                                                ; +0x66, 0x77f752\nBEQ             loc_77F764                                             ; +0x6a, 0x77f756\nLDR.W           R0, [R10]; this                                        ; +0x6c, 0x77f758\nCBZ             R0, loc_77F764                                         ; +0x70, 0x77f75c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x72, 0x77f75e\nCBNZ            R0, loc_77F7CE                                         ; +0x76, 0x77f762\nLDR             R5, [R5]                                               ; +0x78, 0x77f764\nB               loc_77F74C                                             ; +0x7a, 0x77f766\nADD             R5, SP, #0x20+var_10                                   ; +0x7c, 0x77f768\nMOV             R1, R8                                                 ; +0x7e, 0x77f76a\nMOV             R0, R5                                                 ; +0x80, 0x77f76c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x82, 0x77f76e\nADD.W           R0, R6, #0x174                                         ; +0x86, 0x77f772\nMOV             R1, R5                                                 ; +0x8a, 0x77f776\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x8c, 0x77f778\nMOV             R0, R5                                                 ; +0x90, 0x77f77c\nMOVS            R5, #1                                                 ; +0x92, 0x77f77e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x77f780\nLDR.W           R3, [R6,#0x114]                                        ; +0x98, 0x77f784\nSTRB.W          R5, [R6,#0x180]                                        ; +0x9c, 0x77f788\nMOVS            R0, #0; timer                                          ; +0xa0, 0x77f78c\nADD             R3, R5                                                 ; +0xa2, 0x77f78e\nSTR.W           R4, [R6,#0x130]                                        ; +0xa4, 0x77f790\nSTR.W           R9, [R6,#0x12C]                                        ; +0xa8, 0x77f794\nSTR.W           R3, [R6,#0x114]                                        ; +0xac, 0x77f798\nBLX             time                                                   ; +0xb0, 0x77f79c\nSTR.W           R0, [R6,#0x13C]                                        ; +0xb4, 0x77f7a0\nMOV             R0, R8                                                 ; +0xb8, 0x77f7a4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xba, 0x77f7a6\nB               loc_77F7AE                                             ; +0xbe, 0x77f7aa\nMOV             R5, R4                                                 ; +0xc0, 0x77f7ac\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xc2, 0x77f7ae\nMOV             R0, R5                                                 ; +0xc4, 0x77f7b0\nLDR             R3, [R7]                                               ; +0xc6, 0x77f7b2\nCMP             R2, R3                                                 ; +0xc8, 0x77f7b4\nBEQ             loc_77F7DE                                             ; +0xca, 0x77f7b6\nBLX             __stack_chk_fail                                       ; +0xcc, 0x77f7b8\nMOV             R0, R5                                                 ; +0xd0, 0x77f7bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd2, 0x77f7be\nB               loc_77F7C4                                             ; +0xd6, 0x77f7c2\nMOV             R0, R8                                                 ; +0xd8, 0x77f7c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xda, 0x77f7c6\nBL              __cxa_end_cleanup                                      ; +0xde, 0x77f7ca\nLDR.W           R0, [R10]; this                                        ; +0xe2, 0x77f7ce\nADD.W           R9, R9, #1                                             ; +0xe6, 0x77f7d2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xea, 0x77f7d6\nADD             R4, R0                                                 ; +0xee, 0x77f7da\nB               loc_77F764                                             ; +0xf0, 0x77f7dc\nADD             SP, SP, #0x20 ; ' '                                    ; +0xf2, 0x77f7de\nPOP.W           {R4-R10,PC}                                            ; +0xf4, 0x77f7e0", "xrefs": ["EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788868"], "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"}