//
// InvitesPopup::declineInvite from 0xc6cc68 to 0xc6cd8c (292 bytes)
//
// 3 xrefs:
// > InvitesPopup::onDecline @ 0xc6cdc0
// > ThreadRequestPopup::onIgnore @ 0xc6cdf4
// > ??> @ 0xbc530
//
// 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:28 +0000
//
__int64 __fastcall InvitesPopup::declineInvite(InvitesPopup *this, GJMessageThread *a2)
{
ButtonSprite **v3; // x20
__int64 v5[2]; // [xsp+30h] [xbp+30h] BYREF
void *v6; // [xsp+40h] [xbp+40h]
if ( a2 && *((int *)this + 202) <= 0 )
{
*((_DWORD *)this + 202) = *((_DWORD *)a2 + 14);
*((_BYTE *)this + 812) = 0;
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
std::string::__init(v5, "Ignore this?\nThey won't be notified.\nChange your mind under Ignored.", 0x4Cu);
v3 = (ButtonSprite **)FLAlertLayer::create(
(__int64)this + 784,
(cocos2d::CCLabelBMFont *)"Ignore",
(char *)v5,
(ButtonSprite *)"Back",
(ButtonSprite *)"Ignore",
0,
380.0,
0.0,
1.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*((void (__fastcall **)(ButtonSprite **, __int64))*v3 + 9))(v3, 6);
ButtonSprite::updateBGImage(v3[77], "GJ_button_05.png");
(*((void (__fastcall **)(ButtonSprite **))*v3 + 164))(v3);
}
return _stack_chk_guard;
}