//
// GJRotationControl::finishTouch from 0x1401a29b0 to 0x1401a2a53 (163 bytes)
//
// 8 xrefs:
// > GJRotationControl::ccTouchEnded @ 0x1401a2e11
// > EditorUI::toggleSpecialEditButtons @ 0x1401bb38f
// > EditorUI::selectAll @ 0x1401c7fb6
// > EditorUI::selectAllWithDirection @ 0x1401c8186
// > EditorUI::deactivateRotationControl @ 0x140202760
// > ??> @ 0x1408a082c
// > ??> @ 0x1408a083c
// > ??> @ 0x140919934
//
// This function is hookable on this platform (idp: pc, 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 11:27:48 +0000
//
void __fastcall GJRotationControl::finishTouch(__int64 a1)
{
__int64 v2; // rcx
__int64 *v3; // rdi
__int64 v4; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
struct cocos2d::CCSpriteFrame *v6; // rax
__int64 v7; // rcx
v2 = *(_QWORD *)(a1 + 504);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)(v2 + 320) + 32LL))(v2 + 320, 0, 0);
*(_QWORD *)(a1 + 504) = 0;
if ( *(_DWORD *)(a1 + 440) != -1 )
{
*(_DWORD *)(a1 + 440) = -1;
v3 = *(__int64 **)(a1 + 424);
v4 = *v3;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_rotationControlBtn01_001.png");
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v6);
v7 = *(_QWORD *)(a1 + 512);
if ( v7 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 16LL))(v7);
}
}