//
// sub_100274138 from 0x100274138 to 0x1002741d4 (156 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a30
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fd8
//
// 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 11:01:48 +0000
//
__int64 __fastcall sub_100274138(__int64 result, int a2, int a3, int a4)
{
__int64 v5; // x1
__int64 v8; // x22
char v9; // w8
v5 = *(_QWORD *)(result + 608);
if ( v5 )
{
v8 = result;
while ( 1 )
{
if ( a3 == -1 )
{
if ( *(_DWORD *)(v5 + 52) != a2 )
goto LABEL_15;
}
else if ( *(_DWORD *)(v5 + 56) != a3 )
{
goto LABEL_15;
}
if ( a4 == 2 )
{
v9 = 0;
goto LABEL_14;
}
if ( a4 == 1 )
{
v9 = 1;
LABEL_14:
*(_BYTE *)(v5 + 49) = v9;
goto LABEL_15;
}
if ( a4 )
{
LABEL_15:
v5 = *(_QWORD *)v5;
if ( !v5 )
return result;
}
else
{
result = sub_100019534((_QWORD *)(v8 + 592), (__int64 *)v5);
v5 = result;
if ( !result )
return result;
}
}
}
return result;
}