//
// sub_10199D8 from 0x10199d8 to 0x1019ac8 (240 bytes)
//
// 1 xrefs:
// > ??> @ 0x1400898
//
// 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 13:16:06 +0000
//
bool __fastcall sub_10199D8(__int64 a1, __int64 a2, _QWORD *a3)
{
__int64 v3; // x3
__int64 v4; // x4
__int64 v5; // x3
__int64 v6; // x19
__int64 v7; // x3
v3 = *(_QWORD *)(a1 + 16);
if ( v3 && (v4 = *(_QWORD *)(a1 + 24)) != 0 )
{
v5 = *(_QWORD *)(v3 + 32);
v6 = *(_QWORD *)(v4 + 32);
if ( v5 && (v7 = *(_QWORD *)(v5 + 32)) != 0 )
{
if ( v6 )
{
*a3 = 32;
return !a2 || (unsigned int)X25519(a2, v7, v6) != 0;
}
else
{
ERR_put_error(16, 269, 133, "crypto/ec/ecx_meth.c", 348);
return 0;
}
}
else
{
ERR_put_error(16, 269, 123, "crypto/ec/ecx_meth.c", 344);
return 0;
}
}
else
{
ERR_put_error(16, 269, 140, "crypto/ec/ecx_meth.c", 338);
return 0;
}
}