// // CommentCell::onLike from 0x424538 to 0x424610 (216 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:03 +0000 // GJAccountManager *__fastcall CommentCell::onLike(CommentCell *this, cocos2d::CCObject *a2) { GJAccountManager *v3; // r0 GJAccountManager *v4; // r0 GJAccountManager *result; // r0 _DWORD *v6; // r3 int v7; // r2 int v8; // r5 int v9; // r6 int v10; // r0 int v11; // r7 int v12; // r7 int *v13; // r0 int v14; // r3 v3 = (GJAccountManager *)GJAccountManager::sharedState(this); if ( *((_DWORD *)v3 + 70) - *((_DWORD *)v3 + 71) <= 0 ) { v4 = (GJAccountManager *)GJAccountManager::sharedState(v3); return (GJAccountManager *)GJAccountManager::showAccountNeededAlert(v4, "like comments"); } v6 = *((_DWORD **)this + 109); if ( !v6 ) goto LABEL_22; v7 = v6[86]; if ( v7 == 3 ) { v9 = 0; v8 = 6; goto LABEL_11; } if ( v7 == 4 ) { v8 = 7; goto LABEL_9; } if ( v7 != 5 ) { LABEL_22: if ( *((_BYTE *)this + 440) ) { v9 = v6[77]; v8 = 3; goto LABEL_11; } v8 = 2; goto LABEL_9; } v8 = 8; LABEL_9: v9 = v6[75]; LABEL_11: v10 = GameLevelManager::sharedState(v3); result = (GJAccountManager *)GameLevelManager::hasLikedItemFullCheck( v10, v8, *(_DWORD *)(*((_DWORD *)this + 109) + 288), v9); if ( !result ) { v11 = *(_DWORD *)(*((_DWORD *)this + 109) + 292); result = (GJAccountManager *)GameManager::sharedState(nullptr); if ( v11 != *((_DWORD *)result + 116) - *((_DWORD *)result + 117) ) { v12 = *(_DWORD *)(*((_DWORD *)this + 109) + 308); if ( !v12 || (result = (GJAccountManager *)GJAccountManager::sharedState(result), v12 != *((_DWORD *)result + 70) - *((_DWORD *)result + 71)) ) { v13 = (int *)LikeItemLayer::create(v8, *(_DWORD *)(*((_DWORD *)this + 109) + 288), v9); v14 = *v13; v13[133] = (int)this + 420; return (GJAccountManager *)(*(int (**)(void))(v14 + 656))(); } } } return result; }