//
// GJTransformControl::create from 0x1401a4db0 to 0x1401a4fa9 (505 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x1401a9e5e
// > ??> @ 0x140919af0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:49 +0000
//
// Hidden C++ exception states: #wind=3
char *GJTransformControl::create()
{
char *v0; // rbx
__int64 (__fastcall *v1)(char *); // rdx
char v2; // al
v0 = (char *)operator new(0x288u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);
*(_QWORD *)v0 = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 40) = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 41) = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 42) = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 43) = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 44) = &GJTransformControl::`vftable';
*((_QWORD *)v0 + 53) = 0;
*((_DWORD *)v0 + 108) = -1;
*((_WORD *)v0 + 218) = 0;
*((_QWORD *)v0 + 55) = 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));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 504));
*((_QWORD *)v0 + 64) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 520));
*((_QWORD *)v0 + 66) = 0;
*((_QWORD *)v0 + 67) = 0;
*((_QWORD *)v0 + 68) = 0;
*((_QWORD *)v0 + 69) = 0;
*((_QWORD *)v0 + 70) = 0;
*((_QWORD *)v0 + 71) = 0;
*((_QWORD *)v0 + 72) = 0;
*((_QWORD *)v0 + 73) = 0;
*((_DWORD *)v0 + 148) = 1065353216;
*(_QWORD *)(v0 + 596) = 1065353216;
*(_QWORD *)(v0 + 604) = 0;
*((_DWORD *)v0 + 153) = 0;
*((_DWORD *)v0 + 154) = 1065353216;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 620));
v0[628] = 0;
*((_DWORD *)v0 + 158) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 636));
v1 = *(__int64 (__fastcall **)(char *))(*(_QWORD *)v0 + 72LL);
if ( (char *)v1 == (char *)GJTransformControl::init )
v2 = GJTransformControl::init(v0);
else
v2 = v1(v0);
if ( v2 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return v0;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}
}