//
// CommentCell::FLAlert_Clicked from 0x100255540 to 0x1002555ef (175 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e6aa0
//
// 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
//
void __fastcall CommentCell::FLAlert_Clicked(CommentCell *a1, FLAlertLayer *a2, bool a3)
{
bool m_accountComment; // r14
GameLevelManager *v4; // rax
GJComment *m_comment; // rcx
int m_commentID; // edx
GJComment *v7; // rsi
if ( !a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 0) )
{
((void (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);
}
else if ( a1->m_comment )
{
m_accountComment = a1->m_accountComment;
v4 = GameLevelManager::sharedState();
m_comment = a1->m_comment;
m_commentID = m_comment->m_commentID;
if ( m_accountComment )
GameLevelManager::deleteAccountComment(v4, m_comment->m_accountID, m_commentID);
else
GameLevelManager::deleteLevelComment(v4, m_comment->m_levelID, m_commentID);
v7 = a1->m_comment;
v7->m_commentDeleted = 1;
CommentCell::loadFromComment(a1, v7);
}
}