//
// GameObject::shouldLockX from 0x76df44 to 0x76e128 (484 bytes)
//
// 3 xrefs:
// > GameObject::customSetup @ 0x7791f8
// > LevelEditorLayer::addSpecial @ 0x7a0728
// > ??> @ 0xf0f58
//
// 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 12:53:11 +0000
//
bool __fastcall GameObject::shouldLockX(GameObject *this)
{
int v1; // w0
v1 = *((_DWORD *)this + 257);
if ( v1 > 1917 )
{
if ( v1 > 3021 )
{
if ( v1 <= 3609 )
return v1 >= 3602 || v1 >= 3023 && (v1 <= 3024 || (unsigned int)(v1 - 3029) <= 2);
if ( v1 == 3640 )
return 1;
if ( v1 <= 3640 )
return (unsigned int)(v1 - 3612) <= 1;
return (unsigned int)(v1 - 3660) <= 2;
}
else
{
if ( v1 >= 3006 )
return 1;
if ( v1 <= 2068 )
{
if ( v1 < 2067 && v1 != 2015 )
{
if ( v1 > 2015 )
{
if ( v1 != 2062 )
return 0;
}
else if ( (unsigned int)(v1 - 1934) > 1 )
{
return 0;
}
}
return 1;
}
if ( v1 == 2925 )
return 1;
if ( v1 <= 2925 )
return (unsigned int)(v1 - 2900) <= 1;
return v1 == 2999;
}
}
else
{
if ( v1 >= 1912 || v1 == 915 )
return 1;
if ( v1 <= 915 )
{
if ( v1 == 105 )
return 1;
if ( v1 <= 105 )
{
if ( v1 < 22 )
return 0;
return v1 <= 34 || (unsigned int)(v1 - 55) <= 4;
}
else
{
if ( v1 == 744 )
return 1;
if ( v1 <= 744 )
return (unsigned int)(v1 - 200) <= 3;
return (unsigned int)(v1 - 899) <= 2;
}
}
else
{
if ( v1 <= 1347 )
{
if ( v1 < 1346 && v1 != 1049 )
{
if ( v1 > 1049 )
return v1 == 1268 || v1 == 1334;
if ( (unsigned int)(v1 - 1006) > 1 )
return 0;
}
return 1;
}
if ( v1 == 1812 )
return 1;
if ( v1 <= 1812 )
return v1 == 1616;
return (unsigned int)(v1 - 1814) <= 1;
}
}
}