//
// fmt::FormatInt::operator= from 0x180017c70 to 0x180017ce1 (113 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 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 11:21:25 +0000
//
unsigned __int64 __fastcall fmt::FormatInt::operator=(unsigned __int64 a1, unsigned __int64 a2)
{
_BYTE *v3; // r8
__int64 v4; // rdx
int v6; // eax
if ( a1 > a2 + 21 || a1 + 21 < a2 )
{
v6 = *(_DWORD *)(a2 + 16);
*(_OWORD *)a1 = *(_OWORD *)a2;
*(_DWORD *)(a1 + 16) = v6;
*(_WORD *)(a1 + 20) = *(_WORD *)(a2 + 20);
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a2 + 24);
return a1;
}
else
{
v3 = (_BYTE *)a1;
v4 = 22;
do
{
*v3 = v3[a2 - a1];
++v3;
--v4;
}
while ( v4 );
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a2 + 24);
return a1;
}
}