//
// InvitesPopup::onViewRequest from 0x1400f9220 to 0x1400f936a (330 bytes)
//
// 2 xrefs:
// > InvitesPopup::buildRows @ 0x1400f8f35
// > ??> @ 0x1409153a4
//
// 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=1
__int64 __fastcall InvitesPopup::onViewRequest(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
cocos2d::CCObject *v5; // rbx
__int64 (__fastcall *v6)(__int64); // rdx
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 632LL))(a2);
v4 = result;
if ( result )
{
v5 = (cocos2d::CCObject *)operator new(0x2C0u);
FLAlertLayer::FLAlertLayer((__int64)v5);
*(_QWORD *)v5 = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 40) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 41) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 42) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 43) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 44) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 51) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 54) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 68) = &ThreadRequestPopup::`vftable';
*((_QWORD *)v5 + 83) = 0;
*((_QWORD *)v5 + 84) = 0;
*((_QWORD *)v5 + 85) = 0;
*((_QWORD *)v5 + 86) = 0;
*((_QWORD *)v5 + 87) = 0;
if ( (unsigned __int8)ThreadRequestPopup::init(v5, v4, a1) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
v5 = nullptr;
}
v6 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1064LL);
if ( v6 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v5);
else
return v6((__int64)v5);
}
return result;
}