{"type": "func", "start": 13368156, "end": 13368280, "name": "EditorSFXManager::getFavoriteConfig", "pseudocode": "// \n// EditorSFXManager::getFavoriteConfig from 0xcbfb5c to 0xcbfbd8 (124 bytes)\n// \n// 7 xrefs:\n// > EditorSFXManager::applyFavoriteConfig @ 0xcc7924\n// > EditorSoundConfigInfoLayer::onLocalDelete @ 0xccd5d8\n// > EditorSoundConfigInfoLayer::likedItem @ 0xccd8f4\n// > EditorSoundConfigInfoLayer::refreshActionButtons @ 0xccd96c\n// > EditorSoundConfigInfoLayer::onFavorite @ 0xccdf04\n// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf428\n// > <???> @ 0x6d528\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:16 +0000\n// \n\n__int64 __fastcall EditorSFXManager::getFavoriteConfig(EditorSFXManager *this, int a2)\n{\n  cocos2d::CCArray *v3; // x0\n  int v5; // w0\n  unsigned int v6; // w1\n  unsigned int v7; // w19\n  __int64 result; // x0\n  bool v9; // cf\n\n  v3 = *((cocos2d::CCArray **)this + 18);\n  if ( !v3 )\n    return 0;\n  v5 = cocos2d::CCArray::count(v3);\n  v6 = 0;\n  v7 = 1;\n  if ( !v5 )\n    return 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 18), v6);\n    if ( result )\n    {\n      if ( *(_DWORD *)(result + 316) == a2 )\n        break;\n    }\n    v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 18));\n    v6 = v7++;\n    if ( v9 )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXManager::getFavoriteConfig from 0xcbfb5c to 0xcbfbd8 (124 bytes)\n; \n; 7 xrefs:\n; > EditorSFXManager::applyFavoriteConfig @ 0xcc7924\n; > EditorSoundConfigInfoLayer::onLocalDelete @ 0xccd5d8\n; > EditorSoundConfigInfoLayer::likedItem @ 0xccd8f4\n; > EditorSoundConfigInfoLayer::refreshActionButtons @ 0xccd96c\n; > EditorSoundConfigInfoLayer::onFavorite @ 0xccdf04\n; > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf428\n; > <???> @ 0x6d528\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:16 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xcbfb5c\nMOV             X29, SP                                                ; +0x4, 0xcbfb60\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xcbfb64\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xcbfb68\nMOV             X20, X0                                                ; +0x10, 0xcbfb6c\nLDR             X0, [X0,#0x90]; this                                   ; +0x14, 0xcbfb70\nCBZ             X0, loc_CBFBC4                                         ; +0x18, 0xcbfb74\nMOV             W19, #0                                                ; +0x1c, 0xcbfb78\nMOV             W21, W1                                                ; +0x20, 0xcbfb7c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0xcbfb80\nCMP             W19, W0                                                ; +0x28, 0xcbfb84\nMOV             W1, W19; unsigned int                                  ; +0x2c, 0xcbfb88\nADD             W19, W19, #1                                           ; +0x30, 0xcbfb8c\nB.CS            loc_CBFBC4                                             ; +0x34, 0xcbfb90\nLDR             X0, [X20,#0x90]; this                                  ; +0x38, 0xcbfb94\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0xcbfb98\nCBZ             X0, loc_CBFBAC                                         ; +0x40, 0xcbfb9c\nLDR             W2, [X0,#0x13C]                                        ; +0x44, 0xcbfba0\nCMP             W2, W21                                                ; +0x48, 0xcbfba4\nB.EQ            loc_CBFBC8                                             ; +0x4c, 0xcbfba8\nLDR             X0, [X20,#0x90]; this                                  ; +0x50, 0xcbfbac\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0xcbfbb0\nCMP             W19, W0                                                ; +0x58, 0xcbfbb4\nMOV             W1, W19                                                ; +0x5c, 0xcbfbb8\nADD             W19, W19, #1                                           ; +0x60, 0xcbfbbc\nB.CC            loc_CBFB94                                             ; +0x64, 0xcbfbc0\nMOV             X0, #0                                                 ; +0x68, 0xcbfbc4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0xcbfbc8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x70, 0xcbfbcc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x74, 0xcbfbd0\nRET                                                                    ; +0x78, 0xcbfbd4", "xrefs": ["EditorSFXManager::applyFavoriteConfig @ 0xcc7924", "EditorSoundConfigInfoLayer::onLocalDelete @ 0xccd5d8", "EditorSoundConfigInfoLayer::likedItem @ 0xccd8f4", "EditorSoundConfigInfoLayer::refreshActionButtons @ 0xccd96c", "EditorSoundConfigInfoLayer::onFavorite @ 0xccdf04", "EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf428", "<???> @ 0x6d528"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}