//
// sub_1005C5A2C from 0x1005c5a2c to 0x1005c5ac4 (152 bytes)
//
// 1 xrefs:
// > sub_1005C4D00 @ 0x1005c4f54
//
// 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_1005C5A2C(__int64 a1, _QWORD *a2, __int64 *a3, int a4, __int64 *a5)
{
__int64 v5; // x8
__int64 (*v6)(void); // x5
__int64 v7; // x2
__int64 v8; // x4
v5 = *(_QWORD *)a1;
v6 = *(__int64 (**)(void))(*(_QWORD *)a1 + 144LL);
if ( !v6 && (*(_BYTE *)v5 & 1) == 0 )
{
v7 = 66;
v8 = 78;
LABEL_6:
sub_1005E0E48(16, 125, v7, "ec_oct.c", v8);
return 0;
}
if ( v5 != *a2 )
{
v7 = 101;
v8 = 83;
goto LABEL_6;
}
if ( (*(_BYTE *)v5 & 1) == 0 )
return v6();
if ( *(_DWORD *)(v5 + 4) == 406 )
return sub_1005C453C(a1, a2, a3, a4, a5);
return sub_1005C5060(a1, a2, a3, a4, a5);
}