//
// sub_1006135D8 from 0x1006135d8 to 0x100613670 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x100841fb0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1006135D8(int a1, _QWORD *a2, __int64 a3, _QWORD *a4)
{
__int64 result; // x0
__int64 v7; // x0
switch ( a1 )
{
case 10:
if ( (int)sub_100613824(a4 + 2, *a2) >= 1 )
goto LABEL_5;
result = 0;
break;
case 11:
case 13:
if ( (int)sub_1006140EC(*a2, a4[1]) >= 1 )
goto LABEL_6;
result = 0;
break;
case 12:
LABEL_5:
v7 = sub_10061395C(*a2, *a4);
a4[1] = v7;
if ( v7 )
goto LABEL_6;
result = 0;
break;
default:
LABEL_6:
result = 1;
break;
}
return result;
}