//
// OptionsScrollLayer::keyBackClicked from 0x100610890 to 0x10061091f (143 bytes)
//
// 1 xrefs:
// > ??> @ 0x100981268
//
// 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 __fastcall OptionsScrollLayer::keyBackClicked(OptionsScrollLayer *a1)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
FLAlertLayerProtocol *m_alertProtocol; // rdi
if ( a1->m_listLayer )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1->m_listLayer);
((void (__fastcall *)(GJCommentListLayer *))a1->m_listLayer->removeMeAndCleanup)(a1->m_listLayer);
a1->m_listLayer = nullptr;
}
m_alertProtocol = a1->m_alertProtocol;
if ( m_alertProtocol )
((void (__fastcall *)(FLAlertLayerProtocol *, OptionsScrollLayer *, __int64))m_alertProtocol->FLAlert_Clicked)(
m_alertProtocol,
a1,
1);
((void (__fastcall *)(OptionsScrollLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(OptionsScrollLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}