//
// sub_9F5B5C from 0x9f5b5c to 0x9f5c0c (176 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77ed0
//
// 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:32 +0000
//
int __fastcall sub_9F5B5C(int a1, int a2)
{
int v4; // r6
int v5; // r6
int v6; // r5
int v8; // r0
if ( !*(_DWORD *)(a1 + 20) )
{
v8 = DSA_new();
*(_DWORD *)(a1 + 20) = v8;
if ( !v8 )
return 0;
}
v4 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 8));
if ( !v4 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 8));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 8) = v4;
v5 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 12));
if ( !v5 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 12));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 12) = v5;
v6 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 16));
if ( !v6 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 16));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 16) = v6;
return 1;
}