//
// cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite from 0x5a6f00 to 0x5a6fca (202 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlPotentiometer::create @ 0x5a7002
//
// 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
//
bool cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite(
cocos2d::extension::CCControlPotentiometer *a1,
cocos2d::CCSprite *a2,
cocos2d::CCProgressTimer *a3,
cocos2d::CCSprite *a4)
{
_BOOL4 v8; // r8
cocos2d::CCObject *m_uID; // r0
cocos2d::CCObject *v10; // r0
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
const cocos2d::CCPoint *v12; // r0
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r5
const cocos2d::CCSize *v14; // r0
v8 = cocos2d::extension::CCControl::init(a1);
if ( v8 )
{
a1->setTouchEnabled(a1, 1);
if ( (cocos2d::CCProgressTimer *)a1[1].m_uID != a3 )
{
if ( a3 )
cocos2d::CCObject::retain(a3);
m_uID = (cocos2d::CCObject *)a1[1].m_uID;
if ( m_uID )
cocos2d::CCObject::release(m_uID);
a1[1].m_uID = (unsigned int)a3;
}
if ( (cocos2d::CCSprite *)a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable != a4 )
{
if ( a4 )
cocos2d::CCObject::retain(a4);
v10 = (cocos2d::CCObject *)a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v10 )
cocos2d::CCObject::release(v10);
a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::extension::CCControlPotentiometer_vtbl *)a4;
}
setPosition = a4->setPosition;
v12 = a3->getPosition(a3);
setPosition(a4, v12);
a1->addChild_0(a1, a4, 2);
a1->addChild_0(a1, a3, 1);
a1->addChild(a1, a2);
setContentSize = a1->setContentSize;
v14 = a2->getContentSize(a2);
setContentSize(a1, v14);
a1[1].m_uAutoReleaseCount = 0;
a1[1].m_eObjType = 1065353216;
cocos2d::extension::CCControlPotentiometer::setValue(a1, 0.0);
}
return v8;
}