//
// SliderThumb::create from 0x2f5360 to 0x2f53fc (156 bytes)
//
// 1 xrefs:
// > SliderTouchLogic::init @ 0x2f5640
//
// 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
//
SliderThumb *SliderThumb::create(cocos2d::CCNode *a1, cocos2d::SEL_MenuHandler a2, const char *a3, const char *a4)
{
int v6; // r4
v6 = operator new(0x140u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v6);
*(_BYTE *)(v6 + 278) = 0;
*(_BYTE *)(v6 + 279) = 0;
*(_DWORD *)(v6 + 280) = 0;
*(_DWORD *)(v6 + 284) = 0;
*(_DWORD *)(v6 + 288) = 0;
*(_DWORD *)(v6 + 292) = 0;
*(_DWORD *)(v6 + 300) = 0;
*(_DWORD *)(v6 + 304) = 0;
*(_DWORD *)(v6 + 308) = 0;
*(_BYTE *)(v6 + 316) = 0;
*(_DWORD *)(v6 + 296) = 0;
*(_DWORD *)v6 = &off_A40AC0;
*(_DWORD *)(v6 + 264) = &off_A40CF4;
*(_DWORD *)(v6 + 312) = 0;
if ( SliderThumb::init((SliderThumb *)v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (SliderThumb *)v6;
}
else
{
(*(void (__fastcall **)(int))(*(_DWORD *)v6 + 8))(v6);
return nullptr;
}
}