//
// ThreadMessageOptionsPopup::onAction from 0x749cec to 0x749db0 (196 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:58:45 +0000
//
int __fastcall ThreadMessageOptionsPopup::onAction(ThreadViewPopup **this, cocos2d::CCObject *a2)
{
int v2; // r5
int v4; // r3
int *v5; // r4
int v7; // r0
int v8[3]; // [sp+8h] [bp-10h] BYREF
v2 = *((unsigned __int8 *)this + 736);
if ( *((_BYTE *)this + 736) )
{
ThreadViewPopup::requestDeleteMessage(*(this + 180), *((_QWORD *)*(this + 179) + 7));
}
else
{
v4 = (int)*(this + 180);
if ( *(_BYTE *)(v4 + 599) )
{
v8[0] = *((unsigned __int8 *)this + 736);
v8[1] = v2;
v8[2] = v2;
std::string::__init(v8, "Delete this message for everyone?", 0x29u);
v5 = FLAlertLayer::create(
(int)(this + 178),
(cocos2d::CCLabelBMFont *)"Delete Message",
(int)v8,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
380.0);
std::string::~string((int)v8);
(*(void (__fastcall **)(int *, int))(*v5 + 36))(v5, 12);
return (*(int (__fastcall **)(int *))(*v5 + 656))(v5);
}
v7 = ReportPopup::createForThread(*(_DWORD *)(v4 + 564), *(this + 179), this + 181);
if ( v7 )
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}
return (*((int (__fastcall **)(ThreadViewPopup **, _DWORD))*this + 171))(this, 0);
}