//
// CommentCell::onLike from 0x10023df70 to 0x10023e0c1 (337 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x10022ee37
//
// This function is hookable on this platform (idp: pc, 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 12:27:17 +0000
//
void __fastcall CommentCell::onLike(__int64 a1, __int64 a2, double a3)
{
__int64 v4; // rax
__int64 v5; // rax
int v6; // edx
__int64 v7; // rcx
unsigned int v8; // r14d
__int64 v9; // r14
unsigned int v10; // r15d
__int64 v11; // rax
__int64 v12; // rdx
__int64 v13; // rdi
__int64 v14; // rdx
int v15; // r12d
double v16; // xmm0_8
__int64 v17; // rax
__int64 v18; // rax
int v19; // r12d
__int64 v20; // rax
_QWORD *v21; // rax
v4 = GJAccountManager::sharedState(a1, a2);
if ( *(_DWORD *)(v4 + 352) <= *(_DWORD *)(v4 + 356) )
{
GJAccountManager::sharedState(a1, a2);
sub_1000A24A0();
return;
}
v5 = *(_QWORD *)(a1 + 584);
if ( !v5 )
goto LABEL_8;
v6 = *(_DWORD *)(v5 + 436);
if ( v6 == 3 )
{
v10 = 0;
v8 = 6;
goto LABEL_11;
}
v7 = 380;
if ( v6 == 4 )
{
v8 = 7;
goto LABEL_10;
}
if ( v6 == 5 )
{
v8 = 8;
}
else
{
LABEL_8:
v9 = *(unsigned __int8 *)(a1 + 592);
v7 = 8 * v9 + 380;
v8 = v9 | 2;
}
LABEL_10:
v10 = *(_DWORD *)(v5 + v7);
LABEL_11:
v11 = GameLevelManager::sharedState(a3);
v12 = *(unsigned int *)(*(_QWORD *)(a1 + 584) + 368LL);
v13 = v11;
if ( !(unsigned __int8)GameLevelManager::hasLikedItemFullCheck(v11, v8, v12, v10) )
{
v15 = *(_DWORD *)(*(_QWORD *)(a1 + 584) + 372LL);
*(_QWORD *)&v16 = GameManager::sharedState(v13, v8, v14).u64[0];
if ( v15 != *(_DWORD *)(v17 + 660) - *(_DWORD *)(v17 + 664) )
{
v18 = *(_QWORD *)(a1 + 584);
v19 = *(_DWORD *)(v18 + 388);
if ( v19 )
{
v20 = GJAccountManager::sharedState(v13, v8);
if ( v19 == *(_DWORD *)(v20 + 352) - *(_DWORD *)(v20 + 356) )
return;
v18 = *(_QWORD *)(a1 + 584);
}
v21 = (_QWORD *)LikeItemLayer::create(v8, *(unsigned int *)(v18 + 368), v10, v16);
v21[84] = a1 + 552;
(*(void (__fastcall **)(_QWORD *))(*v21 + 1312LL))(v21);
}
}
}