//
// cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite from 0x180008a10 to 0x180008b60 (336 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCControlPotentiometer::create @ 0x1800089d2
// > ??> @ 0x180030154
// > ??> @ 0x180030164
// > ??> @ 0x180032408
// > ??> @ 0x18004b8a0
//
// 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:37 +0000
//
char __fastcall cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite(
cocos2d::extension::CCControlPotentiometer *this,
struct cocos2d::CCSprite *a2,
struct cocos2d::CCProgressTimer *a3,
struct cocos2d::CCSprite *a4)
{
__int64 v8; // rdx
cocos2d::CCObject *v9; // rcx
cocos2d::CCObject *v10; // rcx
__int64 v11; // rbx
__int64 v12; // rax
__int64 v13; // rbx
__int64 v14; // rax
if ( !cocos2d::extension::CCControl::init(this) )
return 0;
LOBYTE(v8) = 1;
(*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(*(_QWORD *)this + 920LL))(this, v8);
if ( *((struct cocos2d::CCProgressTimer **)this + 60) != a3 )
{
if ( a3 )
cocos2d::CCObject::retain(a3);
v9 = *((cocos2d::CCObject **)this + 60);
if ( v9 )
cocos2d::CCObject::release(v9);
*((_QWORD *)this + 60) = a3;
}
if ( *((struct cocos2d::CCSprite **)this + 59) != a4 )
{
if ( a4 )
cocos2d::CCObject::retain(a4);
v10 = *((cocos2d::CCObject **)this + 59);
if ( v10 )
cocos2d::CCObject::release(v10);
*((_QWORD *)this + 59) = a4;
}
v11 = *(_QWORD *)a4;
v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCProgressTimer *))(*(_QWORD *)a3 + 200LL))(a3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v11 + 184))(a4, v12);
(*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)this + 456LL))(
this,
a4,
2);
(*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCProgressTimer *, __int64))(*(_QWORD *)this + 456LL))(
this,
a3,
1);
(*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCSprite *))(*(_QWORD *)this + 464LL))(
this,
a2);
v13 = *(_QWORD *)this;
v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2);
(*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(v13 + 312))(this, v14);
*((_DWORD *)this + 125) = 0;
*((_DWORD *)this + 126) = 1065353216;
cocos2d::extension::CCControlPotentiometer::setValue(this, 0.0);
return 1;
}