//
// CommentCell::onMoreOptions from 0x10023e220 to 0x10023e2df (191 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x10022f311
//
// 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
//
_DWORD *__fastcall CommentCell::onMoreOptions(__int64 a1, __int64 a2, __int64 a3, double a4)
{
_DWORD *result; // rax
int v5; // r14d
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // rdx
__int64 v9; // rax
__int64 v10; // rax
result = *(_DWORD **)(a1 + 584);
if ( result )
{
if ( *(_BYTE *)(a1 + 592) == 1 )
{
v5 = result[97];
v6 = GJAccountManager::sharedState(a1, a2);
if ( v5 == *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356) )
{
v7 = *(_QWORD *)(a1 + 584);
goto LABEL_7;
}
}
*(_QWORD *)&a4 = GameManager::sharedState(a1, a2, a3).u64[0];
if ( *(_DWORD *)(v9 + 660) <= *(_DWORD *)(v9 + 664) )
{
v7 = *(_QWORD *)(a1 + 584);
}
else
{
*(_QWORD *)&a4 = GameManager::sharedState(a1, a2, v8).u64[0];
v7 = *(_QWORD *)(a1 + 584);
if ( *(_DWORD *)(v10 + 660) - *(_DWORD *)(v10 + 664) == *(_DWORD *)(v7 + 372) )
{
LABEL_7:
result = (_DWORD *)CommentOptionsPopup::create(v7, 0, a4);
if ( !result )
return result;
return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)result + 1312LL))(result);
}
}
result = (_DWORD *)CommentOptionsPopup::create(v7, (*(_DWORD *)(v7 + 436) & 0xFFFFFFFE) != 4, a4);
if ( result )
return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)result + 1312LL))(result);
}
return result;
}