{"type": "func", "start": 5370328912, "end": 5370329057, "name": "EditorSFXManager::removeFavoriteConfig", "pseudocode": "// \n// EditorSFXManager::removeFavoriteConfig from 0x14018b750 to 0x14018b7e1 (145 bytes)\n// \n// 5 xrefs:\n// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198ff7\n// > <???> @ 0x14089ec84\n// > <???> @ 0x14089ec98\n// > <???> @ 0x14089eca8\n// > <???> @ 0x140918f2c\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:40 +0000\n// \n\nvoid __fastcall EditorSFXManager::removeFavoriteConfig(__int64 a1, int a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebx\n  struct cocos2d::CCObject *v6; // rax\n\n  v4 = *(cocos2d::CCArray **)(a1 + 208);\n  if ( v4 )\n  {\n    v5 = 0;\n    if ( cocos2d::CCArray::count(v4) )\n    {\n      while ( 1 )\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v5);\n        if ( v6 )\n        {\n          if ( *((_DWORD *)v6 + 80) == a2 )\n            break;\n        }\n        if ( ++v5 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 208)) )\n          return;\n      }\n      cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v5, 1);\n    }\n  }\n}", "assembly": "; \n; EditorSFXManager::removeFavoriteConfig from 0x14018b750 to 0x14018b7e1 (145 bytes)\n; \n; 5 xrefs:\n; > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198ff7\n; > <???> @ 0x14089ec84\n; > <???> @ 0x14089ec98\n; > <???> @ 0x14089eca8\n; > <???> @ 0x140918f2c\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:40 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x14018b750\npush    rdi                                                            ; +0x5, 0x14018b755\nsub     rsp, 20h                                                       ; +0x6, 0x14018b756\nmov     rdi, rcx                                                       ; +0xa, 0x14018b75a\nmov     esi, edx                                                       ; +0xd, 0x14018b75d\nmov     rcx, [rcx+0D0h]                                                ; +0xf, 0x14018b75f\ntest    rcx, rcx                                                       ; +0x16, 0x14018b766\njz      short loc_14018B7D6                                            ; +0x19, 0x14018b769\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1b, 0x14018b76b\nxor     ebx, ebx                                                       ; +0x20, 0x14018b770\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x14018b772\ntest    eax, eax                                                       ; +0x28, 0x14018b778\njz      short loc_14018B7D1                                            ; +0x2a, 0x14018b77a\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x14018b77c\nmov     rcx, [rdi+0D0h]                                                ; +0x30, 0x14018b780\nmov     edx, ebx                                                       ; +0x37, 0x14018b787\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14018b789\ntest    rax, rax                                                       ; +0x3f, 0x14018b78f\njz      short loc_14018B79C                                            ; +0x42, 0x14018b792\ncmp     [rax+140h], esi                                                ; +0x44, 0x14018b794\njz      short loc_14018B7BF                                            ; +0x4a, 0x14018b79a\nmov     rcx, [rdi+0D0h]                                                ; +0x4c, 0x14018b79c\ninc     ebx                                                            ; +0x53, 0x14018b7a3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x14018b7a5\ncmp     ebx, eax                                                       ; +0x5b, 0x14018b7ab\njb      short loc_14018B780                                            ; +0x5d, 0x14018b7ad\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x14018b7af\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x64, 0x14018b7b4\nadd     rsp, 20h                                                       ; +0x69, 0x14018b7b9\npop     rdi                                                            ; +0x6d, 0x14018b7bd\nretn                                                                   ; +0x6e, 0x14018b7be\nmov     rcx, [rdi+0D0h]                                                ; +0x6f, 0x14018b7bf\nmov     r8b, 1                                                         ; +0x76, 0x14018b7c6\nmov     edx, ebx                                                       ; +0x79, 0x14018b7c9\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x7b, 0x14018b7cb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x14018b7d1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x86, 0x14018b7d6\nadd     rsp, 20h                                                       ; +0x8b, 0x14018b7db\npop     rdi                                                            ; +0x8f, 0x14018b7df\nretn                                                                   ; +0x90, 0x14018b7e0", "xrefs": ["EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198ff7", "<???> @ 0x14089ec84", "<???> @ 0x14089ec98", "<???> @ 0x14089eca8", "<???> @ 0x140918f2c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}