//
// fmt::BasicWriter::operator<< from 0x180040b50 to 0x180040bc0 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b13c8
//
// 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
//
__int64 *__fastcall fmt::BasicWriter::operator<<(__int64 *a1, __int64 a2)
{
size_t v2; // rbx
_BYTE *v4; // rsi
__int64 v5; // rdi
v2 = *(_QWORD *)(a2 + 8);
v4 = *(_BYTE **)a2;
if ( !v2 && v4 )
{
v2 = -1;
do
++v2;
while ( v4[v2] );
}
v5 = *a1;
sub_1800447F0(a1, v2 + *a1);
memmove((void *)(v5 + a1[2]), v4, v2);
return a1;
}