//
// InvitesPopup::declineInvite from 0x74c5d4 to 0x74c67a (166 bytes)
//
// 2 xrefs:
// > InvitesPopup::onDecline @ 0x74c6aa
// > ThreadRequestPopup::onIgnore @ 0x74c6c8
//
// 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:47 +0000
//
int __fastcall InvitesPopup::declineInvite(int this, GJMessageThread *a2)
{
int v2; // r6
int v3; // r3
char **v4; // r4
int v5[3]; // [sp+18h] [bp-14h] BYREF
v2 = this;
if ( *(int *)(this + 612) <= 0 )
{
if ( a2 )
{
v3 = *((_DWORD *)a2 + 13);
*(_BYTE *)(this + 616) = 0;
*(_DWORD *)(this + 612) = v3;
memset(v5, 0, sizeof(v5));
std::string::__init(v5, "Ignore this?\nThey won't be notified.\nChange your mind under Ignored.", 0x4Cu);
v4 = (char **)FLAlertLayer::create(
v2 + 600,
(cocos2d::CCLabelBMFont *)"Ignore",
(int)v5,
(ButtonSprite *)"Back",
(ButtonSprite *)"Ignore",
380.0,
0,
0,
1.0);
std::string::~string((int)v5);
(*((void (__fastcall **)(char **, int))*v4 + 9))(v4, 6);
ButtonSprite::updateBGImage(v4[121], "GJ_button_05.png");
return (*((int (__fastcall **)(char **))*v4 + 164))(v4);
}
}
return this;
}