// // fmt::BasicWriter::PrepareBufferForInt from 0x60db60 to 0x60dcec (396 bytes) // // 16 xrefs: // > fmt::BasicWriter::FormatInt @ 0x60dd68 // > fmt::BasicWriter::FormatInt @ 0x60ddb0 // > fmt::BasicWriter::FormatInt @ 0x60de04 // > fmt::BasicWriter::FormatInt @ 0x60de42 // > fmt::BasicWriter::FormatInt @ 0x60df10 // > fmt::BasicWriter::FormatInt @ 0x60df6c // > fmt::BasicWriter::FormatInt @ 0x60dfd6 // > fmt::BasicWriter::FormatInt @ 0x60e02c // > fmt::BasicWriter::FormatInt @ 0x60e0f0 // > fmt::BasicWriter::FormatInt @ 0x60e14a // > fmt::BasicWriter::FormatInt @ 0x60e1b2 // > fmt::BasicWriter::FormatInt @ 0x60e206 // > fmt::BasicWriter::FormatInt @ 0x60e2be // > fmt::BasicWriter::FormatInt @ 0x60e304 // > fmt::BasicWriter::FormatInt @ 0x60e356 // > fmt::BasicWriter::FormatInt @ 0x60e394 // // 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 // int __fastcall fmt::BasicWriter::PrepareBufferForInt( unsigned int *a1, int a2, unsigned int *a3, int a4, int a5) { int v6; // r4 int v9; // r5 unsigned int v10; // r2 int v11; // r8 int v12; // r9 int *v13; // t0 int v15; // r6 int v16; // r4 int *v17; // r0 int *v18; // r6 int *v19; // r0 int *v20; // r3 int v21; // r6 _DWORD *v22; // r4 int *v23; // r0 int *v24; // r7 int *v25; // r4 int *i; // r2 _DWORD *v27; // r4 int j; // r1 int v29; // t1 int *v30; // r6 unsigned int v31; // [sp+Ch] [bp-18h] int v32; // [sp+Ch] [bp-18h] unsigned int v33[3]; // [sp+10h] [bp-14h] BYREF v6 = a3[4]; v9 = a5; v13 = (int *)a3; v10 = *a3; v11 = *++v13; v12 = v13[1]; if ( v6 <= a2 ) { v21 = a2 + a5; if ( v10 > a2 + a5 ) { v32 = v10; v23 = (int *)fmt::BasicWriter::GrowBuffer(a1, v10); v24 = v23; v25 = &v23[v32]; if ( v12 == 1 ) { std::copy(a4, a4 + a5, v23); for ( i = &v24[v21]; i != v25; ++i ) *i = v11; v25 = &v24[v21]; } else if ( v12 == 3 ) { v27 = (_DWORD *)fmt::BasicWriter::FillPadding((char *)v23, v32, a2 + a5, v11); std::copy(a4, a4 + a5, v27); v25 = &v27[v21]; } else { if ( v12 == 4 ) { if ( a5 ) { for ( j = a4 - 1; a5 - 1 - j + a4 > 0; ++j ) { v29 = *(unsigned __int8 *)(j + 1); *v23++ = v29; } v21 = a2; v24 += a5 & ~(a5 >> 31); } } else { std::copy(a4, a4 + a5, &v25[-v21]); } v30 = &v25[-v21]; while ( v24 != v30 ) *v24++ = v11; } return (int)(v25 - 1); } else { v22 = (_DWORD *)fmt::BasicWriter::GrowBuffer(a1, a2 + a5); std::copy(a4, a4 + a5, v22); return (int)&v22[v21 - 1]; } } else { if ( a5 && *(_BYTE *)(a4 + a5 - 1) == 48 ) v9 = a5 - 1; v33[1] = 48; v33[0] = v9 + v6; v33[2] = 4; if ( v9 + v6 < v10 ) { v31 = v10; fmt::internal::Array::reserve((int)a1, v10); v15 = v31 - (v9 + v6); if ( v12 != 1 ) { v19 = (int *)fmt::BasicWriter::GrowBuffer(a1, v31 - (v9 + v6)); v20 = &v19[v15]; while ( v19 != v20 ) *v19++ = v11; } v16 = fmt::BasicWriter::PrepareBufferForInt(a1, a2, v33, a4, v9); if ( v12 == 1 ) { v17 = (int *)fmt::BasicWriter::GrowBuffer(a1, v15); v18 = &v17[v15]; while ( v17 != v18 ) *v17++ = v11; } return v16; } else { return fmt::BasicWriter::PrepareBufferForInt(a1, a2, v33, a4, v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source