//
// GJRotationControl::ccTouchEnded from 0x100641600 to 0x100641696 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b81678
//
// 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
//
__int64 __fastcall GJRotationControl::ccTouchEnded(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 result; // rax
__int64 v5; // r14
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rdi
v3 = *(_QWORD *)(a1 + 504);
if ( v3 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 912LL))(v3);
*(_QWORD *)(a1 + 504) = 0;
}
else
{
result = *(unsigned int *)(a1 + 440);
if ( (_DWORD)result == *(_DWORD *)(a2 + 56) )
{
*(_QWORD *)(a1 + 504) = 0;
if ( (_DWORD)result != -1 )
{
*(_DWORD *)(a1 + 440) = -1;
v5 = *(_QWORD *)(a1 + 424);
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, "GJ_rotationControlBtn01_001.png");
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v7);
v8 = *(_QWORD *)(a1 + 512);
if ( v8 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 16LL))(v8);
}
}
}
return result;
}