//
// CommentCell::onMoreOptions from 0x424614 to 0x42469a (134 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
//
int __fastcall CommentCell::onMoreOptions(int this, cocos2d::CCObject *a2)
{
int v2; // r4
int v3; // r3
GameManager *v4; // r0
int v5; // r2
int v6; // r5
int v7; // r0
GJComment *v8; // r1
v2 = this;
v3 = *(_DWORD *)(this + 436);
if ( v3 )
{
if ( *(_BYTE *)(this + 440)
&& (v6 = *(_DWORD *)(v3 + 308),
this = GJAccountManager::sharedState((GJAccountManager *)this),
v5 = *(_DWORD *)(this + 284),
v6 == *(_DWORD *)(this + 280) - v5)
|| (v4 = (GameManager *)GameManager::sharedState((GameManager *)this),
v5 = *((_DWORD *)v4 + 117),
*((_DWORD *)v4 + 116) - v5 > 0)
&& (v7 = GameManager::sharedState(v4),
v5 = *(_DWORD *)(*(_DWORD *)(v2 + 436) + 292),
*(_DWORD *)(v7 + 464) - *(_DWORD *)(v7 + 468) == v5) )
{
v8 = nullptr;
}
else if ( (unsigned int)(*(_DWORD *)(*(_DWORD *)(v2 + 436) + 344) - 4) > 1 )
{
v8 = (GJComment *)((char *)&dword_0 + 1);
}
else
{
v8 = nullptr;
}
this = CommentOptionsPopup::create(*(CommentOptionsPopup **)(v2 + 436), v8, v5);
if ( this )
return (*(int (__fastcall **)(int))(*(_DWORD *)this + 656))(this);
}
return this;
}