//
// GJTransformControl::onToggleOppositeAnchor from 0x6eb478 to 0x6eb4d0 (88 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f2358
//
// 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 GJTransformControl::onToggleOppositeAnchor(GJTransformControl *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
cocos2d::CCSpriteFrameCache *v4; // r5
int (__fastcall *v5)(cocos2d::CCSpriteFrameCache *, int); // r6
cocos2d::CCSpriteFrameCache *v6; // r0
const char *v7; // r1
int v8; // r0
*((_BYTE *)this + 457) ^= 1u;
v3 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v3, "0188", (const char *)*((unsigned __int8 *)this + 457));
v4 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 536))(*((_DWORD *)this + 105));
v5 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v4 + 580);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
if ( *((_BYTE *)this + 457) )
v7 = "warpAnchorOnBtn_001.png";
else
v7 = "warpAnchorOffBtn_001.png";
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
return v5(v4, v8);
}