//
// InvitesPopup::declineInvite from 0x1400f9580 to 0x1400f972f (431 bytes)
//
// 3 xrefs:
// > InvitesPopup::onDecline @ 0x1400f9570
// > ThreadRequestPopup::onIgnore @ 0x1400ffd84
// > ??> @ 0x1409153d4
//
// This function is hookable on this platform (idp: pc, 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:26:39 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall InvitesPopup::declineInvite(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
__int64 *v3; // rbx
__int64 v4; // rax
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF
void *v9; // [rsp+B0h] [rbp+18h]
if ( *(int *)(a1 + 808) <= 0 && a2 )
{
*(_DWORD *)(a1 + 808) = *(_DWORD *)(a2 + 56);
*(_BYTE *)(a1 + 812) = 0;
v2 = a1 + 784;
v5 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x50u);
v6 = 76;
v7 = 79;
strcpy((char *)v5, "Ignore this?\nThey won't be notified.\nChange your mind under Ignored.");
v9 = operator new(0x298u);
v3 = (__int64 *)FLAlertLayer::FLAlertLayer((__int64)v9);
if ( v3 )
{
v4 = sub_14003F4F0((__int64)v8, (__int64)&v5);
if ( FLAlertLayer::init(
(cocos2d::CCLayerColor *)v3,
v2,
"Ignore",
v4,
(__int64)"Back",
(__int64)"Ignore",
380.0,
0,
0,
1.0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(__int64 *, __int64))(*v3 + 8))(v3, 1);
v3 = nullptr;
}
}
sub_14003D310((__int64)&v5);
(*(void (__fastcall **)(__int64 *, __int64))(*v3 + 64))(v3, 6);
ButtonSprite::updateBGImage(v3[77], "GJ_button_05.png");
(*(void (__fastcall **)(__int64 *))(*v3 + 1064))(v3);
}
}