//
// sub_D17F7C from 0xd17f7c to 0xd17fe0 (100 bytes)
//
// 0 xrefs:
//
// 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
//
char *__fastcall sub_D17F7C(int **a1, __int64 a2)
{
int *v3; // x1
int v5; // w3
v3 = *a1;
v5 = *(*a1 - 2);
if ( (v5 & 0x80000000) == 0 && *a1 - 6 != (int *)&qword_124B6B0 )
{
if ( v5 )
{
sub_D174B8(a1, 0, 0, 0);
v3 = *a1;
}
*(v3 - 2) = -1;
}
return (char *)v3 + a2;
}