//
// SliderTouchLogic::create from 0x1002eef60 to 0x1002ef080 (288 bytes)
//
// 1 xrefs:
// > Slider::init @ 0x1002ef5ec
//
// 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
//
SliderTouchLogic *__fastcall SliderTouchLogic::create(
cocos2d::CCNode *a1,
cocos2d::SEL_MenuHandler a2,
const char *a3,
const char *a4,
float a5)
{
size_t adj; // x22
void (__cdecl *ptr)(cocos2d::CCObject *); // x23
_OWORD *v11; // x19
cocos2d::SEL_MenuHandler v13; // 0:x2.16
adj = a2.adj;
ptr = a2.ptr;
v11 = operator new(0x1E0u);
*v11 = 0u;
v11[1] = 0u;
v11[2] = 0u;
v11[3] = 0u;
v11[4] = 0u;
v11[5] = 0u;
v11[6] = 0u;
v11[7] = 0u;
v11[8] = 0u;
v11[9] = 0u;
v11[10] = 0u;
v11[11] = 0u;
v11[12] = 0u;
v11[13] = 0u;
v11[14] = 0u;
v11[15] = 0u;
v11[16] = 0u;
v11[17] = 0u;
v11[18] = 0u;
v11[19] = 0u;
v11[20] = 0u;
v11[21] = 0u;
v11[22] = 0u;
v11[23] = 0u;
v11[24] = 0u;
v11[25] = 0u;
v11[26] = 0u;
v11[27] = 0u;
v11[28] = 0u;
v11[29] = 0u;
cocos2d::CCLayerRGBA::CCLayerRGBA((__int64)v11);
*((_QWORD *)v11 + 54) = 0;
*(_QWORD *)v11 = &off_1007E6AE8;
*((_QWORD *)v11 + 40) = off_1007E6FE8;
*((_QWORD *)v11 + 41) = &off_1007E7058;
*((_QWORD *)v11 + 42) = off_1007E7070;
*((_QWORD *)v11 + 43) = &off_1007E7090;
*((_QWORD *)v11 + 44) = off_1007E70B0;
*((_QWORD *)v11 + 51) = off_1007E70D8;
sub_1000229B0((_OWORD *)((char *)v11 + 468));
v13.ptr = ptr;
v13.adj = adj;
if ( SliderTouchLogic::init((SliderTouchLogic *)v11, a1, v13, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v11 + 16LL))(v11);
return nullptr;
}
return (SliderTouchLogic *)v11;
}