//
// ThreadMessageOptionsPopup::onAction from 0xc6921c to 0xc69368 (332 bytes)
//
// 3 xrefs:
// > ??> @ 0xac810
// > ThreadMessageOptionsPopup::init @ 0xc79550
// > ??> @ 0x1544e50
//
// 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 13:05:26 +0000
//
__int64 __fastcall ThreadMessageOptionsPopup::onAction(ThreadViewPopup **this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v6; // x19
__int64 v7[2]; // [xsp+30h] [xbp+30h] BYREF
void *v8; // [xsp+40h] [xbp+40h]
if ( *((_BYTE *)this + 1064) )
{
ThreadViewPopup::requestDeleteMessage(*(this + 129), *((const char **)*(this + 128) + 7));
LABEL_5:
(*((void (__fastcall **)(ThreadViewPopup **, _QWORD))*this + 171))(this, 0);
return _stack_chk_guard;
}
v3 = (__int64)*(this + 129);
if ( !*(_BYTE *)(v3 + 791) )
{
v4 = ReportPopup::createForThread(*(_QWORD *)(v3 + 752), *(this + 128), this + 130);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
goto LABEL_5;
}
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, "Delete this message for everyone?", 0x29u);
v6 = FLAlertLayer::create(
(__int64)(this + 127),
(cocos2d::CCLabelBMFont *)"Delete Message",
(char *)v7,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
380.0);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
return _stack_chk_guard;
}