//
// GJRotationControl::init from 0x695088 to 0x69516c (228 bytes)
//
// 2 xrefs:
// > ??> @ 0x86c40
// > ??> @ 0x1156f10
//
// 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
//
bool GJRotationControl::init(GJRotationControl *a1)
{
bool v2; // w21
float v3; // s0
float v4; // s1
cocos2d::CCSprite *v5; // x0
GJRotationControl_vtbl *v6; // x3
cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF
v2 = cocos2d::CCLayer::init(a1);
if ( v2 )
{
a1->setTouchEnabled(a1, 1);
cocos2d::CCPoint::CCPoint(&v8, 60.0, 0.0);
cocos2d::CCPoint::operator=(&a1->m_controlPosition, v3, v4);
a1->setAnchorPoint(a1, (const cocos2d::CCPoint *)&dword_1242110);
v5 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_rotationControlBtn01_001.png");
v6 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_controlSprite = v5;
((void (__fastcall *)(GJRotationControl *))v6->addChild_0)(a1);
GJRotationControl::setAngle(a1, 0.0);
}
return v2;
}