//
// cocos2d::CCTouchDispatcher::init from 0x5fa608 to 0x5fa66a (98 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::init @ 0x5c2d70
//
// 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
//
bool cocos2d::CCTouchDispatcher::init(cocos2d::CCTouchDispatcher *a1)
{
unsigned int v1; // r1
cocos2d::CCArray *v3; // r0
unsigned int v4; // r1
cocos2d::CCArray *v5; // r0
unsigned int v6; // r1
cocos2d::CCArray *v7; // r0
unsigned int v8; // r1
cocos2d::CCDictionary *v9; // r0
a1->m_bDispatchEvents = 1;
v3 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)byte_8, v1);
a1->m_pTargetedHandlers = v3;
cocos2d::CCObject::retain(v3);
v5 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)byte_4, v4);
a1->m_pStandardHandlers = v5;
cocos2d::CCObject::retain(v5);
v7 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)byte_8, v6);
a1->m_pHandlersToAdd = v7;
cocos2d::CCObject::retain(v7);
a1->m_pHandlersToRemove = (cocos2d::_ccCArray *)cocos2d::ccCArrayNew((cocos2d *)byte_8, v8);
v9 = cocos2d::CCDictionary::create();
a1->m_pForcePrioDict = v9;
cocos2d::CCObject::retain(v9);
a1->m_sHandlerHelperData[1].m_type = 1;
a1->m_bToRemove = 0;
a1->m_bToAdd = 0;
a1->m_bToQuit = 0;
a1->m_bLocked = 0;
a1->m_sHandlerHelperData[0].m_type = 0;
a1->m_sHandlerHelperData[2].m_type = 2;
a1->m_sHandlerHelperData[3].m_type = 3;
return 1;
}