//
// GJRotationControl::onToggleLockRotation from 0x1401a25b0 to 0x1401a2638 (136 bytes)
//
// 2 xrefs:
// > GJRotationControl::init @ 0x1401a21e9
// > ??> @ 0x140919904
//
// 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
//
__int64 __fastcall GJRotationControl::onToggleLockRotation(__int64 a1)
{
char v1; // bp
const char *v2; // rbx
__int64 *v3; // rsi
__int64 v4; // rdi
cocos2d::CCSpriteFrameCache *v5; // rax
struct cocos2d::CCSpriteFrame *v6; // rax
v1 = *(_BYTE *)(a1 + 456);
*(_BYTE *)(a1 + 456) = v1 == 0;
v2 = "warpLockOffBtn_001.png";
v3 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 952LL))(*(_QWORD *)(a1 + 448));
v4 = *v3;
if ( !v1 )
v2 = "warpLockOnBtn_001.png";
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v2);
return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v6);
}