//
// GJTransformControl::create from 0x695dc0 to 0x695f0c (332 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x6bc0fc
// > ??> @ 0x4ad18
//
// 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
//
GJTransformControl *GJTransformControl::create()
{
__int64 v0; // x19
__int64 v1; // x1
unsigned __int8 (__fastcall *v2)(__int64); // x1
v0 = operator new(0x230u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);
*(_QWORD *)(v0 + 424) = 0;
*(_QWORD *)v0 = &off_11579A0;
*(_QWORD *)(v0 + 352) = off_1157EE8;
*(_QWORD *)(v0 + 320) = off_1157E20;
*(_QWORD *)(v0 + 328) = &off_1157E90;
*(_QWORD *)(v0 + 336) = off_1157EA8;
*(_QWORD *)(v0 + 344) = &off_1157EC8;
*(_DWORD *)(v0 + 432) = -1;
*(_WORD *)(v0 + 436) = 0;
*(_QWORD *)(v0 + 440) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 448));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 456));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 464));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 472));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 480));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 488));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 496));
*(_QWORD *)(v0 + 504) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 512));
v1 = *(_QWORD *)v0;
*(_QWORD *)(v0 + 520) = 0;
*(_BYTE *)(v0 + 536) = 0;
v2 = *(unsigned __int8 (__fastcall **)(__int64))(v1 + 80);
*(_DWORD *)(v0 + 540) = 0;
*(float *)(v0 + 528) = 1.0;
*(float *)(v0 + 532) = 1.0;
*(_DWORD *)(v0 + 544) = 0;
*(_DWORD *)(v0 + 548) = 0;
*(float *)(v0 + 552) = 1.0;
if ( v2(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (GJTransformControl *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}