//
// GJRotationControl::finishTouch from 0x100641260 to 0x1006412e6 (134 bytes)
//
// 2 xrefs:
// > EditorUI::activateTransformControl @ 0x1006118d9
// > EditorUI::deactivateRotationControl @ 0x100611be0
//
// 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 12:34:43 +0000
//
void __fastcall GJRotationControl::finishTouch(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // r14
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdi
v2 = *(_QWORD *)(a1 + 504);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v2 + 920LL))(v2, 0, 0);
*(_QWORD *)(a1 + 504) = 0;
if ( *(_DWORD *)(a1 + 440) != -1 )
{
*(_DWORD *)(a1 + 440) = -1;
v3 = *(_QWORD *)(a1 + 424);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "GJ_rotationControlBtn01_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v5);
v6 = *(_QWORD *)(a1 + 512);
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
}
}