//
// cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x1800b7bb0 to 0x1800b7c3f (143 bytes)
//
// 3 xrefs:
// > cocos2d::CCTargetedTouchHandler::handlerWithDelegate @ 0x1800b7a28
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2acc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:22 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCTargetedTouchHandler::initWithDelegate(
cocos2d::CCTargetedTouchHandler *this,
struct cocos2d::CCTouchDelegate *a2,
int a3,
char a4)
{
cocos2d::CCSet *v7; // rsi
cocos2d::CCObject *v8; // rax
cocos2d::CCSet *v9; // rax
*((_QWORD *)this + 7) = a2;
v7 = nullptr;
v8 = (cocos2d::CCObject *)_RTDynamicCast(
a2,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::retain(v8);
*((_DWORD *)this + 16) = a3;
*((_DWORD *)this + 17) = 0;
v9 = (cocos2d::CCSet *)sub_1800E4AC0(0x40u);
if ( v9 )
v7 = cocos2d::CCSet::CCSet(v9);
*((_QWORD *)this + 10) = v7;
*((_BYTE *)this + 72) = a4;
return 1;
}