// // CommentCell::onLike from 0x1001386b4 to 0x100138800 (332 bytes) // // 1 xrefs: // > CommentCell::loadFromComment @ 0x10012c3a4 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 10:59:28 +0000 // __int64 __fastcall CommentCell::onLike(__int64 a1) { __int64 v2; // x0 __int64 v3; // x8 int v4; // w9 __int64 v5; // x20 __int64 v6; // x0 __int64 result; // x0 __int64 v8; // x9 __int64 v9; // x21 __int64 v10; // x0 int v11; // w22 __int64 v12; // x8 int v13; // w22 _QWORD *v14; // x0 v2 = GJAccountManager::sharedState(a1); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) { v6 = GJAccountManager::sharedState(v2); return GJAccountManager::showAccountNeededAlert(v6, "like comments"); } v3 = *(_QWORD *)(a1 + 584); if ( !v3 ) goto LABEL_8; v4 = *(_DWORD *)(v3 + 436); if ( v4 == 3 ) { v9 = 0; v5 = 6; goto LABEL_14; } if ( v4 == 4 ) { v5 = 7; goto LABEL_12; } if ( v4 != 5 ) { LABEL_8: v8 = 380; if ( *(_BYTE *)(a1 + 592) ) { v8 = 388; v5 = 3; } else { v5 = 2; } goto LABEL_13; } v5 = 8; LABEL_12: v8 = 380; LABEL_13: v9 = *(unsigned int *)(v3 + v8); LABEL_14: v10 = GameLevelManager::sharedState(); result = sub_1000CC360(v10, v5, *(unsigned int *)(*(_QWORD *)(a1 + 584) + 368LL), v9); if ( (result & 1) == 0 ) { v11 = *(_DWORD *)(*(_QWORD *)(a1 + 584) + 372LL); result = GameManager::sharedState(result); if ( v11 != *(_DWORD *)(result + 660) - *(_DWORD *)(result + 664) ) { v12 = *(_QWORD *)(a1 + 584); v13 = *(_DWORD *)(v12 + 388); if ( v13 ) { result = GJAccountManager::sharedState(result); if ( v13 == *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) ) return result; v12 = *(_QWORD *)(a1 + 584); } v14 = (_QWORD *)LikeItemLayer::create(v5, *(unsigned int *)(v12 + 368), v9); v14[84] = a1 + 552; return (*(__int64 (__fastcall **)(_QWORD *))(*v14 + 1312LL))(v14); } } return result; }