//
// fmt::BasicWriter::FillPadding from 0x81b9aa to 0x81b9d8 (46 bytes)
//
// 7 xrefs:
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf270
// > fmt::BasicWriter::write_str @ 0x81bcce
// > fmt::BasicWriter::FormatDouble @ 0x81bf90
// > fmt::BasicWriter::FormatDouble @ 0x81c21c
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81cc96
// > fmt::BasicFormatter::format @ 0x81d63c
// > fmt::internal::PrintfParser::Format @ 0x81de3e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:46 +0000
//
char *__fastcall fmt::BasicWriter::FillPadding(char *a1, int a2, int a3, unsigned __int8 a4)
{
int v4; // r4
size_t v7; // r6
char *v9; // r5
v4 = a2 - a3;
v7 = (unsigned int)(a2 - a3) >> 1;
if ( v7 )
memset(a1, a4, v7);
v9 = &a1[v7];
if ( v4 != v7 )
memset(&v9[a3], a4, v4 - v7);
return v9;
}