//
// fmt::BasicWriter::FillPadding from 0x1800410a0 to 0x18004110f (111 bytes)
//
// 12 xrefs:
// > sub_180015AC0 @ 0x180015c52
// > sub_18003D560 @ 0x18003d933
// > sub_18003DEC0 @ 0x18003e29f
// > sub_180040110 @ 0x1800402d7
// > sub_180040790 @ 0x18004080c
// > fmt::internal::PrintfParser::Format @ 0x180041b4f
// > fmt::internal::PrintfParser::Format @ 0x180041c0d
// > fmt::BasicFormatter::format @ 0x180043729
// > fmt::BasicFormatter::format @ 0x180043811
// > fmt::BasicFormatter::format @ 0x1800438be
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1404
//
// 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
//
char *__fastcall fmt::BasicWriter::FillPadding(char *a1, unsigned int a2, __int64 a3, unsigned __int8 a4)
{
unsigned __int64 v5; // rdi
int v6; // ebp
unsigned __int64 v8; // rsi
char *v9; // rbx
size_t v10; // rdi
v5 = a2 - a3;
v6 = a4;
v8 = v5 >> 1;
if ( v5 >> 1 )
memset(a1, a4, ((unsigned __int64)a2 - a3) >> 1);
v9 = &a1[v8];
v10 = v5 - v8;
if ( v10 )
memset(&v9[a3], v6, v10);
return v9;
}