//
// cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0x1001d3e5c to 0x1001d3ed4 (120 bytes)
//
// 7 xrefs:
// > cocos2d::extension::CCControlColourPicker::init @ 0x1001ae32c
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x1001af910
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x1001af954
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1001bde10
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1001bde48
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1001bde80
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1001bdebc
//
// 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
//
cocos2d::CCSprite *__fastcall cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
const char *a1,
cocos2d::CCNode *a2,
cocos2d::CCPoint a3,
cocos2d::CCPoint a4)
{
__int64 v4; // x2
__int64 v5; // x3
__int64 v6; // x21
__int64 v7; // x22
cocos2d::CCSprite *v9; // x0
cocos2d::CCSprite *v10; // x20
v6 = v5;
v7 = v4;
v9 = cocos2d::CCSprite::createWithSpriteFrameName(a1);
v10 = v9;
if ( v9 )
{
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v9->setPosition)(v9, v7);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v10->setAnchorPoint)(v10, v6);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *))a2->addChild)(a2, v10);
}
return v10;
}