//
// sub_100159D4C from 0x100159d4c to 0x100159dd0 (132 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100162910
// > GJTransformControl::init @ 0x100159940
//
// 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_100159D4C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
const char *v5; // x1
__int64 v6; // x1
*(_BYTE *)(a1 + 600) ^= 1u;
v2 = GameManager::sharedState(a1);
GameManager::setGameVariable(v2, "0229", *(unsigned __int8 *)(a1 + 600));
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 1072LL))(*(_QWORD *)(a1 + 528));
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
if ( *(_BYTE *)(a1 + 600) )
v5 = "warpLockOnBtn_001.png";
else
v5 = "warpLockOffBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
}