//
// GJRotationControl::create from 0x6eb740 to 0x6eb800 (192 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x48a44a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:32 +0000
//
int *__fastcall GJRotationControl::create(GJRotationControl *this)
{
int *v1; // r4
int v2; // r3
int *v3; // r0
v1 = (int *)operator new(0x180u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*v1 = (int)&off_CEA9E8;
v1[66] = (int)&off_CEAC30;
v1[67] = (int)&off_CEAC68;
v1[68] = (int)&off_CEAC74;
v1[69] = (int)&off_CEAC84;
v1[70] = (int)&off_CEAC98;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 79));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 81));
v1[84] = 0;
v1[85] = 0;
v1[86] = -1;
v1[87] = 0;
*((_BYTE *)v1 + 352) = 0;
v1[89] = 0;
v1[90] = 0;
v1[91] = 0;
v1[92] = 0;
v1[93] = 0;
v1[94] = 0;
v1[95] = 0;
if ( (*(int (__fastcall **)(int *))(*v1 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v2 = *v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v2 + 8))(v3);
}
return v1;
}