//
// sub_1001596CC from 0x1001596cc to 0x100159708 (60 bytes)
//
// 1 xrefs:
// > EditorUI::keyDown @ 0x100162444
//
// 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:42 +0000
//
__int64 __fastcall sub_1001596CC(_QWORD *a1)
{
__int64 v1; // x8
__int64 v2; // x8
__int64 v3; // x8
v1 = a1[61];
if ( v1 && (*(_BYTE *)(v1 + 460) & 1) != 0 || (v2 = a1[62]) != 0 && (*(_BYTE *)(v2 + 460) & 1) != 0 )
{
LOBYTE(v3) = 1;
}
else
{
v3 = a1[63];
if ( v3 )
LOBYTE(v3) = *(_BYTE *)(v3 + 460);
}
return v3 & 1;
}