//
// GJMessagePopup::onBlock from 0x1002db340 to 0x1002db484 (324 bytes)
//
// 1 xrefs:
// > GJMessagePopup::loadFromGJMessage @ 0x1002daf58
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJMessagePopup::onBlock(GJMessagePopup *a1, cocos2d::CCObject *a2)
{
GJUserMessage *m_message; // x8
std::string *p_m_username; // x8
const char *p_dst; // x8
cocos2d::CCString *v6; // x0
char *CString; // x0
char *v8; // x1
FLAlertLayer *v9; // x19
void *__p[2]; // [xsp+10h] [xbp-60h] BYREF
char v11; // [xsp+27h] [xbp-49h]
void *v12[2]; // [xsp+28h] [xbp-48h] BYREF
char v13; // [xsp+3Fh] [xbp-31h]
__int128 __dst; // [xsp+40h] [xbp-30h] BYREF
char *longStorage; // [xsp+50h] [xbp-20h]
m_message = a1->m_message;
if ( m_message->m_username.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(
&__dst,
(void *)m_message->m_username.m_data.m_long.capacitym1,
m_message->m_username.m_data.m_long.size);
}
else
{
p_m_username = &m_message->m_username;
__dst = *(_OWORD *)&p_m_username->m_data.m_short.sizex2;
longStorage = p_m_username->m_data.m_long.longStorage;
}
p_dst = (const char *)&__dst;
if ( SHIBYTE(longStorage) < 0 )
p_dst = (const char *)__dst;
v6 = (cocos2d::CCString *)sub_100268F4C(
"Are you sure you want to block %s?\n"
"%s will no longer be able to:\n"
"- View your profile\n"
"- Send messages\n"
"- Send friend requests\n"
"- Messages from this user will be removed",
p_dst,
p_dst);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(v12, CString);
if ( v13 >= 0 )
v8 = (char *)v12;
else
v8 = (char *)v12[0];
sub_100009900(__p, v8);
v9 = FLAlertLayer::create(
(__int64)&a1->FLAlertLayerProtocol,
(__int64)"Confirm Block",
(__int64)__p,
(__int64)"Back",
(__int64)"Block",
0,
380.0);
if ( v11 < 0 )
operator delete(__p[0]);
ButtonSprite::updateBGImage(v9->m_button2, "GJ_button_06.png");
((void (__fastcall *)(FLAlertLayer *, __int64))v9->setTag)(v9, 1);
((void (__fastcall *)(FLAlertLayer *))v9->show)(v9);
if ( v13 < 0 )
operator delete(v12[0]);
if ( SHIBYTE(longStorage) < 0 )
operator delete((void *)__dst);
}