//
// cocos2d::CCSet::addObject from 0x10024127c to 0x1002412c0 (68 bytes)
//
// 8 xrefs:
// > sub_100155E94 @ 0x100155ef4
// > sub_100155EF8 @ 0x100155f2c
// > cocos2d::CCTouchDispatcher::touches @ 0x1001cdfd4
// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x100381f44
// > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x100382108
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x10038223c
// > sub_10039BEA0 @ 0x10039bf00
// > sub_10039BF04 @ 0x10039bf38
//
// This function is hookable on this platform (idp: arm, 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:01:24 +0000
//
__int64 __fastcall cocos2d::CCSet::addObject(__int64 a1, __int64 a2)
{
__int64 v4; // [xsp+8h] [xbp-18h] BYREF
v4 = a2;
if ( a2 )
cocos2d::CCObject::retain(a2);
return sub_1002416BC(*(_QWORD *)(a1 + 56), &v4, &v4);
}