//
// sub_10056FD40 from 0x10056fd40 to 0x10056fdf4 (180 bytes)
//
// 1 xrefs:
// > sub_1005505B0 @ 0x10055078c
//
// 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_10056FD40(_QWORD *a1, int a2, __int64 a3)
{
__int64 v4; // x20
unsigned __int8 v5; // w8
__int64 v6; // x19
int v7; // t1
__uint32_t v8; // w0
int v9; // t1
if ( a2 )
v4 = *a1 + 35320LL;
else
v4 = *a1 + 35256LL;
if ( !(unsigned int)sub_10057405C("Digest", a3, 6) )
return 61;
v7 = *(unsigned __int8 *)(a3 + 6);
v6 = a3 + 6;
v5 = v7;
if ( v7 )
{
do
{
if ( (char)v5 < 0 )
v8 = __maskrune(v5, 0x4000u);
else
v8 = _DefaultRuneLocale.__runetype[v5] & 0x4000;
if ( !v8 )
break;
v9 = *(unsigned __int8 *)++v6;
v5 = v9;
}
while ( v9 );
}
return sub_10057F1D4(v6, v4);
}