//
// sub_10078FA80 from 0x10078fa80 to 0x10078fb94 (276 bytes)
//
// 4 xrefs:
// > sub_10078FBA0 @ 0x10078fba5
// > sub_10078FBB0 @ 0x10078fbbc
// > sub_10078FBD0 @ 0x10078fbd9
// > sub_10078FBF0 @ 0x10078fc03
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10078FA80(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_10098B4C0;
*(_QWORD *)(a1 + 320) = off_10098BA20;
*(_QWORD *)(a1 + 328) = &off_10098BA90;
*(_QWORD *)(a1 + 336) = off_10098BAA8;
*(_QWORD *)(a1 + 344) = off_10098BAC8;
*(_QWORD *)(a1 + 352) = off_10098BAE8;
*(_QWORD *)(a1 + 408) = off_10098BB10;
*(_QWORD *)(a1 + 432) = off_10098BB90;
*(_QWORD *)(a1 + 632) = &off_10098BBB0;
*(_QWORD *)(a1 + 640) = off_10098BBC8;
*(_QWORD *)(a1 + 648) = &off_10098BBE8;
*(_QWORD *)(a1 + 656) = off_10098BC00;
if ( GameLevelManager::sharedState()->m_friendRequestDelegate == (FriendRequestDelegate *)(a1 + 656) )
{
GameLevelManager::sharedState()->m_friendRequestDelegate = nullptr;
v2 = *(cocos2d::CCObject **)(a1 + 720);
if ( !v2 )
goto LABEL_6;
goto LABEL_5;
}
v2 = *(cocos2d::CCObject **)(a1 + 720);
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
LABEL_6:
if ( (*(_BYTE *)(a1 + 672) & 1) != 0 )
operator delete(*(void **)(a1 + 688));
return FLAlertLayer::dFLAlertLayer(a1);
}