{"type": "func", "start": 7883896, "end": 7884002, "name": "EditorSoundConfigInfoLayer::onLike", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onLike from 0x784c78 to 0x784ce2 (106 bytes)\n// \n// 0 xrefs:\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:31 +0000\n// \n\nGameLevelManager *__fastcall EditorSoundConfigInfoLayer::onLike(GameLevelManager *this, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v2; // r4\n  int v3; // r3\n  int v4; // r0\n  GameLevelManager *v5; // r0\n  GameLevelManager *v6; // r0\n  int *v7; // r0\n  int v8; // r3\n\n  v2 = this;\n  v3 = *((_DWORD *)this + 187);\n  if ( v3 )\n  {\n    if ( !*(_BYTE *)(v3 + 385) )\n    {\n      this = (GameLevelManager *)GameLevelManager::sharedState(this);\n      if ( !this\n        || (v4 = GameLevelManager::sharedState(this),\n            (this = (GameLevelManager *)GameLevelManager::hasLikedItemFullCheck(v4, &byte_5)) == nullptr) )\n      {\n        v5 = (GameLevelManager *)GameManager::sharedState(this);\n        if ( *((_DWORD *)v5 + 116) == *((_DWORD *)v5 + 117) )\n        {\n          v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n          GameLevelManager::updateUserScore(v6);\n        }\n        v7 = (int *)LikeItemLayer::create(5, *(_DWORD *)(*((_DWORD *)v2 + 187) + 264), 0);\n        v8 = *v7;\n        v7[133] = (int)v2 + 728;\n        return (GameLevelManager *)(*(int (**)(void))(v8 + 656))();\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onLike from 0x784c78 to 0x784ce2 (106 bytes)\n; \n; 0 xrefs:\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:31 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x784c78\nMOV             R4, R0                                                 ; +0x2, 0x784c7a\nLDR.W           R3, [R0,#0x2EC]                                        ; +0x4, 0x784c7c\nCBZ             R3, locret_784CE0                                      ; +0x8, 0x784c80\nLDRB.W          R5, [R3,#0x181]                                        ; +0xa, 0x784c82\nCBNZ            R5, locret_784CE0                                      ; +0xe, 0x784c86\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x10, 0x784c88\nCBZ             R0, loc_784CA4                                         ; +0x14, 0x784c8c\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x16, 0x784c8e\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x1a, 0x784c92\nMOVS            R1, #5                                                 ; +0x1e, 0x784c96\nLDR.W           R2, [R3,#0x108]                                        ; +0x20, 0x784c98\nMOV             R3, R5                                                 ; +0x24, 0x784c9c\nBL              _ZN16GameLevelManager21hasLikedItemFullCheckE12LikeItemTypeii; GameLevelManager::hasLikedItemFullCheck(LikeItemType,int,int) ; +0x26, 0x784c9e\nCBNZ            R0, locret_784CE0                                      ; +0x2a, 0x784ca2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2c, 0x784ca4\nLDR.W           R2, [R0,#0x1D0]                                        ; +0x30, 0x784ca8\nLDR.W           R3, [R0,#0x1D4]                                        ; +0x34, 0x784cac\nCMP             R2, R3                                                 ; +0x38, 0x784cb0\nBNE             loc_784CBC                                             ; +0x3a, 0x784cb2\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x3c, 0x784cb4\nBL              _ZN16GameLevelManager15updateUserScoreEv; GameLevelManager::updateUserScore(void) ; +0x40, 0x784cb8\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x44, 0x784cbc\nMOVS            R0, #5                                                 ; +0x48, 0x784cc0\nMOVS            R2, #0                                                 ; +0x4a, 0x784cc2\nADD.W           R4, R4, #0x2D8                                         ; +0x4c, 0x784cc4\nLDR.W           R1, [R3,#0x108]                                        ; +0x50, 0x784cc8\nBL              _ZN13LikeItemLayer6createE12LikeItemTypeii; LikeItemLayer::create(LikeItemType,int,int) ; +0x54, 0x784ccc\nLDR             R3, [R0]                                               ; +0x58, 0x784cd0\nSTR.W           R4, [R0,#0x214]                                        ; +0x5a, 0x784cd2\nPOP.W           {R4-R6,LR}                                             ; +0x5e, 0x784cd6\nLDR.W           R3, [R3,#0x290]                                        ; +0x62, 0x784cda\nBX              R3                                                     ; +0x66, 0x784cde\nPOP             {R4-R6,PC}                                             ; +0x68, 0x784ce0", "xrefs": [], "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"}