//
// sub_1001967FC from 0x1001967fc to 0x100196968 (364 bytes)
//
// 4 xrefs:
// > sub_10019696C @ 0x10019696c
// > sub_100196970 @ 0x100196974
// > sub_100196978 @ 0x100196980
// > sub_10019698C @ 0x100196998
//
// 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_1001967FC(__int64 a1)
{
__int64 v2; // x8
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
*(_QWORD *)a1 = off_1007A8980;
*(_QWORD *)(a1 + 320) = off_1007A8F18;
*(_QWORD *)(a1 + 328) = &off_1007A8F88;
*(_QWORD *)(a1 + 336) = off_1007A8FA0;
*(_QWORD *)(a1 + 344) = off_1007A8FC0;
*(_QWORD *)(a1 + 352) = off_1007A8FE0;
*(_QWORD *)(a1 + 408) = off_1007A9008;
*(_QWORD *)(a1 + 432) = off_1007A9088;
*(_QWORD *)(a1 + 632) = &off_1007A90A8;
*(_QWORD *)(a1 + 640) = off_1007A90C0;
*(_QWORD *)(a1 + 648) = &off_1007A90F0;
*(_QWORD *)(a1 + 656) = off_1007A9118;
*(_QWORD *)(a1 + 664) = off_1007A9140;
*(_QWORD *)(a1 + 672) = &off_1007A9160;
*(_QWORD *)(a1 + 680) = off_1007A9178;
v2 = *(_QWORD *)(a1 + 824);
if ( v2 )
*(_QWORD *)(v2 + 632) = 0;
v3 = *(cocos2d::CCObject **)(a1 + 784);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(cocos2d::CCObject **)(a1 + 688);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(cocos2d::CCObject **)(a1 + 792);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *(cocos2d::CCObject **)(a1 + 816);
if ( v6 )
cocos2d::CCObject::release(v6);
if ( GameLevelManager::sharedState()->m_levelCommentDelegate == (LevelCommentDelegate *)(a1 + 640) )
GameLevelManager::sharedState()->m_levelCommentDelegate = nullptr;
if ( GameLevelManager::sharedState()->m_commentUploadDelegate == (CommentUploadDelegate *)(a1 + 648) )
GameLevelManager::sharedState()->m_commentUploadDelegate = nullptr;
if ( GameLevelManager::sharedState()->m_uploadActionDelegate == (UploadActionDelegate *)(a1 + 664) )
GameLevelManager::sharedState()->m_uploadActionDelegate = nullptr;
if ( GameLevelManager::sharedState()->m_userInfoDelegate == (UserInfoDelegate *)(a1 + 656) )
GameLevelManager::sharedState()->m_userInfoDelegate = nullptr;
if ( GameLevelManager::sharedState()->m_leaderboardManagerDelegate == (LeaderboardManagerDelegate *)(a1 + 680) )
GameLevelManager::sharedState()->m_leaderboardManagerDelegate = nullptr;
if ( *(char *)(a1 + 727) < 0 )
operator delete(*(void **)(a1 + 704));
return FLAlertLayer::dFLAlertLayer(a1);
}