//
// CommentCell::onMoreOptions from 0x735c20 to 0x735cdc (188 bytes)
//
// 3 xrefs:
// > ??> @ 0x5ede0
// > CommentCell::loadFromComment @ 0x74b8c8
// > ??> @ 0x1542378
//
// 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 12:52:39 +0000
//
__int64 __fastcall CommentCell::onMoreOptions(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
__int64 v3; // x19
unsigned __int64 v4; // x0
int v5; // w20
__int64 v6; // x0
int v7; // w2
__int64 v8; // x0
int v9; // w1
GameManager *v10; // x0
__int64 v11; // x2
CommentOptionsPopup *v12; // x0
int v13; // w1
int v14; // w3
_BOOL8 v15; // x1
v2 = *(_QWORD *)(this + 584);
if ( v2 )
{
v3 = this;
v4 = *(unsigned __int8 *)(this + 592);
if ( (_DWORD)v4
&& (v5 = *(_DWORD *)(v2 + 388),
v6 = GJAccountManager::sharedState((GJAccountManager *)v4),
v4 = (unsigned int)(*(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356)),
v5 == (_DWORD)v4) )
{
v12 = *(CommentOptionsPopup **)(v3 + 584);
}
else
{
v8 = GameManager::sharedState((GameManager *)v4);
v9 = *(_DWORD *)(v8 + 660);
v10 = (GameManager *)*(unsigned int *)(v8 + 664);
if ( v9 - (int)v10 <= 0 )
{
v12 = *(CommentOptionsPopup **)(v3 + 584);
goto LABEL_6;
}
v11 = GameManager::sharedState(v10);
v12 = *(CommentOptionsPopup **)(v3 + 584);
v13 = *(_DWORD *)(v11 + 660);
v14 = *(_DWORD *)(v11 + 664);
v7 = *((_DWORD *)v12 + 93);
if ( v7 != v13 - v14 )
{
LABEL_6:
v15 = (unsigned int)(*((_DWORD *)v12 + 109) - 4) > 1;
goto LABEL_7;
}
}
v15 = 0;
LABEL_7:
this = CommentOptionsPopup::create(v12, (GJComment *)v15, v7);
if ( this )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)this + 1312LL))(this);
}
return this;
}