//
// fmt::BasicWriter::FillPadding from 0x60ba56 to 0x60ba80 (42 bytes)
//
// 8 xrefs:
// > fmt::BasicWriter::write_str @ 0x60d99c
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dae8
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc7a
// > fmt::BasicWriter::write_str @ 0x60e412
// > fmt::BasicWriter::FormatDouble @ 0x60e6b8
// > fmt::BasicWriter::FormatDouble @ 0x60e96c
// > fmt::BasicFormatter::format @ 0x60ec12
// > fmt::internal::PrintfParser::Format @ 0x60f058
//
// 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::FillPadding(char *a1, int a2, int a3, int a4)
{
unsigned int v4; // r1
__int64 result; // r0
v4 = a2 - a3;
memset32(a1, a4, v4 >> 1);
LODWORD(result) = &a1[4 * (v4 >> 1)];
memset32((void *)(result + 4 * a3), a4, v4 - (v4 >> 1));
HIDWORD(result) = 0;
return result;
}