//
// sub_100545984 from 0x100545984 to 0x100545af4 (368 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x1005857a0
//
// 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_100545984(_QWORD *a1, __int64 a2, int a3)
{
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x21
__int64 v10; // x2
__int64 v11; // x20
__int64 v12; // x4
__int64 *v13; // x20
v6 = sub_1005DB7B0();
v7 = sub_1005DA484(v6);
v8 = v7;
if ( v7 )
{
if ( sub_1005DAB78(v7, 108, 3, a2) <= 0 )
{
v10 = 2;
v12 = 633;
}
else
{
if ( a3 == 2 )
{
v9 = sub_10060425C(v8, 0);
v10 = 13;
}
else
{
if ( a3 != 1 )
{
v10 = 124;
v12 = 645;
goto LABEL_14;
}
v9 = sub_1005FE964(v8, 0, a1[21], a1[22]);
v10 = 9;
}
if ( v9 )
{
v13 = a1 + 38;
if ( (unsigned int)sub_100541118(v13) )
{
v11 = sub_1005454EC(*v13, v9);
}
else
{
sub_1005E0E48(20, 174, 65, "ssl_rsa.c", 613);
v11 = 0;
}
sub_1005E9A8C(v9);
goto LABEL_17;
}
v12 = 649;
}
LABEL_14:
sub_1005E0E48(20, 176, v10, "ssl_rsa.c", v12);
v11 = 0;
LABEL_17:
sub_1005DA554(v8);
return v11;
}
sub_1005E0E48(20, 176, 7, "ssl_rsa.c", 628);
return 0;
}