//
// sub_7715B4 from 0x7715b4 to 0x77160c (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x7716c2
//
// 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_7715B4(int *a1)
{
int v1; // r4
int v3; // r2
void *v4; // r0
void *v5; // r0
int v6; // r3
int *result; // r0
int v8; // r1
int v9; // r5
v1 = *a1;
v3 = *(unsigned __int8 *)(*a1 + 68);
*(_DWORD *)(v1 + 44) = 0;
*(_BYTE *)(v1 + 84) = 0;
if ( v3 )
{
v4 = *(void **)(v1 + 60);
if ( v4 )
operator delete[](v4);
*(_DWORD *)(v1 + 60) = 0;
*(_BYTE *)(v1 + 68) = 0;
}
v5 = *(void **)(v1 + 92);
if ( v5 )
operator delete[](v5);
v6 = *a1;
result = a1;
*(_DWORD *)(v1 + 92) = 0;
*(_DWORD *)(v1 + 96) = 0;
v8 = *(_DWORD *)(v6 + 60);
v9 = *(_DWORD *)(v6 + 48);
*(_DWORD *)(v1 + 100) = 0;
*(_DWORD *)(v1 + 104) = 0;
*(_DWORD *)(v6 + 4) = v8;
*(_DWORD *)(v6 + 8) = v8;
*(_DWORD *)(v6 + 12) = v8;
*(_BYTE *)(v6 + 69) = 0;
*(_BYTE *)(v6 + 70) = 0;
*(_DWORD *)(v6 + 20) = 0;
*(_DWORD *)(v6 + 16) = 0;
*(_DWORD *)(v6 + 24) = 0;
*(_DWORD *)(v6 + 52) = v9;
*(_DWORD *)(v6 + 56) = v9;
return result;
}