//
// sub_100644490 from 0x100644490 to 0x10064450b (123 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060cd6a
// > GJTransformControl::init @ 0x100643ebc
//
// This function is hookable on this platform (idp: pc, 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 12:34:44 +0000
//
__int64 __fastcall sub_100644490(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r14
__int64 v3; // rax
const char *v4; // rsi
__int64 v5; // rax
*(_BYTE *)(a1 + 602) ^= 1u;
v1 = GameManager::sharedState();
GameManager::setGameVariable(v1, "0189");
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 544) + 1072LL))(*(_QWORD *)(a1 + 544));
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v4 = "warpGridOffBtn_001.png";
if ( *(_BYTE *)(a1 + 602) )
v4 = "warpGridOnBtn_001.png";
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1160LL))(v2, v5);
}