//
// sub_7DFDB8 from 0x7dfdb8 to 0x7dfe08 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30a40
//
// 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
//
int __fastcall sub_7DFDB8(int a1, int *a2)
{
int v4; // r0
if ( a1 )
{
if ( a1 == 2 )
{
DH_free(*a2);
*a2 = 0;
return 2;
}
else
{
return 1;
}
}
else
{
v4 = DH_new();
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}