//
// sub_A145D0 from 0xa145d0 to 0xa14614 (68 bytes)
//
// 6 xrefs:
// > ??> @ 0xd16ff4
// > ??> @ 0xd17028
// > ??> @ 0xd1705c
// > ??> @ 0xd17090
// > ??> @ 0xd170c4
// > ??> @ 0xd170f8
//
// 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:48 +0000
//
int __fastcall sub_A145D0(int a1, int a2, int a3, unsigned __int8 *a4)
{
if ( a2 != 6 )
return -1;
if ( RAND_bytes(a4, 8) <= 0 )
return 0;
DES_set_odd_parity(a4);
return 1;
}