//
// CommentCell::FLAlert_Clicked from 0x1400b81d0 to 0x1400b8306 (310 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405482a8
// > ??> @ 0x1406c7c5c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void CommentCell::FLAlert_Clicked(CommentCell *a1, FLAlertLayer *a2, bool a3)
{
int *p_m_unknown2; // rbx
GameLevelManager *v7; // rcx
int *v8; // rdx
int v9; // r9d
CommentType v10; // r8d
void *v11; // [rsp+38h] [rbp+10h]
void *v12; // [rsp+38h] [rbp+10h]
if ( a2->getTag(a2) || !a3 )
{
a2->getTag(a2);
}
else
{
p_m_unknown2 = &a1[-1].TableViewCell::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::m_unknown2;
if ( *((_QWORD *)&a1[-1].TableViewCell::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::m_unknown2 + 74) )
{
v7 = (GameLevelManager *)qword_1406C2EC0;
if ( *((_BYTE *)p_m_unknown2 + 600) )
{
if ( !qword_1406C2EC0 )
{
v12 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v7 = (GameLevelManager *)qword_1406C2EC0;
}
v8 = *((int **)p_m_unknown2 + 74);
v9 = v8[101];
v10 = Account;
}
else
{
if ( !qword_1406C2EC0 )
{
v11 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v7 = (GameLevelManager *)qword_1406C2EC0;
}
v8 = *((int **)p_m_unknown2 + 74);
v9 = v8[99];
v10 = 0;
}
GameLevelManager::deleteComment(v7, v8[96], v10, v9);
*(_BYTE *)(*((_QWORD *)p_m_unknown2 + 74) + 440LL) = 1;
CommentCell::loadFromComment((CommentCell *)((char *)a1 - 568), *((GJComment **)p_m_unknown2 + 74));
}
}
}