//
// cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0xaa02b0 to 0xaa0328 (120 bytes)
//
// 8 xrefs:
// > cocos2d::extension::CCControlColourPicker::init @ 0xa9cc5c
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0xa9d214
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0xa9d274
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0xa9d9b8
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0xa9d9f0
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0xa9da28
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0xa9da60
// > ??> @ 0x6a728
//
// 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 *cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
const char *a1,
cocos2d::CCNode *a2,
cocos2d::CCPoint a3,
cocos2d::CCPoint a4)
{
const cocos2d::CCPoint *v4; // x2
const cocos2d::CCPoint *v5; // x3
const cocos2d::CCPoint *v7; // x21
cocos2d::CCSprite *v8; // x0
cocos2d::CCSprite *v9; // x19
const cocos2d::CCPoint *v11; // [xsp+38h] [xbp+38h]
v11 = v4;
v7 = v5;
v8 = cocos2d::CCSprite::createWithSpriteFrameName(a1);
v9 = v8;
if ( v8 )
{
v8->setPosition(v8, v11);
v9->setAnchorPoint(v9, v7);
a2->addChild(a2, v9);
}
return v9;
}