//
// sub_D25CDC from 0xd25cdc to 0xd25dec (272 bytes)
//
// 3 xrefs:
// > sub_D25FE0 @ 0xd261e8
// > sub_D26B10 @ 0xd26ca4
// > sub_D279B4 @ 0xd27a10
//
// 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_D25CDC(__int64 a1)
{
unsigned __int8 *v1; // x3
int v2; // w1
__int64 *v4; // x20
__int64 v5; // x0
__int64 v6; // x4
__int64 result; // x0
__int64 v8; // x1
__int64 v9; // x1
__int64 v10; // [xsp+28h] [xbp+28h] BYREF
v1 = *(unsigned __int8 **)(a1 + 24);
v10 = 0;
v2 = *v1;
if ( v2 == 69 || v2 == 0 )
return 0;
v4 = &v10;
if ( v2 == 46 )
return 0;
do
{
if ( (v2 == 79 || v2 == 82) && v1[1] == 69 )
break;
v6 = sub_D24634(a1);
if ( !v6 )
return 0;
v5 = sub_D21A30(a1, 46, v6, 0);
*v4 = v5;
v4 = (__int64 *)(v5 + 16);
if ( !v5 )
return 0;
v1 = *(unsigned __int8 **)(a1 + 24);
v2 = *v1;
if ( v2 == 69 || v2 == 0 )
break;
}
while ( v2 != 46 );
result = v10;
if ( !v10 )
return 0;
if ( !*(_QWORD *)((char *)&word_10 + v10) )
{
v8 = *(_QWORD *)&byte_8[v10];
if ( *(_DWORD *)v8 == 39 )
{
v9 = *(_QWORD *)(v8 + 8);
if ( *(_DWORD *)(v9 + 28) == 9 )
{
*(_DWORD *)(a1 + 80) -= *(_DWORD *)(v9 + 8);
*(_QWORD *)&byte_8[result] = 0;
}
}
}
return result;
}