//
// std::__ndk1::basic_streambuf>::swap from 0xf44278 to 0xf44364 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x9d5a0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:13:09 +0000
//
void __fastcall std::streambuf::swap(_QWORD *a1, _QWORD *a2)
{
_QWORD *v3; // x21
__int64 v5; // x9
__int64 v6; // x9
__int64 v7; // x9
__int64 v8; // x9
__int64 v9; // x9
__int64 v10; // x9
_QWORD v11[2]; // [xsp+0h] [xbp-40h] BYREF
v3 = a1 + 1;
v11[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
std::locale::locale((std::locale *)v11, (const std::locale *)(a1 + 1));
std::locale::operator=(v3, a2 + 1);
std::locale::operator=(a2 + 1, v11);
std::locale::~locale((std::locale *)v11);
v5 = a1[2];
a1[2] = a2[2];
a2[2] = v5;
v6 = a1[3];
a1[3] = a2[3];
a2[3] = v6;
v7 = a1[4];
a1[4] = a2[4];
a2[4] = v7;
v8 = a1[5];
a1[5] = a2[5];
a2[5] = v8;
v9 = a1[6];
a1[6] = a2[6];
a2[6] = v9;
v10 = a1[7];
a1[7] = a2[7];
a2[7] = v10;
}