//
// GJRotationControl::onToggleLockRotation from 0x100640cc0 to 0x100640d20 (96 bytes)
//
// 1 xrefs:
// > GJRotationControl::init @ 0x100640924
//
// 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::onToggleLockRotation(__int64 a1)
{
__int64 v1; // r14
__int64 v2; // rax
const char *v3; // rsi
__int64 v4; // rax
*(_BYTE *)(a1 + 456) ^= 1u;
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 1072LL))(*(_QWORD *)(a1 + 448));
v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v3 = "warpLockOffBtn_001.png";
if ( *(_BYTE *)(a1 + 456) )
v3 = "warpLockOnBtn_001.png";
v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v3);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 1160LL))(v1, v4);
}