//
// fmt::BasicWriter::FillPadding from 0x1800418d0 to 0x18004193f (111 bytes)
//
// 12 xrefs:
// > sub_180015A30 @ 0x180015bce
// > sub_18003DC70 @ 0x18003e042
// > sub_18003E5C0 @ 0x18003e995
// > sub_1800407B0 @ 0x180040977
// > sub_180040E10 @ 0x180040e8c
// > fmt::internal::PrintfParser::Format @ 0x1800423a4
// > fmt::internal::PrintfParser::Format @ 0x180042462
// > fmt::BasicFormatter::format @ 0x180043d2c
// > fmt::BasicFormatter::format @ 0x180043e06
// > fmt::BasicFormatter::format @ 0x180043eb2
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb518
//
// 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:39 +0000
//
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;
}