//
// sub_1005BB670 from 0x1005bb670 to 0x1005bb754 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x100838b28
//
// 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
//
bool __fastcall sub_1005BB670(__int64 a1, __int64 a2, __int64 *a3, __int64 *a4, __int64 *a5)
{
__int64 *v5; // x19
void **v10; // x22
_BOOL8 v11; // x19
v5 = a5;
if ( a1 && a2 && a3 && a4 )
{
if ( a5 )
{
v10 = nullptr;
}
else
{
v5 = (__int64 *)sub_1005ABAC8();
v10 = (void **)v5;
if ( !v5 )
return 0;
}
if ( (unsigned int)sub_1005ACD2C(a2, a3, a4, v5) )
v11 = (*(unsigned int (__fastcall **)(__int64, __int64, __int64, __int64 *))(a1 + 224))(a2, a2, a1 + 104, v5) != 0;
else
v11 = 0;
if ( v10 )
sub_1005ABB2C(v10);
}
else
{
sub_1005E0E48(16, 200, 67, "ecp_nist.c", 177);
return 0;
}
return v11;
}