//
// SetGroupIDLayer::create from 0x100312360 to 0x100312523 (451 bytes)
//
// 1 xrefs:
// > EditorUI::editGroup @ 0x10002c27a
//
// 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
//
SetGroupIDLayer *__fastcall SetGroupIDLayer::create(GameObject *a1, cocos2d::CCArray *a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x318u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_100910678;
*((_QWORD *)v2 + 40) = off_100910BB0;
*((_QWORD *)v2 + 41) = &off_100910C20;
*((_QWORD *)v2 + 42) = off_100910C38;
*((_QWORD *)v2 + 43) = off_100910C58;
*((_QWORD *)v2 + 44) = off_100910C78;
*((_QWORD *)v2 + 51) = off_100910CA0;
*((_QWORD *)v2 + 54) = off_100910D20;
*((_QWORD *)v2 + 79) = off_100910D40;
*((_QWORD *)v2 + 80) = &off_100910D88;
*((_DWORD *)v2 + 183) = 0;
v2[736] = 0;
*(_OWORD *)(v2 + 648) = 0;
*(_OWORD *)(v2 + 680) = 0;
*(_OWORD *)(v2 + 696) = 0;
*(_OWORD *)(v2 + 712) = 0;
v2[728] = 0;
*(_OWORD *)(v2 + 740) = xmmword_100819870;
*((_WORD *)v2 + 386) = 0;
*(_WORD *)(v2 + 775) = 0;
*((_DWORD *)v2 + 195) = 0;
*((_QWORD *)v2 + 98) = 0;
*(_QWORD *)(v2 + 756) = 0;
*(_DWORD *)(v2 + 763) = 0;
if ( SetGroupIDLayer::init((SetGroupIDLayer *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (SetGroupIDLayer *)v2;
}