//
// DES_set_key_checked from 0x9f278c to 0x9f27d8 (76 bytes)
//
// 2 xrefs:
// > DES_set_key @ 0x9f2800
// > ??> @ 0x7a2dc
//
// 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:30 +0000
//
int __fastcall DES_set_key_checked(unsigned __int8 *a1, int a2)
{
_BOOL4 is_weak_key; // r5
if ( !DES_check_key_parity(a1) )
return -1;
is_weak_key = DES_is_weak_key(a1);
if ( is_weak_key )
return -2;
DES_set_key_unchecked(a1, a2);
return is_weak_key;
}