//
// cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x100475fa0 to 0x10047601d (125 bytes)
//
// 0 xrefs:
//
// 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 12:30:35 +0000
//
char __fastcall cocos2d::CCTargetedTouchHandler::initWithDelegate(__int64 a1, const void *a2, int a3, char a4)
{
void *v7; // rdi
void *v8; // r15
*(_QWORD *)(a1 + 56) = a2;
if ( a2 )
v7 = __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);
*(_DWORD *)(a1 + 64) = a3;
*(_DWORD *)(a1 + 68) = 0;
v8 = operator new(0x40u);
cocos2d::CCSet::CCSet(v8);
*(_QWORD *)(a1 + 80) = v8;
*(_BYTE *)(a1 + 72) = a4;
return 1;
}