{"type": "func", "start": 7861360, "end": 7861628, "name": "EditorSFXManager::copyFavoriteToMyConfig", "pseudocode": "// \n// EditorSFXManager::copyFavoriteToMyConfig from 0x77f470 to 0x77f57c (268 bytes)\n// \n// 1 xrefs:\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889e0\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::copyFavoriteToMyConfig(\n        cocos2d::CCArray **this,\n        GJEditorSoundConfig *a2,\n        int a3,\n        int a4)\n{\n  cocos2d::CCObject *v7; // r0\n  GJEditorSoundConfig *v8; // r0\n  int v9; // r0\n  int v10; // r4\n  int v11; // r3\n  int v12[4]; // [sp+0h] [bp-10h] BYREF\n\n  v12[0] = (int)this;\n  v12[1] = (int)a2;\n  v12[2] = a3;\n  v12[3] = a4;\n  if ( !a2 )\n    return 0;\n  if ( !*(this + 19) )\n  {\n    v7 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)this);\n    *(this + 19) = v7;\n    cocos2d::CCObject::retain(v7);\n  }\n  v8 = (GJEditorSoundConfig *)cocos2d::CCArray::count(*(this + 19));\n  if ( (unsigned int)v8 > 0x31 )\n    return 0;\n  v9 = GJEditorSoundConfig::create(v8);\n  v10 = v9;\n  if ( !v9 )\n    return 0;\n  v11 = (int)*(this + 20);\n  *(this + 20) = (cocos2d::CCArray *)(v11 + 1);\n  *(_DWORD *)(v9 + 268) = v11;\n  *(_BYTE *)(v9 + 272) = 1;\n  *(_DWORD *)(v9 + 264) = 0;\n  *(_DWORD *)(v9 + 284) = *((_DWORD *)a2 + 66);\n  *(_DWORD *)(v9 + 288) = *((_DWORD *)a2 + 72);\n  std::string::basic_string(v12, (int)a2 + 324);\n  std::string::operator=((unsigned __int8 *)(v10 + 324), (unsigned __int8 *)v12);\n  std::string::~string((int)v12);\n  std::string::basic_string(v12, (int)a2 + 336);\n  std::string::operator=((unsigned __int8 *)(v10 + 336), (unsigned __int8 *)v12);\n  std::string::~string((int)v12);\n  *(_DWORD *)(v10 + 308) = *((_DWORD *)a2 + 77);\n  *(_DWORD *)(v10 + 276) = 1;\n  *(_DWORD *)(v10 + 280) = 0;\n  *(_DWORD *)(v10 + 300) = *((_DWORD *)a2 + 75);\n  *(_DWORD *)(v10 + 304) = *((_DWORD *)a2 + 76);\n  std::string::basic_string(v12, (int)a2 + 372);\n  std::string::operator=((unsigned __int8 *)(v10 + 372), (unsigned __int8 *)v12);\n  std::string::~string((int)v12);\n  *(_BYTE *)(v10 + 384) = *((_BYTE *)a2 + 384);\n  cocos2d::CCArray::insertObject(*(this + 19), (cocos2d::CCObject *)v10, 0);\n  return v10;\n}", "assembly": "; \n; EditorSFXManager::copyFavoriteToMyConfig from 0x77f470 to 0x77f57c (268 bytes)\n; \n; 1 xrefs:\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889e0\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          {R0-R8,LR}                                             ; +0x0, 0x77f470\nMOV             R7, R0                                                 ; +0x4, 0x77f474\nLDR             R3, =(__stack_chk_guard_ptr - 0x77F47E)                ; +0x6, 0x77f476\nMOV             R6, R1                                                 ; +0x8, 0x77f478\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xa, 0x77f47a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xc, 0x77f47c\nLDR             R2, [R3]                                               ; +0xe, 0x77f47e\nMOV             R8, R3                                                 ; +0x10, 0x77f480\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x12, 0x77f482\nCBNZ            R1, loc_77F48A                                         ; +0x14, 0x77f484\nMOVS            R0, #0; this                                           ; +0x16, 0x77f486\nB               loc_77F55A                                             ; +0x18, 0x77f488\nLDR             R3, [R0,#0x4C]                                         ; +0x1a, 0x77f48a\nCBNZ            R3, loc_77F498                                         ; +0x1c, 0x77f48c\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1e, 0x77f48e\nSTR             R0, [R7,#0x4C]                                         ; +0x22, 0x77f492\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x24, 0x77f494\nLDR             R0, [R7,#0x4C]; this                                   ; +0x28, 0x77f498\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2a, 0x77f49a\nCMP             R0, #0x31 ; '1'                                        ; +0x2e, 0x77f49e\nBHI             loc_77F486                                             ; +0x30, 0x77f4a0\nBL              _ZN19GJEditorSoundConfig6createEv; GJEditorSoundConfig::create(void) ; +0x32, 0x77f4a2\nMOV             R4, R0                                                 ; +0x36, 0x77f4a6\nCMP             R0, #0                                                 ; +0x38, 0x77f4a8\nBEQ             loc_77F486                                             ; +0x3a, 0x77f4aa\nLDR             R3, [R7,#0x50]                                         ; +0x3c, 0x77f4ac\nADD.W           R1, R6, #0x144                                         ; +0x3e, 0x77f4ae\nMOV             R5, SP                                                 ; +0x42, 0x77f4b2\nADDS            R2, R3, #1                                             ; +0x44, 0x77f4b4\nSTR             R2, [R7,#0x50]                                         ; +0x46, 0x77f4b6\nSTR.W           R3, [R0,#0x10C]                                        ; +0x48, 0x77f4b8\nMOVS            R3, #1                                                 ; +0x4c, 0x77f4bc\nSTRB.W          R3, [R0,#0x110]                                        ; +0x4e, 0x77f4be\nMOVS            R3, #0                                                 ; +0x52, 0x77f4c2\nSTR.W           R3, [R0,#0x108]                                        ; +0x54, 0x77f4c4\nLDR.W           R3, [R6,#0x108]                                        ; +0x58, 0x77f4c8\nSTR.W           R3, [R0,#0x11C]                                        ; +0x5c, 0x77f4cc\nLDR.W           R3, [R6,#0x120]                                        ; +0x60, 0x77f4d0\nSTR.W           R3, [R0,#0x120]                                        ; +0x64, 0x77f4d4\nMOV             R0, SP                                                 ; +0x68, 0x77f4d8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x6a, 0x77f4da\nADD.W           R0, R4, #0x144                                         ; +0x6e, 0x77f4de\nMOV             R1, SP                                                 ; +0x72, 0x77f4e2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x74, 0x77f4e4\nMOV             R0, SP                                                 ; +0x78, 0x77f4e8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7a, 0x77f4ea\nADD.W           R1, R6, #0x150                                         ; +0x7e, 0x77f4ee\nMOV             R0, SP                                                 ; +0x82, 0x77f4f2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x84, 0x77f4f4\nADD.W           R0, R4, #0x150                                         ; +0x88, 0x77f4f8\nMOV             R1, SP                                                 ; +0x8c, 0x77f4fc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x8e, 0x77f4fe\nMOV             R0, SP                                                 ; +0x92, 0x77f502\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x77f504\nLDR.W           R3, [R6,#0x134]                                        ; +0x98, 0x77f508\nADD.W           R1, R6, #0x174                                         ; +0x9c, 0x77f50c\nMOV             R0, SP                                                 ; +0xa0, 0x77f510\nSTR.W           R3, [R4,#0x134]                                        ; +0xa2, 0x77f512\nMOVS            R3, #1                                                 ; +0xa6, 0x77f516\nSTR.W           R3, [R4,#0x114]                                        ; +0xa8, 0x77f518\nMOVS            R3, #0                                                 ; +0xac, 0x77f51c\nSTR.W           R3, [R4,#0x118]                                        ; +0xae, 0x77f51e\nLDR.W           R3, [R6,#0x12C]                                        ; +0xb2, 0x77f522\nSTR.W           R3, [R4,#0x12C]                                        ; +0xb6, 0x77f526\nLDR.W           R3, [R6,#0x130]                                        ; +0xba, 0x77f52a\nSTR.W           R3, [R4,#0x130]                                        ; +0xbe, 0x77f52e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xc2, 0x77f532\nADD.W           R0, R4, #0x174                                         ; +0xc6, 0x77f536\nMOV             R1, SP                                                 ; +0xca, 0x77f53a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xcc, 0x77f53c\nMOV             R0, SP                                                 ; +0xd0, 0x77f540\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd2, 0x77f542\nLDRB.W          R3, [R6,#0x180]                                        ; +0xd6, 0x77f546\nMOV             R1, R4; cocos2d::CCObject *                            ; +0xda, 0x77f54a\nMOVS            R2, #0; unsigned int                                   ; +0xdc, 0x77f54c\nSTRB.W          R3, [R4,#0x180]                                        ; +0xde, 0x77f54e\nLDR             R0, [R7,#0x4C]; this                                   ; +0xe2, 0x77f552\nBL              _ZN7cocos2d7CCArray12insertObjectEPNS_8CCObjectEj; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0xe4, 0x77f554\nMOV             R0, R4                                                 ; +0xe8, 0x77f558\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xea, 0x77f55a\nLDR.W           R3, [R8]                                               ; +0xec, 0x77f55c\nCMP             R2, R3                                                 ; +0xf0, 0x77f560\nBEQ             loc_77F576                                             ; +0xf2, 0x77f562\nBLX             __stack_chk_fail                                       ; +0xf4, 0x77f564\nB               loc_77F56A                                             ; +0xf8, 0x77f568\nMOV             R0, R5                                                 ; +0xfa, 0x77f56a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfc, 0x77f56c\nBL              __cxa_end_cleanup                                      ; +0x100, 0x77f570\nB               loc_77F56A                                             ; +0x104, 0x77f574\nADD             SP, SP, #0x10                                          ; +0x106, 0x77f576\nPOP.W           {R4-R8,PC}                                             ; +0x108, 0x77f578", "xrefs": ["EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889e0"], "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"}