//
// std::function sub_5ABD78 @ 0x5abe16
// > sub_5ABD78 @ 0x5abe1e
//
// 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::function::swap(int *a1, int *a2)
{
int v4; // r1
int v5; // r1
int result; // r0
int v7; // r1
int v8; // [sp+4h] [bp-10h]
int v9; // [sp+8h] [bp-Ch]
v8 = *a1;
v9 = a1[1];
v4 = a2[1];
*a1 = *a2;
a1[1] = v4;
*a2 = v8;
a2[1] = v9;
v5 = a1[2];
a1[2] = a2[2];
a2[2] = v5;
result = a2[3];
v7 = a1[3];
a1[3] = result;
a2[3] = v7;
return result;
}