//
// sub_10054026C from 0x10054026c to 0x10054030c (160 bytes)
//
// 3 xrefs:
// > sub_10051EA8C @ 0x10051eab0
// > sub_100526FF8 @ 0x1005274d8
// > sub_100533968 @ 0x100533998
//
// 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_10054026C(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x1
__int64 v4; // x19
int v5; // w0
v2 = *(_QWORD *)(a1 + 128);
if ( !v2 )
return 0;
v3 = *(_QWORD *)(v2 + 936);
if ( !v3 )
return 0;
v4 = *(_QWORD *)(a1 + 256);
sub_10053FCA8(v4, v3);
v5 = sub_100545260(*(_QWORD *)(*(_QWORD *)(a1 + 128) + 936LL));
if ( v5 != -1 )
{
if ( v5 )
{
if ( v5 < 0 )
return 0;
}
else
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 256) + 112LL) == 0;
}
return v4 + 56LL * v5 + 112;
}
sub_1005E0E48(20, 322, 68, "ssl_lib.c", 2522);
return 0;
}