//
// sub_A7122 from 0xa7122 to 0xa7158 (54 bytes)
//
// 2 xrefs:
// > sub_A7770 @ 0xa77fc
// > sub_A7964 @ 0xa8364
//
// 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_A7122(_DWORD *a1, _DWORD *a2)
{
if ( *a2 )
sub_A7074((int)a2);
*a2 = *a1;
a2[2] = a1[2];
a2[1] = a1[1];
a2[3] = a1[3];
a2[4] = a1[4];
a2[5] = a1[5];
memset(a1, 0, 0x18u);
return 0;
}