//
// sub_10022D6B0 from 0x10022d6b0 to 0x10022d7e9 (313 bytes)
//
// 4 xrefs:
// > sub_10022D800 @ 0x10022d805
// > sub_10022D810 @ 0x10022d81c
// > sub_10022D830 @ 0x10022d839
// > sub_10022D850 @ 0x10022d863
//
// 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_10022D6B0(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_1008E1240;
*(_QWORD *)(a1 + 320) = off_1008E17A0;
*(_QWORD *)(a1 + 328) = &off_1008E1810;
*(_QWORD *)(a1 + 336) = off_1008E1828;
*(_QWORD *)(a1 + 344) = off_1008E1848;
*(_QWORD *)(a1 + 352) = off_1008E1868;
*(_QWORD *)(a1 + 408) = off_1008E1890;
*(_QWORD *)(a1 + 432) = off_1008E1910;
*(_QWORD *)(a1 + 632) = &off_1008E1930;
*(_QWORD *)(a1 + 640) = off_1008E1948;
*(_QWORD *)(a1 + 648) = &off_1008E1968;
*(_QWORD *)(a1 + 656) = off_1008E1980;
if ( GameLevelManager::sharedState()->m_messageListDelegate == (MessageListDelegate *)(a1 + 656) )
GameLevelManager::sharedState()->m_messageListDelegate = nullptr;
if ( GameLevelManager::sharedState()->m_uploadActionDelegate == (UploadActionDelegate *)(a1 + 640) )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = nullptr;
v2 = *(cocos2d::CCObject **)(a1 + 720);
if ( !v2 )
goto LABEL_8;
goto LABEL_7;
}
v2 = *(cocos2d::CCObject **)(a1 + 720);
if ( v2 )
LABEL_7:
cocos2d::CCObject::release(v2);
LABEL_8:
if ( (*(_BYTE *)(a1 + 672) & 1) != 0 )
operator delete(*(void **)(a1 + 688));
return FLAlertLayer::dFLAlertLayer(a1);
}