//
// sub_100159DD0 from 0x100159dd0 to 0x100159e54 (132 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x1001636c0
// > GJTransformControl::init @ 0x100159968
//
// 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 10:59:43 +0000
//
__int64 __fastcall sub_100159DD0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
const char *v5; // x1
__int64 v6; // x1
*(_BYTE *)(a1 + 601) ^= 1u;
v2 = GameManager::sharedState(a1);
GameManager::setGameVariable(v2, "0188", *(unsigned __int8 *)(a1 + 601));
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 536) + 1072LL))(*(_QWORD *)(a1 + 536));
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
if ( *(_BYTE *)(a1 + 601) )
v5 = "warpAnchorOnBtn_001.png";
else
v5 = "warpAnchorOffBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
}