//
// GJRotationControl::onToggleLockRotation from 0x6eb30c to 0x6eb354 (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:31 +0000
//
int __fastcall GJRotationControl::onToggleLockRotation(GJRotationControl *this, cocos2d::CCObject *a2)
{
cocos2d::CCSpriteFrameCache *v3; // r5
int (__fastcall *v4)(cocos2d::CCSpriteFrameCache *, int); // r6
cocos2d::CCSpriteFrameCache *v5; // r0
const char *v6; // r1
int v7; // r0
*((_BYTE *)this + 352) ^= 1u;
v3 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 87) + 536))(
*((_DWORD *)this + 87),
a2);
v4 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v3 + 580);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
if ( *((_BYTE *)this + 352) )
v6 = "warpLockOnBtn_001.png";
else
v6 = "warpLockOffBtn_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return v4(v3, v7);
}