//
// ThreadOptionsPopup::onHide from 0x74dab0 to 0x74dbb2 (258 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:48 +0000
//
int __fastcall ThreadOptionsPopup::onHide(ThreadOptionsPopup *this, cocos2d::CCObject *a2)
{
int v2; // r4
const char *v4; // r1
unsigned int v5; // r2
bool v6; // zf
unsigned int v7; // r7
unsigned int v8; // r7
char *v9; // r0
cocos2d::CCString *v10; // r0
const char *CString; // r4
char *v12; // r6
char *v13; // r9
size_t v14; // r0
char *v15; // r3
char **v16; // r4
int v18[3]; // [sp+18h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 180);
v4 = (const char *)*(unsigned __int8 *)(v2 + 60);
v5 = *((_DWORD *)this + 183);
v6 = ((unsigned __int8)v4 & 1) == 0;
if ( ((unsigned __int8)v4 & 1) == 0 )
v4 = (const char *)(v2 + 61);
v7 = __clz(v5);
if ( !v6 )
v4 = *(const char **)(v2 + 68);
v8 = v7 >> 5;
if ( *(_BYTE *)(v2 + 168) )
{
if ( v5 == 1 )
{
v9 = "Clear this conversation?\n"
"Your message history will be permanently deleted.\n"
"%s can still message you unless you block or unfriend them.";
LABEL_10:
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v9, v4);
CString = (const char *)cocos2d::CCString::getCString(v10);
goto LABEL_13;
}
if ( v8 )
{
v9 = "Leave this conversation?\n"
"Your message history will be permanently deleted.\n"
"%s will need to send you a new message request to contact you again.";
goto LABEL_10;
}
CString = "Clear this conversation?\n"
"Your message history will be permanently deleted.\n"
"Friends can still message you. Non-friends will need to send a new message request.";
}
else
{
CString = "Clears the conversation on your side.\nIt comes back when a new message arrives.";
}
LABEL_13:
v12 = (char *)this + 716;
if ( v8 )
v13 = "Leave Conversation";
else
v13 = "Clear Messages";
memset(v18, 0, sizeof(v18));
v14 = strlen(CString);
std::string::__init(v18, CString, v14);
if ( v8 )
v15 = "Leave";
else
v15 = "Clear";
v16 = (char **)FLAlertLayer::create(
(int)v12,
(cocos2d::CCLabelBMFont *)v13,
(int)v18,
(ButtonSprite *)"Back",
(ButtonSprite *)v15,
380.0,
0,
0,
1.0);
std::string::~string((int)v18);
(*((void (__fastcall **)(char **, int))*v16 + 9))(v16, 1);
ButtonSprite::updateBGImage(v16[121], "GJ_button_06.png");
return (*((int (__fastcall **)(char **))*v16 + 164))(v16);
}