//
// fmt::BasicWriter::FillPadding from 0xddcfe4 to 0xddd050 (108 bytes)
//
// 4 xrefs:
// > fmt::BasicWriter::PrepareBufferForInt @ 0x685d30
// > fmt::BasicWriter::FormatDouble @ 0xdddaf8
// > fmt::BasicWriter::FormatDouble @ 0xdddff8
// > ??> @ 0x882d0
//
// This function is hookable on this platform (idp: arm, 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 13:09:07 +0000
//
char *__fastcall fmt::BasicWriter::FillPadding(char *a1, unsigned int a2, __int64 a3, unsigned __int8 a4)
{
unsigned __int64 v4; // x20
unsigned __int64 v5; // x19
bool v8; // zf
size_t v9; // x2
char *v10; // x19
unsigned __int8 v12; // [xsp+38h] [xbp+38h]
v4 = a2 - a3;
v5 = v4 >> 1;
if ( v4 >> 1 )
{
v12 = a4;
memset(a1, a4, v4 >> 1);
a4 = v12;
}
v9 = v4 - v5;
v8 = v4 == v5;
v10 = &a1[v5];
if ( !v8 )
memset(&v10[a3], a4, v9);
return v10;
}