//
// EditorUI::isFreeMoveTouch from 0x100160c48 to 0x100160cdc (148 bytes)
//
// 2 xrefs:
// > EditorUI::finishTouchDelay @ 0x100161040
// > EditorUI::ccTouchBegan @ 0x100161264
//
// 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:46 +0000
//
bool __fastcall EditorUI::isFreeMoveTouch(__int64 a1)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
if ( (*(_BYTE *)(a1 + 688) & 1) != 0 )
return 0;
v3 = cocos2d::CCDirector::sharedDirector(a1);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
if ( (*(_BYTE *)(v4 + 128) & 1) == 0
&& ((*(_BYTE *)(a1 + 864) & 1) != 0
|| (v5 = cocos2d::CCDirector::sharedDirector(v4),
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5),
(*(_BYTE *)(v6 + 129) & 1) != 0)
|| (v7 = cocos2d::CCDirector::sharedDirector(v6),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7) + 131) == 1)) )
{
return *(_DWORD *)(a1 + 1436) == 3;
}
else
{
return 0;
}
}