{"type": "func", "start": 4304374128, "end": 4304374271, "name": "EditorSoundConfigInfoLayer::likedItem", "pseudocode": "// \n// EditorSoundConfigInfoLayer::likedItem from 0x1008f8970 to 0x1008f89ff (143 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bb60a8\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 12:37:59 +0000\n// \n\nvoid __fastcall EditorSoundConfigInfoLayer::likedItem(_QWORD *a1, int a2, int a3, unsigned __int8 a4, __m128 a5)\n{\n  __int64 v5; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rcx\n\n  v5 = a1[136];\n  if ( v5 != 0 && a2 == 5 && *(_DWORD *)(v5 + 316) == a3 )\n  {\n    *(_BYTE *)(v5 + 497) = 1;\n    *(_DWORD *)(v5 + 348) += (a4 - 1) | 1;\n    if ( EditorSFXManager::sharedState() )\n    {\n      v7 = EditorSFXManager::sharedState();\n      v8 = sub_1008ED070(v7, a3);\n      if ( v8 )\n      {\n        v9 = a1[136];\n        if ( v8 != v9 )\n        {\n          *(_BYTE *)(v8 + 497) = 1;\n          *(_DWORD *)(v8 + 348) = *(_DWORD *)(v9 + 348);\n        }\n      }\n    }\n    sub_1008F6D10(a1, a5);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::likedItem from 0x1008f8970 to 0x1008f89ff (143 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bb60a8\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 12:37:59 +0000\n; \nmov     rax, [rdi+440h]                                                ; +0x0, 0x1008f8970\ntest    rax, rax                                                       ; +0x7, 0x1008f8977\nsetz    r8b                                                            ; +0xa, 0x1008f897a\ncmp     esi, 5                                                         ; +0xe, 0x1008f897e\nsetnz   sil                                                            ; +0x11, 0x1008f8981\nor      sil, r8b                                                       ; +0x15, 0x1008f8985\njnz     short locret_1008F89FE                                         ; +0x18, 0x1008f8988\ncmp     [rax+13Ch], edx                                                ; +0x1a, 0x1008f898a\njnz     short locret_1008F89FE                                         ; +0x20, 0x1008f8990\npush    rbp                                                            ; +0x22, 0x1008f8992\nmov     rbp, rsp                                                       ; +0x23, 0x1008f8993\npush    r14                                                            ; +0x26, 0x1008f8996\npush    rbx                                                            ; +0x28, 0x1008f8998\nmov     r14d, edx                                                      ; +0x29, 0x1008f8999\nmov     rbx, rdi                                                       ; +0x2c, 0x1008f899c\nmov     byte ptr [rax+1F1h], 1                                         ; +0x2f, 0x1008f899f\nmovzx   ecx, cl                                                        ; +0x36, 0x1008f89a6\ndec     ecx                                                            ; +0x39, 0x1008f89a9\nor      ecx, 1                                                         ; +0x3b, 0x1008f89ab\nadd     [rax+15Ch], ecx                                                ; +0x3e, 0x1008f89ae\ncall    EditorSFXManager__sharedState                                  ; +0x44, 0x1008f89b4\ntest    rax, rax                                                       ; +0x49, 0x1008f89b9\njz      short loc_1008F89F2                                            ; +0x4c, 0x1008f89bc\ncall    EditorSFXManager__sharedState                                  ; +0x4e, 0x1008f89be\nmov     rdi, rax                                                       ; +0x53, 0x1008f89c3\nmov     esi, r14d                                                      ; +0x56, 0x1008f89c6\ncall    sub_1008ED070                                                  ; +0x59, 0x1008f89c9\ntest    rax, rax                                                       ; +0x5e, 0x1008f89ce\njz      short loc_1008F89F2                                            ; +0x61, 0x1008f89d1\nmov     rcx, [rbx+440h]                                                ; +0x63, 0x1008f89d3\ncmp     rax, rcx                                                       ; +0x6a, 0x1008f89da\njz      short loc_1008F89F2                                            ; +0x6d, 0x1008f89dd\nmov     byte ptr [rax+1F1h], 1                                         ; +0x6f, 0x1008f89df\nmov     ecx, [rcx+15Ch]                                                ; +0x76, 0x1008f89e6\nmov     [rax+15Ch], ecx                                                ; +0x7c, 0x1008f89ec\nmov     rdi, rbx                                                       ; +0x82, 0x1008f89f2\npop     rbx                                                            ; +0x85, 0x1008f89f5\npop     r14                                                            ; +0x86, 0x1008f89f6\npop     rbp                                                            ; +0x88, 0x1008f89f8\njmp     sub_1008F6D10                                                  ; +0x89, 0x1008f89f9\nretn                                                                   ; +0x8e, 0x1008f89fe", "xrefs": ["<???> @ 0x100bb60a8"], "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"}