//
// MemberListPopup::onRevokeInvite from 0x1400ece60 to 0x1400ed070 (528 bytes)
//
// 2 xrefs:
// > MemberListPopup::buildRows @ 0x1400eccf8
// > ??> @ 0x140914fc0
//
// 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:35 +0000
//
// Hidden C++ exception states: #wind=3
__int64 __fastcall MemberListPopup::onRevokeInvite(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
const char *v5; // rdx
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
cocos2d::CCObject *v9; // rbx
__int64 v10; // rax
void *v11; // [rsp+58h] [rbp-80h]
__int128 v12; // [rsp+60h] [rbp-78h] BYREF
__int64 v13; // [rsp+70h] [rbp-68h]
__int64 v14; // [rsp+78h] [rbp-60h]
_BYTE v15[32]; // [rsp+80h] [rbp-58h] BYREF
_QWORD v16[4]; // [rsp+A0h] [rbp-38h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 632LL))(a2);
if ( !*(_BYTE *)(a1 + 864)
&& *(int *)(a1 + 868) <= 0
&& *(int *)(a1 + 872) <= 0
&& *(int *)(a1 + 876) <= 0
&& !*(_BYTE *)(a1 + 848)
&& result )
{
*(_DWORD *)(a1 + 876) = *(_DWORD *)(result + 392);
v4 = a1 + 792;
sub_14003F4F0((__int64)v16, result + 320);
v5 = (const char *)v16;
if ( v16[3] > 0xFu )
v5 = (const char *)v16[0];
v6 = cocos2d::CCString::createWithFormat("Take back the invite for %s?", v5);
CString = cocos2d::CCString::getCString(v6);
v12 = 0;
v13 = 0;
v14 = 0;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(&v12, CString, v8);
v11 = operator new(0x298u);
v9 = (cocos2d::CCObject *)FLAlertLayer::FLAlertLayer((__int64)v11);
if ( v9 )
{
v10 = sub_14003F4F0((__int64)v15, (__int64)&v12);
if ( FLAlertLayer::init(v9, v4, "Cancel Invite", v10, (__int64)"Back", (__int64)"Take Back", 380.0, 0, 0, 1.0) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
v9 = nullptr;
}
}
sub_14003D310((__int64)&v12);
sub_14003D310((__int64)v16);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 64LL))(v9, 7);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);
}
return result;
}