//
// gzdopen from 0x740864 to 0x7408a2 (62 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
//
_DWORD *__fastcall gzdopen(int a1, unsigned __int8 *a2)
{
char *v4; // r0
char *v5; // r6
_DWORD *v6; // r4
if ( a1 == -1 )
return nullptr;
v4 = (char *)malloc(0x13u);
v5 = v4;
if ( !v4 )
return nullptr;
snprintf(v4, 0x13u, "", a1);
v6 = sub_7405A4(v5, a1, a2);
free(v5);
return v6;
}