//
// ssl3_pending from 0xd31ce4 to 0xd31d54 (112 bytes)
//
// 23 xrefs:
// > ??> @ 0x94bf0
// > ??> @ 0x121f250
// > ??> @ 0x121f330
// > ??> @ 0x121f410
// > ??> @ 0x121f4f0
// > ??> @ 0x121f5d0
// > ??> @ 0x121f6b0
// > ??> @ 0x121f790
// > ??> @ 0x121f870
// > ??> @ 0x121f950
// > ??> @ 0x121fa30
// > ??> @ 0x121fb10
// > ??> @ 0x121fbf0
// > ??> @ 0x121fcd0
// > ??> @ 0x121fdb0
// > ??> @ 0x121fe90
// > ??> @ 0x121ff70
// > ??> @ 0x1220050
// > ??> @ 0x1220130
// > ??> @ 0x1220210
// > ??> @ 0x12202f0
// > ??> @ 0x12203d0
// > ??> @ 0x12204b0
//
// 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 ssl3_pending(_DWORD *a1)
{
unsigned int v1; // w2
unsigned int v2; // w4
int *v3; // x1
int *v4; // x0
int v5; // w3
bool v6; // zf
if ( a1[235] != 241 )
{
v1 = a1[236];
if ( !v1 )
return v1;
if ( a1[503] == 23 )
{
v2 = v1 - 1;
v3 = a1 + 504;
v1 = 0;
v4 = &a1[18 * v2 + 504];
while ( 1 )
{
v5 = *v3;
v6 = v3 == v4;
v3 += 18;
v1 += v5;
if ( v6 )
break;
if ( *(v3 - 1) != 23 )
return 0;
}
return v1;
}
}
return 0;
}