//
// GJRotationControl::create from 0x694ed0 to 0x694fc4 (244 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x6bc07c
// > ??> @ 0xbcac0
//
// 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
//
GJRotationControl *GJRotationControl::create()
{
__int64 v0; // x19
__int64 v1; // x1
unsigned __int8 (__fastcall *v2)(__int64); // x1
v0 = operator new(0x1C8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);
*(_QWORD *)v0 = &off_1156EC0;
*(_QWORD *)(v0 + 320) = off_1157340;
*(_QWORD *)(v0 + 328) = &off_11573B0;
*(_QWORD *)(v0 + 336) = off_11573C8;
*(_QWORD *)(v0 + 344) = &off_11573E8;
*(_QWORD *)(v0 + 352) = off_1157408;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 404));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 412));
v1 = *(_QWORD *)v0;
*(_QWORD *)(v0 + 448) = 0;
*(_DWORD *)(v0 + 440) = -1;
v2 = *(unsigned __int8 (__fastcall **)(__int64))(v1 + 80);
*(_DWORD *)(v0 + 432) = 0;
*(_DWORD *)(v0 + 436) = 0;
if ( v2(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (GJRotationControl *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}