//
// SliderThumb::create from 0x1002eec10 to 0x1002eece0 (208 bytes)
//
// 1 xrefs:
// > SliderTouchLogic::init @ 0x1002ef138
//
// 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 *__fastcall SliderThumb::create(
cocos2d::CCNode *a1,
cocos2d::SEL_MenuHandler a2,
const char *a3,
const char *a4)
{
size_t adj; // x20
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
char *v9; // x19
cocos2d::SEL_MenuHandler v11; // 0:x5.16
adj = a2.adj;
ptr = a2.ptr;
v9 = (char *)operator new(0x198u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v9);
*((_WORD *)v9 + 169) = 0;
*((_QWORD *)v9 + 49) = 0;
*(_OWORD *)(v9 + 344) = 0u;
*(_OWORD *)(v9 + 360) = 0u;
*(_OWORD *)(v9 + 376) = 0u;
*(_QWORD *)v9 = &off_1007E7170;
*((_QWORD *)v9 + 40) = off_1007E75D8;
v9[404] = 0;
*((_DWORD *)v9 + 100) = 1128792064;
v11.ptr = ptr;
v11.adj = adj;
if ( cocos2d::CCMenuItemImage::initWithNormalImage((cocos2d::CCMenuItemImage *)v9, a3, a4, nullptr, a1, v11) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
return (SliderThumb *)v9;
}