{"type": "func", "start": 4300028296, "end": 4300028452, "name": "EditorSoundConfigInfoLayer::likedItem", "pseudocode": "// \n// EditorSoundConfigInfoLayer::likedItem from 0x1004d3988 to 0x1004d3a24 (156 bytes)\n// \n// 2 xrefs:\n// > sub_1004D3A24 @ 0x1004d3a28\n// > <???> @ 0x1009890b0\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 11:06:30 +0000\n// \n\nvoid __fastcall EditorSoundConfigInfoLayer::likedItem(_QWORD *a1, int a2, int a3, int a4)\n{\n  __int64 v5; // x8\n  int v7; // w9\n  int v8; // w9\n  __int64 v9; // x0\n  __int64 v10; // x0\n  __int64 v11; // x8\n\n  if ( a2 == 5 )\n  {\n    v5 = a1[136];\n    if ( v5 )\n    {\n      if ( *(_DWORD *)(v5 + 316) == a3 )\n      {\n        *(_BYTE *)(v5 + 497) = 1;\n        v7 = *(_DWORD *)(v5 + 348);\n        if ( a4 )\n          v8 = v7 + 1;\n        else\n          v8 = v7 - 1;\n        *(_DWORD *)(v5 + 348) = v8;\n        if ( EditorSFXManager::sharedState() )\n        {\n          v9 = EditorSFXManager::sharedState();\n          v10 = sub_1004CAD00(v9, a3);\n          if ( v10 )\n          {\n            v11 = a1[136];\n            if ( v10 != v11 )\n            {\n              *(_BYTE *)(v10 + 497) = 1;\n              *(_DWORD *)(v10 + 348) = *(_DWORD *)(v11 + 348);\n            }\n          }\n        }\n        sub_1004D254C(a1);\n      }\n    }\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::likedItem from 0x1004d3988 to 0x1004d3a24 (156 bytes)\n; \n; 2 xrefs:\n; > sub_1004D3A24 @ 0x1004d3a28\n; > <???> @ 0x1009890b0\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 11:06:30 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004d3988\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004d398c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004d3990\nCMP             W1, #5                                                 ; +0xc, 0x1004d3994\nB.NE            loc_1004D3A18                                          ; +0x10, 0x1004d3998\nMOV             X19, X0                                                ; +0x14, 0x1004d399c\nLDR             X8, [X0,#0x440]                                        ; +0x18, 0x1004d39a0\nCBZ             X8, loc_1004D3A18                                      ; +0x1c, 0x1004d39a4\nMOV             X20, X2                                                ; +0x20, 0x1004d39a8\nLDR             W9, [X8,#0x13C]                                        ; +0x24, 0x1004d39ac\nCMP             W9, W2                                                 ; +0x28, 0x1004d39b0\nB.NE            loc_1004D3A18                                          ; +0x2c, 0x1004d39b4\nMOV             W9, #1                                                 ; +0x30, 0x1004d39b8\nSTRB            W9, [X8,#0x1F1]                                        ; +0x34, 0x1004d39bc\nLDR             W9, [X8,#0x15C]                                        ; +0x38, 0x1004d39c0\nSUB             W10, W9, #1                                            ; +0x3c, 0x1004d39c4\nCMP             W3, #0                                                 ; +0x40, 0x1004d39c8\nCSINC           W9, W10, W9, EQ                                        ; +0x44, 0x1004d39cc\nSTR             W9, [X8,#0x15C]                                        ; +0x48, 0x1004d39d0\nBL              EditorSFXManager__sharedState                          ; +0x4c, 0x1004d39d4\nCBZ             X0, loc_1004D3A08                                      ; +0x50, 0x1004d39d8\nBL              EditorSFXManager__sharedState                          ; +0x54, 0x1004d39dc\nMOV             X1, X20                                                ; +0x58, 0x1004d39e0\nBL              sub_1004CAD00                                          ; +0x5c, 0x1004d39e4\nCBZ             X0, loc_1004D3A08                                      ; +0x60, 0x1004d39e8\nLDR             X8, [X19,#0x440]                                       ; +0x64, 0x1004d39ec\nCMP             X0, X8                                                 ; +0x68, 0x1004d39f0\nB.EQ            loc_1004D3A08                                          ; +0x6c, 0x1004d39f4\nMOV             W9, #1                                                 ; +0x70, 0x1004d39f8\nSTRB            W9, [X0,#0x1F1]                                        ; +0x74, 0x1004d39fc\nLDR             W8, [X8,#0x15C]                                        ; +0x78, 0x1004d3a00\nSTR             W8, [X0,#0x15C]                                        ; +0x7c, 0x1004d3a04\nMOV             X0, X19                                                ; +0x80, 0x1004d3a08\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x84, 0x1004d3a0c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x88, 0x1004d3a10\nB               sub_1004D254C                                          ; +0x8c, 0x1004d3a14\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x90, 0x1004d3a18\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x94, 0x1004d3a1c\nRET                                                                    ; +0x98, 0x1004d3a20", "xrefs": ["sub_1004D3A24 @ 0x1004d3a28", "<???> @ 0x1009890b0"], "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"}