//
// sub_9F93E0 from 0x9f93e0 to 0x9f9444 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77ff8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:34 +0000
//
int __fastcall sub_9F93E0(int a1, int a2)
{
int v3; // r0
int v4; // r4
int v5; // r0
v3 = EC_KEY_get0_group(*(_DWORD *)(a2 + 20));
v4 = EC_GROUP_dup(v3);
if ( !v4 )
return 0;
v5 = *(_DWORD *)(a1 + 20);
if ( !v5 )
{
v5 = EC_KEY_new();
*(_DWORD *)(a1 + 20) = v5;
if ( !v5 )
return 0;
}
if ( !EC_KEY_set_group(v5, v4) )
return 0;
EC_GROUP_free(v4);
return 1;
}