//
// sub_3655D8 from 0x3655d8 to 0x365610 (56 bytes)
//
// 4 xrefs:
// > std::vector>::emplace_back @ 0x370684
// > std::vector>::emplace_back @ 0x37072c
// > processTrace @ 0x37984c
// > processTrace @ 0x379996
//
// 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
//
char *__fastcall sub_3655D8(char *a1, char *a2, _DWORD *a3)
{
char *v5; // r6
_DWORD *v6; // r7
int v7; // r1
int v8; // r2
int v9; // r3
int v10; // r1
int v11; // r2
int v12; // r3
v5 = a1;
v6 = a3;
while ( v5 != a2 )
{
if ( v6 )
{
v7 = *((_DWORD *)v5 + 1);
v8 = *((_DWORD *)v5 + 2);
v9 = *((_DWORD *)v5 + 3);
*v6 = *(_DWORD *)v5;
v6[1] = v7;
v6[2] = v8;
v6[3] = v9;
v10 = *((_DWORD *)v5 + 5);
v11 = *((_DWORD *)v5 + 6);
v12 = *((_DWORD *)v5 + 7);
v6[4] = *((_DWORD *)v5 + 4);
v6[5] = v10;
v6[6] = v11;
v6[7] = v12;
}
v5 += 32;
v6 += 8;
}
return (char *)a3 + ((v5 - a1) & 0xFFFFFFE0);
}