//
// gzdopen from 0xcc8844 to 0xcc88cc (136 bytes)
//
// 1 xrefs:
// > ??> @ 0xb9e68
//
// 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
//
void **__fastcall gzdopen(int a1, unsigned __int8 *a2)
{
char *v4; // x0
char *v5; // x21
void **v6; // x19
if ( a1 == -1 )
return nullptr;
v4 = (char *)malloc(0x13u);
v5 = v4;
if ( !v4 )
return nullptr;
snprintf(v4, 0x13u, "", a1);
v6 = sub_CC8564(v5, a1, a2);
free(v5);
return v6;
}