//
// GJRotationControl::finishTouch from 0xbcf314 to 0xbcf398 (132 bytes)
//
// 3 xrefs:
// > GJRotationControl::ccTouchEnded @ 0xbcf404
// > EditorUI::deactivateRotationControl @ 0xc01c0c
// > ??> @ 0x6c538
//
// 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::finishTouch(GJRotationControl *this)
{
__int64 result; // x0
cocos2d::CCSpriteFrameCache **v3; // x20
void (__fastcall *v4)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v5; // x0
__int64 v6; // x0
ControlMenuTouch::cancelled((__int64)this + 480);
result = *((unsigned int *)this + 110);
if ( (_DWORD)result != -1 )
{
v3 = *((cocos2d::CCSpriteFrameCache ***)this + 53);
*((_DWORD *)this + 110) = -1;
v4 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v3 + 145);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v3);
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_rotationControlBtn01_001.png");
v4(v3, v6);
result = *((_QWORD *)this + 64);
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);
}
return result;
}