//
// GameObjectCopy::create from 0x1000e3230 to 0x1000e3314 (228 bytes)
//
// 4 xrefs:
// > UndoObject::create @ 0x1000dfc83
// > LevelEditorLayer::handleAction @ 0x1000e2ce2
// > UndoObject::init_1 @ 0x1001007c4
// > UndoObject::initWithTransformObjects @ 0x10010090e
//
// 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
//
GameObjectCopy *__fastcall GameObjectCopy::create(GameObject *a1)
{
char *v1; // rbx
__int64 v2; // rsi
double v3; // xmm0_8
v1 = (char *)operator new(0x60u);
*(_OWORD *)v1 = 0;
*((_OWORD *)v1 + 1) = 0;
*((_OWORD *)v1 + 2) = 0;
*((_OWORD *)v1 + 3) = 0;
*((_OWORD *)v1 + 4) = 0;
*((_OWORD *)v1 + 5) = 0;
cocos2d::CCObject::CCObject(v1);
*(_QWORD *)v1 = off_1008C0960;
sub_10028CC30(v1 + 64);
*((_QWORD *)v1 + 7) = a1;
cocos2d::CCObject::retain(a1);
v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 7) + 192LL))(*((_QWORD *)v1 + 7));
v3 = sub_10028CC90();
*((float *)v1 + 18) = (*(float (__fastcall **)(_QWORD, __int64, double))(**((_QWORD **)v1 + 7) + 368LL))(
*((_QWORD *)v1 + 7),
v2,
v3);
*((float *)v1 + 19) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 7) + 384LL))(*((_QWORD *)v1 + 7));
v1[80] = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 7) + 1408LL))(*((_QWORD *)v1 + 7));
v1[81] = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 7) + 1416LL))(*((_QWORD *)v1 + 7));
*(_QWORD *)(v1 + 84) = *(_QWORD *)(*((_QWORD *)v1 + 7) + 1152LL);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return (GameObjectCopy *)v1;
}