//
// sub_1007ADFE0 from 0x1007adfe0 to 0x1007ae148 (360 bytes)
//
// 4 xrefs:
// > sub_1007AE150 @ 0x1007ae155
// > sub_1007AE160 @ 0x1007ae16c
// > sub_1007AE180 @ 0x1007ae189
// > sub_1007AE1A0 @ 0x1007ae1b3
//
// 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_1007ADFE0(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
cocos2d::CCObject *v4; // rdi
*(_QWORD *)a1 = off_1009924D8;
*(_QWORD *)(a1 + 320) = off_100992A30;
*(_QWORD *)(a1 + 328) = &off_100992AA0;
*(_QWORD *)(a1 + 336) = off_100992AB8;
*(_QWORD *)(a1 + 344) = off_100992AD8;
*(_QWORD *)(a1 + 352) = off_100992AF8;
*(_QWORD *)(a1 + 408) = off_100992B20;
*(_QWORD *)(a1 + 432) = off_100992BA0;
*(_QWORD *)(a1 + 632) = off_100992BC0;
*(_QWORD *)(a1 + 640) = off_100992BF0;
*(_QWORD *)(a1 + 648) = &off_100992C18;
v2 = *(cocos2d::CCObject **)(a1 + 656);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(cocos2d::CCObject **)(a1 + 664);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(cocos2d::CCObject **)(a1 + 672);
if ( v4 )
cocos2d::CCObject::release(v4);
if ( GameLevelManager::sharedState()->m_levelCommentDelegate
&& GameLevelManager::sharedState()->m_levelCommentDelegate == (LevelCommentDelegate *)(a1 + 632) )
{
GameLevelManager::sharedState()->m_levelCommentDelegate = nullptr;
}
if ( GameLevelManager::sharedState()->m_commentUploadDelegate
&& GameLevelManager::sharedState()->m_commentUploadDelegate == (CommentUploadDelegate *)(a1 + 640) )
{
GameLevelManager::sharedState()->m_commentUploadDelegate = nullptr;
if ( (*(_BYTE *)(a1 + 680) & 1) == 0 )
return FLAlertLayer::dFLAlertLayer(a1);
goto LABEL_13;
}
if ( (*(_BYTE *)(a1 + 680) & 1) != 0 )
LABEL_13:
operator delete(*(void **)(a1 + 696));
return FLAlertLayer::dFLAlertLayer(a1);
}