//
// sub_100189294 from 0x100189294 to 0x1001893b4 (288 bytes)
//
// 2 xrefs:
// > sub_1001891C4 @ 0x100189230
// > EditorUI::toggleViewOption @ 0x1001895ec
//
// 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:51 +0000
//
__int64 __fastcall sub_100189294(__int64 a1, int a2)
{
char *v2; // x8
__int64 *v3; // x0
__int64 *v4; // x19
_QWORD *v5; // x20
__int64 v6; // x0
char v7; // w0
int v9; // [xsp+Ch] [xbp-14h] BYREF
v9 = a2;
if ( a2 <= 17 )
{
switch ( a2 )
{
case 14:
LOBYTE(v2) = *(_BYTE *)(GameManager::sharedState(a1) + 921);
return (unsigned __int8)v2 & 1;
case 15:
LOBYTE(v2) = *(_BYTE *)(GameManager::sharedState(a1) + 922);
return (unsigned __int8)v2 & 1;
case 17:
v2 = &byte_100A10948;
goto LABEL_23;
}
}
else if ( a2 > 20 )
{
if ( a2 == 21 )
{
v2 = &byte_100A10954;
goto LABEL_23;
}
if ( a2 == 22 )
{
v2 = &byte_100A10955;
goto LABEL_23;
}
}
else
{
if ( a2 == 18 )
{
v2 = &byte_100A10949;
goto LABEL_23;
}
if ( a2 == 19 )
{
v2 = &byte_1009D4484;
LABEL_23:
LOBYTE(v2) = *v2;
return (unsigned __int8)v2 & 1;
}
}
v3 = sub_100019268((_QWORD *)(a1 + 1392), &v9);
if ( v3 )
{
v4 = v3;
v2 = (char *)*((char *)v3 + 47);
if ( ((unsigned __int64)v2 & 0x8000000000000000LL) != 0 )
v2 = (char *)v3[4];
if ( v2 )
{
v5 = v3 + 3;
v6 = GameManager::sharedState(v3);
if ( *((char *)v4 + 47) < 0 )
v5 = (_QWORD *)*v5;
GameManager::getGameVariable(v6, v5);
LOBYTE(v2) = v7 ^ (v9 < 0);
}
}
else
{
LOBYTE(v2) = 0;
}
return (unsigned __int8)v2 & 1;
}