//
// sub_46C974 from 0x46c974 to 0x46c9a4 (48 bytes)
//
// 2 xrefs:
// > GJGameState::operator= @ 0x48feda
// > GJGameState::operator= @ 0x48fee6
//
// 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 sub_46C974(int a1, _DWORD *a2)
{
void *v3; // r0
int v4; // r2
int v5; // r2
v3 = *(void **)a1;
*(_DWORD *)(a1 + 8) = 0;
*(_DWORD *)a1 = 0;
*(_DWORD *)(a1 + 4) = 0;
*(_DWORD *)a1 = *a2;
*a2 = 0;
v4 = *(_DWORD *)(a1 + 4);
*(_DWORD *)(a1 + 4) = a2[1];
a2[1] = v4;
v5 = *(_DWORD *)(a1 + 8);
*(_DWORD *)(a1 + 8) = a2[2];
a2[2] = v5;
if ( v3 )
operator delete(v3);
}