//
// GJScaleControl::onToggleLockScale from 0xbce108 to 0xbce1a4 (156 bytes)
//
// 3 xrefs:
// > ??> @ 0xc9820
// > GJScaleControl::init @ 0xbd428c
// > ??> @ 0x1545e80
//
// This function is hookable on this platform (idp: arm, 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 13:03:35 +0000
//
__int64 __fastcall GJScaleControl::onToggleLockScale(GJScaleControl *this, cocos2d::CCObject *a2)
{
__int64 v3; // x1
cocos2d::CCSpriteFrameCache **v4; // x20
__int64 (__fastcall *v5)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v6; // x0
__int64 v7; // x0
v3 = *((_QWORD *)this + 75);
*((_BYTE *)this + 608) ^= 1u;
v4 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);
v5 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v4 + 145);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v4);
if ( *((_BYTE *)this + 608) )
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, "warpLockOnBtn_001.png");
else
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, "warpLockOffBtn_001.png");
return v5(v4, v7);
}