//
// SetupObjectOptionsPopup::create from 0x100317090 to 0x100317200 (368 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::onExtra @ 0x100316815
//
// 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
//
SetupObjectOptionsPopup *__fastcall SetupObjectOptionsPopup::create(
GameObject *a1,
cocos2d::CCArray *a2,
SetGroupIDLayer *a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x2B8u);
cocos2d::CCLayerColor::CCLayerColor(v4);
*((_QWORD *)v4 + 72) = 0;
*((_DWORD *)v4 + 146) = 0;
v4[588] = 0;
*((_OWORD *)v4 + 34) = 0;
*(_OWORD *)(v4 + 553) = 0;
*((_OWORD *)v4 + 37) = 0;
*((_QWORD *)v4 + 76) = 0;
*((_DWORD *)v4 + 154) = -1;
*((_WORD *)v4 + 310) = 0;
*((_DWORD *)v4 + 156) = -1;
v4[628] = 0;
*(_QWORD *)v4 = off_100910DA0;
*((_QWORD *)v4 + 40) = off_1009112D0;
*((_QWORD *)v4 + 41) = &off_100911340;
*((_QWORD *)v4 + 42) = off_100911358;
*((_QWORD *)v4 + 43) = off_100911378;
*((_QWORD *)v4 + 44) = off_100911398;
*((_QWORD *)v4 + 51) = off_1009113C0;
*((_QWORD *)v4 + 54) = off_100911440;
*((_QWORD *)v4 + 79) = off_100911460;
*((_QWORD *)v4 + 85) = 0;
*((_WORD *)v4 + 344) = 0;
*(_OWORD *)(v4 + 652) = 0;
*((_OWORD *)v4 + 40) = 0;
*(_QWORD *)(v4 + 670) = 0;
v4[678] = 0;
if ( SetupObjectOptionsPopup::init((SetupObjectOptionsPopup *)v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (SetupObjectOptionsPopup *)v4;
}