//
// CommentCell::onMoreOptions from 0x100138910 to 0x1001389d4 (196 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x10012c7ec
//
// 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::onMoreOptions(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
int v3; // w20
_BOOL8 v4; // x1
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
int v8; // w8
v1 = *(_QWORD *)(result + 584);
if ( v1 )
{
v2 = result;
if ( *(_BYTE *)(result + 592) == 1 )
{
v3 = *(_DWORD *)(v1 + 388);
result = GJAccountManager::sharedState(result);
if ( v3 == *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) )
{
v4 = 0;
v5 = *(_QWORD *)(v2 + 584);
goto LABEL_10;
}
}
v6 = GameManager::sharedState(result);
if ( *(_DWORD *)(v6 + 660) <= *(_DWORD *)(v6 + 664) )
{
v5 = *(_QWORD *)(v2 + 584);
}
else
{
v7 = GameManager::sharedState(v6);
v8 = *(_DWORD *)(v7 + 660) - *(_DWORD *)(v7 + 664);
v5 = *(_QWORD *)(v2 + 584);
if ( v8 == *(_DWORD *)(v5 + 372) )
{
v4 = 0;
goto LABEL_10;
}
}
v4 = (*(_DWORD *)(v5 + 436) & 0xFFFFFFFE) != 4;
LABEL_10:
result = CommentOptionsPopup::create(v5, v4);
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1312LL))(result);
}
return result;
}