//
// SliderThumb::create from 0x100303620 to 0x1003036fd (221 bytes)
//
// 0 xrefs:
//
// 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; // r13
char *v6; // rbx
cocos2d::SEL_MenuHandler v8; // [rsp+10h] [rbp-40h]
adj = a2.adj;
v6 = (char *)operator new(0x198u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v6);
*((_WORD *)v6 + 169) = 0;
*(_OWORD *)(v6 + 344) = 0;
*(_OWORD *)(v6 + 360) = 0;
*(_OWORD *)(v6 + 376) = 0;
*((_QWORD *)v6 + 49) = 0;
*(_QWORD *)v6 = off_10090C860;
*((_QWORD *)v6 + 40) = off_10090CCC8;
v6[404] = 0;
*((_DWORD *)v6 + 100) = 1128792064;
v8.ptr = a2.ptr;
v8.adj = adj;
if ( cocos2d::CCMenuItemImage::initWithNormalImage((cocos2d::CCMenuItemImage *)v6, a3, a4, nullptr, a1, v8) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (SliderThumb *)v6;
}