{"type": "func", "start": 7885120, "end": 7885228, "name": "EditorSoundConfigInfoLayer::likedItem", "pseudocode": "// \n// EditorSoundConfigInfoLayer::likedItem from 0x785140 to 0x7851ac (108 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0x7851b0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:32 +0000\n// \n\n_DWORD *__fastcall EditorSoundConfigInfoLayer::likedItem(_DWORD *result, int a2, int a3, int a4)\n{\n  int v5; // r2\n  _DWORD *v6; // r4\n  int v7; // r3\n  EditorSFXManager *v8; // r0\n  int v9; // r1\n  char *v10; // r2\n  int v11; // r3\n  cocos2d::CCArray **v12; // r0\n  int FavoriteConfig; // r0\n\n  v5 = result[187];\n  v6 = result;\n  if ( v5 && a2 == 5 && a3 == *(_DWORD *)(v5 + 264) )\n  {\n    *(_BYTE *)(v5 + 385) = 1;\n    if ( a4 )\n      v7 = 1;\n    else\n      v7 = -1;\n    *(_DWORD *)(result[187] + 296) += v7;\n    v8 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)result);\n    if ( v8 )\n    {\n      v12 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v8);\n      FavoriteConfig = EditorSFXManager::getFavoriteConfig(v12, a3);\n      if ( FavoriteConfig )\n      {\n        v11 = v6[187];\n        if ( FavoriteConfig != v11 )\n        {\n          *(_BYTE *)(FavoriteConfig + 385) = 1;\n          v11 = *(_DWORD *)(v6[187] + 296);\n          *(_DWORD *)(FavoriteConfig + 296) = v11;\n        }\n      }\n    }\n    return EditorSoundConfigInfoLayer::refreshLikeState(v6, v9, v10, v11);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::likedItem from 0x785140 to 0x7851ac (108 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0x7851b0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:32 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x785140\nMOV             R6, R2                                                 ; +0x2, 0x785142\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x4, 0x785144\nMOV             R4, R0                                                 ; +0x8, 0x785148\nCBZ             R2, locret_7851AA                                      ; +0xa, 0x78514a\nCMP             R1, #5                                                 ; +0xc, 0x78514c\nBNE             locret_7851AA                                          ; +0xe, 0x78514e\nLDR.W           R1, [R2,#0x108]                                        ; +0x10, 0x785150\nCMP             R6, R1                                                 ; +0x14, 0x785154\nBNE             locret_7851AA                                          ; +0x16, 0x785156\nMOVS            R5, #1                                                 ; +0x18, 0x785158\nSTRB.W          R5, [R2,#0x181]                                        ; +0x1a, 0x78515a\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x1e, 0x78515e\nCMP             R3, #0                                                 ; +0x22, 0x785162\nITE NE                                                                 ; +0x24, 0x785164\nMOVNE           R3, R5                                                 ; +0x26, 0x785166\nMOVEQ.W         R3, #0xFFFFFFFF                                        ; +0x28, 0x785168\nLDR.W           R1, [R2,#0x128]                                        ; +0x2c, 0x78516c\nADD             R3, R1                                                 ; +0x30, 0x785170\nSTR.W           R3, [R2,#0x128]                                        ; +0x32, 0x785172\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x36, 0x785176\nCBZ             R0, loc_7851A0                                         ; +0x3a, 0x78517a\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x3c, 0x78517c\nMOV             R1, R6; int                                            ; +0x40, 0x785180\nBL              _ZN16EditorSFXManager17getFavoriteConfigEi; EditorSFXManager::getFavoriteConfig(int) ; +0x42, 0x785182\nCBZ             R0, loc_7851A0                                         ; +0x46, 0x785186\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x48, 0x785188\nCMP             R0, R3                                                 ; +0x4c, 0x78518c\nITTTT NE                                                               ; +0x4e, 0x78518e\nSTRBNE.W        R5, [R0,#0x181]                                        ; +0x50, 0x785190\nLDRNE.W         R3, [R4,#0x2EC]                                        ; +0x54, 0x785194\nLDRNE.W         R3, [R3,#0x128]                                        ; +0x58, 0x785198\nSTRNE.W         R3, [R0,#0x128]                                        ; +0x5c, 0x78519c\nMOV             R0, R4; this                                           ; +0x60, 0x7851a0\nPOP.W           {R4-R6,LR}                                             ; +0x62, 0x7851a2\nB.W             _ZN26EditorSoundConfigInfoLayer16refreshLikeStateEv; EditorSoundConfigInfoLayer::refreshLikeState(void) ; +0x66, 0x7851a6\nPOP             {R4-R6,PC}                                             ; +0x6a, 0x7851aa", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0x7851b0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}