//
// TutorialPopup::closeTutorial from 0x600360 to 0x6003e0 (128 bytes)
//
// 4 xrefs:
// > TutorialPopup::keyBackClicked @ 0x6003e4
// > ??> @ 0xb6130
// > TutorialPopup::init @ 0x60072c
// > ??> @ 0x122e4f8
//
// 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
//
void TutorialPopup::closeTutorial(TutorialPopup *a1, cocos2d::CCObject *a2)
{
signed __int64 adj; // x0
void (*ptr)(void); // x3
a1->setKeypadEnabled(a1, 0);
if ( a1->m_callbackRegistered )
{
adj = a1->m_callbackSelector.adj;
if ( (adj & 1) != 0 )
ptr = *(void (**)(void))((char *)&(*(FLAlertLayerProtocol_vtbl **)((char *)&a1->m_alertProtocol->FLAlertLayer::__vftable
+ (adj >> 1)))->FLAlert_Clicked
+ (unsigned __int64)a1->m_callbackSelector.ptr);
else
ptr = (void (*)(void))a1->m_callbackSelector.ptr;
ptr();
}
a1->removeFromParentAndCleanup(a1, 1);
}