{"type": "func", "start": 7853132, "end": 7853216, "name": "EditorSFXManager::addFavoriteConfig", "pseudocode": "// \n// EditorSFXManager::addFavoriteConfig from 0x77d44c to 0x77d4a0 (84 bytes)\n// \n// 1 xrefs:\n// > EditorSoundConfigInfoLayer::onFavorite @ 0x7852a8\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:24 +0000\n// \n\ncocos2d::CCArray *__fastcall EditorSFXManager::addFavoriteConfig(cocos2d::CCArray *this, GJEditorSoundConfig *a2)\n{\n  cocos2d::CCArray *v2; // r4\n  cocos2d::CCObject *v4; // r0\n  unsigned int i; // r5\n  int v6; // r0\n\n  v2 = this;\n  if ( a2 )\n  {\n    if ( !*((_DWORD *)this + 18) )\n    {\n      v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(this);\n      *((_DWORD *)v2 + 18) = v4;\n      cocos2d::CCObject::retain(v4);\n    }\n    for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 18)); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v2 + 18), i);\n      if ( v6 && *(_DWORD *)(v6 + 264) == *((_DWORD *)a2 + 66) )\n      {\n        cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)v2 + 18), i, 1);\n        return (cocos2d::CCArray *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 18), a2);\n      }\n    }\n    return (cocos2d::CCArray *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 18), a2);\n  }\n  return this;\n}", "assembly": "; \n; EditorSFXManager::addFavoriteConfig from 0x77d44c to 0x77d4a0 (84 bytes)\n; \n; 1 xrefs:\n; > EditorSoundConfigInfoLayer::onFavorite @ 0x7852a8\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:24 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x77d44c\nMOV             R4, R0                                                 ; +0x2, 0x77d44e\nMOV             R6, R1                                                 ; +0x4, 0x77d450\nCBZ             R1, locret_77D49E                                      ; +0x6, 0x77d452\nLDR             R3, [R0,#0x48]                                         ; +0x8, 0x77d454\nCBNZ            R3, loc_77D462                                         ; +0xa, 0x77d456\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0xc, 0x77d458\nSTR             R0, [R4,#0x48]                                         ; +0x10, 0x77d45c\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x12, 0x77d45e\nMOVS            R5, #0                                                 ; +0x16, 0x77d462\nLDR             R0, [R4,#0x48]; this                                   ; +0x18, 0x77d464\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x77d466\nCMP             R5, R0                                                 ; +0x1e, 0x77d46a\nBCS             loc_77D492                                             ; +0x20, 0x77d46c\nLDR             R0, [R4,#0x48]; this                                   ; +0x22, 0x77d46e\nMOV             R1, R5; unsigned int                                   ; +0x24, 0x77d470\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x26, 0x77d472\nCBZ             R0, loc_77D484                                         ; +0x2a, 0x77d476\nLDR.W           R2, [R0,#0x108]                                        ; +0x2c, 0x77d478\nLDR.W           R3, [R6,#0x108]                                        ; +0x30, 0x77d47c\nCMP             R2, R3                                                 ; +0x34, 0x77d480\nBEQ             loc_77D488                                             ; +0x36, 0x77d482\nADDS            R5, #1                                                 ; +0x38, 0x77d484\nB               loc_77D464                                             ; +0x3a, 0x77d486\nLDR             R0, [R4,#0x48]; this                                   ; +0x3c, 0x77d488\nMOV             R1, R5; unsigned int                                   ; +0x3e, 0x77d48a\nMOVS            R2, #1; bool                                           ; +0x40, 0x77d48c\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x42, 0x77d48e\nLDR             R0, [R4,#0x48]; this                                   ; +0x46, 0x77d492\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x48, 0x77d494\nPOP.W           {R4-R6,LR}                                             ; +0x4a, 0x77d496\nB.W             _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4e, 0x77d49a\nPOP             {R4-R6,PC}                                             ; +0x52, 0x77d49e", "xrefs": ["EditorSoundConfigInfoLayer::onFavorite @ 0x7852a8"], "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"}