//
// sub_1005CBDD8 from 0x1005cbdd8 to 0x1005cbe84 (172 bytes)
//
// 2 xrefs:
// > sub_1005CAAB4 @ 0x1005cb044
// > sub_1005CBA94 @ 0x1005cbbf4
//
// 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 sub_1005CBDD8(__int64 *a1, __int64 *a2)
{
unsigned int v3; // w0
char *v4; // x0
__int64 result; // x0
__int64 v6; // x2
__int64 v7; // x4
if ( !a1 )
return sub_1005E8F04(0);
if ( (unsigned int)sub_10058AE10(*a1) == 911 )
{
if ( a2 )
{
v3 = sub_10058AE10(*a2);
v4 = sub_10058AC68(v3);
result = sub_1005E8060(v4);
if ( result )
return result;
v6 = 151;
v7 = 520;
}
else
{
v6 = 154;
v7 = 515;
}
}
else
{
v6 = 153;
v7 = 511;
}
sub_1005E0E48(4, 159, v6, "rsa_ameth.c", v7);
return 0;
}