//
// sub_10050D67C from 0x10050d67c to 0x10050d7b4 (312 bytes)
//
// 1 xrefs:
// > ThreadOptionsPopup::init @ 0x10050cef0
//
// 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 11:07:00 +0000
//
__int64 __fastcall sub_10050D67C(__int64 a1)
{
unsigned int v2; // w20
void *v3; // x0
char *CString; // x1
const char *v5; // x1
const char *v6; // x4
__int64 *v7; // x19
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
v2 = *(_DWORD *)(a1 + 1052);
if ( *(_BYTE *)(*(_QWORD *)(a1 + 1032) + 264LL) == 1 )
{
if ( v2 > 1 )
{
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
{
if ( v2 == 1 )
v3 = sub_1003065B0(
"Clear this conversation?\n"
"Your message history will be permanently deleted.\n"
"%s can still message you unless you block or unfriend them.");
else
v3 = sub_1003065B0(
"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.");
CString = (char *)cocos2d::CCString::getCString((__int64)v3);
}
}
else
{
CString = "Clears the conversation on your side.\nIt comes back when a new message arrives.";
}
sub_100009900(__p, CString);
if ( v2 )
v5 = "Clear Messages";
else
v5 = "Leave Conversation";
if ( v2 )
v6 = "Clear";
else
v6 = "Leave";
v7 = (__int64 *)FLAlertLayer::create(
a1 + 1024,
(__int64)v5,
(__int64)__p,
(__int64)"Back",
(__int64)v6,
0,
380.0,
0.0,
1.0);
if ( v10 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64 *, __int64))(*v7 + 72))(v7, 1);
ButtonSprite::updateBGImage(v7[77], (__int64)"GJ_button_06.png");
return (*(__int64 (__fastcall **)(__int64 *))(*v7 + 1312))(v7);
}