//
// sub_10053E848 from 0x10053e848 to 0x10053e914 (204 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x100583e58
//
// 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_10053E848(_QWORD *a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x8
__int64 v8; // x0
__int64 v9; // x0
v4 = sub_1005DBC90();
v5 = sub_1005DA484(v4);
v6 = v5;
if ( v5 )
{
sub_1005DAA84(v5, 104, 0, a2);
v7 = a1[4];
if ( v7 && a1[3] == v7 )
{
a1[3] = *(_QWORD *)(v7 + 56);
*(_QWORD *)(v7 + 56) = 0;
}
v8 = a1[2];
if ( v8 && v8 != v6 )
sub_1005DAFE0();
v9 = a1[3];
if ( v9 && v9 != v6 && a1[2] != v9 )
sub_1005DAFE0();
a1[2] = v6;
a1[3] = v6;
return 1;
}
else
{
sub_1005E0E48(20, 192, 7, "ssl_lib.c", 731);
return 0;
}
}