//
// sub_10055C8FC from 0x10055c8fc to 0x10055c988 (140 bytes)
//
// 1 xrefs:
// > sub_10056A6B8 @ 0x10056aad0
//
// 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_10055C8FC(__int64 a1, int a2)
{
__int64 result; // x0
if ( a2 || !*(_BYTE *)(a1 + 739) )
return 0;
switch ( *(_DWORD *)(a1 + 416) )
{
case 4:
result = sub_1005730E4(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 192), *(unsigned int *)(a1 + 248), 0, a1, 0);
break;
case 5:
case 7:
result = sub_1005735E0(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 408), *(char **)(a1 + 192));
break;
case 6:
result = sub_1005730E4(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 192), *(unsigned int *)(a1 + 248), 0, a1, 1);
break;
default:
return 0;
}
return result;
}