//
// cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0x18000cee0 to 0x18000cf50 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004bcd8
//
// 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:15:38 +0000
//
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 + 288LL))(v8, a4);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 464LL))(a2, v8);
return v8;
}
return result;
}