//
// GJRotationControl::create from 0xbcea00 to 0xbceb14 (276 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x7cee78
// > ??> @ 0xf6088
//
// This function is hookable on this platform (idp: arm, 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 13:03:36 +0000
//
__int64 __fastcall GJRotationControl::create(GJRotationControl *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x208u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_QWORD *)v1 = &off_14E1960;
*(_QWORD *)(v1 + 320) = off_14E1DF0;
*(_QWORD *)(v1 + 328) = &off_14E1E60;
*(_QWORD *)(v1 + 336) = off_14E1E78;
*(_QWORD *)(v1 + 344) = off_14E1E98;
*(_QWORD *)(v1 + 352) = off_14E1EC0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 404));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 412));
v2 = *(_QWORD *)v1;
*(_QWORD *)(v1 + 448) = 0;
*(_BYTE *)(v1 + 456) = 0;
*(_DWORD *)(v1 + 440) = -1;
*(_QWORD *)(v1 + 464) = 0;
*(_QWORD *)(v1 + 472) = 0;
*(_QWORD *)(v1 + 480) = 0;
*(_QWORD *)(v1 + 488) = 0;
*(_QWORD *)(v1 + 496) = 0;
*(_QWORD *)(v1 + 504) = 0;
*(_QWORD *)(v1 + 512) = 0;
*(_DWORD *)(v1 + 432) = 0;
*(_DWORD *)(v1 + 436) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}