//
// GJRotationControl::ccTouchEnded from 0x100051e00 to 0x100051e69 (105 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b1310
//
// 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::ccTouchEnded(GJRotationControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_touchID; // eax
cocos2d::CCSprite *m_controlSprite; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
cocos2d::CCSpriteFrame *v6; // rax
GJRotationControlDelegate *m_delegate; // rdi
m_touchID = a1->m_touchID;
if ( m_touchID != -1 && m_touchID == a2->m_nId )
{
a1->m_touchID = -1;
m_controlSprite = a1->m_controlSprite;
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_rotationControlBtn01_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(
m_controlSprite,
v6);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);
}
}