//
// cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x100481640 to 0x1004816bd (125 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCTargetedTouchHandler::initWithDelegate(
cocos2d::CCTargetedTouchHandler *a1,
cocos2d::CCTouchDelegate *a2,
int a3,
bool a4)
{
cocos2d::CCObject *v7; // rdi
cocos2d::CCSet *v8; // r15
a1->m_pDelegate = a2;
if ( a2 )
v7 = (cocos2d::CCObject *)__dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v7 = nullptr;
cocos2d::CCObject::retain(v7);
a1->m_nPriority = a3;
a1->m_nEnabledSelectors = 0;
v8 = (cocos2d::CCSet *)operator new(0x40u);
cocos2d::CCSet::CCSet(v8);
a1->m_pClaimedTouches = v8;
a1->m_bSwallowsTouches = a4;
return 1;
}