//
// std::swap from 0x3754ec to 0x375524 (56 bytes)
//
// 4 xrefs:
// > std::__rotate<__gnu_cxx::__normal_iterator>>> @ 0x375568
// > std::__rotate<__gnu_cxx::__normal_iterator>>> @ 0x3755ac
// > std::__rotate<__gnu_cxx::__normal_iterator>>> @ 0x3755d6
// > sub_3755EA @ 0x37563e
//
// 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 std::swap(int *a1, int *a2)
{
int *v2; // r4
int v3; // r1
int v4; // r2
int v5; // r3
int v6; // r1
int v7; // r2
int v8; // r3
int v10; // [sp+0h] [bp-24h]
int v11; // [sp+4h] [bp-20h]
int v12; // [sp+8h] [bp-1Ch]
int v13; // [sp+Ch] [bp-18h]
int v14; // [sp+10h] [bp-14h]
int v15; // [sp+14h] [bp-10h]
int v16; // [sp+18h] [bp-Ch]
int v17; // [sp+1Ch] [bp-8h]
v2 = a2;
v10 = *a1;
v11 = a1[1];
v12 = a1[2];
v13 = a1[3];
v14 = a1[4];
v15 = a1[5];
v16 = a1[6];
v17 = a1[7];
v3 = a2[1];
v4 = v2[2];
v5 = v2[3];
*a1 = *v2;
a1[1] = v3;
a1[2] = v4;
a1[3] = v5;
v6 = v2[5];
v7 = v2[6];
v8 = v2[7];
a1[4] = v2[4];
a1[5] = v6;
a1[6] = v7;
a1[7] = v8;
*v2 = v10;
v2[1] = v11;
v2[2] = v12;
v2[3] = v13;
v2 += 4;
*v2 = v14;
v2[1] = v15;
v2[2] = v16;
v2[3] = v17;
return v14;
}