//
// sub_100159708 from 0x100159708 to 0x100159774 (108 bytes)
//
// 2 xrefs:
// > EditorUI::keyDown @ 0x100162478
// > EditorUI::handleAction @ 0x100162564
//
// 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:43 +0000
//
__int64 __fastcall sub_100159708(_QWORD *a1)
{
__int64 v1; // x8
__int64 v2; // x8
__int64 v3; // x8
__int64 v4; // x8
v1 = a1[61];
if ( v1 && (*(_BYTE *)(v1 + 460) & 1) != 0 )
{
v2 = 64;
LABEL_10:
sub_10015944C((__int64)a1, a1[v2]);
return 1;
}
v3 = a1[62];
if ( v3 && (*(_BYTE *)(v3 + 460) & 1) != 0 )
{
v2 = 65;
goto LABEL_10;
}
v4 = a1[63];
if ( v4 && *(_BYTE *)(v4 + 460) == 1 )
{
v2 = 66;
goto LABEL_10;
}
return 0;
}