{"type": "func", "start": 5370375584, "end": 5370375860, "name": "EditorSoundConfigInfoLayer::likedItem", "pseudocode": "// \n// EditorSoundConfigInfoLayer::likedItem from 0x140196da0 to 0x140196eb4 (276 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14074df38\n// > <???> @ 0x14089fd14\n// > <???> @ 0x14089fd4c\n// > <???> @ 0x14089fd5c\n// > <???> @ 0x140919550\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:45 +0000\n// \n\nvoid __fastcall EditorSoundConfigInfoLayer::likedItem(__int64 a1, int a2, int a3, unsigned __int8 a4)\n{\n  __int64 v4; // rax\n  struct cocos2d::CCObject *v7; // rdi\n  __int64 v8; // rsi\n  cocos2d::CCArray *v9; // rcx\n  unsigned int v10; // ebx\n  struct cocos2d::CCObject *v11; // rax\n\n  v4 = *(_QWORD *)(a1 + 40);\n  if ( v4 && a2 == 5 && a3 == *(_DWORD *)(v4 + 320) )\n  {\n    *(_BYTE *)(v4 + 545) = 1;\n    *(_DWORD *)(*(_QWORD *)(a1 + 40) + 352LL) += 2 * a4 - 1;\n    if ( EditorSFXManager::sharedState() )\n    {\n      v7 = nullptr;\n      v8 = EditorSFXManager::sharedState();\n      v9 = *(cocos2d::CCArray **)(v8 + 208);\n      if ( v9 )\n      {\n        v10 = 0;\n        if ( cocos2d::CCArray::count(v9) )\n        {\n          while ( 1 )\n          {\n            v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v8 + 208), v10);\n            if ( v11 )\n            {\n              if ( *((_DWORD *)v11 + 80) == a3 )\n                break;\n            }\n            if ( ++v10 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(v8 + 208)) )\n              goto LABEL_12;\n          }\n          v7 = v11;\n        }\n      }\nLABEL_12:\n      if ( v7 )\n      {\n        if ( v7 != *(struct cocos2d::CCObject **)(a1 + 40) )\n        {\n          *((_BYTE *)v7 + 545) = 1;\n          *((_DWORD *)v7 + 88) = *(_DWORD *)(*(_QWORD *)(a1 + 40) + 352LL);\n        }\n      }\n    }\n    EditorSoundConfigInfoLayer::refreshLikeState((_QWORD *)(a1 - 1032));\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::likedItem from 0x140196da0 to 0x140196eb4 (276 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14074df38\n; > <???> @ 0x14089fd14\n; > <???> @ 0x14089fd4c\n; > <???> @ 0x14089fd5c\n; > <???> @ 0x140919550\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:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x140196da0\npush    r14                                                            ; +0x2, 0x140196da2\npush    r15                                                            ; +0x4, 0x140196da4\nsub     rsp, 20h                                                       ; +0x6, 0x140196da6\nmov     rax, [rcx+28h]                                                 ; +0xa, 0x140196daa\nmov     ebp, r8d                                                       ; +0xe, 0x140196dae\nmov     r14, rcx                                                       ; +0x11, 0x140196db1\ntest    rax, rax                                                       ; +0x14, 0x140196db4\njz      loc_140196EAA                                                  ; +0x17, 0x140196db7\ncmp     edx, 5                                                         ; +0x1d, 0x140196dbd\njnz     loc_140196EAA                                                  ; +0x20, 0x140196dc0\ncmp     r8d, [rax+140h]                                                ; +0x26, 0x140196dc6\njnz     loc_140196EAA                                                  ; +0x2d, 0x140196dcd\nmov     byte ptr [rax+221h], 1                                         ; +0x33, 0x140196dd3\nmov     rcx, [rcx+28h]                                                 ; +0x3a, 0x140196dda\nmovzx   eax, r9b                                                       ; +0x3e, 0x140196dde\nlea     eax, ds:0FFFFFFFFFFFFFFFFh[rax*2]                              ; +0x42, 0x140196de2\nadd     [rcx+160h], eax                                                ; +0x49, 0x140196de9\ncall    EditorSFXManager__sharedState                                  ; +0x4f, 0x140196def\ntest    rax, rax                                                       ; +0x54, 0x140196df4\njz      loc_140196E95                                                  ; +0x57, 0x140196df7\nmov     [rsp+38h+arg_8], rsi                                           ; +0x5d, 0x140196dfd\nmov     [rsp+38h+arg_10], rdi                                          ; +0x62, 0x140196e02\ncall    EditorSFXManager__sharedState                                  ; +0x67, 0x140196e07\nxor     edi, edi                                                       ; +0x6c, 0x140196e0c\nmov     rsi, rax                                                       ; +0x6e, 0x140196e0e\nmov     rcx, [rax+0D0h]                                                ; +0x71, 0x140196e11\ntest    rcx, rcx                                                       ; +0x78, 0x140196e18\njz      short loc_140196E69                                            ; +0x7b, 0x140196e1b\nmov     [rsp+38h+arg_0], rbx                                           ; +0x7d, 0x140196e1d\nmov     ebx, edi                                                       ; +0x82, 0x140196e22\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x140196e24\ntest    eax, eax                                                       ; +0x8a, 0x140196e2a\njz      short loc_140196E64                                            ; +0x8c, 0x140196e2c\nxchg    ax, ax                                                         ; +0x8e, 0x140196e2e\nmov     rcx, [rsi+0D0h]                                                ; +0x90, 0x140196e30\nmov     edx, ebx                                                       ; +0x97, 0x140196e37\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x99, 0x140196e39\ntest    rax, rax                                                       ; +0x9f, 0x140196e3f\njz      short loc_140196E4C                                            ; +0xa2, 0x140196e42\ncmp     [rax+140h], ebp                                                ; +0xa4, 0x140196e44\njz      short loc_140196E61                                            ; +0xaa, 0x140196e4a\nmov     rcx, [rsi+0D0h]                                                ; +0xac, 0x140196e4c\ninc     ebx                                                            ; +0xb3, 0x140196e53\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb5, 0x140196e55\ncmp     ebx, eax                                                       ; +0xbb, 0x140196e5b\njb      short loc_140196E30                                            ; +0xbd, 0x140196e5d\njmp     short loc_140196E64                                            ; +0xbf, 0x140196e5f\nmov     rdi, rax                                                       ; +0xc1, 0x140196e61\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc4, 0x140196e64\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xc9, 0x140196e69\ntest    rdi, rdi                                                       ; +0xce, 0x140196e6e\njz      short loc_140196E90                                            ; +0xd1, 0x140196e71\ncmp     rdi, [r14+28h]                                                 ; +0xd3, 0x140196e73\njz      short loc_140196E90                                            ; +0xd7, 0x140196e77\nmov     byte ptr [rdi+221h], 1                                         ; +0xd9, 0x140196e79\nmov     rax, [r14+28h]                                                 ; +0xe0, 0x140196e80\nmov     edx, [rax+160h]                                                ; +0xe4, 0x140196e84\nmov     [rdi+160h], edx                                                ; +0xea, 0x140196e8a\nmov     rdi, [rsp+38h+arg_10]                                          ; +0xf0, 0x140196e90\nlea     rcx, [r14-408h]                                                ; +0xf5, 0x140196e95\nadd     rsp, 20h                                                       ; +0xfc, 0x140196e9c\npop     r15                                                            ; +0x100, 0x140196ea0\npop     r14                                                            ; +0x102, 0x140196ea2\npop     rbp                                                            ; +0x104, 0x140196ea4\njmp     EditorSoundConfigInfoLayer__refreshLikeState                   ; +0x105, 0x140196ea5\nadd     rsp, 20h                                                       ; +0x10a, 0x140196eaa\npop     r15                                                            ; +0x10e, 0x140196eae\npop     r14                                                            ; +0x110, 0x140196eb0\npop     rbp                                                            ; +0x112, 0x140196eb2\nretn                                                                   ; +0x113, 0x140196eb3", "xrefs": ["<???> @ 0x14074df38", "<???> @ 0x14089fd14", "<???> @ 0x14089fd4c", "<???> @ 0x14089fd5c", "<???> @ 0x140919550"], "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"}