//
// cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0x18000d3c0 to 0x18000d430 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049df8
//
// 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
//
struct cocos2d::CCSprite *__fastcall cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
const char *a1,
__int64 a2,
__int64 a3,
__int64 a4)
{
struct cocos2d::CCSprite *result; // rax
struct cocos2d::CCSprite *v8; // rbx
result = cocos2d::CCSprite::createWithSpriteFrameName(a1);
v8 = result;
if ( result )
{
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)result + 184LL))(result, a3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 272LL))(v8, a4);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 448LL))(a2, v8);
return v8;
}
return result;
}