//
// CommentCell::onDelete from 0x10023e6d0 to 0x10023e777 (167 bytes)
//
// 2 xrefs:
// > CommentCell::FLAlert_Clicked @ 0x10023e7cb
// > sub_10023E7E0 @ 0x10023e812
//
// This function is hookable on this platform (idp: pc, 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:27:17 +0000
//
void __fastcall CommentCell::onDelete(__int64 a1, double a2)
{
__int64 v2; // rax
int v3; // r14d
__int64 v4; // rax
char v5; // r14
__int64 v6; // rax
unsigned int *v7; // rcx
__int64 v8; // rdx
__int64 v9; // rsi
v2 = *(_QWORD *)(a1 + 584);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 436);
if ( (unsigned int)(v3 - 3) > 2 )
{
v5 = *(_BYTE *)(a1 + 592);
v6 = GameLevelManager::sharedState(a2);
v7 = *(unsigned int **)(a1 + 584);
v8 = v7[92];
if ( v5 )
GameLevelManager::deleteAccountComment(v6, v7[97], v8);
else
a2 = GameLevelManager::deleteLevelComment(v6, v7[95], v8);
}
else
{
v4 = GameLevelManager::sharedState(a2);
GameLevelManager::deleteComment(
v4,
*(unsigned int *)(*(_QWORD *)(a1 + 584) + 368LL),
(unsigned int)(v3 + 3),
*(unsigned int *)(*(_QWORD *)(a1 + 584) + 380LL));
}
v9 = *(_QWORD *)(a1 + 584);
*(_BYTE *)(v9 + 416) = 1;
CommentCell::loadFromComment(a1, v9, a2);
}
}