//
// cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x1800b3e70 to 0x1800b3efd (141 bytes)
//
// 3 xrefs:
// > cocos2d::CCTargetedTouchHandler::handlerWithDelegate @ 0x1800b3ce8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b87d8
//
// 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
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCTargetedTouchHandler::initWithDelegate(
cocos2d::CCTargetedTouchHandler *this,
struct cocos2d::CCTouchDelegate *a2,
int a3,
bool a4)
{
cocos2d::CCSet *v7; // rsi
cocos2d::CCObject *v8; // rax
cocos2d::CCSet *v9; // rax
this->m_pDelegate = a2;
v7 = nullptr;
v8 = (cocos2d::CCObject *)_RTDynamicCast(
a2,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::retain(v8);
this->m_nPriority = a3;
this->m_nEnabledSelectors = 0;
v9 = (cocos2d::CCSet *)operator new(0x40u);
if ( v9 )
v7 = cocos2d::CCSet::CCSet(v9);
this->m_pClaimedTouches = v7;
this->m_bSwallowsTouches = a4;
return 1;
}