{"type": "func", "start": 13424764, "end": 13424940, "name": "EditorSoundConfigInfoLayer::likedItem", "pseudocode": "// \n// EditorSoundConfigInfoLayer::likedItem from 0xccd87c to 0xccd92c (176 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0xccd930\n// > <???> @ 0x747b8\n// > <???> @ 0x14fee80\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:25 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::likedItem(__int64 result, int a2, int a3, char a4)\n{\n  bool v4; // zf\n  __int64 v5; // x1\n  int v6; // w21\n  EditorSoundConfigInfoLayer *v7; // x19\n  __int64 v8; // x2\n  int v9; // w0\n  EditorSFXManager *v10; // x0\n  EditorSFXManager *v11; // x0\n  EditorSFXManager *v12; // x0\n  __int64 FavoriteConfig; // x0\n\n  v4 = a2 == 5;\n  v5 = *(_QWORD *)(result + 1088);\n  if ( v4 )\n  {\n    if ( v5 )\n    {\n      v6 = *(_DWORD *)(v5 + 316);\n      if ( v6 == a3 )\n      {\n        *(_BYTE *)(v5 + 497) = 1;\n        v7 = (EditorSoundConfigInfoLayer *)result;\n        v8 = *(_QWORD *)(result + 1088);\n        if ( a4 )\n          v9 = 1;\n        else\n          v9 = -1;\n        v10 = (EditorSFXManager *)(unsigned int)(v9 + *(_DWORD *)(v8 + 348));\n        *(_DWORD *)(v8 + 348) = (_DWORD)v10;\n        v11 = (EditorSFXManager *)EditorSFXManager::sharedState(v10);\n        if ( v11 )\n        {\n          v12 = (EditorSFXManager *)EditorSFXManager::sharedState(v11);\n          FavoriteConfig = EditorSFXManager::getFavoriteConfig(v12, v6);\n          if ( FavoriteConfig )\n          {\n            if ( FavoriteConfig != *((_QWORD *)v7 + 136) )\n            {\n              *(_BYTE *)(FavoriteConfig + 497) = 1;\n              *(_DWORD *)(FavoriteConfig + 348) = *(_DWORD *)(*((_QWORD *)v7 + 136) + 348LL);\n            }\n          }\n        }\n        return EditorSoundConfigInfoLayer::refreshLikeState(v7);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::likedItem from 0xccd87c to 0xccd92c (176 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0xccd930\n; > <???> @ 0x747b8\n; > <???> @ 0x14fee80\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:25 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xccd87c\nCMP             W1, #5                                                 ; +0x4, 0xccd880\nUXTB            W3, W3                                                 ; +0x8, 0xccd884\nMOV             X29, SP                                                ; +0xc, 0xccd888\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0xccd88c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xccd890\nLDR             X1, [X0,#0x440]                                        ; +0x18, 0xccd894\nB.NE            loc_CCD8A0                                             ; +0x1c, 0xccd898\nCBNZ            X1, loc_CCD8B0                                         ; +0x20, 0xccd89c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x24, 0xccd8a0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x28, 0xccd8a4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x2c, 0xccd8a8\nRET                                                                    ; +0x30, 0xccd8ac\nLDR             W21, [X1,#0x13C]                                       ; +0x34, 0xccd8b0\nCMP             W21, W2                                                ; +0x38, 0xccd8b4\nB.NE            loc_CCD8A0                                             ; +0x3c, 0xccd8b8\nMOV             W20, #1                                                ; +0x40, 0xccd8bc\nSTRB            W20, [X1,#0x1F1]                                       ; +0x44, 0xccd8c0\nMOV             X19, X0                                                ; +0x48, 0xccd8c4\nCMP             W3, WZR                                                ; +0x4c, 0xccd8c8\nLDR             X2, [X0,#0x440]                                        ; +0x50, 0xccd8cc\nMOV             W0, #1                                                 ; +0x54, 0xccd8d0\nCSINV           W0, W0, WZR, NE                                        ; +0x58, 0xccd8d4\nLDR             W1, [X2,#0x15C]                                        ; +0x5c, 0xccd8d8\nADD             W0, W0, W1; this                                       ; +0x60, 0xccd8dc\nSTR             W0, [X2,#0x15C]                                        ; +0x64, 0xccd8e0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x68, 0xccd8e4\nCBZ             X0, loc_CCD918                                         ; +0x6c, 0xccd8e8\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x70, 0xccd8ec\nMOV             W1, W21; int                                           ; +0x74, 0xccd8f0\nBL              _ZN16EditorSFXManager17getFavoriteConfigEi; EditorSFXManager::getFavoriteConfig(int) ; +0x78, 0xccd8f4\nCBZ             X0, loc_CCD918                                         ; +0x7c, 0xccd8f8\nLDR             X1, [X19,#0x440]                                       ; +0x80, 0xccd8fc\nCMP             X0, X1                                                 ; +0x84, 0xccd900\nB.EQ            loc_CCD918                                             ; +0x88, 0xccd904\nSTRB            W20, [X0,#0x1F1]                                       ; +0x8c, 0xccd908\nLDR             X1, [X19,#0x440]                                       ; +0x90, 0xccd90c\nLDR             W1, [X1,#0x15C]                                        ; +0x94, 0xccd910\nSTR             W1, [X0,#0x15C]                                        ; +0x98, 0xccd914\nMOV             X0, X19; this                                          ; +0x9c, 0xccd918\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa0, 0xccd91c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa4, 0xccd920\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa8, 0xccd924\nB               _ZN26EditorSoundConfigInfoLayer16refreshLikeStateEv; EditorSoundConfigInfoLayer::refreshLikeState(void) ; +0xac, 0xccd928", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0xccd930", "<???> @ 0x747b8", "<???> @ 0x14fee80"], "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"}