//
// Camellia_set_key from 0xe1b480 to 0xe1b4e8 (104 bytes)
//
// 2 xrefs:
// > sub_DA4D80 @ 0xda4db8
// > ??> @ 0xc50a0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall Camellia_set_key(__int64 a1, unsigned int a2, __int64 a3)
{
if ( a1 && a3 )
{
if ( (a2 & 0xFFFFFFBF) == 0x80 || a2 == 256 )
{
*(_DWORD *)(a3 + 272) = Camellia_Ekeygen(a2, a1, a3);
return 0;
}
else
{
return (unsigned int)-2;
}
}
else
{
return (unsigned int)-1;
}
}