//
// sub_100A208 from 0x100a208 to 0x100a278 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1400470
//
// 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:15:58 +0000
//
__int64 __fastcall sub_100A208(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x0
v3 = EC_KEY_get0_group(*(_QWORD *)(a2 + 32));
v4 = EC_GROUP_dup(v3);
if ( !v4 )
return 0;
v5 = *(_QWORD *)(a1 + 32);
if ( !v5 )
{
v5 = EC_KEY_new();
*(_QWORD *)(a1 + 32) = v5;
if ( !v5 )
return 0;
}
if ( !(unsigned int)EC_KEY_set_group(v5, v4) )
return 0;
EC_GROUP_free(v4);
return 1;
}