//
// GJRotationControl::finishTouch from 0x1003f809c to 0x1003f8110 (116 bytes)
//
// 3 xrefs:
// > EditorUI::deactivateRotationControl @ 0x1003c6fe4
// > GJRotationControl::ccTouchEnded @ 0x1003fabd0
// > sub_1003FABD8 @ 0x1003fabec
//
// 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
//
void __fastcall GJRotationControl::finishTouch(GJRotationControl *a1)
{
cocos2d::CCSprite *m_controlSprite; // x20
cocos2d::CCSpriteFrameCache *v3; // x0
cocos2d::CCSpriteFrame *v4; // x0
GJRotationControlDelegate *m_delegate; // x0
if ( a1->m_touchID != -1 )
{
a1->m_touchID = -1;
m_controlSprite = a1->m_controlSprite;
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, "GJ_rotationControlBtn01_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(
m_controlSprite,
v4);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);
}
}